[13:12:47]ConnectInit Can't connect to host [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [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:54]accept exits with 8 [13:17:54]New connection [13:17:54]New thread 3067215204 created [13:17:54]Thread 3067071844 joined [13:17:54]Waiting for new connection... [13:17:54] Sock 8.Parse request [13:17:54]Sock 8.Check first char [13:17:54]Sock 8.First char is OK [13:17:54]request: POST /json_proto HTTP/1.0 [13:17:54]Method: POST [13:17:54]URL: /json_proto [13:17:54]Method is POST - this is cgi request [13:17:54]url: /json_proto [13:17:54]query_string will be loaded in cgi processing [13:17:54]execute_cgi json_proto POST (null) [13:17:54]execute_cgi path=json_proto method=POST [13:17:54]POST find Content-Length [13:17:54]Host: 172.17.42.131:8080 [13:17:54]Content-Length: 755 [13:17:54]Content-Type: application/json [13:17:54] [13:17:54]POST finish read [13:17:54]Found Content-Length = 755 [13:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 100.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\u000A30080990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:54]execute_script... [13:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 100.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\u000A30080990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:54]POST & json_proto [13:17:54]process_json_proto [13:17:54]json parsed OK: [13:17:54]protocol is kg_v1.0 [13:17:54]action value=close_receipt [13:17:54]process_action close_receipt [13:17:54]cmd_close_receipt [13:17:54]MH_GetDate [13:17:54]Write to MH i2c: F0 00 00 E5 40 14 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: F0 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: F0 09 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: F0 09 00 E5 40 00 06 49 1A 67 A0 18 CA 66 D5 [13:17:54]GetLastDocTimeStamp 1729775489 [13:17:54]current date 1729775878 [13:17:54]FM_GetShiftState [13:17:54]SAM_PROTO_GetShiftState [13:17:54]wFMCommunicate request_size=4 [13:17:54]MH_SAM_APDU [13:17:54]CAPDU: 80 13 01 00 [13:17:54]Write to MH i2c: E2 08 00 E6 40 80 13 01 00 00 00 00 00 A3 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:54]Read from MH i2c: E2 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0E 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0E 00 E6 40 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 81 [13:17:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:17:54]wFMCommunicate OK [13:17:54]SAM_PROTO_GetShiftState done [13:17:54]FM_GetShiftState done [13:17:54]opened in 1729728961 [13:17:54]opened+sec_in_day 1729815361 [13:17:54]quantity*price = 0 [13:17:54]sum+1 = 1 [13:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 214 24.10.2024 13:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30080990 ФМ: 0000000000965340 ФД: 189141 ФПД: 212370475417880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T131758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189141&fm=212370475417880&tin=02508201610067®Number=0000000000100030&sum=0 [13:17:55]StoreToDocumentArchive [13:17:55]shift 463 fd 189141 [13:17:55]save to /storage/0463/doc_00189141 [13:17:55]save last doc name /storage/0463/doc_00189141 to /storage/kkm_last_doc_name [13:17:55]save OK [13:17:55]Clear old archive folders... [13:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:55]tlvbuf is 014C3120 [13:17:55]SAM_PROTO_ClearQueue [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 09 00 00 [13:17:55]Write to MH i2c: E2 08 00 F3 40 80 09 00 00 00 00 00 00 A5 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 03 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 03 00 F3 40 00 90 00 A7 [13:17:55]RAPDU: 90 00 [13:17:55]wFMCommunicate OK [13:17:55]SAM_PROTO_ClearQueue done [13:17:55]KKMCreateOFDPacket [13:17:55]OFDProtocolAddRootSTLVToBuf [13:17:55]FM_MakeSignedData [13:17:55]FM_MakeSignedData [13:17:55]SAM_PROTO_SignData [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 0D 01 02 [13:17:55]Write to MH i2c: E2 08 00 F4 40 80 0D 01 02 00 00 00 00 AD [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 03 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 03 00 F4 40 00 90 00 A8 [13:17:55]RAPDU: 90 00 [13:17:55]wFMCommunicate OK [13:17:55]wFMCommunicate request_size=255 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 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 D6 00 00 00 F4 03 04 00 06 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E2 02 00 35 04 06 00 C1 [13:17:55]Write to MH i2c: E2 02 01 F5 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 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 D6 00 00 00 F4 03 04 00 06 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E2 02 00 35 04 06 00 C1 00 00 B6 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [13:17:56]RAPDU: 90 00 [13:17:56]wFMCommunicate OK [13:17:56]wFMCommunicate request_size=10 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 0D 02 02 05 26 5A BF 81 18 [13:17:56]Write to MH i2c: E2 0D 00 F6 40 80 0D 02 02 05 00 26 5A BF 81 18 00 00 92 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [13:17:56]RAPDU: 90 00 [13:17:56]wFMCommunicate OK [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 0D 03 02 [13:17:56]Write to MH i2c: E2 08 00 F7 40 80 0D 03 02 00 00 00 00 B2 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0B 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0B 00 F7 40 00 1D BA E9 BF EE F8 55 5D 90 00 CA [13:17:56]RAPDU: 1D BA E9 BF EE F8 55 5D 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_SignData done [13:17:56]FM_MakeSignedData done [13:17:56]CreateOFDProtocolMessage [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 11 00 00 [13:17:56]Write to MH i2c: E2 08 00 F8 40 80 11 00 00 00 00 00 00 B2 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 17 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 17 00 F8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [13:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:17:56]wFMCommunicate OK [13:17:56]CreateOFDProtocolMessage done [13:17:56]OFDSenderStorePacket 189141 [13:17:56]StoreOFDPacket docnum=189141 [13:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F9 98 07 01 CF 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 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 D6 00 00 00 F4 03 04 00 06 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E2 02 00 35 04 06 00 C1 26 5A BF 81 18 1D BA E9 BF EE F8 55 5D [13:17:56]CheckFolder [13:17:56]dirname=/storage/ofd_packets [13:17:56]CheckFolder done [13:17:56]ProducePacketName [13:17:56]name=ofd_packets/00189141 [13:17:56]NVStorageSaveData ofd_packets/00189141 [13:17:56]File name is /storage/ofd_packets/00189141 [13:17:56]Write 301 bytes [13:17:56]NVStorageSaveData done [13:17:56]OFDSenderStorePacket done [13:17:56]KKMCreateOFDPacket done [13:17:56]NVStorageSaveData kkm_last_timestamp [13:17:56]File name is /storage/kkm_last_timestamp [13:17:56]Write 4 bytes [13:17:56]NVStorageSaveData done [13:17:56]ExternCall_PrintAddStr [13:17:56]wPrintStart [13:17:56]Write to MH i2c: 01 00 00 F9 40 39 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 07 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 07 00 F9 40 00 00 00 00 00 FF 0F 4E [13:17:56]RasterBufferAndPrint [13:17:56]line Счет N : (1)211204 [13:17:56]line ИНН: 02508201610067 [13:17:56]line Контрольно-Кассовый Чек [13:17:56]line ПРОДАЖА [13:17:56]line ТРК (МРК, ГНК) : 33 [13:17:56]line Товар: 2710124500 [13:17:56]line Аи-95-К-3 [13:17:56]line 100.000 * 0.00 [13:17:56]line = 0.00 [13:17:56]line НДС 12% НСП 1% [13:17:56]line > о реализуемом товаре [13:17:56]line ИТОГО: 0.00 [13:17:56]line НСП 1% : 0.00 [13:17:56]line НДС 12% : 0.00 [13:17:56]line Наличными: 0.00 [13:17:56]line Безнал.: 0.00 [13:17:56]line Место: АЗС № 86 "Партнер Нефть" [13:17:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:17:56]line СНО: Общий режим [13:17:56]line Чек 214 24.10.2024 13:17 [13:17:56]line Смена: 463 ФФД: 1.0 [13:17:56]line ЗНМ: 0300000155 [13:17:56]line РНМ: 0000000000100030 [13:17:56]line Версия ККМ: 001 [13:17:56]line Талоны: ТК ГПНА Online [13:17:56]line 30080990 [13:17:56]line ФМ: 0000000000965340 [13:17:56]line ФД: 189141 [13:17:56]line ФПД: 212370475417880 [13:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T131758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189141&fm=212370475417880&tin=02508201610067®Number=0000000000100030&sum=0 [13:17:56]written 0, free lines is 4095 [13:17:56]OFD Sender: Processing packet 189141 [packets to send 1062, broken 1061] [13:17:56]ProducePacketName [13:17:56]name=ofd_packets/00189141 [13:17:56]OFD Sender: To server: pG, [13:17:56]CommunicateWithHost lk.salyk.kg:30040 [13:17:56]ConnectInit lk.salyk.kg [13:17:56]Connected sock=10 [13:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F9 98 07 01 CF 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A0 86 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 D6 00 00 00 F4 03 04 00 06 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E2 02 00 35 04 06 00 C1 26 5A BF 81 18 1D BA E9 BF EE F8 55 5D [13:17:56]Write to MH i2c: 01 00 00 23 41 64 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 07 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 07 00 23 41 00 00 00 00 00 71 0C E8 [13:17:56]RasterBufferAndPrint [13:17:56]line [13:17:56]line [13:17:56]line [13:17:56]line [13:17:56]line [13:17:56]written 0, free lines is 3191 [13:17:56]MH_Cut [13:17:56]Write to MH i2c: D1 01 00 2A 41 01 3D [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: D1 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: D1 01 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: D1 01 00 2A 41 00 3C [13:17:56]Write to MH i2c: 01 00 00 2B 41 6C [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 0C 47 00 56 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 39 36 35 33 34 30 10 04 04 00 D5 E2 02 00 F4 03 04 00 EE F2 19 67 B6 04 01 00 00 2B 21 AD 62 CC 33 9B 1B [13:17:57]CommunicateWithHost err = 0 [13:17:57]CheckOFDResponse [13:17:57]1017 (14) - 77093643461234 [13:17:57]1041 (16) - 0000000000965340 [13:17:57]1040 (4) - 189141 [13:17:57]1012 (4) - 24.10.2024 07:10 [13:17:57]1206 (1) - 0 [13:17:57]OFD Sender: Remove packet 189141 [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00189141 [13:17:57]NVStorageDeleteData [13:17:57]OFD Sender: No OFD packet to send [13:17:58]*** Cut start [13:17:58]*** Partial cut [13:17:58]*** CUTSNS_PIN = 1 [13:17:58]*** CUTSNS_PIN = 0 [13:17:58]*** Brake cut motor [13:17:58]Read from MH i2c: 01 [13:17:58]MH_I2C_Read... [13:17:58]*** Stop cut motor [13:17:58]*** Cut end [13:17:58]Read from MH i2c: 01 07 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 2B 41 00 00 00 00 00 FF 0F 81 [13:17:58]process_action close_receipt done [13:17:58]requested_data is exist [13:17:58]produce_requested_data [13:17:58]requested_item fm.sn is exist - process it [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 11 00 00 [13:17:58]Write to MH i2c: E2 08 00 2C 41 80 11 00 00 00 00 00 00 E7 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 2C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [13:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:17:58]wFMCommunicate OK [13:17:58]requested_item fd.num is exist - process it [13:17:58]SAM_PROTO_GetFieldsCounters [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 13 00 00 [13:17:58]Write to MH i2c: E2 08 00 2D 41 80 13 00 00 00 00 00 00 EA [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 62 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 62 00 2D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E2 02 00 0E 04 04 00 CF 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 FC [13:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E2 02 00 0E 04 04 00 CF 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 [13:17:58]wFMCommunicate OK [13:17:58]SAM_PROTO_GetFieldsCounters done [13:17:58]requested_item shift.num is exist - process it [13:17:58]requested_item shift.opened is exist - process it [13:17:58]req_shift_opened [13:17:58]FM_GetShiftState [13:17:58]SAM_PROTO_GetShiftState [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 13 01 00 [13:17:58]Write to MH i2c: E2 08 00 2E 41 80 13 01 00 00 00 00 00 EC [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0E 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0E 00 2E 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [13:17:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:17:58]wFMCommunicate OK [13:17:58]SAM_PROTO_GetShiftState done [13:17:58]FM_GetShiftState done [13:17:58]req_shift_opened done [13:17:58]requested_item shift.open_date is exist - process it [13:17:58]req_shift_open_date [13:17:58]req_shift_open_date done [13:17:58]produce_requested_data done [13:17:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189141,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:17:58]process_action_free close_receipt [13:17:58]json_value_free [13:17:58]json_value_free done [13:17:58]process_json_proto returns [13:17:58]Send response to host [13:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189141,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:17:58]free response buf [13:17:58]execute_script done [13:17:58]execute_script returns [13:17:58]free content buf [13:17:58]Sock 8.Close socket [13:17:58]Sock 8.Thread stoped [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:00]accept exits with 9 [13:21:00]New connection [13:21:00]New thread 3067071844 created [13:21:00]Thread 3067215204 joined [13:21:00]Waiting for new connection... [13:21:00] Sock 9.Parse request [13:21:00]Sock 9.Check first char [13:21:00]Sock 9.First char is OK [13:21:00]request: POST /json_proto HTTP/1.0 [13:21:00]Method: POST [13:21:00]URL: /json_proto [13:21:00]Method is POST - this is cgi request [13:21:00]url: /json_proto [13:21:00]query_string will be loaded in cgi processing [13:21:00]execute_cgi json_proto POST (null) [13:21:00]execute_cgi path=json_proto method=POST [13:21:00]POST find Content-Length [13:21:00]Host: 172.17.42.131:8080 [13:21:00]Content-Length: 688 [13:21:00]Content-Type: application/json [13:21:00] [13:21:00]POST finish read [13:21:00]Found Content-Length = 688 [13:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [13:21:00]execute_script... [13:21: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)211205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [13:21:00]POST & json_proto [13:21:00]process_json_proto [13:21:00]json parsed OK: [13:21:00]protocol is kg_v1.0 [13:21:00]action value=close_receipt [13:21:00]process_action close_receipt [13:21:00]cmd_close_receipt [13:21:00]MH_GetDate [13:21:00]Write to MH i2c: F0 00 00 2F 41 5F [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: F0 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: F0 09 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: F0 09 00 2F 41 00 BF 49 1A 67 A0 18 CA 66 D9 [13:21:00]GetLastDocTimeStamp 1729775878 [13:21:00]current date 1729776063 [13:21:00]FM_GetShiftState [13:21:00]SAM_PROTO_GetShiftState [13:21:00]wFMCommunicate request_size=4 [13:21:00]MH_SAM_APDU [13:21:00]CAPDU: 80 13 01 00 [13:21:00]Write to MH i2c: E2 08 00 30 41 80 13 01 00 00 00 00 00 EE [13:21:00]Write i2c OK [13:21:00]MH_I2C_Read... [13:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:00]Read from MH i2c: E2 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 0E 00 [13:21:00]MH_I2C_Read... [13:21:00]Read from MH i2c: E2 0E 00 30 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CC [13:21:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:21:00]wFMCommunicate OK [13:21:00]SAM_PROTO_GetShiftState done [13:21:00]FM_GetShiftState done [13:21:00]opened in 1729728961 [13:21:00]opened+sec_in_day 1729815361 [13:21:00]quantity*price = 120046 [13:21:00]sum+1 = 120047 [13:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 215 24.10.2024 13:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189142 ФПД: 205239313310722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189142&fm=205239313310722&tin=02508201610067®Number=0000000000100030&sum=120000 [13:21:01]StoreToDocumentArchive [13:21:01]shift 463 fd 189142 [13:21:01]save to /storage/0463/doc_00189142 [13:21:01]save last doc name /storage/0463/doc_00189142 to /storage/kkm_last_doc_name [13:21:01]save OK [13:21:01]Clear old archive folders... [13:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:21:01]tlvbuf is 014D3790 [13:21:01]SAM_PROTO_ClearQueue [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 09 00 00 [13:21:01]Write to MH i2c: E2 08 00 3D 41 80 09 00 00 00 00 00 00 F0 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 3D 41 00 90 00 F2 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]SAM_PROTO_ClearQueue done [13:21:01]KKMCreateOFDPacket [13:21:01]OFDProtocolAddRootSTLVToBuf [13:21:01]FM_MakeSignedData [13:21:01]FM_MakeSignedData [13:21:01]SAM_PROTO_SignData [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 01 02 [13:21:01]Write to MH i2c: E2 08 00 3E 41 80 0D 01 02 00 00 00 00 F8 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 3E 41 00 90 00 F3 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=255 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 D7 00 00 00 F4 03 04 00 BF 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E2 02 [13:21:01]Write to MH i2c: E2 02 01 3F 41 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 D7 00 00 00 F4 03 04 00 BF 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E2 02 00 00 B1 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 3F 41 00 90 00 F4 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=16 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA AA 00 5D 24 02 [13:21:01]Write to MH i2c: E2 13 00 40 41 80 0D 02 02 0B 00 00 35 04 06 00 BA AA 00 5D 24 02 00 00 37 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 40 41 00 90 00 F5 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 03 02 [13:21:01]Write to MH i2c: E2 08 00 41 41 80 0D 03 02 00 00 00 00 FD [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 0B 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 0B 00 41 41 00 4C 40 D5 00 EA FC 8F BB 90 00 8F [13:21:01]RAPDU: 4C 40 D5 00 EA FC 8F BB 90 00 [13:21:01]wFMCommunicate OK [13:21:01]SAM_PROTO_SignData done [13:21:01]FM_MakeSignedData done [13:21:01]CreateOFDProtocolMessage [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 11 00 00 [13:21:01]Write to MH i2c: E2 08 00 42 41 80 11 00 00 00 00 00 00 FD [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 17 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 17 00 42 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [13:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:21:01]wFMCommunicate OK [13:21:01]CreateOFDProtocolMessage done [13:21:01]OFDSenderStorePacket 189142 [13:21:01]StoreOFDPacket docnum=189142 [13:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5F 2D 0D 01 E5 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 D7 00 00 00 F4 03 04 00 BF 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E2 02 00 35 04 06 00 BA AA 00 5D 24 02 4C 40 D5 00 EA FC 8F BB [13:21:01]CheckFolder [13:21:01]dirname=/storage/ofd_packets [13:21:01]CheckFolder done [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00189142 [13:21:01]NVStorageSaveData ofd_packets/00189142 [13:21:01]File name is /storage/ofd_packets/00189142 [13:21:01]Write 307 bytes [13:21:01]NVStorageSaveData done [13:21:01]OFDSenderStorePacket done [13:21:01]KKMCreateOFDPacket done [13:21:01]NVStorageSaveData kkm_last_timestamp [13:21:01]File name is /storage/kkm_last_timestamp [13:21:01]Write 4 bytes [13:21:01]NVStorageSaveData done [13:21:01]ExternCall_PrintAddStr [13:21:01]wPrintStart [13:21:01]Write to MH i2c: 01 00 00 43 41 84 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 43 41 00 00 00 00 00 FF 0F 99 [13:21:01]RasterBufferAndPrint [13:21:01]line Счет N : (1)211205 [13:21:01]line ИНН: 02508201610067 [13:21:01]line Контрольно-Кассовый Чек [13:21:01]line ПРОДАЖА [13:21:01]line ТРК (МРК, ГНК) : 31 [13:21:01]line Товар: 2710194210 [13:21:01]line D-ENERGY ДТ-К-5 [13:21:01]line 15.550 * 77.20 [13:21:01]line = 1200.46 [13:21:01]line НДС 12% НСП 1% [13:21:01]line > о реализуемом товаре [13:21:01]line ОКРУГЛЕНИЕ: -0.46 [13:21:01]line ИТОГО: 1200.00 [13:21:01]line Внесено: 1200.00 [13:21:01]line СДАЧА: 0.00 [13:21:01]line НСП 1% : 10.62 [13:21:01]line НДС 12% : 127.48 [13:21:01]line Наличными: 1200.00 [13:21:01]line Безнал.: 0.00 [13:21:01]line Место: АЗС № 86 "Партнер Нефть" [13:21:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:21:01]line СНО: Общий режим [13:21:01]line Чек 215 24.10.2024 13:21 [13:21:01]line Смена: 463 ФФД: 1.0 [13:21:01]line ЗНМ: 0300000155 [13:21:01]line РНМ: 0000000000100030 [13:21:01]line Версия ККМ: 001 [13:21:01]line ФМ: 0000000000965340 [13:21:01]line ФД: 189142 [13:21:01]line ФПД: 205239313310722 [13:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189142&fm=205239313310722&tin=02508201610067®Number=0000000000100030&sum=120000 [13:21:01]written 0, free lines is 4095 [13:21:01]OFD Sender: Processing packet 189142 [packets to send 1062, broken 1061] [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00189142 [13:21:01]OFD Sender: To server: pG, [13:21:01]CommunicateWithHost lk.salyk.kg:30040 [13:21:01]ConnectInit lk.salyk.kg [13:21:02]Connected sock=10 [13:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5F 2D 0D 01 E5 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 D7 00 00 00 F4 03 04 00 BF 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E2 02 00 35 04 06 00 BA AA 00 5D 24 02 4C 40 D5 00 EA FC 8F BB [13:21:02]Write to MH i2c: 01 00 00 6E 41 AF [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 07 00 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 07 00 6E 41 00 00 00 00 00 58 0C 1A [13:21:02]RasterBufferAndPrint [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]written 0, free lines is 3164 [13:21:02]MH_Cut [13:21:02]Write to MH i2c: D1 01 00 75 41 01 88 [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 01 00 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 01 00 75 41 00 87 [13:21:02]Write to MH i2c: 01 00 00 76 41 B7 [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 22 B6 47 00 A1 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 39 36 35 33 34 30 10 04 04 00 D6 E2 02 00 F4 03 04 00 A7 F3 19 67 B6 04 01 00 00 1A 87 C3 67 63 F9 B2 F5 [13:21:02]CommunicateWithHost err = 0 [13:21:02]CheckOFDResponse [13:21:02]1017 (14) - 77093643461234 [13:21:02]1041 (16) - 0000000000965340 [13:21:02]1040 (4) - 189142 [13:21:02]1012 (4) - 24.10.2024 07:13 [13:21:02]1206 (1) - 0 [13:21:02]OFD Sender: Remove packet 189142 [13:21:02]ProducePacketName [13:21:02]name=ofd_packets/00189142 [13:21:02]NVStorageDeleteData [13:21:03]OFD Sender: No OFD packet to send [13:21:03]*** Cut start [13:21:03]*** Partial cut [13:21:03]*** CUTSNS_PIN = 1 [13:21:03]*** CUTSNS_PIN = 0 [13:21:03]*** Brake cut motor [13:21:04]Read from MH i2c: 01 [13:21:04]MH_I2C_Read... [13:21:04]*** Stop cut motor [13:21:04]*** Cut end [13:21:04]Read from MH i2c: 01 07 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: 01 07 00 76 41 00 00 00 00 00 FF 0F CC [13:21:04]process_action close_receipt done [13:21:04]requested_data is exist [13:21:04]produce_requested_data [13:21:04]requested_item fm.sn is exist - process it [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 11 00 00 [13:21:04]Write to MH i2c: E2 08 00 77 41 80 11 00 00 00 00 00 00 32 [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 17 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 17 00 77 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [13:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:21:04]wFMCommunicate OK [13:21:04]requested_item fd.num is exist - process it [13:21:04]SAM_PROTO_GetFieldsCounters [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 13 00 00 [13:21:04]Write to MH i2c: E2 08 00 78 41 80 13 00 00 00 00 00 00 35 [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 62 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 62 00 78 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E2 02 00 0E 04 04 00 CF 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 4B [13:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E2 02 00 0E 04 04 00 CF 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 [13:21:04]wFMCommunicate OK [13:21:04]SAM_PROTO_GetFieldsCounters done [13:21:04]requested_item shift.num is exist - process it [13:21:04]requested_item shift.opened is exist - process it [13:21:04]req_shift_opened [13:21:04]FM_GetShiftState [13:21:04]SAM_PROTO_GetShiftState [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 13 01 00 [13:21:04]Write to MH i2c: E2 08 00 79 41 80 13 01 00 00 00 00 00 37 [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 0E 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 0E 00 79 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [13:21:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:21:04]wFMCommunicate OK [13:21:04]SAM_PROTO_GetShiftState done [13:21:04]FM_GetShiftState done [13:21:04]req_shift_opened done [13:21:04]requested_item shift.open_date is exist - process it [13:21:04]req_shift_open_date [13:21:04]req_shift_open_date done [13:21:04]produce_requested_data done [13:21:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189142,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:21:04]process_action_free close_receipt [13:21:04]json_value_free [13:21:04]json_value_free done [13:21:04]process_json_proto returns [13:21:04]Send response to host [13:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189142,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:21:04]free response buf [13:21:04]execute_script done [13:21:04]execute_script returns [13:21:04]free content buf [13:21:04]Sock 9.Close socket [13:21:04]Sock 9.Thread stoped [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:41]accept exits with 8 [13:21:41]New connection [13:21:41]New thread 3067215204 created [13:21:41]Thread 3067071844 joined [13:21:41]Waiting for new connection... [13:21:41] Sock 8.Parse request [13:21:41]Sock 8.Check first char [13:21:41]Sock 8.First char is OK [13:21:41]request: POST /json_proto HTTP/1.0 [13:21:41]Method: POST [13:21:41]URL: /json_proto [13:21:41]Method is POST - this is cgi request [13:21:41]url: /json_proto [13:21:41]query_string will be loaded in cgi processing [13:21:41]execute_cgi json_proto POST (null) [13:21:41]execute_cgi path=json_proto method=POST [13:21:41]POST find Content-Length [13:21:41]Host: 172.17.42.131:8080 [13:21:41]Content-Length: 679 [13:21:41]Content-Type: application/json [13:21:41] [13:21:41]POST finish read [13:21:41]Found Content-Length = 679 [13:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]execute_script... [13:21: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)211206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]POST & json_proto [13:21:41]process_json_proto [13:21:41]json parsed OK: [13:21:41]protocol is kg_v1.0 [13:21:41]action value=close_receipt [13:21:41]process_action close_receipt [13:21:41]cmd_close_receipt [13:21:41]MH_GetDate [13:21:41]Write to MH i2c: F0 00 00 7A 41 AA [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 7A 41 00 E9 49 1A 67 A0 18 CA 66 4E [13:21:41]GetLastDocTimeStamp 1729776063 [13:21:41]current date 1729776105 [13:21:41]FM_GetShiftState [13:21:41]SAM_PROTO_GetShiftState [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 01 00 [13:21:41]Write to MH i2c: E2 08 00 7B 41 80 13 01 00 00 00 00 00 39 [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 7B 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 17 [13:21:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetShiftState done [13:21:41]FM_GetShiftState done [13:21:41]opened in 1729728961 [13:21:41]opened+sec_in_day 1729815361 [13:21:41]quantity*price = 100050 [13:21:41]sum+1 = 100052 [13:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 216 24.10.2024 13:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189143 ФПД: 67047819146657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189143&fm=67047819146657&tin=02508201610067®Number=0000000000100030&sum=100000 [13:21:42]StoreToDocumentArchive [13:21:42]shift 463 fd 189143 [13:21:42]save to /storage/0463/doc_00189143 [13:21:42]save last doc name /storage/0463/doc_00189143 to /storage/kkm_last_doc_name [13:21:42]save OK [13:21:42]Clear old archive folders... [13:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:42]tlvbuf is 01567300 [13:21:42]SAM_PROTO_ClearQueue [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 09 00 00 [13:21:42]Write to MH i2c: E2 08 00 88 41 80 09 00 00 00 00 00 00 3B [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 88 41 00 90 00 3D [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_ClearQueue done [13:21:42]KKMCreateOFDPacket [13:21:42]OFDProtocolAddRootSTLVToBuf [13:21:42]FM_MakeSignedData [13:21:42]FM_MakeSignedData [13:21:42]SAM_PROTO_SignData [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 01 02 [13:21:42]Write to MH i2c: E2 08 00 89 41 80 0D 01 02 00 00 00 00 43 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 89 41 00 90 00 3E [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=255 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E9 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E2 02 00 35 04 06 00 3C FA C9 71 [13:21:42]Write to MH i2c: E2 02 01 8A 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E9 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E2 02 00 35 04 06 00 3C FA C9 71 00 00 34 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 8A 41 00 90 00 3F [13:21:43]RAPDU: 90 00 [13:21:43]wFMCommunicate OK [13:21:43]wFMCommunicate request_size=7 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 0D 02 02 02 75 A1 [13:21:43]Write to MH i2c: E2 0A 00 8B 41 80 0D 02 02 02 00 75 A1 00 00 60 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 8B 41 00 90 00 40 [13:21:43]RAPDU: 90 00 [13:21:43]wFMCommunicate OK [13:21:43]wFMCommunicate request_size=4 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 0D 03 02 [13:21:43]Write to MH i2c: E2 08 00 8C 41 80 0D 03 02 00 00 00 00 48 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0B 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0B 00 8C 41 00 CB 9E B4 28 57 CA AA C9 90 00 22 [13:21:43]RAPDU: CB 9E B4 28 57 CA AA C9 90 00 [13:21:43]wFMCommunicate OK [13:21:43]SAM_PROTO_SignData done [13:21:43]FM_MakeSignedData done [13:21:43]CreateOFDProtocolMessage [13:21:43]wFMCommunicate request_size=4 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 11 00 00 [13:21:43]Write to MH i2c: E2 08 00 8D 41 80 11 00 00 00 00 00 00 48 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]OFD Sender: No OFD packet to send [13:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 17 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 17 00 8D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [13:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:21:43]wFMCommunicate OK [13:21:43]CreateOFDProtocolMessage done [13:21:43]OFDSenderStorePacket 189143 [13:21:43]StoreOFDPacket docnum=189143 [13:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A4 A6 04 01 44 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D8 00 00 00 F4 03 04 00 E9 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E2 02 00 35 04 06 00 3C FA C9 71 75 A1 CB 9E B4 28 57 CA AA C9 [13:21:43]CheckFolder [13:21:43]dirname=/storage/ofd_packets [13:21:43]CheckFolder done [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00189143 [13:21:43]NVStorageSaveData ofd_packets/00189143 [13:21:43]File name is /storage/ofd_packets/00189143 [13:21:43]Write 298 bytes [13:21:43]NVStorageSaveData done [13:21:43]OFDSenderStorePacket done [13:21:43]KKMCreateOFDPacket done [13:21:43]NVStorageSaveData kkm_last_timestamp [13:21:43]File name is /storage/kkm_last_timestamp [13:21:43]Write 4 bytes [13:21:43]NVStorageSaveData done [13:21:43]ExternCall_PrintAddStr [13:21:43]wPrintStart [13:21:43]Write to MH i2c: 01 00 00 8E 41 CF [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 8E 41 00 00 00 00 00 FF 0F E4 [13:21:43]RasterBufferAndPrint [13:21:43]line Счет N : (1)211206 [13:21:43]line ИНН: 02508201610067 [13:21:43]line Контрольно-Кассовый Чек [13:21:43]line ПРОДАЖА [13:21:43]line ТРК (МРК, ГНК) : 51 [13:21:43]line Товар: 2710194210 [13:21:43]line ДТ-К-5 [13:21:43]line 13.130 * 76.20 [13:21:43]line = 1000.51 [13:21:43]line НДС 12% НСП 1% [13:21:43]line > о реализуемом товаре [13:21:43]line ОКРУГЛЕНИЕ: -0.51 [13:21:43]line ИТОГО: 1000.00 [13:21:43]line Внесено: 1000.00 [13:21:43]line СДАЧА: 0.00 [13:21:43]line НСП 1% : 8.85 [13:21:43]line НДС 12% : 106.25 [13:21:43]line Наличными: 1000.00 [13:21:43]line Безнал.: 0.00 [13:21:43]line Место: АЗС № 86 "Партнер Нефть" [13:21:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:21:43]line СНО: Общий режим [13:21:43]line Чек 216 24.10.2024 13:21 [13:21:43]line Смена: 463 ФФД: 1.0 [13:21:43]line ЗНМ: 0300000155 [13:21:43]line РНМ: 0000000000100030 [13:21:43]line Версия ККМ: 001 [13:21:43]line ФМ: 0000000000965340 [13:21:43]line ФД: 189143 [13:21:43]line ФПД: 67047819146657 [13:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189143&fm=67047819146657&tin=02508201610067®Number=0000000000100030&sum=100000 [13:21:43]OFD Sender: Processing packet 189143 [packets to send 1062, broken 1061] [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00189143 [13:21:43]OFD Sender: To server: pG, [13:21:43]CommunicateWithHost lk.salyk.kg:30040 [13:21:43]ConnectInit lk.salyk.kg [13:21:43]written 0, free lines is 4095 [13:21:43]Connected sock=10 [13:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A4 A6 04 01 44 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D8 00 00 00 F4 03 04 00 E9 49 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E2 02 00 35 04 06 00 3C FA C9 71 75 A1 CB 9E B4 28 57 CA AA C9 [13:21:44]Write to MH i2c: 01 00 00 B9 41 FA [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: 01 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: 01 07 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: 01 07 00 B9 41 00 00 00 00 00 53 0C 60 [13:21:44]RasterBufferAndPrint [13:21:44]line [13:21:44]line [13:21:44]line [13:21:44]line [13:21:44]line [13:21:44]written 0, free lines is 3159 [13:21:44]MH_Cut [13:21:44]Write to MH i2c: D1 01 00 C0 41 01 D3 [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: D1 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: D1 01 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: D1 01 00 C0 41 00 D2 [13:21:44]Write to MH i2c: 01 00 00 C1 41 02 [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 38 47 00 8E 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 39 36 35 33 34 30 10 04 04 00 D7 E2 02 00 F4 03 04 00 D1 F3 19 67 B6 04 01 00 00 F7 5B 87 B6 E1 E9 AA F6 [13:21:44]CommunicateWithHost err = 0 [13:21:44]CheckOFDResponse [13:21:44]1017 (14) - 77093643461234 [13:21:44]1041 (16) - 0000000000965340 [13:21:44]1040 (4) - 189143 [13:21:44]1012 (4) - 24.10.2024 07:14 [13:21:44]1206 (1) - 0 [13:21:44]OFD Sender: Remove packet 189143 [13:21:44]ProducePacketName [13:21:44]name=ofd_packets/00189143 [13:21:44]NVStorageDeleteData [13:21:44]OFD Sender: No OFD packet to send [13:21:45]*** Cut start [13:21:45]*** Partial cut [13:21:45]*** CUTSNS_PIN = 1 [13:21:45]*** CUTSNS_PIN = 0 [13:21:45]*** Brake cut motor [13:21:46]Read from MH i2c: 01 [13:21:46]MH_I2C_Read... [13:21:46]*** Stop cut motor [13:21:46]*** Cut end [13:21:46]Read from MH i2c: 01 07 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 07 00 C1 41 00 00 00 00 00 FF 0F 17 [13:21:46]process_action close_receipt done [13:21:46]requested_data is exist [13:21:46]produce_requested_data [13:21:46]requested_item fm.sn is exist - process it [13:21:46]wFMCommunicate request_size=4 [13:21:46]MH_SAM_APDU [13:21:46]CAPDU: 80 11 00 00 [13:21:46]Write to MH i2c: E2 08 00 C2 41 80 11 00 00 00 00 00 00 7D [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:46]Read from MH i2c: E2 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 17 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 17 00 C2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [13:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:21:46]wFMCommunicate OK [13:21:46]requested_item fd.num is exist - process it [13:21:46]SAM_PROTO_GetFieldsCounters [13:21:46]wFMCommunicate request_size=4 [13:21:46]MH_SAM_APDU [13:21:46]CAPDU: 80 13 00 00 [13:21:46]Write to MH i2c: E2 08 00 C3 41 80 13 00 00 00 00 00 00 80 [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:46]Read from MH i2c: E2 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 62 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 62 00 C3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E2 02 00 0E 04 04 00 CF 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 9A [13:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E2 02 00 0E 04 04 00 CF 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 [13:21:46]wFMCommunicate OK [13:21:46]SAM_PROTO_GetFieldsCounters done [13:21:46]requested_item shift.num is exist - process it [13:21:46]requested_item shift.opened is exist - process it [13:21:46]req_shift_opened [13:21:46]FM_GetShiftState [13:21:46]SAM_PROTO_GetShiftState [13:21:46]wFMCommunicate request_size=4 [13:21:46]MH_SAM_APDU [13:21:46]CAPDU: 80 13 01 00 [13:21:46]Write to MH i2c: E2 08 00 C4 41 80 13 01 00 00 00 00 00 82 [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:46]Read from MH i2c: E2 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 0E 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: E2 0E 00 C4 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [13:21:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:21:46]wFMCommunicate OK [13:21:46]SAM_PROTO_GetShiftState done [13:21:46]FM_GetShiftState done [13:21:46]req_shift_opened done [13:21:46]requested_item shift.open_date is exist - process it [13:21:46]req_shift_open_date [13:21:46]req_shift_open_date done [13:21:46]produce_requested_data done [13:21:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189143,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:21:46]process_action_free close_receipt [13:21:46]json_value_free [13:21:46]json_value_free done [13:21:46]process_json_proto returns [13:21:46]Send response to host [13:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189143,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:21:46]free response buf [13:21:46]execute_script done [13:21:46]execute_script returns [13:21:46]free content buf [13:21:46]Sock 8.Close socket [13:21:46]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:13]accept exits with 9 [13:22:13]New connection [13:22:13]New thread 3067071844 created [13:22:13]Thread 3067215204 joined [13:22:13]Waiting for new connection... [13:22:13] Sock 9.Parse request [13:22:13]Sock 9.Check first char [13:22:13]Sock 9.First char is OK [13:22:13]request: POST /json_proto HTTP/1.0 [13:22:13]Method: POST [13:22:13]URL: /json_proto [13:22:13]Method is POST - this is cgi request [13:22:13]url: /json_proto [13:22:13]query_string will be loaded in cgi processing [13:22:13]execute_cgi json_proto POST (null) [13:22:13]execute_cgi path=json_proto method=POST [13:22:13]POST find Content-Length [13:22:13]Host: 172.17.42.131:8080 [13:22:13]Content-Length: 682 [13:22:13]Content-Type: application/json [13:22:13] [13:22:13]POST finish read [13:22:13]Found Content-Length = 682 [13:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:13]execute_script... [13:22: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)211207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:13]POST & json_proto [13:22:13]process_json_proto [13:22:13]json parsed OK: [13:22:13]protocol is kg_v1.0 [13:22:13]action value=close_receipt [13:22:13]process_action close_receipt [13:22:13]cmd_close_receipt [13:22:13]MH_GetDate [13:22:13]Write to MH i2c: F0 00 00 C5 41 F5 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: F0 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: F0 09 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: F0 09 00 C5 41 00 09 4A 1A 67 A0 18 CA 66 BA [13:22:13]GetLastDocTimeStamp 1729776105 [13:22:13]current date 1729776137 [13:22:13]FM_GetShiftState [13:22:13]SAM_PROTO_GetShiftState [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 13 01 00 [13:22:13]Write to MH i2c: E2 08 00 C6 41 80 13 01 00 00 00 00 00 84 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0E 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0E 00 C6 41 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 62 [13:22:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:22:13]wFMCommunicate OK [13:22:13]SAM_PROTO_GetShiftState done [13:22:13]FM_GetShiftState done [13:22:13]opened in 1729728961 [13:22:13]opened+sec_in_day 1729815361 [13:22:13]quantity*price = 100015 [13:22:13]sum+1 = 100017 [13:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 217 24.10.2024 13:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189144 ФПД: 55365423086307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132217&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189144&fm=55365423086307&tin=02508201610067®Number=0000000000100030&sum=100000 [13:22:14]StoreToDocumentArchive [13:22:14]shift 463 fd 189144 [13:22:14]save to /storage/0463/doc_00189144 [13:22:14]save last doc name /storage/0463/doc_00189144 to /storage/kkm_last_doc_name [13:22:14]save OK [13:22:14]Clear old archive folders... [13:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:14]tlvbuf is 01538320 [13:22:14]SAM_PROTO_ClearQueue [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 09 00 00 [13:22:14]Write to MH i2c: E2 08 00 D3 41 80 09 00 00 00 00 00 00 86 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 03 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 03 00 D3 41 00 90 00 88 [13:22:14]RAPDU: 90 00 [13:22:14]wFMCommunicate OK [13:22:14]SAM_PROTO_ClearQueue done [13:22:14]KKMCreateOFDPacket [13:22:14]OFDProtocolAddRootSTLVToBuf [13:22:14]FM_MakeSignedData [13:22:14]FM_MakeSignedData [13:22:14]SAM_PROTO_SignData [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 0D 01 02 [13:22:14]Write to MH i2c: E2 08 00 D4 41 80 0D 01 02 00 00 00 00 8E [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 03 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 03 00 D4 41 00 90 00 89 [13:22:14]RAPDU: 90 00 [13:22:14]wFMCommunicate OK [13:22:14]wFMCommunicate request_size=255 [13:22:14]MH_SAM_APDU [13:22: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 09 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E2 02 00 35 04 06 00 32 [13:22:14]Write to MH i2c: E2 02 01 D5 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 09 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E2 02 00 35 04 06 00 32 00 00 66 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]OFD Sender: No OFD packet to send [13:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 03 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 03 00 D5 41 00 90 00 8A [13:22:15]RAPDU: 90 00 [13:22:15]wFMCommunicate OK [13:22:15]wFMCommunicate request_size=10 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 0D 02 02 05 5A C4 60 3A E3 [13:22:15]Write to MH i2c: E2 0D 00 D6 41 80 0D 02 02 05 00 5A C4 60 3A E3 00 00 36 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 03 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 03 00 D6 41 00 90 00 8B [13:22:15]RAPDU: 90 00 [13:22:15]wFMCommunicate OK [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 0D 03 02 [13:22:15]Write to MH i2c: E2 08 00 D7 41 80 0D 03 02 00 00 00 00 93 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0B 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0B 00 D7 41 00 AE 6A 06 D6 A9 7A 34 F3 90 00 D2 [13:22:15]RAPDU: AE 6A 06 D6 A9 7A 34 F3 90 00 [13:22:15]wFMCommunicate OK [13:22:15]SAM_PROTO_SignData done [13:22:15]FM_MakeSignedData done [13:22:15]CreateOFDProtocolMessage [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 11 00 00 [13:22:15]Write to MH i2c: E2 08 00 D8 41 80 11 00 00 00 00 00 00 93 [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 17 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 17 00 D8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [13:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:22:15]wFMCommunicate OK [13:22:15]CreateOFDProtocolMessage done [13:22:15]OFDSenderStorePacket 189144 [13:22:15]StoreOFDPacket docnum=189144 [13:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 D3 07 01 AD 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 09 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E2 02 00 35 04 06 00 32 5A C4 60 3A E3 AE 6A 06 D6 A9 7A 34 F3 [13:22:15]CheckFolder [13:22:15]dirname=/storage/ofd_packets [13:22:15]CheckFolder done [13:22:15]ProducePacketName [13:22:15]name=ofd_packets/00189144 [13:22:15]NVStorageSaveData ofd_packets/00189144 [13:22:15]File name is /storage/ofd_packets/00189144 [13:22:15]Write 301 bytes [13:22:15]NVStorageSaveData done [13:22:15]OFDSenderStorePacket done [13:22:15]KKMCreateOFDPacket done [13:22:15]NVStorageSaveData kkm_last_timestamp [13:22:15]File name is /storage/kkm_last_timestamp [13:22:15]Write 4 bytes [13:22:15]NVStorageSaveData done [13:22:15]ExternCall_PrintAddStr [13:22:15]wPrintStart [13:22:15]Write to MH i2c: 01 00 00 D9 41 1A [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 07 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: 01 07 00 D9 41 00 00 00 00 00 FF 0F 2F [13:22:15]RasterBufferAndPrint [13:22:15]line Счет N : (1)211207 [13:22:15]line ИНН: 02508201610067 [13:22:15]line Контрольно-Кассовый Чек [13:22:15]line ПРОДАЖА [13:22:15]line ТРК (МРК, ГНК) : 12 [13:22:15]line Товар: 2710124130 [13:22:15]line Аи-92-К-3 [13:22:15]line 14.950 * 66.90 [13:22:15]line = 1000.16 [13:22:15]line НДС 12% НСП 1% [13:22:15]line > о реализуемом товаре [13:22:15]line ОКРУГЛЕНИЕ: -0.16 [13:22:15]line ИТОГО: 1000.00 [13:22:15]line Внесено: 1000.00 [13:22:15]line СДАЧА: 0.00 [13:22:15]line НСП 1% : 8.85 [13:22:15]line НДС 12% : 106.21 [13:22:15]line Наличными: 1000.00 [13:22:15]line Безнал.: 0.00 [13:22:15]line Место: АЗС № 86 "Партнер Нефть" [13:22:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:22:15]line СНО: Общий режим [13:22:15]line Чек 217 24.10.2024 13:22 [13:22:15]line Смена: 463 ФФД: 1.0 [13:22:15]line ЗНМ: 0300000155 [13:22:15]line РНМ: 0000000000100030 [13:22:15]line Версия ККМ: 001 [13:22:15]line ФМ: 0000000000965340 [13:22:15]line ФД: 189144 [13:22:15]line ФПД: 55365423086307 [13:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132217&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189144&fm=55365423086307&tin=02508201610067®Number=0000000000100030&sum=100000 [13:22:15]OFD Sender: Processing packet 189144 [packets to send 1062, broken 1061] [13:22:15]ProducePacketName [13:22:15]name=ofd_packets/00189144 [13:22:15]OFD Sender: To server: pG, [13:22:15]CommunicateWithHost lk.salyk.kg:30040 [13:22:15]ConnectInit lk.salyk.kg [13:22:15]written 0, free lines is 4095 [13:22:16]Connected sock=11 [13:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 D3 07 01 AD 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 09 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 E2 02 00 35 04 06 00 32 5A C4 60 3A E3 AE 6A 06 D6 A9 7A 34 F3 [13:22:16]Write to MH i2c: 01 00 00 04 42 46 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 07 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: 01 07 00 04 42 00 00 00 00 00 5D 0C B6 [13:22:16]RasterBufferAndPrint [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]line [13:22:16]written 0, free lines is 3167 [13:22:16]MH_Cut [13:22:16]Write to MH i2c: D1 01 00 0B 42 01 1F [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 01 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: D1 01 00 0B 42 00 1E [13:22:16]Write to MH i2c: 01 00 00 0C 42 4E [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6F 97 47 00 5C 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 39 36 35 33 34 30 10 04 04 00 D8 E2 02 00 F4 03 04 00 F1 F3 19 67 B6 04 01 00 00 A8 6C E7 0E A6 20 47 F4 [13:22:16]CommunicateWithHost err = 0 [13:22:16]CheckOFDResponse [13:22:16]1017 (14) - 77093643461234 [13:22:16]1041 (16) - 0000000000965340 [13:22:16]1040 (4) - 189144 [13:22:16]1012 (4) - 24.10.2024 07:14 [13:22:16]1206 (1) - 0 [13:22:16]OFD Sender: Remove packet 189144 [13:22:16]ProducePacketName [13:22:16]name=ofd_packets/00189144 [13:22:16]NVStorageDeleteData [13:22:16]OFD Sender: No OFD packet to send [13:22:17]*** Cut start [13:22:17]*** Partial cut [13:22:17]*** CUTSNS_PIN = 1 [13:22:17]*** CUTSNS_PIN = 0 [13:22:17]*** Brake cut motor [13:22:17]Read from MH i2c: 01 [13:22:17]MH_I2C_Read... [13:22:17]*** Stop cut motor [13:22:17]*** Cut end [13:22:17]Read from MH i2c: 01 07 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 07 00 0C 42 00 00 00 00 00 FF 0F 63 [13:22:17]process_action close_receipt done [13:22:17]requested_data is exist [13:22:17]produce_requested_data [13:22:17]requested_item fm.sn is exist - process it [13:22:17]wFMCommunicate request_size=4 [13:22:17]MH_SAM_APDU [13:22:17]CAPDU: 80 11 00 00 [13:22:17]Write to MH i2c: E2 08 00 0D 42 80 11 00 00 00 00 00 00 C9 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 17 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 17 00 0D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [13:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:22:18]wFMCommunicate OK [13:22:18]requested_item fd.num is exist - process it [13:22:18]SAM_PROTO_GetFieldsCounters [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 00 00 [13:22:18]Write to MH i2c: E2 08 00 0E 42 80 13 00 00 00 00 00 00 CC [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 62 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 62 00 0E 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E2 02 00 0E 04 04 00 CF 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 EA [13:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 E2 02 00 0E 04 04 00 CF 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 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetFieldsCounters done [13:22:18]requested_item shift.num is exist - process it [13:22:18]requested_item shift.opened is exist - process it [13:22:18]req_shift_opened [13:22:18]FM_GetShiftState [13:22:18]SAM_PROTO_GetShiftState [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 01 00 [13:22:18]Write to MH i2c: E2 08 00 0F 42 80 13 01 00 00 00 00 00 CE [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 0F 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AC [13:22:18]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetShiftState done [13:22:18]FM_GetShiftState done [13:22:18]req_shift_opened done [13:22:18]requested_item shift.open_date is exist - process it [13:22:18]req_shift_open_date [13:22:18]req_shift_open_date done [13:22:18]produce_requested_data done [13:22:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189144,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:22:18]process_action_free close_receipt [13:22:18]json_value_free [13:22:18]json_value_free done [13:22:18]process_json_proto returns [13:22:18]Send response to host [13:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189144,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:22:18]free response buf [13:22:18]execute_script done [13:22:18]execute_script returns [13:22:18]free content buf [13:22:18]Sock 9.Close socket [13:22:18]Sock 9.Thread stoped [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]accept exits with 8 [13:24:12]New connection [13:24:12]New thread 3067215204 created [13:24:12]Thread 3067071844 joined [13:24:12]Waiting for new connection... [13:24:12] Sock 8.Parse request [13:24:12]Sock 8.Check first char [13:24:12]Sock 8.First char is OK [13:24:12]request: POST /json_proto HTTP/1.0 [13:24:12]Method: POST [13:24:12]URL: /json_proto [13:24:12]Method is POST - this is cgi request [13:24:12]url: /json_proto [13:24:12]query_string will be loaded in cgi processing [13:24:12]execute_cgi json_proto POST (null) [13:24:12]execute_cgi path=json_proto method=POST [13:24:12]POST find Content-Length [13:24:12]Host: 172.17.42.131:8080 [13:24:12]Content-Length: 678 [13:24:12]Content-Type: application/json [13:24:12] [13:24:12]POST finish read [13:24:12]Found Content-Length = 678 [13:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:24:12]execute_script... [13:24: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)211208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:24:12]POST & json_proto [13:24:12]process_json_proto [13:24:12]json parsed OK: [13:24:12]protocol is kg_v1.0 [13:24:12]action value=close_receipt [13:24:12]process_action close_receipt [13:24:12]cmd_close_receipt [13:24:12]MH_GetDate [13:24:12]Write to MH i2c: F0 00 00 10 42 41 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 09 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 09 00 10 42 00 7F 4A 1A 67 A0 18 CA 66 7C [13:24:12]GetLastDocTimeStamp 1729776137 [13:24:12]current date 1729776255 [13:24:12]FM_GetShiftState [13:24:12]SAM_PROTO_GetShiftState [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 13 01 00 [13:24:12]Write to MH i2c: E2 08 00 11 42 80 13 01 00 00 00 00 00 D0 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:12]OFD Sender: No OFD packet to send [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 0E 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 0E 00 11 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AE [13:24:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:24:12]wFMCommunicate OK [13:24:12]SAM_PROTO_GetShiftState done [13:24:12]FM_GetShiftState done [13:24:12]opened in 1729728961 [13:24:12]opened+sec_in_day 1729815361 [13:24:12]quantity*price = 70044 [13:24:12]sum+1 = 70045 [13:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 218 24.10.2024 13:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189145 ФПД: 163538206309989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132415&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189145&fm=163538206309989&tin=02508201610067®Number=0000000000100030&sum=70000 [13:24:13]StoreToDocumentArchive [13:24:13]shift 463 fd 189145 [13:24:13]save to /storage/0463/doc_00189145 [13:24:13]save last doc name /storage/0463/doc_00189145 to /storage/kkm_last_doc_name [13:24:13]save OK [13:24:13]Clear old archive folders... [13:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:13]tlvbuf is B6F95110 [13:24:13]SAM_PROTO_ClearQueue [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 09 00 00 [13:24:13]Write to MH i2c: E2 08 00 1E 42 80 09 00 00 00 00 00 00 D2 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 1E 42 00 90 00 D4 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]SAM_PROTO_ClearQueue done [13:24:13]KKMCreateOFDPacket [13:24:13]OFDProtocolAddRootSTLVToBuf [13:24:13]FM_MakeSignedData [13:24:13]FM_MakeSignedData [13:24:13]SAM_PROTO_SignData [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 01 02 [13:24:13]Write to MH i2c: E2 08 00 1F 42 80 0D 01 02 00 00 00 00 DA [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 1F 42 00 90 00 D5 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=255 [13:24:13]MH_SAM_APDU [13:24: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DA 00 00 00 F4 03 04 00 7F 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E2 02 00 35 04 06 00 94 [13:24:13]Write to MH i2c: E2 02 01 20 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DA 00 00 00 F4 03 04 00 7F 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E2 02 00 35 04 06 00 94 00 00 A2 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 20 42 00 90 00 D6 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=10 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 02 02 05 BC B4 B1 BE 65 [13:24:13]Write to MH i2c: E2 0D 00 21 42 80 0D 02 02 05 00 BC B4 B1 BE 65 00 00 2B [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 21 42 00 90 00 D7 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 03 02 [13:24:13]Write to MH i2c: E2 08 00 22 42 80 0D 03 02 00 00 00 00 DF [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0B 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0B 00 22 42 00 DC 97 E2 9C 60 59 60 9E 90 00 88 [13:24:14]RAPDU: DC 97 E2 9C 60 59 60 9E 90 00 [13:24:14]wFMCommunicate OK [13:24:14]SAM_PROTO_SignData done [13:24:14]FM_MakeSignedData done [13:24:14]CreateOFDProtocolMessage [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 11 00 00 [13:24:14]Write to MH i2c: E2 08 00 23 42 80 11 00 00 00 00 00 00 DF [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 23 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [13:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:14]wFMCommunicate OK [13:24:14]CreateOFDProtocolMessage done [13:24:14]OFDSenderStorePacket 189145 [13:24:14]StoreOFDPacket docnum=189145 [13:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 32 07 01 AC 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DA 00 00 00 F4 03 04 00 7F 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E2 02 00 35 04 06 00 94 BC B4 B1 BE 65 DC 97 E2 9C 60 59 60 9E [13:24:14]CheckFolder [13:24:14]dirname=/storage/ofd_packets [13:24:14]CheckFolder done [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00189145 [13:24:14]NVStorageSaveData ofd_packets/00189145 [13:24:14]File name is /storage/ofd_packets/00189145 [13:24:14]Write 301 bytes [13:24:14]NVStorageSaveData done [13:24:14]OFDSenderStorePacket done [13:24:14]KKMCreateOFDPacket done [13:24:14]NVStorageSaveData kkm_last_timestamp [13:24:14]File name is /storage/kkm_last_timestamp [13:24:14]Write 4 bytes [13:24:14]NVStorageSaveData done [13:24:14]ExternCall_PrintAddStr [13:24:14]wPrintStart [13:24:14]Write to MH i2c: 01 00 00 24 42 66 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 24 42 00 00 00 00 00 FF 0F 7B [13:24:14]RasterBufferAndPrint [13:24:14]line Счет N : (1)211208 [13:24:14]line ИНН: 02508201610067 [13:24:14]line Контрольно-Кассовый Чек [13:24:14]line ПРОДАЖА [13:24:14]line ТРК (МРК, ГНК) : 42 [13:24:14]line Товар: 2710124130 [13:24:14]line Аи-92-К-3 [13:24:14]line 10.470 * 66.90 [13:24:14]line = 700.44 [13:24:14]line НДС 12% НСП 1% [13:24:14]line > о реализуемом товаре [13:24:14]line ОКРУГЛЕНИЕ: -0.44 [13:24:14]line ИТОГО: 700.00 [13:24:14]line Внесено: 700.00 [13:24:14]line СДАЧА: 0.00 [13:24:14]line НСП 1% : 6.20 [13:24:14]line НДС 12% : 74.38 [13:24:14]line Наличными: 700.00 [13:24:14]line Безнал.: 0.00 [13:24:14]line Место: АЗС № 86 "Партнер Нефть" [13:24:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:24:14]line СНО: Общий режим [13:24:14]line Чек 218 24.10.2024 13:24 [13:24:14]line Смена: 463 ФФД: 1.0 [13:24:14]line ЗНМ: 0300000155 [13:24:14]line РНМ: 0000000000100030 [13:24:14]line Версия ККМ: 001 [13:24:14]line ФМ: 0000000000965340 [13:24:14]line ФД: 189145 [13:24:14]line ФПД: 163538206309989 [13:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132415&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189145&fm=163538206309989&tin=02508201610067®Number=0000000000100030&sum=70000 [13:24:14]written 0, free lines is 4095 [13:24:14]OFD Sender: Processing packet 189145 [packets to send 1062, broken 1061] [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00189145 [13:24:14]OFD Sender: To server: pG, [13:24:14]CommunicateWithHost lk.salyk.kg:30040 [13:24:14]ConnectInit lk.salyk.kg [13:24:14]Write to MH i2c: 01 00 00 4F 42 91 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 4F 42 00 00 00 00 00 51 0C F5 [13:24:14]RasterBufferAndPrint [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]written 0, free lines is 3157 [13:24:14]MH_Cut [13:24:14]Write to MH i2c: D1 01 00 56 42 01 6A [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 56 42 00 69 [13:24:14]Write to MH i2c: 01 00 00 57 42 99 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Connected sock=10 [13:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 32 07 01 AC 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DA 00 00 00 F4 03 04 00 7F 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 E2 02 00 35 04 06 00 94 BC B4 B1 BE 65 DC 97 E2 9C 60 59 60 9E [13:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F 06 47 00 C7 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 39 36 35 33 34 30 10 04 04 00 D9 E2 02 00 F4 03 04 00 67 F4 19 67 B6 04 01 00 00 A3 48 4A 0D C2 C6 F5 36 [13:24:14]CommunicateWithHost err = 0 [13:24:14]CheckOFDResponse [13:24:14]1017 (14) - 77093643461234 [13:24:14]1041 (16) - 0000000000965340 [13:24:14]1040 (4) - 189145 [13:24:14]1012 (4) - 24.10.2024 07:16 [13:24:14]1206 (1) - 0 [13:24:14]OFD Sender: Remove packet 189145 [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00189145 [13:24:14]NVStorageDeleteData [13:24:15]OFD Sender: No OFD packet to send [13:24:15]*** Cut start [13:24:15]*** Partial cut [13:24:15]*** CUTSNS_PIN = 1 [13:24:15]*** CUTSNS_PIN = 0 [13:24:16]*** Brake cut motor [13:24:16]Read from MH i2c: 01 [13:24:16]MH_I2C_Read... [13:24:16]*** Stop cut motor [13:24:16]*** Cut end [13:24:16]Read from MH i2c: 01 07 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: 01 07 00 57 42 00 00 00 00 00 FF 0F AE [13:24:16]process_action close_receipt done [13:24:16]requested_data is exist [13:24:16]produce_requested_data [13:24:16]requested_item fm.sn is exist - process it [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 11 00 00 [13:24:16]Write to MH i2c: E2 08 00 58 42 80 11 00 00 00 00 00 00 14 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 58 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [13:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:16]wFMCommunicate OK [13:24:16]requested_item fd.num is exist - process it [13:24:16]SAM_PROTO_GetFieldsCounters [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 00 00 [13:24:16]Write to MH i2c: E2 08 00 59 42 80 13 00 00 00 00 00 00 17 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 62 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 62 00 59 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E2 02 00 0E 04 04 00 CF 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 39 [13:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 E2 02 00 0E 04 04 00 CF 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 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetFieldsCounters done [13:24:16]requested_item shift.num is exist - process it [13:24:16]requested_item shift.opened is exist - process it [13:24:16]req_shift_opened [13:24:16]FM_GetShiftState [13:24:16]SAM_PROTO_GetShiftState [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 01 00 [13:24:16]Write to MH i2c: E2 08 00 5A 42 80 13 01 00 00 00 00 00 19 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 5A 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F7 [13:24:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetShiftState done [13:24:16]FM_GetShiftState done [13:24:16]req_shift_opened done [13:24:16]requested_item shift.open_date is exist - process it [13:24:16]req_shift_open_date [13:24:16]req_shift_open_date done [13:24:16]produce_requested_data done [13:24:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189145,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:24:16]process_action_free close_receipt [13:24:16]json_value_free [13:24:16]json_value_free done [13:24:16]process_json_proto returns [13:24:16]Send response to host [13:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189145,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:24:16]free response buf [13:24:16]execute_script done [13:24:16]execute_script returns [13:24:16]free content buf [13:24:16]Sock 8.Close socket [13:24:16]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:16]accept exits with 9 [13:25:16]New connection [13:25:16]New thread 3067071844 created [13:25:16]Thread 3067215204 joined [13:25:16]Waiting for new connection... [13:25:16] Sock 9.Parse request [13:25:16]Sock 9.Check first char [13:25:16]Sock 9.First char is OK [13:25:16]request: POST /json_proto HTTP/1.0 [13:25:16]Method: POST [13:25:16]URL: /json_proto [13:25:16]Method is POST - this is cgi request [13:25:16]url: /json_proto [13:25:16]query_string will be loaded in cgi processing [13:25:16]execute_cgi json_proto POST (null) [13:25:16]execute_cgi path=json_proto method=POST [13:25:16]POST find Content-Length [13:25:16]Host: 172.17.42.131:8080 [13:25:16]Content-Length: 769 [13:25:16]Content-Type: application/json [13:25:16] [13:25:16]POST finish read [13:25:16]Found Content-Length = 769 [13:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:16]execute_script... [13:25: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)211209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:16]POST & json_proto [13:25:16]process_json_proto [13:25:16]json parsed OK: [13:25:16]protocol is kg_v1.0 [13:25:16]action value=close_receipt [13:25:16]process_action close_receipt [13:25:16]cmd_close_receipt [13:25:16]MH_GetDate [13:25:16]Write to MH i2c: F0 00 00 5B 42 8C [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: F0 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: F0 09 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: F0 09 00 5B 42 00 BF 4A 1A 67 A0 18 CA 66 07 [13:25:16]GetLastDocTimeStamp 1729776255 [13:25:16]current date 1729776319 [13:25:16]FM_GetShiftState [13:25:16]SAM_PROTO_GetShiftState [13:25:16]wFMCommunicate request_size=4 [13:25:16]MH_SAM_APDU [13:25:16]CAPDU: 80 13 01 00 [13:25:16]Write to MH i2c: E2 08 00 5C 42 80 13 01 00 00 00 00 00 1B [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:16]Read from MH i2c: E2 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: E2 0E 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: E2 0E 00 5C 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F9 [13:25:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:25:16]wFMCommunicate OK [13:25:16]SAM_PROTO_GetShiftState done [13:25:16]FM_GetShiftState done [13:25:16]opened in 1729728961 [13:25:16]opened+sec_in_day 1729815361 [13:25:16]quantity*price = 200043 [13:25:16]sum+1 = 200044 [13:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 219 24.10.2024 13:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189146 ФПД: 92673978002431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189146&fm=92673978002431&tin=02508201610067®Number=0000000000100030&sum=200043 [13:25:17]StoreToDocumentArchive [13:25:17]shift 463 fd 189146 [13:25:17]save to /storage/0463/doc_00189146 [13:25:17]save last doc name /storage/0463/doc_00189146 to /storage/kkm_last_doc_name [13:25:17]save OK [13:25:17]Clear old archive folders... [13:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:17]tlvbuf is 015E7990 [13:25:17]SAM_PROTO_ClearQueue [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 09 00 00 [13:25:17]Write to MH i2c: E2 08 00 69 42 80 09 00 00 00 00 00 00 1D [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 69 42 00 90 00 1F [13:25:17]RAPDU: 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_ClearQueue done [13:25:17]KKMCreateOFDPacket [13:25:17]OFDProtocolAddRootSTLVToBuf [13:25:17]FM_MakeSignedData [13:25:17]FM_MakeSignedData [13:25:17]SAM_PROTO_SignData [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 0D 01 02 [13:25:17]Write to MH i2c: E2 08 00 6A 42 80 0D 01 02 00 00 00 00 25 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 6A 42 00 90 00 20 [13:25:17]RAPDU: 90 00 [13:25:17]wFMCommunicate OK [13:25:17]wFMCommunicate request_size=255 [13:25:17]MH_SAM_APDU [13:25: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 33 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 DB 00 00 00 F4 03 04 00 BF 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E2 02 00 35 04 06 00 54 [13:25:17]Write to MH i2c: E2 02 01 6B 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DB 00 00 00 F4 03 04 00 BF 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E2 02 00 35 04 06 00 54 00 00 DD [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 6B 42 00 90 00 21 [13:25:17]RAPDU: 90 00 [13:25:17]wFMCommunicate OK [13:25:17]wFMCommunicate request_size=10 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 0D 02 02 05 49 57 89 EB FF [13:25:17]Write to MH i2c: E2 0D 00 6C 42 80 0D 02 02 05 00 49 57 89 EB FF 00 00 45 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 03 00 6C 42 00 90 00 22 [13:25:17]RAPDU: 90 00 [13:25:17]wFMCommunicate OK [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 0D 03 02 [13:25:17]Write to MH i2c: E2 08 00 6D 42 80 0D 03 02 00 00 00 00 2A [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0B 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0B 00 6D 42 00 B4 59 EB A1 CB 7C A3 10 90 00 BE [13:25:17]RAPDU: B4 59 EB A1 CB 7C A3 10 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_SignData done [13:25:17]FM_MakeSignedData done [13:25:17]CreateOFDProtocolMessage [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 11 00 00 [13:25:17]Write to MH i2c: E2 08 00 6E 42 80 11 00 00 00 00 00 00 2A [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 17 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 17 00 6E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [13:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:17]wFMCommunicate OK [13:25:17]CreateOFDProtocolMessage done [13:25:17]OFDSenderStorePacket 189146 [13:25:17]StoreOFDPacket docnum=189146 [13:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 04 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DB 00 00 00 F4 03 04 00 BF 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E2 02 00 35 04 06 00 54 49 57 89 EB FF B4 59 EB A1 CB 7C A3 10 [13:25:17]CheckFolder [13:25:17]dirname=/storage/ofd_packets [13:25:17]CheckFolder done [13:25:17]ProducePacketName [13:25:17]name=ofd_packets/00189146 [13:25:17]NVStorageSaveData ofd_packets/00189146 [13:25:17]File name is /storage/ofd_packets/00189146 [13:25:17]Write 301 bytes [13:25:17]NVStorageSaveData done [13:25:17]OFDSenderStorePacket done [13:25:17]KKMCreateOFDPacket done [13:25:17]NVStorageSaveData kkm_last_timestamp [13:25:17]File name is /storage/kkm_last_timestamp [13:25:17]Write 4 bytes [13:25:17]NVStorageSaveData done [13:25:17]ExternCall_PrintAddStr [13:25:17]wPrintStart [13:25:17]Write to MH i2c: 01 00 00 6F 42 B1 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 6F 42 00 00 00 00 00 FF 0F C6 [13:25:17]RasterBufferAndPrint [13:25:17]line Счет N : (1)211209 [13:25:17]line ИНН: 02508201610067 [13:25:17]line Контрольно-Кассовый Чек [13:25:17]line ПРОДАЖА [13:25:17]line ТРК (МРК, ГНК) : 33 [13:25:17]line Товар: 2710124500 [13:25:17]line Аи-95-К-3 [13:25:17]line 26.960 * 74.20 [13:25:17]line = 2000.43 [13:25:17]line НДС 12% НСП 1% [13:25:17]line > о реализуемом товаре [13:25:17]line ИТОГО: 2000.43 [13:25:17]line НСП 1% : 17.70 [13:25:17]line НДС 12% : 212.43 [13:25:17]line Наличными: 0.00 [13:25:17]line Безнал.: 2000.43 [13:25:17]line Место: АЗС № 86 "Партнер Нефть" [13:25:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:25:17]line СНО: Общий режим [13:25:17]line Чек 219 24.10.2024 13:25 [13:25:17]line Смена: 463 ФФД: 1.0 [13:25:17]line ЗНМ: 0300000155 [13:25:17]line РНМ: 0000000000100030 [13:25:17]line Версия ККМ: 001 [13:25:17]line Платежная система: Mbank [13:25:17]line ФМ: 0000000000965340 [13:25:17]line ФД: 189146 [13:25:17]line ФПД: 92673978002431 [13:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189146&fm=92673978002431&tin=02508201610067®Number=0000000000100030&sum=200043 [13:25:17]written 0, free lines is 4095 [13:25:17]OFD Sender: Processing packet 189146 [packets to send 1062, broken 1061] [13:25:17]ProducePacketName [13:25:17]name=ofd_packets/00189146 [13:25:17]OFD Sender: To server: pG, [13:25:17]CommunicateWithHost lk.salyk.kg:30040 [13:25:17]ConnectInit lk.salyk.kg [13:25:18]Connected sock=10 [13:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 04 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DB 00 00 00 F4 03 04 00 BF 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA E2 02 00 35 04 06 00 54 49 57 89 EB FF B4 59 EB A1 CB 7C A3 10 [13:25:18]Write to MH i2c: 01 00 00 98 42 DA [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 07 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 07 00 98 42 00 00 00 00 00 80 0C 6D [13:25:18]RasterBufferAndPrint [13:25:18]line [13:25:18]line [13:25:18]line [13:25:18]line [13:25:18]line [13:25:18]written 0, free lines is 3206 [13:25:18]MH_Cut [13:25:18]Write to MH i2c: D1 01 00 9F 42 01 B3 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: D1 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: D1 01 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: D1 01 00 9F 42 00 B2 [13:25:18]Write to MH i2c: 01 00 00 A0 42 E2 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 52 28 47 00 70 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 39 36 35 33 34 30 10 04 04 00 DA E2 02 00 F4 03 04 00 A7 F4 19 67 B6 04 01 00 00 A7 F7 7F 11 F0 64 B2 D5 [13:25:18]CommunicateWithHost err = 0 [13:25:18]CheckOFDResponse [13:25:18]1017 (14) - 77093643461234 [13:25:18]1041 (16) - 0000000000965340 [13:25:18]1040 (4) - 189146 [13:25:18]1012 (4) - 24.10.2024 07:17 [13:25:18]1206 (1) - 0 [13:25:18]OFD Sender: Remove packet 189146 [13:25:18]ProducePacketName [13:25:18]name=ofd_packets/00189146 [13:25:18]NVStorageDeleteData [13:25:18]OFD Sender: No OFD packet to send [13:25:19]*** Cut start [13:25:19]*** Partial cut [13:25:19]*** CUTSNS_PIN = 1 [13:25:19]*** CUTSNS_PIN = 0 [13:25:19]*** Brake cut motor [13:25:20]Read from MH i2c: 01 [13:25:20]MH_I2C_Read... [13:25:20]*** Stop cut motor [13:25:20]*** Cut end [13:25:20]Read from MH i2c: 01 07 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 07 00 A0 42 00 00 00 00 00 FF 0F F7 [13:25:20]process_action close_receipt done [13:25:20]requested_data is exist [13:25:20]produce_requested_data [13:25:20]requested_item fm.sn is exist - process it [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 11 00 00 [13:25:20]Write to MH i2c: E2 08 00 A1 42 80 11 00 00 00 00 00 00 5D [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 A1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [13:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:20]wFMCommunicate OK [13:25:20]requested_item fd.num is exist - process it [13:25:20]SAM_PROTO_GetFieldsCounters [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 00 00 [13:25:20]Write to MH i2c: E2 08 00 A2 42 80 13 00 00 00 00 00 00 60 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 A2 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E2 02 00 0E 04 04 00 CF 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 86 [13:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA E2 02 00 0E 04 04 00 CF 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 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetFieldsCounters done [13:25:20]requested_item shift.num is exist - process it [13:25:20]requested_item shift.opened is exist - process it [13:25:20]req_shift_opened [13:25:20]FM_GetShiftState [13:25:20]SAM_PROTO_GetShiftState [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 01 00 [13:25:20]Write to MH i2c: E2 08 00 A3 42 80 13 01 00 00 00 00 00 62 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 A3 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 40 [13:25:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetShiftState done [13:25:20]FM_GetShiftState done [13:25:20]req_shift_opened done [13:25:20]requested_item shift.open_date is exist - process it [13:25:20]req_shift_open_date [13:25:20]req_shift_open_date done [13:25:20]produce_requested_data done [13:25:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189146,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:25:20]process_action_free close_receipt [13:25:20]json_value_free [13:25:20]json_value_free done [13:25:20]process_json_proto returns [13:25:20]Send response to host [13:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189146,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:25:20]free response buf [13:25:20]execute_script done [13:25:20]execute_script returns [13:25:20]free content buf [13:25:20]Sock 9.Close socket [13:25:20]Sock 9.Thread stoped [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]accept exits with 8 [13:25:54]New connection [13:25:54]New thread 3067215204 created [13:25:54]Thread 3067071844 joined [13:25:54]Waiting for new connection... [13:25:54] Sock 8.Parse request [13:25:54]Sock 8.Check first char [13:25:54]Sock 8.First char is OK [13:25:54]request: POST /json_proto HTTP/1.0 [13:25:54]Method: POST [13:25:54]URL: /json_proto [13:25:54]Method is POST - this is cgi request [13:25:54]url: /json_proto [13:25:54]query_string will be loaded in cgi processing [13:25:54]execute_cgi json_proto POST (null) [13:25:54]execute_cgi path=json_proto method=POST [13:25:54]POST find Content-Length [13:25:54]Host: 172.17.42.131:8080 [13:25:54]Content-Length: 983 [13:25:54]Content-Type: application/json [13:25:54] [13:25:54]POST finish read [13:25:54]Found Content-Length = 983 [13:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:25:54]execute_script... [13: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)211210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:25:54]POST & json_proto [13:25:54]process_json_proto [13:25:54]json parsed OK: [13:25:54]protocol is kg_v1.0 [13:25:54]action value=close_receipt [13:25:54]process_action close_receipt [13:25:54]cmd_close_receipt [13:25:54]MH_GetDate [13:25:54]Write to MH i2c: F0 00 00 A4 42 D5 [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: F0 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: F0 09 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: F0 09 00 A4 42 00 E5 4A 1A 67 A0 18 CA 66 76 [13:25:54]GetLastDocTimeStamp 1729776319 [13:25:54]current date 1729776357 [13:25:54]FM_GetShiftState [13:25:54]SAM_PROTO_GetShiftState [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 13 01 00 [13:25:54]Write to MH i2c: E2 08 00 A5 42 80 13 01 00 00 00 00 00 64 [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 0E 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 0E 00 A5 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 42 [13:25:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:25:54]wFMCommunicate OK [13:25:54]SAM_PROTO_GetShiftState done [13:25:54]FM_GetShiftState done [13:25:54]opened in 1729728961 [13:25:54]opened+sec_in_day 1729815361 [13:25:54]quantity*price = 150054 [13:25:54]sum+1 = 150055 [13:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 220 24.10.2024 13:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 189147 ФПД: 148629751788231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132557&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189147&fm=148629751788231&tin=02508201610067®Number=0000000000100030&sum=150000 [13:25:55]StoreToDocumentArchive [13:25:55]shift 463 fd 189147 [13:25:55]save to /storage/0463/doc_00189147 [13:25:55]save last doc name /storage/0463/doc_00189147 to /storage/kkm_last_doc_name [13:25:55]save OK [13:25:55]Clear old archive folders... [13:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:55]tlvbuf is 0168DD10 [13:25:55]SAM_PROTO_ClearQueue [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 09 00 00 [13:25:55]Write to MH i2c: E2 08 00 B2 42 80 09 00 00 00 00 00 00 66 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 B2 42 00 90 00 68 [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]SAM_PROTO_ClearQueue done [13:25:55]KKMCreateOFDPacket [13:25:55]OFDProtocolAddRootSTLVToBuf [13:25:55]FM_MakeSignedData [13:25:55]FM_MakeSignedData [13:25:55]SAM_PROTO_SignData [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 0D 01 02 [13:25:55]Write to MH i2c: E2 08 00 B3 42 80 0D 01 02 00 00 00 00 6E [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 B3 42 00 90 00 69 [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]wFMCommunicate request_size=255 [13:25:55]MH_SAM_APDU [13:25: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 E5 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E2 02 00 35 04 06 00 87 [13:25:55]Write to MH i2c: E2 02 01 B4 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 E5 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E2 02 00 35 04 06 00 87 00 00 B9 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 B4 42 00 90 00 6A [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]wFMCommunicate request_size=10 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 0D 02 02 05 2D 8F 8E F2 C7 [13:25:55]Write to MH i2c: E2 0D 00 B5 42 80 0D 02 02 05 00 2D 8F 8E F2 C7 00 00 7E [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 03 00 B5 42 00 90 00 6B [13:25:55]RAPDU: 90 00 [13:25:55]wFMCommunicate OK [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 0D 03 02 [13:25:55]Write to MH i2c: E2 08 00 B6 42 80 0D 03 02 00 00 00 00 73 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0B 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 0B 00 B6 42 00 17 FB 68 E5 2E CB CB 1B 90 00 B2 [13:25:55]RAPDU: 17 FB 68 E5 2E CB CB 1B 90 00 [13:25:55]wFMCommunicate OK [13:25:55]SAM_PROTO_SignData done [13:25:55]FM_MakeSignedData done [13:25:55]CreateOFDProtocolMessage [13:25:55]wFMCommunicate request_size=4 [13:25:55]MH_SAM_APDU [13:25:55]CAPDU: 80 11 00 00 [13:25:55]Write to MH i2c: E2 08 00 B7 42 80 11 00 00 00 00 00 00 73 [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:55]Read from MH i2c: E2 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: E2 17 00 B7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [13:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:55]wFMCommunicate OK [13:25:55]CreateOFDProtocolMessage done [13:25:55]OFDSenderStorePacket 189147 [13:25:55]StoreOFDPacket docnum=189147 [13:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD F9 07 01 3E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 E5 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E2 02 00 35 04 06 00 87 2D 8F 8E F2 C7 17 FB 68 E5 2E CB CB 1B [13:25:55]CheckFolder [13:25:55]dirname=/storage/ofd_packets [13:25:55]CheckFolder done [13:25:55]ProducePacketName [13:25:55]name=ofd_packets/00189147 [13:25:55]NVStorageSaveData ofd_packets/00189147 [13:25:55]File name is /storage/ofd_packets/00189147 [13:25:55]Write 301 bytes [13:25:55]NVStorageSaveData done [13:25:55]OFDSenderStorePacket done [13:25:55]KKMCreateOFDPacket done [13:25:55]NVStorageSaveData kkm_last_timestamp [13:25:55]File name is /storage/kkm_last_timestamp [13:25:55]Write 4 bytes [13:25:55]NVStorageSaveData done [13:25:55]ExternCall_PrintAddStr [13:25:55]wPrintStart [13:25:55]Write to MH i2c: 01 00 00 B8 42 FA [13:25:55]Write i2c OK [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 [13:25:55]MH_I2C_Read... [13:25:55]Read from MH i2c: 01 07 00 B8 42 00 00 00 00 00 FF 0F 0F [13:25:55]RasterBufferAndPrint [13:25:55]line Счет N : (1)211210 [13:25:55]line ИНН: 02508201610067 [13:25:55]line Контрольно-Кассовый Чек [13:25:55]line ПРОДАЖА [13:25:55]line ТРК (МРК, ГНК) : 22 [13:25:55]line Товар: 2710124130 [13:25:55]line Аи-92-К-3 [13:25:55]line 22.770 * 65.90 [13:25:55]line = 1500.54 [13:25:55]line НДС 12% НСП 1% [13:25:55]line > о реализуемом товаре [13:25:55]line ОКРУГЛЕНИЕ: -0.54 [13:25:55]line ИТОГО: 1500.00 [13:25:55]line Внесено: 1500.00 [13:25:55]line СДАЧА: 0.00 [13:25:55]line НСП 1% : 13.28 [13:25:55]line НДС 12% : 159.35 [13:25:55]line Наличными: 1500.00 [13:25:55]line Безнал.: 0.00 [13:25:55]line Место: АЗС № 86 "Партнер Нефть" [13:25:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:25:55]line СНО: Общий режим [13:25:55]line Чек 220 24.10.2024 13:25 [13:25:55]line Смена: 463 ФФД: 1.0 [13:25:55]line ЗНМ: 0300000155 [13:25:55]line РНМ: 0000000000100030 [13:25:55]line Версия ККМ: 001 [13:25:55]line [13:25:55]line Дисконтная программа [13:25:55]line АИ-92 [13:25:55]line номер 86 [13:25:55]line сэкономлено 22.77 сом [13:25:55]line ФМ: 0000000000965340 [13:25:55]line ФД: 189147 [13:25:55]line ФПД: 148629751788231 [13:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132557&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189147&fm=148629751788231&tin=02508201610067®Number=0000000000100030&sum=150000 [13:25:55]written 0, free lines is 4095 [13:25:55]OFD Sender: Processing packet 189147 [packets to send 1062, broken 1061] [13:25:55]ProducePacketName [13:25:55]name=ofd_packets/00189147 [13:25:55]OFD Sender: To server: pG, [13:25:55]CommunicateWithHost lk.salyk.kg:30040 [13:25:55]ConnectInit lk.salyk.kg [13:25:56]Connected sock=10 [13:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD F9 07 01 3E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 E5 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB E2 02 00 35 04 06 00 87 2D 8F 8E F2 C7 17 FB 68 E5 2E CB CB 1B [13:25:56]Write to MH i2c: 01 00 00 E8 42 2A [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: 01 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: 01 07 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: 01 07 00 E8 42 00 00 00 00 00 E0 0B 1C [13:25:56]RasterBufferAndPrint [13:25:56]line [13:25:56]line [13:25:56]line [13:25:56]line [13:25:56]line [13:25:56]written 0, free lines is 3043 [13:25:56]MH_Cut [13:25:56]Write to MH i2c: D1 01 00 EF 42 01 03 [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 01 00 [13:25:56]MH_I2C_Read... [13:25:56]Read from MH i2c: D1 01 00 EF 42 00 02 [13:25:56]Write to MH i2c: 01 00 00 F0 42 32 [13:25:56]Write i2c OK [13:25:56]MH_I2C_Read... [13:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F CC 47 00 A7 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 39 36 35 33 34 30 10 04 04 00 DB E2 02 00 F4 03 04 00 CD F4 19 67 B6 04 01 00 00 74 7A 9A 02 AA 67 1A 2E [13:25:56]CommunicateWithHost err = 0 [13:25:56]CheckOFDResponse [13:25:56]1017 (14) - 77093643461234 [13:25:56]1041 (16) - 0000000000965340 [13:25:56]1040 (4) - 189147 [13:25:56]1012 (4) - 24.10.2024 07:18 [13:25:56]1206 (1) - 0 [13:25:56]OFD Sender: Remove packet 189147 [13:25:56]ProducePacketName [13:25:56]name=ofd_packets/00189147 [13:25:56]NVStorageDeleteData [13:25:56]OFD Sender: No OFD packet to send [13:25:57]*** Cut start [13:25:57]*** Partial cut [13:25:57]*** CUTSNS_PIN = 1 [13:25:57]*** CUTSNS_PIN = 0 [13:25:57]*** Brake cut motor [13:25:58]Read from MH i2c: 01 [13:25:58]MH_I2C_Read... [13:25:58]*** Stop cut motor [13:25:58]*** Cut end [13:25:58]Read from MH i2c: 01 07 00 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: 01 07 00 F0 42 00 00 00 00 00 FF 0F 47 [13:25:58]process_action close_receipt done [13:25:58]requested_data is exist [13:25:58]produce_requested_data [13:25:58]requested_item fm.sn is exist - process it [13:25:58]wFMCommunicate request_size=4 [13:25:58]MH_SAM_APDU [13:25:58]CAPDU: 80 11 00 00 [13:25:58]Write to MH i2c: E2 08 00 F1 42 80 11 00 00 00 00 00 00 AD [13:25:58]Write i2c OK [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 [13:25:58]MH_I2C_Read... [13:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:58]Read from MH i2c: E2 17 00 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 17 00 F1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [13:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:58]wFMCommunicate OK [13:25:58]requested_item fd.num is exist - process it [13:25:58]SAM_PROTO_GetFieldsCounters [13:25:58]wFMCommunicate request_size=4 [13:25:58]MH_SAM_APDU [13:25:58]CAPDU: 80 13 00 00 [13:25:58]Write to MH i2c: E2 08 00 F2 42 80 13 00 00 00 00 00 00 B0 [13:25:58]Write i2c OK [13:25:58]MH_I2C_Read... [13:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:58]Read from MH i2c: E2 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 62 00 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 62 00 F2 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E2 02 00 0E 04 04 00 CF 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 DA [13:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB E2 02 00 0E 04 04 00 CF 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 [13:25:58]wFMCommunicate OK [13:25:58]SAM_PROTO_GetFieldsCounters done [13:25:58]requested_item shift.num is exist - process it [13:25:58]requested_item shift.opened is exist - process it [13:25:58]req_shift_opened [13:25:58]FM_GetShiftState [13:25:58]SAM_PROTO_GetShiftState [13:25:58]wFMCommunicate request_size=4 [13:25:58]MH_SAM_APDU [13:25:58]CAPDU: 80 13 01 00 [13:25:58]Write to MH i2c: E2 08 00 F3 42 80 13 01 00 00 00 00 00 B2 [13:25:58]Write i2c OK [13:25:58]MH_I2C_Read... [13:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:58]Read from MH i2c: E2 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 0E 00 [13:25:58]MH_I2C_Read... [13:25:58]Read from MH i2c: E2 0E 00 F3 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 90 [13:25:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:25:58]wFMCommunicate OK [13:25:58]SAM_PROTO_GetShiftState done [13:25:58]FM_GetShiftState done [13:25:58]req_shift_opened done [13:25:58]requested_item shift.open_date is exist - process it [13:25:58]req_shift_open_date [13:25:58]req_shift_open_date done [13:25:58]produce_requested_data done [13:25:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189147,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:25:58]process_action_free close_receipt [13:25:58]json_value_free [13:25:58]json_value_free done [13:25:58]process_json_proto returns [13:25:58]Send response to host [13:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189147,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:25:58]free response buf [13:25:58]execute_script done [13:25:58]execute_script returns [13:25:58]free content buf [13:25:58]Sock 8.Close socket [13:25:58]Sock 8.Thread stoped [13:26:01]accept exits with 9 [13:26:01]New connection [13:26:01]New thread 3067071844 created [13:26:01]Thread 3067215204 joined [13:26:01]Waiting for new connection... [13:26:01] Sock 9.Parse request [13:26:01]Sock 9.Check first char [13:26:01]Sock 9.First char is OK [13:26:01]request: POST /json_proto HTTP/1.0 [13:26:01]Method: POST [13:26:01]URL: /json_proto [13:26:01]Method is POST - this is cgi request [13:26:01]url: /json_proto [13:26:01]query_string will be loaded in cgi processing [13:26:01]execute_cgi json_proto POST (null) [13:26:01]execute_cgi path=json_proto method=POST [13:26:01]POST find Content-Length [13:26:01]Host: 172.17.42.131:8080 [13:26:01]Content-Length: 682 [13:26:01]Content-Type: application/json [13:26:01] [13:26:01]POST finish read [13:26:01]Found Content-Length = 682 [13:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:26:01]execute_script... [13:26: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)211211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:26:01]POST & json_proto [13:26:01]process_json_proto [13:26:01]json parsed OK: [13:26:01]protocol is kg_v1.0 [13:26:01]action value=close_receipt [13:26:01]process_action close_receipt [13:26:01]cmd_close_receipt [13:26:01]MH_GetDate [13:26:01]Write to MH i2c: F0 00 00 F4 42 25 [13:26:01]Write i2c OK [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 09 00 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: F0 09 00 F4 42 00 EC 4A 1A 67 A0 18 CA 66 CD [13:26:01]GetLastDocTimeStamp 1729776357 [13:26:01]current date 1729776364 [13:26:01]FM_GetShiftState [13:26:01]SAM_PROTO_GetShiftState [13:26:01]wFMCommunicate request_size=4 [13:26:01]MH_SAM_APDU [13:26:01]CAPDU: 80 13 01 00 [13:26:01]Write to MH i2c: E2 08 00 F5 42 80 13 01 00 00 00 00 00 B4 [13:26:01]Write i2c OK [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: E2 [13:26:01]MH_I2C_Read... [13:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:01]Read from MH i2c: E2 0E 00 [13:26:01]MH_I2C_Read... [13:26:01]Read from MH i2c: E2 0E 00 F5 42 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 92 [13:26:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:26:01]wFMCommunicate OK [13:26:01]SAM_PROTO_GetShiftState done [13:26:01]FM_GetShiftState done [13:26:01]opened in 1729728961 [13:26:01]opened+sec_in_day 1729815361 [13:26:01]quantity*price = 150032 [13:26:01]sum+1 = 150033 [13:26: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 221 24.10.2024 13:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189148 ФПД: 269633562055626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132604&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189148&fm=269633562055626&tin=02508201610067®Number=0000000000100030&sum=150000 [13:26:02]StoreToDocumentArchive [13:26:02]shift 463 fd 189148 [13:26:02]save to /storage/0463/doc_00189148 [13:26:02]save last doc name /storage/0463/doc_00189148 to /storage/kkm_last_doc_name [13:26:02]save OK [13:26:02]Clear old archive folders... [13:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:02]tlvbuf is 014C9A80 [13:26:02]SAM_PROTO_ClearQueue [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 09 00 00 [13:26:02]Write to MH i2c: E2 08 00 02 43 80 09 00 00 00 00 00 00 B7 [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 02 43 00 90 00 B9 [13:26:02]RAPDU: 90 00 [13:26:02]wFMCommunicate OK [13:26:02]SAM_PROTO_ClearQueue done [13:26:02]KKMCreateOFDPacket [13:26:02]OFDProtocolAddRootSTLVToBuf [13:26:02]FM_MakeSignedData [13:26:02]FM_MakeSignedData [13:26:02]SAM_PROTO_SignData [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 0D 01 02 [13:26:02]Write to MH i2c: E2 08 00 03 43 80 0D 01 02 00 00 00 00 BF [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 03 00 03 43 00 90 00 BA [13:26:02]RAPDU: 90 00 [13:26:02]wFMCommunicate OK [13:26:02]wFMCommunicate request_size=255 [13:26:02]MH_SAM_APDU [13:26: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 33 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 DD 00 00 00 F4 03 04 00 EC 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E2 02 00 35 04 06 00 F5 [13:26:02]Write to MH i2c: E2 02 01 04 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DD 00 00 00 F4 03 04 00 EC 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E2 02 00 35 04 06 00 F5 00 00 AE [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 04 43 00 90 00 BB [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=10 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 02 02 05 3A F4 AF 93 CA [13:26:03]Write to MH i2c: E2 0D 00 05 43 80 0D 02 02 05 00 3A F4 AF 93 CA 00 00 06 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 03 00 05 43 00 90 00 BC [13:26:03]RAPDU: 90 00 [13:26:03]wFMCommunicate OK [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 0D 03 02 [13:26:03]Write to MH i2c: E2 08 00 06 43 80 0D 03 02 00 00 00 00 C4 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0B 00 06 43 00 6B AC CB 26 9C 53 02 12 90 00 D0 [13:26:03]RAPDU: 6B AC CB 26 9C 53 02 12 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_SignData done [13:26:03]FM_MakeSignedData done [13:26:03]CreateOFDProtocolMessage [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 11 00 00 [13:26:03]Write to MH i2c: E2 08 00 07 43 80 11 00 00 00 00 00 00 C4 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 17 00 07 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [13:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:26:03]wFMCommunicate OK [13:26:03]CreateOFDProtocolMessage done [13:26:03]OFDSenderStorePacket 189148 [13:26:03]StoreOFDPacket docnum=189148 [13:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 3B 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DD 00 00 00 F4 03 04 00 EC 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E2 02 00 35 04 06 00 F5 3A F4 AF 93 CA 6B AC CB 26 9C 53 02 12 [13:26:03]CheckFolder [13:26:03]dirname=/storage/ofd_packets [13:26:03]CheckFolder done [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00189148 [13:26:03]NVStorageSaveData ofd_packets/00189148 [13:26:03]File name is /storage/ofd_packets/00189148 [13:26:03]Write 301 bytes [13:26:03]NVStorageSaveData done [13:26:03]OFDSenderStorePacket done [13:26:03]KKMCreateOFDPacket done [13:26:03]NVStorageSaveData kkm_last_timestamp [13:26:03]File name is /storage/kkm_last_timestamp [13:26:03]Write 4 bytes [13:26:03]NVStorageSaveData done [13:26:03]ExternCall_PrintAddStr [13:26:03]wPrintStart [13:26:03]Write to MH i2c: 01 00 00 08 43 4B [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 08 43 00 00 00 00 00 FF 0F 60 [13:26:03]RasterBufferAndPrint [13:26:03]line Счет N : (1)211211 [13:26:03]line ИНН: 02508201610067 [13:26:03]line Контрольно-Кассовый Чек [13:26:03]line ПРОДАЖА [13:26:03]line ТРК (МРК, ГНК) : 13 [13:26:03]line Товар: 2710124500 [13:26:03]line Аи-95-К-3 [13:26:03]line 20.220 * 74.20 [13:26:03]line = 1500.32 [13:26:03]line НДС 12% НСП 1% [13:26:03]line > о реализуемом товаре [13:26:03]line ОКРУГЛЕНИЕ: -0.32 [13:26:03]line ИТОГО: 1500.00 [13:26:03]line Внесено: 1500.00 [13:26:03]line СДАЧА: 0.00 [13:26:03]line НСП 1% : 13.28 [13:26:03]line НДС 12% : 159.33 [13:26:03]line Наличными: 1500.00 [13:26:03]line Безнал.: 0.00 [13:26:03]line Место: АЗС № 86 "Партнер Нефть" [13:26:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:26:03]line СНО: Общий режим [13:26:03]line Чек 221 24.10.2024 13:26 [13:26:03]line Смена: 463 ФФД: 1.0 [13:26:03]line ЗНМ: 0300000155 [13:26:03]line РНМ: 0000000000100030 [13:26:03]line Версия ККМ: 001 [13:26:03]line ФМ: 0000000000965340 [13:26:03]line ФД: 189148 [13:26:03]line ФПД: 269633562055626 [13:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132604&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189148&fm=269633562055626&tin=02508201610067®Number=0000000000100030&sum=150000 [13:26:03]written 0, free lines is 4095 [13:26:03]OFD Sender: Processing packet 189148 [packets to send 1062, broken 1061] [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00189148 [13:26:03]OFD Sender: To server: pG, [13:26:03]CommunicateWithHost lk.salyk.kg:30040 [13:26:03]ConnectInit lk.salyk.kg [13:26:03]Connected sock=10 [13:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 3B 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 DD 00 00 00 F4 03 04 00 EC 4A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E2 02 00 35 04 06 00 F5 3A F4 AF 93 CA 6B AC CB 26 9C 53 02 12 [13:26:03]Write to MH i2c: 01 00 00 33 43 76 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: 01 07 00 33 43 00 00 00 00 00 59 0C E2 [13:26:03]RasterBufferAndPrint [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]line [13:26:03]written 0, free lines is 3169 [13:26:03]MH_Cut [13:26:03]Write to MH i2c: D1 01 00 3A 43 01 4F [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 01 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: D1 01 00 3A 43 00 4E [13:26:03]Write to MH i2c: 01 00 00 3B 43 7E [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 0F 47 00 65 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC E2 02 00 F4 03 04 00 D4 F4 19 67 B6 04 01 00 00 59 B1 2B 00 2C B4 E3 9C [13:26:03]CommunicateWithHost err = 0 [13:26:03]CheckOFDResponse [13:26:03]1017 (14) - 77093643461234 [13:26:03]1041 (16) - 0000000000965340 [13:26:03]1040 (4) - 189148 [13:26:03]1012 (4) - 24.10.2024 07:18 [13:26:03]1206 (1) - 0 [13:26:03]OFD Sender: Remove packet 189148 [13:26:03]ProducePacketName [13:26:03]name=ofd_packets/00189148 [13:26:03]NVStorageDeleteData [13:26:04]OFD Sender: No OFD packet to send [13:26:04]*** Cut start [13:26:04]*** Partial cut [13:26:04]*** CUTSNS_PIN = 1 [13:26:05]*** CUTSNS_PIN = 0 [13:26:05]*** Brake cut motor [13:26:05]Read from MH i2c: 01 [13:26:05]MH_I2C_Read... [13:26:05]*** Stop cut motor [13:26:05]*** Cut end [13:26:05]Read from MH i2c: 01 07 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 3B 43 00 00 00 00 00 FF 0F 93 [13:26:05]process_action close_receipt done [13:26:05]requested_data is exist [13:26:05]produce_requested_data [13:26:05]requested_item fm.sn is exist - process it [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 11 00 00 [13:26:05]Write to MH i2c: E2 08 00 3C 43 80 11 00 00 00 00 00 00 F9 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 17 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 17 00 3C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [13:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:26:05]wFMCommunicate OK [13:26:05]requested_item fd.num is exist - process it [13:26:05]SAM_PROTO_GetFieldsCounters [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 13 00 00 [13:26:05]Write to MH i2c: E2 08 00 3D 43 80 13 00 00 00 00 00 00 FC [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 62 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 62 00 3D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E2 02 00 0E 04 04 00 CF 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 2A [13:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC E2 02 00 0E 04 04 00 CF 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 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_GetFieldsCounters done [13:26:05]requested_item shift.num is exist - process it [13:26:05]requested_item shift.opened is exist - process it [13:26:05]req_shift_opened [13:26:05]FM_GetShiftState [13:26:05]SAM_PROTO_GetShiftState [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 13 01 00 [13:26:05]Write to MH i2c: E2 08 00 3E 43 80 13 01 00 00 00 00 00 FE [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0E 00 3E 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DC [13:26:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_GetShiftState done [13:26:05]FM_GetShiftState done [13:26:05]req_shift_opened done [13:26:05]requested_item shift.open_date is exist - process it [13:26:05]req_shift_open_date [13:26:05]req_shift_open_date done [13:26:05]produce_requested_data done [13:26:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189148,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:26:05]process_action_free close_receipt [13:26:05]json_value_free [13:26:05]json_value_free done [13:26:05]process_json_proto returns [13:26:05]Send response to host [13:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189148,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:26:05]free response buf [13:26:05]execute_script done [13:26:05]execute_script returns [13:26:05]free content buf [13:26:05]Sock 9.Close socket [13:26:05]Sock 9.Thread stoped [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:28:59]accept exits with 8 [13:28:59]New connection [13:28:59]New thread 3067215204 created [13:28:59]Thread 3067071844 joined [13:28:59]Waiting for new connection... [13:28:59] Sock 8.Parse request [13:28:59]Sock 8.Check first char [13:28:59]Sock 8.First char is OK [13:28:59]request: POST /json_proto HTTP/1.0 [13:28:59]Method: POST [13:28:59]URL: /json_proto [13:28:59]Method is POST - this is cgi request [13:28:59]url: /json_proto [13:28:59]query_string will be loaded in cgi processing [13:28:59]execute_cgi json_proto POST (null) [13:28:59]execute_cgi path=json_proto method=POST [13:28:59]POST find Content-Length [13:28:59]Host: 172.17.42.131:8080 [13:28:59]Content-Length: 677 [13:28:59]Content-Type: application/json [13:28:59] [13:28:59]POST finish read [13:28:59]Found Content-Length = 677 [13:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:59]execute_script... [13:28: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)211212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:59]POST & json_proto [13:28:59]process_json_proto [13:28:59]json parsed OK: [13:28:59]protocol is kg_v1.0 [13:28:59]action value=close_receipt [13:28:59]process_action close_receipt [13:28:59]cmd_close_receipt [13:28:59]MH_GetDate [13:28:59]Write to MH i2c: F0 00 00 3F 43 71 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 3F 43 00 9F 4B 1A 67 A0 18 CA 66 CD [13:28:59]GetLastDocTimeStamp 1729776364 [13:28:59]current date 1729776543 [13:28:59]FM_GetShiftState [13:28:59]SAM_PROTO_GetShiftState [13:28:59]wFMCommunicate request_size=4 [13:28:59]MH_SAM_APDU [13:28:59]CAPDU: 80 13 01 00 [13:28:59]Write to MH i2c: E2 08 00 40 43 80 13 01 00 00 00 00 00 00 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 40 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DE [13:28:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:28:59]wFMCommunicate OK [13:28:59]SAM_PROTO_GetShiftState done [13:28:59]FM_GetShiftState done [13:28:59]opened in 1729728961 [13:28:59]opened+sec_in_day 1729815361 [13:28:59]quantity*price = 50041 [13:28:59]sum+1 = 50042 [13:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 222 24.10.2024 13:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189149 ФПД: 62754981942562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189149&fm=62754981942562&tin=02508201610067®Number=0000000000100030&sum=50000 [13:29:00]StoreToDocumentArchive [13:29:00]shift 463 fd 189149 [13:29:00]save to /storage/0463/doc_00189149 [13:29:00]save last doc name /storage/0463/doc_00189149 to /storage/kkm_last_doc_name [13:29:00]save OK [13:29:00]Clear old archive folders... [13:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:01]tlvbuf is 015B5A90 [13:29:01]SAM_PROTO_ClearQueue [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 09 00 00 [13:29:01]Write to MH i2c: E2 08 00 4D 43 80 09 00 00 00 00 00 00 02 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 4D 43 00 90 00 04 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_ClearQueue done [13:29:01]KKMCreateOFDPacket [13:29:01]OFDProtocolAddRootSTLVToBuf [13:29:01]FM_MakeSignedData [13:29:01]FM_MakeSignedData [13:29:01]SAM_PROTO_SignData [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 01 02 [13:29:01]Write to MH i2c: E2 08 00 4E 43 80 0D 01 02 00 00 00 00 0A [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 4E 43 00 90 00 05 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=255 [13:29:01]MH_SAM_APDU [13:29: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 4B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E2 02 00 35 04 06 00 39 [13:29:01]Write to MH i2c: E2 02 01 4F 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 4B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E2 02 00 35 04 06 00 39 00 00 90 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 4F 43 00 90 00 06 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=10 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 02 02 05 13 48 68 15 22 [13:29:01]Write to MH i2c: E2 0D 00 50 43 80 0D 02 02 05 00 13 48 68 15 22 00 00 11 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 50 43 00 90 00 07 [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 03 02 [13:29:01]Write to MH i2c: E2 08 00 51 43 80 0D 03 02 00 00 00 00 0F [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 51 43 00 EA D0 FF 86 68 D9 64 D9 90 00 CD [13:29:01]RAPDU: EA D0 FF 86 68 D9 64 D9 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_SignData done [13:29:01]FM_MakeSignedData done [13:29:01]CreateOFDProtocolMessage [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 11 00 00 [13:29:01]Write to MH i2c: E2 08 00 52 43 80 11 00 00 00 00 00 00 0F [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 52 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [13:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:29:01]wFMCommunicate OK [13:29:01]CreateOFDProtocolMessage done [13:29:01]OFDSenderStorePacket 189149 [13:29:01]StoreOFDPacket docnum=189149 [13:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 FA 07 01 1C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 4B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E2 02 00 35 04 06 00 39 13 48 68 15 22 EA D0 FF 86 68 D9 64 D9 [13:29:01]CheckFolder [13:29:01]dirname=/storage/ofd_packets [13:29:01]CheckFolder done [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00189149 [13:29:01]NVStorageSaveData ofd_packets/00189149 [13:29:01]File name is /storage/ofd_packets/00189149 [13:29:01]Write 301 bytes [13:29:01]NVStorageSaveData done [13:29:01]OFDSenderStorePacket done [13:29:01]KKMCreateOFDPacket done [13:29:01]NVStorageSaveData kkm_last_timestamp [13:29:01]File name is /storage/kkm_last_timestamp [13:29:01]Write 4 bytes [13:29:01]NVStorageSaveData done [13:29:01]ExternCall_PrintAddStr [13:29:01]wPrintStart [13:29:01]Write to MH i2c: 01 00 00 53 43 96 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 53 43 00 00 00 00 00 FF 0F AB [13:29:01]RasterBufferAndPrint [13:29:01]line Счет N : (1)211212 [13:29:01]line ИНН: 02508201610067 [13:29:01]line Контрольно-Кассовый Чек [13:29:01]line ПРОДАЖА [13:29:01]line ТРК (МРК, ГНК) : 22 [13:29:01]line Товар: 2710124130 [13:29:01]line Аи-92-К-3 [13:29:01]line 7.480 * 66.90 [13:29:01]line = 500.41 [13:29:01]line НДС 12% НСП 1% [13:29:01]line > о реализуемом товаре [13:29:01]line ОКРУГЛЕНИЕ: -0.41 [13:29:01]line ИТОГО: 500.00 [13:29:01]line Внесено: 500.00 [13:29:01]line СДАЧА: 0.00 [13:29:01]line НСП 1% : 4.43 [13:29:01]line НДС 12% : 53.14 [13:29:01]line Наличными: 500.00 [13:29:01]line Безнал.: 0.00 [13:29:01]line Место: АЗС № 86 "Партнер Нефть" [13:29:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:29:01]line СНО: Общий режим [13:29:01]line Чек 222 24.10.2024 13:29 [13:29:01]line Смена: 463 ФФД: 1.0 [13:29:01]line ЗНМ: 0300000155 [13:29:01]line РНМ: 0000000000100030 [13:29:01]line Версия ККМ: 001 [13:29:01]line ФМ: 0000000000965340 [13:29:01]line ФД: 189149 [13:29:01]line ФПД: 62754981942562 [13:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T132903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189149&fm=62754981942562&tin=02508201610067®Number=0000000000100030&sum=50000 [13:29:01]written 0, free lines is 4095 [13:29:01]OFD Sender: Processing packet 189149 [packets to send 1062, broken 1061] [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00189149 [13:29:01]OFD Sender: To server: pG, [13:29:01]CommunicateWithHost lk.salyk.kg:30040 [13:29:01]ConnectInit lk.salyk.kg [13:29:01]Connected sock=10 [13:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 FA 07 01 1C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9F 4B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD E2 02 00 35 04 06 00 39 13 48 68 15 22 EA D0 FF 86 68 D9 64 D9 [13:29:02]Write to MH i2c: 01 00 00 7E 43 C1 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 7E 43 00 00 00 00 00 56 0C 2A [13:29:02]RasterBufferAndPrint [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]written 0, free lines is 3161 [13:29:02]MH_Cut [13:29:02]Write to MH i2c: D1 01 00 85 43 01 9A [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 85 43 00 99 [13:29:02]Write to MH i2c: 01 00 00 86 43 C9 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 27 E3 47 00 80 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 39 36 35 33 34 30 10 04 04 00 DD E2 02 00 F4 03 04 00 87 F5 19 67 B6 04 01 00 00 08 7E 0B 72 57 6A 48 97 [13:29:02]CommunicateWithHost err = 0 [13:29:02]CheckOFDResponse [13:29:02]1017 (14) - 77093643461234 [13:29:02]1041 (16) - 0000000000965340 [13:29:02]1040 (4) - 189149 [13:29:02]1012 (4) - 24.10.2024 07:21 [13:29:02]1206 (1) - 0 [13:29:02]OFD Sender: Remove packet 189149 [13:29:02]ProducePacketName [13:29:02]name=ofd_packets/00189149 [13:29:02]NVStorageDeleteData [13:29:02]OFD Sender: No OFD packet to send [13:29:03]*** Cut start [13:29:03]*** Partial cut [13:29:03]*** CUTSNS_PIN = 1 [13:29:03]*** CUTSNS_PIN = 0 [13:29:03]*** Brake cut motor [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [13:29:03]*** Stop cut motor [13:29:03]*** Cut end [13:29:03]Read from MH i2c: 01 07 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 86 43 00 00 00 00 00 FF 0F DE [13:29:03]process_action close_receipt done [13:29:03]requested_data is exist [13:29:03]produce_requested_data [13:29:03]requested_item fm.sn is exist - process it [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 11 00 00 [13:29:03]Write to MH i2c: E2 08 00 87 43 80 11 00 00 00 00 00 00 44 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 87 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [13:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:29:03]wFMCommunicate OK [13:29:03]requested_item fd.num is exist - process it [13:29:03]SAM_PROTO_GetFieldsCounters [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 13 00 00 [13:29:03]Write to MH i2c: E2 08 00 88 43 80 13 00 00 00 00 00 00 47 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 88 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E2 02 00 0E 04 04 00 CF 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 79 [13:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD E2 02 00 0E 04 04 00 CF 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 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetFieldsCounters done [13:29:04]requested_item shift.num is exist - process it [13:29:04]requested_item shift.opened is exist - process it [13:29:04]req_shift_opened [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 89 43 80 13 01 00 00 00 00 00 49 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 89 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 27 [13:29:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetShiftState done [13:29:04]FM_GetShiftState done [13:29:04]req_shift_opened done [13:29:04]requested_item shift.open_date is exist - process it [13:29:04]req_shift_open_date [13:29:04]req_shift_open_date done [13:29:04]produce_requested_data done [13:29:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189149,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:29:04]process_action_free close_receipt [13:29:04]json_value_free [13:29:04]json_value_free done [13:29:04]process_json_proto returns [13:29:04]Send response to host [13:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189149,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:29:04]free response buf [13:29:04]execute_script done [13:29:04]execute_script returns [13:29:04]free content buf [13:29:04]Sock 8.Close socket [13:29:04]Sock 8.Thread stoped [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [13:31:27]New connection [13:31:27]New thread 3067071844 created [13:31:27]Thread 3067215204 joined [13:31:27]Waiting for new connection... [13:31:27] Sock 9.Parse request [13:31:27]Sock 9.Check first char [13:31:27]Sock 9.First char is OK [13:31:27]request: POST /json_proto HTTP/1.0 [13:31:27]Method: POST [13:31:27]URL: /json_proto [13:31:27]Method is POST - this is cgi request [13:31:27]url: /json_proto [13:31:27]query_string will be loaded in cgi processing [13:31:27]execute_cgi json_proto POST (null) [13:31:27]execute_cgi path=json_proto method=POST [13:31:27]POST find Content-Length [13:31:27]Host: 172.17.42.131:8080 [13:31:27]Content-Length: 682 [13:31:27]Content-Type: application/json [13:31:27] [13:31:27]POST finish read [13:31:27]Found Content-Length = 682 [13:31:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:27]execute_script... [13:31: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)211213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:27]POST & json_proto [13:31:27]process_json_proto [13:31:27]json parsed OK: [13:31:27]protocol is kg_v1.0 [13:31:27]action value=close_receipt [13:31:27]process_action close_receipt [13:31:27]cmd_close_receipt [13:31:27]MH_GetDate [13:31:27]Write to MH i2c: F0 00 00 8A 43 BC [13:31:27]Write i2c OK [13:31:27]MH_I2C_Read... [13:31:27]Read from MH i2c: F0 [13:31:27]MH_I2C_Read... [13:31:27]Read from MH i2c: F0 09 00 [13:31:27]MH_I2C_Read... [13:31:27]Read from MH i2c: F0 09 00 8A 43 00 32 4C 1A 67 A0 18 CA 66 AC [13:31:27]GetLastDocTimeStamp 1729776543 [13:31:27]current date 1729776690 [13:31:27]FM_GetShiftState [13:31:27]SAM_PROTO_GetShiftState [13:31:27]wFMCommunicate request_size=4 [13:31:27]MH_SAM_APDU [13:31:27]CAPDU: 80 13 01 00 [13:31:27]Write to MH i2c: E2 08 00 8B 43 80 13 01 00 00 00 00 00 4B [13:31:27]Write i2c OK [13:31:27]MH_I2C_Read... [13:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:27]Read from MH i2c: E2 [13:31:27]MH_I2C_Read... [13:31:27]Read from MH i2c: E2 0E 00 [13:31:27]MH_I2C_Read... [13:31:27]Read from MH i2c: E2 0E 00 8B 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 29 [13:31:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:31:27]wFMCommunicate OK [13:31:27]SAM_PROTO_GetShiftState done [13:31:27]FM_GetShiftState done [13:31:27]opened in 1729728961 [13:31:27]opened+sec_in_day 1729815361 [13:31:27]quantity*price = 100015 [13:31:27]sum+1 = 100017 [13:31:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 223 24.10.2024 13:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189150 ФПД: 65885626496214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133130&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189150&fm=65885626496214&tin=02508201610067®Number=0000000000100030&sum=100000 [13:31:28]StoreToDocumentArchive [13:31:28]shift 463 fd 189150 [13:31:28]save to /storage/0463/doc_00189150 [13:31:28]save last doc name /storage/0463/doc_00189150 to /storage/kkm_last_doc_name [13:31:28]save OK [13:31:28]Clear old archive folders... [13:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:28]tlvbuf is B6F1A3A0 [13:31:28]SAM_PROTO_ClearQueue [13:31:28]wFMCommunicate request_size=4 [13:31:28]MH_SAM_APDU [13:31:28]CAPDU: 80 09 00 00 [13:31:28]Write to MH i2c: E2 08 00 98 43 80 09 00 00 00 00 00 00 4D [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]OFD Sender: No OFD packet to send [13:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 98 43 00 90 00 4F [13:31:28]RAPDU: 90 00 [13:31:28]wFMCommunicate OK [13:31:28]SAM_PROTO_ClearQueue done [13:31:28]KKMCreateOFDPacket [13:31:28]OFDProtocolAddRootSTLVToBuf [13:31:28]FM_MakeSignedData [13:31:28]FM_MakeSignedData [13:31:28]SAM_PROTO_SignData [13:31:28]wFMCommunicate request_size=4 [13:31:28]MH_SAM_APDU [13:31:28]CAPDU: 80 0D 01 02 [13:31:28]Write to MH i2c: E2 08 00 99 43 80 0D 01 02 00 00 00 00 55 [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 99 43 00 90 00 50 [13:31:28]RAPDU: 90 00 [13:31:28]wFMCommunicate OK [13:31:28]wFMCommunicate request_size=255 [13:31:28]MH_SAM_APDU [13:31: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 32 4C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E2 02 00 35 04 06 00 3B [13:31:28]Write to MH i2c: E2 02 01 9A 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 32 4C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E2 02 00 35 04 06 00 3B 00 00 6D [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 9A 43 00 90 00 51 [13:31:28]RAPDU: 90 00 [13:31:28]wFMCommunicate OK [13:31:28]wFMCommunicate request_size=10 [13:31:28]MH_SAM_APDU [13:31:28]CAPDU: 80 0D 02 02 05 EC 31 5C F4 D6 [13:31:28]Write to MH i2c: E2 0D 00 9B 43 80 0D 02 02 05 00 EC 31 5C F4 D6 00 00 A5 [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 03 00 9B 43 00 90 00 52 [13:31:28]RAPDU: 90 00 [13:31:28]wFMCommunicate OK [13:31:28]wFMCommunicate request_size=4 [13:31:28]MH_SAM_APDU [13:31:28]CAPDU: 80 0D 03 02 [13:31:28]Write to MH i2c: E2 08 00 9C 43 80 0D 03 02 00 00 00 00 5A [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 0B 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 0B 00 9C 43 00 14 12 B0 75 A4 1F EF EC 90 00 44 [13:31:28]RAPDU: 14 12 B0 75 A4 1F EF EC 90 00 [13:31:28]wFMCommunicate OK [13:31:28]SAM_PROTO_SignData done [13:31:28]FM_MakeSignedData done [13:31:28]CreateOFDProtocolMessage [13:31:28]wFMCommunicate request_size=4 [13:31:28]MH_SAM_APDU [13:31:28]CAPDU: 80 11 00 00 [13:31:28]Write to MH i2c: E2 08 00 9D 43 80 11 00 00 00 00 00 00 5A [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:28]Read from MH i2c: E2 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 17 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: E2 17 00 9D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [13:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:28]wFMCommunicate OK [13:31:28]CreateOFDProtocolMessage done [13:31:28]OFDSenderStorePacket 189150 [13:31:28]StoreOFDPacket docnum=189150 [13:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F9 CB 07 01 6B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 32 4C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E2 02 00 35 04 06 00 3B EC 31 5C F4 D6 14 12 B0 75 A4 1F EF EC [13:31:28]CheckFolder [13:31:28]dirname=/storage/ofd_packets [13:31:28]CheckFolder done [13:31:28]ProducePacketName [13:31:28]name=ofd_packets/00189150 [13:31:28]NVStorageSaveData ofd_packets/00189150 [13:31:28]File name is /storage/ofd_packets/00189150 [13:31:28]Write 301 bytes [13:31:28]NVStorageSaveData done [13:31:28]OFDSenderStorePacket done [13:31:28]KKMCreateOFDPacket done [13:31:28]NVStorageSaveData kkm_last_timestamp [13:31:28]File name is /storage/kkm_last_timestamp [13:31:28]Write 4 bytes [13:31:28]NVStorageSaveData done [13:31:28]ExternCall_PrintAddStr [13:31:28]wPrintStart [13:31:28]Write to MH i2c: 01 00 00 9E 43 E1 [13:31:28]Write i2c OK [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: 01 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: 01 07 00 [13:31:28]MH_I2C_Read... [13:31:28]Read from MH i2c: 01 07 00 9E 43 00 00 00 00 00 FF 0F F6 [13:31:28]RasterBufferAndPrint [13:31:28]line Счет N : (1)211213 [13:31:28]line ИНН: 02508201610067 [13:31:28]line Контрольно-Кассовый Чек [13:31:28]line ПРОДАЖА [13:31:28]line ТРК (МРК, ГНК) : 22 [13:31:28]line Товар: 2710124130 [13:31:28]line Аи-92-К-3 [13:31:28]line 14.950 * 66.90 [13:31:28]line = 1000.16 [13:31:28]line НДС 12% НСП 1% [13:31:28]line > о реализуемом товаре [13:31:28]line ОКРУГЛЕНИЕ: -0.16 [13:31:28]line ИТОГО: 1000.00 [13:31:28]line Внесено: 1000.00 [13:31:28]line СДАЧА: 0.00 [13:31:28]line НСП 1% : 8.85 [13:31:28]line НДС 12% : 106.21 [13:31:28]line Наличными: 1000.00 [13:31:28]line Безнал.: 0.00 [13:31:28]line Место: АЗС № 86 "Партнер Нефть" [13:31:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:31:28]line СНО: Общий режим [13:31:28]line Чек 223 24.10.2024 13:31 [13:31:28]line Смена: 463 ФФД: 1.0 [13:31:28]line ЗНМ: 0300000155 [13:31:28]line РНМ: 0000000000100030 [13:31:28]line Версия ККМ: 001 [13:31:28]line ФМ: 0000000000965340 [13:31:28]line ФД: 189150 [13:31:28]line ФПД: 65885626496214 [13:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133130&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189150&fm=65885626496214&tin=02508201610067®Number=0000000000100030&sum=100000 [13:31:28]written 0, free lines is 4095 [13:31:28]OFD Sender: Processing packet 189150 [packets to send 1062, broken 1061] [13:31:28]ProducePacketName [13:31:28]name=ofd_packets/00189150 [13:31:28]OFD Sender: To server: pG, [13:31:28]CommunicateWithHost lk.salyk.kg:30040 [13:31:28]ConnectInit lk.salyk.kg [13:31:29]Write to MH i2c: 01 00 00 C9 43 0C [13:31:29]Write i2c OK [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: 01 [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: 01 07 00 [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: 01 07 00 C9 43 00 00 00 00 00 52 0C 71 [13:31:29]RasterBufferAndPrint [13:31:29]line [13:31:29]line [13:31:29]line [13:31:29]line [13:31:29]line [13:31:29]written 0, free lines is 3157 [13:31:29]MH_Cut [13:31:29]Write to MH i2c: D1 01 00 D0 43 01 E5 [13:31:29]Write i2c OK [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: D1 [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: D1 01 00 [13:31:29]MH_I2C_Read... [13:31:29]Read from MH i2c: D1 01 00 D0 43 00 E4 [13:31:29]Write to MH i2c: 01 00 00 D1 43 14 [13:31:29]Write i2c OK [13:31:29]MH_I2C_Read... [13:31:30]*** Cut start [13:31:30]*** Partial cut [13:31:30]*** CUTSNS_PIN = 1 [13:31:30]*** CUTSNS_PIN = 0 [13:31:31]*** Brake cut motor [13:31:31]Read from MH i2c: 01 [13:31:31]MH_I2C_Read... [13:31:31]*** Stop cut motor [13:31:31]*** Cut end [13:31:31]Read from MH i2c: 01 07 00 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: 01 07 00 D1 43 00 00 00 00 00 FF 0F 29 [13:31:31]process_action close_receipt done [13:31:31]requested_data is exist [13:31:31]produce_requested_data [13:31:31]requested_item fm.sn is exist - process it [13:31:31]wFMCommunicate request_size=4 [13:31:31]MH_SAM_APDU [13:31:31]CAPDU: 80 11 00 00 [13:31:31]Write to MH i2c: E2 08 00 D2 43 80 11 00 00 00 00 00 00 8F [13:31:31]Write i2c OK [13:31:31]MH_I2C_Read... [13:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:31]Read from MH i2c: E2 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 17 00 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 17 00 D2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [13:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:31]wFMCommunicate OK [13:31:31]requested_item fd.num is exist - process it [13:31:31]SAM_PROTO_GetFieldsCounters [13:31:31]wFMCommunicate request_size=4 [13:31:31]MH_SAM_APDU [13:31:31]CAPDU: 80 13 00 00 [13:31:31]Write to MH i2c: E2 08 00 D3 43 80 13 00 00 00 00 00 00 92 [13:31:31]Write i2c OK [13:31:31]MH_I2C_Read... [13:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:31]Read from MH i2c: E2 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 62 00 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 62 00 D3 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E2 02 00 0E 04 04 00 CF 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 C8 [13:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE E2 02 00 0E 04 04 00 CF 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 [13:31:31]wFMCommunicate OK [13:31:31]SAM_PROTO_GetFieldsCounters done [13:31:31]requested_item shift.num is exist - process it [13:31:31]requested_item shift.opened is exist - process it [13:31:31]req_shift_opened [13:31:31]FM_GetShiftState [13:31:31]SAM_PROTO_GetShiftState [13:31:31]wFMCommunicate request_size=4 [13:31:31]MH_SAM_APDU [13:31:31]CAPDU: 80 13 01 00 [13:31:31]Write to MH i2c: E2 08 00 D4 43 80 13 01 00 00 00 00 00 94 [13:31:31]Write i2c OK [13:31:31]MH_I2C_Read... [13:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:31]Read from MH i2c: E2 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 0E 00 [13:31:31]MH_I2C_Read... [13:31:31]Read from MH i2c: E2 0E 00 D4 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 72 [13:31:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:31:31]wFMCommunicate OK [13:31:31]SAM_PROTO_GetShiftState done [13:31:31]FM_GetShiftState done [13:31:31]req_shift_opened done [13:31:31]requested_item shift.open_date is exist - process it [13:31:31]req_shift_open_date [13:31:31]req_shift_open_date done [13:31:31]produce_requested_data done [13:31:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189150,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:31:31]process_action_free close_receipt [13:31:31]json_value_free [13:31:31]json_value_free done [13:31:31]process_json_proto returns [13:31:31]Send response to host [13:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189150,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:31:31]free response buf [13:31:31]execute_script done [13:31:31]execute_script returns [13:31:31]free content buf [13:31:31]Sock 9.Close socket [13:31:31]Sock 9.Thread stoped [13:33:39]ConnectInit Can't connect to host [13:33:39]CommunicateWithHost connect error [13:33:39]CommunicateWithHost err = -1 [13:33:39]OFD Sender: Server communicate error [13:33:44]OFD Sender: Processing packet 189150 [packets to send 1062, broken 1061] [13:33:44]ProducePacketName [13:33:44]name=ofd_packets/00189150 [13:33:44]OFD Sender: To server: pG, [13:33:44]CommunicateWithHost lk.salyk.kg:30040 [13:33:44]ConnectInit lk.salyk.kg [13:33:44]Connected sock=9 [13:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F9 CB 07 01 6B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 32 4C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE E2 02 00 35 04 06 00 3B EC 31 5C F4 D6 14 12 B0 75 A4 1F EF EC [13:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 03 EC 47 00 2C 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 39 36 35 33 34 30 10 04 04 00 DE E2 02 00 F4 03 04 00 A2 F6 19 67 B6 04 01 00 00 A8 8A 09 20 DA 24 6A B0 [13:33:45]CommunicateWithHost err = 0 [13:33:45]CheckOFDResponse [13:33:45]1017 (14) - 77093643461234 [13:33:45]1041 (16) - 0000000000965340 [13:33:45]1040 (4) - 189150 [13:33:45]1012 (4) - 24.10.2024 07:26 [13:33:45]1206 (1) - 0 [13:33:45]OFD Sender: Remove packet 189150 [13:33:45]ProducePacketName [13:33:45]name=ofd_packets/00189150 [13:33:45]NVStorageDeleteData [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:16]accept exits with 8 [13:35:16]New connection [13:35:16]New thread 3067215204 created [13:35:16]Thread 3067071844 joined [13:35:16]Waiting for new connection... [13:35:16] Sock 8.Parse request [13:35:16]Sock 8.Check first char [13:35:16]Sock 8.First char is OK [13:35:16]request: POST /json_proto HTTP/1.0 [13:35:16]Method: POST [13:35:16]URL: /json_proto [13:35:16]Method is POST - this is cgi request [13:35:16]url: /json_proto [13:35:16]query_string will be loaded in cgi processing [13:35:16]execute_cgi json_proto POST (null) [13:35:16]execute_cgi path=json_proto method=POST [13:35:16]POST find Content-Length [13:35:16]Host: 172.17.42.131:8080 [13:35:16]Content-Length: 682 [13:35:16]Content-Type: application/json [13:35:16] [13:35:16]POST finish read [13:35:16]Found Content-Length = 682 [13:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [13:35:16]execute_script... [13:35: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)211214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [13:35:16]POST & json_proto [13:35:16]process_json_proto [13:35:16]json parsed OK: [13:35:16]protocol is kg_v1.0 [13:35:16]action value=close_receipt [13:35:16]process_action close_receipt [13:35:16]cmd_close_receipt [13:35:16]MH_GetDate [13:35:16]Write to MH i2c: F0 00 00 D5 43 07 [13:35:16]Write i2c OK [13:35:16]MH_I2C_Read... [13:35:16]Read from MH i2c: F0 [13:35:16]MH_I2C_Read... [13:35:16]Read from MH i2c: F0 09 00 [13:35:16]MH_I2C_Read... [13:35:16]Read from MH i2c: F0 09 00 D5 43 00 18 4D 1A 67 A0 18 CA 66 DE [13:35:16]GetLastDocTimeStamp 1729776690 [13:35:16]current date 1729776920 [13:35:16]FM_GetShiftState [13:35:16]SAM_PROTO_GetShiftState [13:35:16]wFMCommunicate request_size=4 [13:35:16]MH_SAM_APDU [13:35:16]CAPDU: 80 13 01 00 [13:35:16]Write to MH i2c: E2 08 00 D6 43 80 13 01 00 00 00 00 00 96 [13:35:16]Write i2c OK [13:35:16]MH_I2C_Read... [13:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:16]Read from MH i2c: E2 [13:35:16]MH_I2C_Read... [13:35:16]Read from MH i2c: E2 0E 00 [13:35:16]MH_I2C_Read... [13:35:16]Read from MH i2c: E2 0E 00 D6 43 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 74 [13:35:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:35:16]wFMCommunicate OK [13:35:16]SAM_PROTO_GetShiftState done [13:35:16]FM_GetShiftState done [13:35:16]opened in 1729728961 [13:35:16]opened+sec_in_day 1729815361 [13:35:16]quantity*price = 130072 [13:35:16]sum+1 = 130074 [13:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 224 24.10.2024 13:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189151 ФПД: 206293948637258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189151&fm=206293948637258&tin=02508201610067®Number=0000000000100030&sum=130000 [13:35:18]StoreToDocumentArchive [13:35:18]shift 463 fd 189151 [13:35:18]save to /storage/0463/doc_00189151 [13:35:18]save last doc name /storage/0463/doc_00189151 to /storage/kkm_last_doc_name [13:35:18]save OK [13:35:18]Clear old archive folders... [13:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:18]tlvbuf is 01553FC0 [13:35:18]SAM_PROTO_ClearQueue [13:35:18]wFMCommunicate request_size=4 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 09 00 00 [13:35:18]Write to MH i2c: E2 08 00 E3 43 80 09 00 00 00 00 00 00 98 [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 E3 43 00 90 00 9A [13:35:18]RAPDU: 90 00 [13:35:18]wFMCommunicate OK [13:35:18]SAM_PROTO_ClearQueue done [13:35:18]KKMCreateOFDPacket [13:35:18]OFDProtocolAddRootSTLVToBuf [13:35:18]FM_MakeSignedData [13:35:18]FM_MakeSignedData [13:35:18]SAM_PROTO_SignData [13:35:18]wFMCommunicate request_size=4 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 0D 01 02 [13:35:18]Write to MH i2c: E2 08 00 E4 43 80 0D 01 02 00 00 00 00 A0 [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 E4 43 00 90 00 9B [13:35:18]RAPDU: 90 00 [13:35:18]wFMCommunicate OK [13:35:18]wFMCommunicate request_size=255 [13:35:18]MH_SAM_APDU [13:35: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 33 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 E0 00 00 00 F4 03 04 00 18 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E2 02 00 35 04 06 00 BB [13:35:18]Write to MH i2c: E2 02 01 E5 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E0 00 00 00 F4 03 04 00 18 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E2 02 00 35 04 06 00 BB 00 00 D7 [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 E5 43 00 90 00 9C [13:35:18]RAPDU: 90 00 [13:35:18]wFMCommunicate OK [13:35:18]wFMCommunicate request_size=10 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 0D 02 02 05 9F 8D 87 20 4A [13:35:18]Write to MH i2c: E2 0D 00 E6 43 80 0D 02 02 05 00 9F 8D 87 20 4A 00 00 CA [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 03 00 E6 43 00 90 00 9D [13:35:18]RAPDU: 90 00 [13:35:18]wFMCommunicate OK [13:35:18]wFMCommunicate request_size=4 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 0D 03 02 [13:35:18]Write to MH i2c: E2 08 00 E7 43 80 0D 03 02 00 00 00 00 A5 [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 0B 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 0B 00 E7 43 00 03 18 F9 34 94 97 B3 D5 90 00 A1 [13:35:18]RAPDU: 03 18 F9 34 94 97 B3 D5 90 00 [13:35:18]wFMCommunicate OK [13:35:18]SAM_PROTO_SignData done [13:35:18]FM_MakeSignedData done [13:35:18]CreateOFDProtocolMessage [13:35:18]wFMCommunicate request_size=4 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 11 00 00 [13:35:18]Write to MH i2c: E2 08 00 E8 43 80 11 00 00 00 00 00 00 A5 [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 17 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 17 00 E8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [13:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:35:18]wFMCommunicate OK [13:35:18]CreateOFDProtocolMessage done [13:35:18]OFDSenderStorePacket 189151 [13:35:18]StoreOFDPacket docnum=189151 [13:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC 16 07 01 BF 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 33 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 E0 00 00 00 F4 03 04 00 18 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E2 02 00 35 04 06 00 BB 9F 8D 87 20 4A 03 18 F9 34 94 97 B3 D5 [13:35:18]CheckFolder [13:35:18]dirname=/storage/ofd_packets [13:35:18]CheckFolder done [13:35:18]ProducePacketName [13:35:18]name=ofd_packets/00189151 [13:35:18]NVStorageSaveData ofd_packets/00189151 [13:35:18]File name is /storage/ofd_packets/00189151 [13:35:18]Write 301 bytes [13:35:18]NVStorageSaveData done [13:35:18]OFDSenderStorePacket done [13:35:18]KKMCreateOFDPacket done [13:35:18]NVStorageSaveData kkm_last_timestamp [13:35:18]File name is /storage/kkm_last_timestamp [13:35:18]Write 4 bytes [13:35:18]NVStorageSaveData done [13:35:18]ExternCall_PrintAddStr [13:35:18]wPrintStart [13:35:18]Write to MH i2c: 01 00 00 E9 43 2C [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: 01 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: 01 07 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: 01 07 00 E9 43 00 00 00 00 00 FF 0F 41 [13:35:18]RasterBufferAndPrint [13:35:18]line Счет N : (1)211214 [13:35:18]line ИНН: 02508201610067 [13:35:18]line Контрольно-Кассовый Чек [13:35:18]line ПРОДАЖА [13:35:18]line ТРК (МРК, ГНК) : 13 [13:35:18]line Товар: 2710124500 [13:35:18]line Аи-95-К-3 [13:35:18]line 17.530 * 74.20 [13:35:18]line = 1300.73 [13:35:18]line НДС 12% НСП 1% [13:35:18]line > о реализуемом товаре [13:35:18]line ОКРУГЛЕНИЕ: -0.73 [13:35:18]line ИТОГО: 1300.00 [13:35:18]line Внесено: 1300.00 [13:35:18]line СДАЧА: 0.00 [13:35:18]line НСП 1% : 11.51 [13:35:18]line НДС 12% : 138.13 [13:35:18]line Наличными: 1300.00 [13:35:18]line Безнал.: 0.00 [13:35:18]line Место: АЗС № 86 "Партнер Нефть" [13:35:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:35:18]line СНО: Общий режим [13:35:18]line Чек 224 24.10.2024 13:35 [13:35:18]line Смена: 463 ФФД: 1.0 [13:35:18]line ЗНМ: 0300000155 [13:35:18]line РНМ: 0000000000100030 [13:35:18]line Версия ККМ: 001 [13:35:18]line ФМ: 0000000000965340 [13:35:18]line ФД: 189151 [13:35:18]line ФПД: 206293948637258 [13:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189151&fm=206293948637258&tin=02508201610067®Number=0000000000100030&sum=130000 [13:35:18]written 0, free lines is 4095 [13:35:18]OFD Sender: Processing packet 189151 [packets to send 1062, broken 1061] [13:35:18]ProducePacketName [13:35:18]name=ofd_packets/00189151 [13:35:18]OFD Sender: To server: pG, [13:35:18]CommunicateWithHost lk.salyk.kg:30040 [13:35:18]ConnectInit lk.salyk.kg [13:35:19]Connected sock=10 [13:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC 16 07 01 BF 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 33 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 E0 00 00 00 F4 03 04 00 18 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF E2 02 00 35 04 06 00 BB 9F 8D 87 20 4A 03 18 F9 34 94 97 B3 D5 [13:35:19]Write to MH i2c: 01 00 00 14 44 58 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: 01 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: 01 07 00 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: 01 07 00 14 44 00 00 00 00 00 58 0C C3 [13:35:19]RasterBufferAndPrint [13:35:19]line [13:35:19]line [13:35:19]line [13:35:19]line [13:35:19]line [13:35:19]written 0, free lines is 3165 [13:35:19]MH_Cut [13:35:19]Write to MH i2c: D1 01 00 1B 44 01 31 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: D1 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: D1 01 00 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: D1 01 00 1B 44 00 30 [13:35:19]Write to MH i2c: 01 00 00 1C 44 60 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 E9 47 00 CA 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 39 36 35 33 34 30 10 04 04 00 DF E2 02 00 F4 03 04 00 00 F7 19 67 B6 04 01 00 00 31 DA F6 3B C8 81 5C 02 [13:35:19]CommunicateWithHost err = 0 [13:35:19]CheckOFDResponse [13:35:19]1017 (14) - 77093643461234 [13:35:19]1041 (16) - 0000000000965340 [13:35:19]1040 (4) - 189151 [13:35:19]1012 (4) - 24.10.2024 07:28 [13:35:19]1206 (1) - 0 [13:35:19]OFD Sender: Remove packet 189151 [13:35:19]ProducePacketName [13:35:19]name=ofd_packets/00189151 [13:35:19]NVStorageDeleteData [13:35:19]OFD Sender: No OFD packet to send [13:35:20]*** Cut start [13:35:20]*** Partial cut [13:35:20]*** CUTSNS_PIN = 1 [13:35:20]*** CUTSNS_PIN = 0 [13:35:20]*** Brake cut motor [13:35:21]Read from MH i2c: 01 [13:35:21]MH_I2C_Read... [13:35:21]*** Stop cut motor [13:35:21]*** Cut end [13:35:21]Read from MH i2c: 01 07 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: 01 07 00 1C 44 00 00 00 00 00 FF 0F 75 [13:35:21]process_action close_receipt done [13:35:21]requested_data is exist [13:35:21]produce_requested_data [13:35:21]requested_item fm.sn is exist - process it [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 11 00 00 [13:35:21]Write to MH i2c: E2 08 00 1D 44 80 11 00 00 00 00 00 00 DB [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 17 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 17 00 1D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [13:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:35:21]wFMCommunicate OK [13:35:21]requested_item fd.num is exist - process it [13:35:21]SAM_PROTO_GetFieldsCounters [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 13 00 00 [13:35:21]Write to MH i2c: E2 08 00 1E 44 80 13 00 00 00 00 00 00 DE [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 62 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 62 00 1E 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E2 02 00 0E 04 04 00 CF 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 18 [13:35:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF E2 02 00 0E 04 04 00 CF 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 [13:35:21]wFMCommunicate OK [13:35:21]SAM_PROTO_GetFieldsCounters done [13:35:21]requested_item shift.num is exist - process it [13:35:21]requested_item shift.opened is exist - process it [13:35:21]req_shift_opened [13:35:21]FM_GetShiftState [13:35:21]SAM_PROTO_GetShiftState [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 13 01 00 [13:35:21]Write to MH i2c: E2 08 00 1F 44 80 13 01 00 00 00 00 00 E0 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 0E 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 0E 00 1F 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BE [13:35:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:35:21]wFMCommunicate OK [13:35:21]SAM_PROTO_GetShiftState done [13:35:21]FM_GetShiftState done [13:35:21]req_shift_opened done [13:35:21]requested_item shift.open_date is exist - process it [13:35:21]req_shift_open_date [13:35:21]req_shift_open_date done [13:35:21]produce_requested_data done [13:35:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189151,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:35:21]process_action_free close_receipt [13:35:21]json_value_free [13:35:21]json_value_free done [13:35:21]process_json_proto returns [13:35:21]Send response to host [13:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189151,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:35:21]free response buf [13:35:21]execute_script done [13:35:21]execute_script returns [13:35:21]free content buf [13:35:21]Sock 8.Close socket [13:35:21]Sock 8.Thread stoped [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:51]accept exits with 9 [13:35:51]New connection [13:35:51]New thread 3067071844 created [13:35:51]Thread 3067215204 joined [13:35:51]Waiting for new connection... [13:35:51] Sock 9.Parse request [13:35:51]Sock 9.Check first char [13:35:51]Sock 9.First char is OK [13:35:51]request: POST /json_proto HTTP/1.0 [13:35:51]Method: POST [13:35:51]URL: /json_proto [13:35:51]Method is POST - this is cgi request [13:35:51]url: /json_proto [13:35:51]query_string will be loaded in cgi processing [13:35:51]execute_cgi json_proto POST (null) [13:35:51]execute_cgi path=json_proto method=POST [13:35:51]POST find Content-Length [13:35:51]Host: 172.17.42.131:8080 [13:35:51]Content-Length: 677 [13:35:51]Content-Type: application/json [13:35:51] [13:35:51]POST finish read [13:35:51]Found Content-Length = 677 [13:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:51]execute_script... [13:35: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)211215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:35:51]POST & json_proto [13:35:51]process_json_proto [13:35:51]json parsed OK: [13:35:51]protocol is kg_v1.0 [13:35:51]action value=close_receipt [13:35:51]process_action close_receipt [13:35:51]cmd_close_receipt [13:35:51]MH_GetDate [13:35:51]Write to MH i2c: F0 00 00 20 44 53 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 09 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: F0 09 00 20 44 00 3B 4D 1A 67 A0 18 CA 66 4D [13:35:51]GetLastDocTimeStamp 1729776920 [13:35:51]current date 1729776955 [13:35:51]FM_GetShiftState [13:35:51]SAM_PROTO_GetShiftState [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 13 01 00 [13:35:51]Write to MH i2c: E2 08 00 21 44 80 13 01 00 00 00 00 00 E2 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0E 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0E 00 21 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C0 [13:35:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:35:51]wFMCommunicate OK [13:35:51]SAM_PROTO_GetShiftState done [13:35:51]FM_GetShiftState done [13:35:51]opened in 1729728961 [13:35:51]opened+sec_in_day 1729815361 [13:35:51]quantity*price = 50041 [13:35:51]sum+1 = 50042 [13:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 225 24.10.2024 13:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189152 ФПД: 226112222302152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133555&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189152&fm=226112222302152&tin=02508201610067®Number=0000000000100030&sum=50000 [13:35:52]StoreToDocumentArchive [13:35:52]shift 463 fd 189152 [13:35:52]save to /storage/0463/doc_00189152 [13:35:52]save last doc name /storage/0463/doc_00189152 to /storage/kkm_last_doc_name [13:35:52]save OK [13:35:52]Clear old archive folders... [13:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:52]tlvbuf is B6DE8800 [13:35:52]SAM_PROTO_ClearQueue [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 09 00 00 [13:35:52]Write to MH i2c: E2 08 00 2E 44 80 09 00 00 00 00 00 00 E4 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 2E 44 00 90 00 E6 [13:35:53]RAPDU: 90 00 [13:35:53]wFMCommunicate OK [13:35:53]SAM_PROTO_ClearQueue done [13:35:53]KKMCreateOFDPacket [13:35:53]OFDProtocolAddRootSTLVToBuf [13:35:53]FM_MakeSignedData [13:35:53]FM_MakeSignedData [13:35:53]SAM_PROTO_SignData [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 0D 01 02 [13:35:53]Write to MH i2c: E2 08 00 2F 44 80 0D 01 02 00 00 00 00 EC [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 2F 44 00 90 00 E7 [13:35:53]RAPDU: 90 00 [13:35:53]wFMCommunicate OK [13:35:53]wFMCommunicate request_size=255 [13:35:53]MH_SAM_APDU [13:35: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3B 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E2 02 00 35 04 06 00 CD [13:35:53]Write to MH i2c: E2 02 01 30 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3B 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E2 02 00 35 04 06 00 CD 00 00 AA [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 30 44 00 90 00 E8 [13:35:53]RAPDU: 90 00 [13:35:53]wFMCommunicate OK [13:35:53]wFMCommunicate request_size=10 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 0D 02 02 05 A5 DA B0 8F C8 [13:35:53]Write to MH i2c: E2 0D 00 31 44 80 0D 02 02 05 00 A5 DA B0 8F C8 00 00 7F [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 03 00 31 44 00 90 00 E9 [13:35:53]RAPDU: 90 00 [13:35:53]wFMCommunicate OK [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 0D 03 02 [13:35:53]Write to MH i2c: E2 08 00 32 44 80 0D 03 02 00 00 00 00 F1 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 0B 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 0B 00 32 44 00 C9 15 29 22 BB AF 3E DC 90 00 9F [13:35:53]RAPDU: C9 15 29 22 BB AF 3E DC 90 00 [13:35:53]wFMCommunicate OK [13:35:53]SAM_PROTO_SignData done [13:35:53]FM_MakeSignedData done [13:35:53]CreateOFDProtocolMessage [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 11 00 00 [13:35:53]Write to MH i2c: E2 08 00 33 44 80 11 00 00 00 00 00 00 F1 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 17 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 17 00 33 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [13:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:35:53]wFMCommunicate OK [13:35:53]CreateOFDProtocolMessage done [13:35:53]OFDSenderStorePacket 189152 [13:35:53]StoreOFDPacket docnum=189152 [13:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A7 EB 07 01 17 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3B 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E2 02 00 35 04 06 00 CD A5 DA B0 8F C8 C9 15 29 22 BB AF 3E DC [13:35:53]CheckFolder [13:35:53]dirname=/storage/ofd_packets [13:35:53]CheckFolder done [13:35:53]ProducePacketName [13:35:53]name=ofd_packets/00189152 [13:35:53]NVStorageSaveData ofd_packets/00189152 [13:35:53]File name is /storage/ofd_packets/00189152 [13:35:53]Write 301 bytes [13:35:53]NVStorageSaveData done [13:35:53]OFDSenderStorePacket done [13:35:53]KKMCreateOFDPacket done [13:35:53]NVStorageSaveData kkm_last_timestamp [13:35:53]File name is /storage/kkm_last_timestamp [13:35:53]Write 4 bytes [13:35:53]NVStorageSaveData done [13:35:53]ExternCall_PrintAddStr [13:35:53]wPrintStart [13:35:53]Write to MH i2c: 01 00 00 34 44 78 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 34 44 00 00 00 00 00 FF 0F 8D [13:35:53]RasterBufferAndPrint [13:35:53]line Счет N : (1)211215 [13:35:53]line ИНН: 02508201610067 [13:35:53]line Контрольно-Кассовый Чек [13:35:53]line ПРОДАЖА [13:35:53]line ТРК (МРК, ГНК) : 42 [13:35:53]line Товар: 2710124130 [13:35:53]line Аи-92-К-3 [13:35:53]line 7.480 * 66.90 [13:35:53]line = 500.41 [13:35:53]line НДС 12% НСП 1% [13:35:53]line > о реализуемом товаре [13:35:53]line ОКРУГЛЕНИЕ: -0.41 [13:35:53]line ИТОГО: 500.00 [13:35:53]line Внесено: 500.00 [13:35:53]line СДАЧА: 0.00 [13:35:53]line НСП 1% : 4.43 [13:35:53]line НДС 12% : 53.14 [13:35:53]line Наличными: 500.00 [13:35:53]line Безнал.: 0.00 [13:35:53]line Место: АЗС № 86 "Партнер Нефть" [13:35:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:35:53]line СНО: Общий режим [13:35:53]line Чек 225 24.10.2024 13:35 [13:35:53]line Смена: 463 ФФД: 1.0 [13:35:53]line ЗНМ: 0300000155 [13:35:53]line РНМ: 0000000000100030 [13:35:53]line Версия ККМ: 001 [13:35:53]line ФМ: 0000000000965340 [13:35:53]line ФД: 189152 [13:35:53]line ФПД: 226112222302152 [13:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133555&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189152&fm=226112222302152&tin=02508201610067®Number=0000000000100030&sum=50000 [13:35:53]written 0, free lines is 4095 [13:35:53]OFD Sender: Processing packet 189152 [packets to send 1062, broken 1061] [13:35:53]ProducePacketName [13:35:53]name=ofd_packets/00189152 [13:35:53]OFD Sender: To server: pG, [13:35:53]CommunicateWithHost lk.salyk.kg:30040 [13:35:53]ConnectInit lk.salyk.kg [13:35:53]Connected sock=7 [13:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A7 EB 07 01 17 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3B 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 E2 02 00 35 04 06 00 CD A5 DA B0 8F C8 C9 15 29 22 BB AF 3E DC [13:35:53]Write to MH i2c: 01 00 00 5F 44 A3 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 5F 44 00 00 00 00 00 55 0C 0B [13:35:53]RasterBufferAndPrint [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]written 0, free lines is 3160 [13:35:54]MH_Cut [13:35:54]Write to MH i2c: D1 01 00 66 44 01 7C [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: D1 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: D1 01 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: D1 01 00 66 44 00 7B [13:35:54]Write to MH i2c: 01 00 00 67 44 AB [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 10 47 00 5E 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 39 36 35 33 34 30 10 04 04 00 E0 E2 02 00 F4 03 04 00 23 F7 19 67 B6 04 01 00 00 8E A3 00 14 08 4F BE FE [13:35:54]CommunicateWithHost err = 0 [13:35:54]CheckOFDResponse [13:35:54]1017 (14) - 77093643461234 [13:35:54]1041 (16) - 0000000000965340 [13:35:54]1040 (4) - 189152 [13:35:54]1012 (4) - 24.10.2024 07:28 [13:35:54]1206 (1) - 0 [13:35:54]OFD Sender: Remove packet 189152 [13:35:54]ProducePacketName [13:35:54]name=ofd_packets/00189152 [13:35:54]NVStorageDeleteData [13:35:54]OFD Sender: No OFD packet to send [13:35:55]*** Cut start [13:35:55]*** Partial cut [13:35:55]*** CUTSNS_PIN = 1 [13:35:55]*** CUTSNS_PIN = 0 [13:35:55]*** Brake cut motor [13:35:55]Read from MH i2c: 01 [13:35:55]MH_I2C_Read... [13:35:55]*** Stop cut motor [13:35:55]*** Cut end [13:35:55]Read from MH i2c: 01 07 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 67 44 00 00 00 00 00 FF 0F C0 [13:35:55]process_action close_receipt done [13:35:55]requested_data is exist [13:35:55]produce_requested_data [13:35:55]requested_item fm.sn is exist - process it [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 11 00 00 [13:35:55]Write to MH i2c: E2 08 00 68 44 80 11 00 00 00 00 00 00 26 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 68 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [13:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:35:55]wFMCommunicate OK [13:35:55]requested_item fd.num is exist - process it [13:35:55]SAM_PROTO_GetFieldsCounters [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 13 00 00 [13:35:55]Write to MH i2c: E2 08 00 69 44 80 13 00 00 00 00 00 00 29 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 62 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 62 00 69 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E2 02 00 0E 04 04 00 CF 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 67 [13:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 E2 02 00 0E 04 04 00 CF 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 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_GetFieldsCounters done [13:35:56]requested_item shift.num is exist - process it [13:35:56]requested_item shift.opened is exist - process it [13:35:56]req_shift_opened [13:35:56]FM_GetShiftState [13:35:56]SAM_PROTO_GetShiftState [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 13 01 00 [13:35:56]Write to MH i2c: E2 08 00 6A 44 80 13 01 00 00 00 00 00 2B [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0E 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 0E 00 6A 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 09 [13:35:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_GetShiftState done [13:35:56]FM_GetShiftState done [13:35:56]req_shift_opened done [13:35:56]requested_item shift.open_date is exist - process it [13:35:56]req_shift_open_date [13:35:56]req_shift_open_date done [13:35:56]produce_requested_data done [13:35:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189152,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:35:56]process_action_free close_receipt [13:35:56]json_value_free [13:35:56]json_value_free done [13:35:56]process_json_proto returns [13:35:56]Send response to host [13:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189152,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:35:56]free response buf [13:35:56]execute_script done [13:35:56]execute_script returns [13:35:56]free content buf [13:35:56]Sock 9.Close socket [13:35:56]Sock 9.Thread stoped [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:15]accept exits with 8 [13:36:15]New connection [13:36:15]New thread 3067215204 created [13:36:15]Thread 3067071844 joined [13:36:15]Waiting for new connection... [13:36:15] Sock 8.Parse request [13:36:15]Sock 8.Check first char [13:36:15]Sock 8.First char is OK [13:36:15]request: POST /json_proto HTTP/1.0 [13:36:15]Method: POST [13:36:15]URL: /json_proto [13:36:15]Method is POST - this is cgi request [13:36:15]url: /json_proto [13:36:15]query_string will be loaded in cgi processing [13:36:15]execute_cgi json_proto POST (null) [13:36:15]execute_cgi path=json_proto method=POST [13:36:15]POST find Content-Length [13:36:15]Host: 172.17.42.131:8080 [13:36:15]Content-Length: 677 [13:36:15]Content-Type: application/json [13:36:15] [13:36:15]POST finish read [13:36:15]Found Content-Length = 677 [13:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:36:15]execute_script... [13:36: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)211216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:36:15]POST & json_proto [13:36:15]process_json_proto [13:36:15]json parsed OK: [13:36:15]protocol is kg_v1.0 [13:36:15]action value=close_receipt [13:36:15]process_action close_receipt [13:36:15]cmd_close_receipt [13:36:15]MH_GetDate [13:36:15]Write to MH i2c: F0 00 00 6B 44 9E [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: F0 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: F0 09 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: F0 09 00 6B 44 00 52 4D 1A 67 A0 18 CA 66 AF [13:36:15]GetLastDocTimeStamp 1729776955 [13:36:15]current date 1729776978 [13:36:15]FM_GetShiftState [13:36:15]SAM_PROTO_GetShiftState [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 13 01 00 [13:36:15]Write to MH i2c: E2 08 00 6C 44 80 13 01 00 00 00 00 00 2D [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0E 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0E 00 6C 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0B [13:36:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:36:15]wFMCommunicate OK [13:36:15]SAM_PROTO_GetShiftState done [13:36:15]FM_GetShiftState done [13:36:15]opened in 1729728961 [13:36:15]opened+sec_in_day 1729815361 [13:36:15]quantity*price = 50041 [13:36:15]sum+1 = 50042 [13:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 226 24.10.2024 13:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189153 ФПД: 204645815319960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133618&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189153&fm=204645815319960&tin=02508201610067®Number=0000000000100030&sum=50000 [13:36:16]StoreToDocumentArchive [13:36:16]shift 463 fd 189153 [13:36:16]save to /storage/0463/doc_00189153 [13:36:16]save last doc name /storage/0463/doc_00189153 to /storage/kkm_last_doc_name [13:36:16]save OK [13:36:16]Clear old archive folders... [13:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:16]tlvbuf is 014AFB00 [13:36:16]SAM_PROTO_ClearQueue [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 09 00 00 [13:36:16]Write to MH i2c: E2 08 00 79 44 80 09 00 00 00 00 00 00 2F [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 79 44 00 90 00 31 [13:36:16]RAPDU: 90 00 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_ClearQueue done [13:36:16]KKMCreateOFDPacket [13:36:16]OFDProtocolAddRootSTLVToBuf [13:36:16]FM_MakeSignedData [13:36:16]FM_MakeSignedData [13:36:16]SAM_PROTO_SignData [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 0D 01 02 [13:36:16]Write to MH i2c: E2 08 00 7A 44 80 0D 01 02 00 00 00 00 37 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 7A 44 00 90 00 32 [13:36:16]RAPDU: 90 00 [13:36:16]wFMCommunicate OK [13:36:16]wFMCommunicate request_size=255 [13:36:16]MH_SAM_APDU [13:36: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 52 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E2 02 00 35 04 06 00 BA [13:36:16]Write to MH i2c: E2 02 01 7B 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 52 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E2 02 00 35 04 06 00 BA 00 00 FB [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [13:36:16]RAPDU: 90 00 [13:36:16]wFMCommunicate OK [13:36:16]wFMCommunicate request_size=10 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 0D 02 02 05 1F D1 20 7D 98 [13:36:16]Write to MH i2c: E2 0D 00 7C 44 80 0D 02 02 05 00 1F D1 20 7D 98 00 00 69 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 03 00 7C 44 00 90 00 34 [13:36:16]RAPDU: 90 00 [13:36:16]wFMCommunicate OK [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 0D 03 02 [13:36:16]Write to MH i2c: E2 08 00 7D 44 80 0D 03 02 00 00 00 00 3C [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0B 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0B 00 7D 44 00 70 C5 5B 34 C5 3B CE AB 90 00 7A [13:36:16]RAPDU: 70 C5 5B 34 C5 3B CE AB 90 00 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_SignData done [13:36:16]FM_MakeSignedData done [13:36:16]CreateOFDProtocolMessage [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 11 00 00 [13:36:16]Write to MH i2c: E2 08 00 7E 44 80 11 00 00 00 00 00 00 3C [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 7E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [13:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:36:16]wFMCommunicate OK [13:36:16]CreateOFDProtocolMessage done [13:36:16]OFDSenderStorePacket 189153 [13:36:16]StoreOFDPacket docnum=189153 [13:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 8B 07 01 30 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 52 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E2 02 00 35 04 06 00 BA 1F D1 20 7D 98 70 C5 5B 34 C5 3B CE AB [13:36:16]CheckFolder [13:36:16]dirname=/storage/ofd_packets [13:36:16]CheckFolder done [13:36:16]ProducePacketName [13:36:16]name=ofd_packets/00189153 [13:36:16]NVStorageSaveData ofd_packets/00189153 [13:36:16]File name is /storage/ofd_packets/00189153 [13:36:16]Write 301 bytes [13:36:16]NVStorageSaveData done [13:36:16]OFDSenderStorePacket done [13:36:16]KKMCreateOFDPacket done [13:36:16]NVStorageSaveData kkm_last_timestamp [13:36:16]File name is /storage/kkm_last_timestamp [13:36:16]Write 4 bytes [13:36:16]NVStorageSaveData done [13:36:16]ExternCall_PrintAddStr [13:36:16]wPrintStart [13:36:16]Write to MH i2c: 01 00 00 7F 44 C3 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 07 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 07 00 7F 44 00 00 00 00 00 FF 0F D8 [13:36:16]RasterBufferAndPrint [13:36:16]line Счет N : (1)211216 [13:36:16]line ИНН: 02508201610067 [13:36:16]line Контрольно-Кассовый Чек [13:36:16]line ПРОДАЖА [13:36:16]line ТРК (МРК, ГНК) : 22 [13:36:16]line Товар: 2710124130 [13:36:16]line Аи-92-К-3 [13:36:16]line 7.480 * 66.90 [13:36:16]line = 500.41 [13:36:16]line НДС 12% НСП 1% [13:36:16]line > о реализуемом товаре [13:36:16]line ОКРУГЛЕНИЕ: -0.41 [13:36:16]line ИТОГО: 500.00 [13:36:16]line Внесено: 500.00 [13:36:16]line СДАЧА: 0.00 [13:36:16]line НСП 1% : 4.43 [13:36:16]line НДС 12% : 53.14 [13:36:16]line Наличными: 500.00 [13:36:16]line Безнал.: 0.00 [13:36:16]line Место: АЗС № 86 "Партнер Нефть" [13:36:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:36:16]line СНО: Общий режим [13:36:16]line Чек 226 24.10.2024 13:36 [13:36:16]line Смена: 463 ФФД: 1.0 [13:36:16]line ЗНМ: 0300000155 [13:36:16]line РНМ: 0000000000100030 [13:36:16]line Версия ККМ: 001 [13:36:16]line ФМ: 0000000000965340 [13:36:17]line ФД: 189153 [13:36:17]line ФПД: 204645815319960 [13:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133618&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189153&fm=204645815319960&tin=02508201610067®Number=0000000000100030&sum=50000 [13:36:17]OFD Sender: Processing packet 189153 [packets to send 1062, broken 1061] [13:36:17]ProducePacketName [13:36:17]name=ofd_packets/00189153 [13:36:17]OFD Sender: To server: pG, [13:36:17]CommunicateWithHost lk.salyk.kg:30040 [13:36:17]ConnectInit lk.salyk.kg [13:36:17]written 0, free lines is 4095 [13:36:17]Connected sock=10 [13:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 8B 07 01 30 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 52 4D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 E2 02 00 35 04 06 00 BA 1F D1 20 7D 98 70 C5 5B 34 C5 3B CE AB [13:36:17]Write to MH i2c: 01 00 00 AA 44 EE [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: 01 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: 01 07 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: 01 07 00 AA 44 00 00 00 00 00 57 0C 58 [13:36:17]RasterBufferAndPrint [13:36:17]line [13:36:17]line [13:36:17]line [13:36:17]line [13:36:17]line [13:36:17]written 0, free lines is 3162 [13:36:17]MH_Cut [13:36:17]Write to MH i2c: D1 01 00 B1 44 01 C7 [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: D1 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: D1 01 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: D1 01 00 B1 44 00 C6 [13:36:17]Write to MH i2c: 01 00 00 B2 44 F6 [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EA FF 47 00 15 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 39 36 35 33 34 30 10 04 04 00 E1 E2 02 00 F4 03 04 00 3A F7 19 67 B6 04 01 00 00 D6 1D AE FB A6 CF B1 81 [13:36:17]CommunicateWithHost err = 0 [13:36:17]CheckOFDResponse [13:36:17]1017 (14) - 77093643461234 [13:36:17]1041 (16) - 0000000000965340 [13:36:17]1040 (4) - 189153 [13:36:17]1012 (4) - 24.10.2024 07:28 [13:36:17]1206 (1) - 0 [13:36:17]OFD Sender: Remove packet 189153 [13:36:17]ProducePacketName [13:36:17]name=ofd_packets/00189153 [13:36:17]NVStorageDeleteData [13:36:18]OFD Sender: No OFD packet to send [13:36:18]*** Cut start [13:36:18]*** Partial cut [13:36:18]*** CUTSNS_PIN = 1 [13:36:18]*** CUTSNS_PIN = 0 [13:36:19]*** Brake cut motor [13:36:19]Read from MH i2c: 01 [13:36:19]MH_I2C_Read... [13:36:19]*** Stop cut motor [13:36:19]*** Cut end [13:36:19]Read from MH i2c: 01 07 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: 01 07 00 B2 44 00 00 00 00 00 FF 0F 0B [13:36:19]process_action close_receipt done [13:36:19]requested_data is exist [13:36:19]produce_requested_data [13:36:19]requested_item fm.sn is exist - process it [13:36:19]wFMCommunicate request_size=4 [13:36:19]MH_SAM_APDU [13:36:19]CAPDU: 80 11 00 00 [13:36:19]Write to MH i2c: E2 08 00 B3 44 80 11 00 00 00 00 00 00 71 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:19]Read from MH i2c: E2 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 17 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 17 00 B3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [13:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:36:19]wFMCommunicate OK [13:36:19]requested_item fd.num is exist - process it [13:36:19]SAM_PROTO_GetFieldsCounters [13:36:19]wFMCommunicate request_size=4 [13:36:19]MH_SAM_APDU [13:36:19]CAPDU: 80 13 00 00 [13:36:19]Write to MH i2c: E2 08 00 B4 44 80 13 00 00 00 00 00 00 74 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:19]Read from MH i2c: E2 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 62 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 62 00 B4 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E2 02 00 0E 04 04 00 CF 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 B6 [13:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 E2 02 00 0E 04 04 00 CF 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 [13:36:19]wFMCommunicate OK [13:36:19]SAM_PROTO_GetFieldsCounters done [13:36:19]requested_item shift.num is exist - process it [13:36:19]requested_item shift.opened is exist - process it [13:36:19]req_shift_opened [13:36:19]FM_GetShiftState [13:36:19]SAM_PROTO_GetShiftState [13:36:19]wFMCommunicate request_size=4 [13:36:19]MH_SAM_APDU [13:36:19]CAPDU: 80 13 01 00 [13:36:19]Write to MH i2c: E2 08 00 B5 44 80 13 01 00 00 00 00 00 76 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:19]Read from MH i2c: E2 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 0E 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 0E 00 B5 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 54 [13:36:19]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:36:19]wFMCommunicate OK [13:36:19]SAM_PROTO_GetShiftState done [13:36:19]FM_GetShiftState done [13:36:19]req_shift_opened done [13:36:19]requested_item shift.open_date is exist - process it [13:36:19]req_shift_open_date [13:36:19]req_shift_open_date done [13:36:19]produce_requested_data done [13:36:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189153,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:36:19]process_action_free close_receipt [13:36:19]json_value_free [13:36:19]json_value_free done [13:36:19]process_json_proto returns [13:36:19]Send response to host [13:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189153,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:36:19]free response buf [13:36:19]execute_script done [13:36:19]execute_script returns [13:36:19]free content buf [13:36:19]Sock 8.Close socket [13:36:19]Sock 8.Thread stoped [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:12]accept exits with 9 [13:39:12]New connection [13:39:12]New thread 3067071844 created [13:39:12]Thread 3067215204 joined [13:39:12]Waiting for new connection... [13:39:12] Sock 9.Parse request [13:39:12]Sock 9.Check first char [13:39:12]Sock 9.First char is OK [13:39:12]request: POST /json_proto HTTP/1.0 [13:39:12]Method: POST [13:39:12]URL: /json_proto [13:39:12]Method is POST - this is cgi request [13:39:12]url: /json_proto [13:39:12]query_string will be loaded in cgi processing [13:39:12]execute_cgi json_proto POST (null) [13:39:12]execute_cgi path=json_proto method=POST [13:39:12]POST find Content-Length [13:39:12]Host: 172.17.42.131:8080 [13:39:12]Content-Length: 688 [13:39:12]Content-Type: application/json [13:39:12] [13:39:12]POST finish read [13:39:12]Found Content-Length = 688 [13:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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:39:12]execute_script... [13:39: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)211217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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:39:12]POST & json_proto [13:39:12]process_json_proto [13:39:12]json parsed OK: [13:39:12]protocol is kg_v1.0 [13:39:12]action value=close_receipt [13:39:12]process_action close_receipt [13:39:12]cmd_close_receipt [13:39:12]MH_GetDate [13:39:12]Write to MH i2c: F0 00 00 B6 44 E9 [13:39:12]Write i2c OK [13:39:12]MH_I2C_Read... [13:39:12]Read from MH i2c: F0 [13:39:12]MH_I2C_Read... [13:39:12]Read from MH i2c: F0 09 00 [13:39:12]MH_I2C_Read... [13:39:12]Read from MH i2c: F0 09 00 B6 44 00 03 4E 1A 67 A0 18 CA 66 AC [13:39:12]GetLastDocTimeStamp 1729776978 [13:39:12]current date 1729777155 [13:39:12]FM_GetShiftState [13:39:12]SAM_PROTO_GetShiftState [13:39:12]wFMCommunicate request_size=4 [13:39:12]MH_SAM_APDU [13:39:12]CAPDU: 80 13 01 00 [13:39:12]Write to MH i2c: E2 08 00 B7 44 80 13 01 00 00 00 00 00 78 [13:39:12]Write i2c OK [13:39:12]MH_I2C_Read... [13:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:12]Read from MH i2c: E2 [13:39:12]MH_I2C_Read... [13:39:12]Read from MH i2c: E2 0E 00 [13:39:12]MH_I2C_Read... [13:39:12]Read from MH i2c: E2 0E 00 B7 44 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 56 [13:39:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:39:12]wFMCommunicate OK [13:39:12]SAM_PROTO_GetShiftState done [13:39:12]FM_GetShiftState done [13:39:12]opened in 1729728961 [13:39:12]opened+sec_in_day 1729815361 [13:39:12]quantity*price = 300076 [13:39:12]sum+1 = 300077 [13:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 227 24.10.2024 13:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189154 ФПД: 253155513336589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189154&fm=253155513336589&tin=02508201610067®Number=0000000000100030&sum=300000 [13:39:13]StoreToDocumentArchive [13:39:13]shift 463 fd 189154 [13:39:13]save to /storage/0463/doc_00189154 [13:39:13]save last doc name /storage/0463/doc_00189154 to /storage/kkm_last_doc_name [13:39:13]save OK [13:39:13]Clear old archive folders... [13:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:39:13]tlvbuf is 0155E620 [13:39:13]SAM_PROTO_ClearQueue [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 09 00 00 [13:39:13]Write to MH i2c: E2 08 00 C4 44 80 09 00 00 00 00 00 00 7A [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 C4 44 00 90 00 7C [13:39:13]RAPDU: 90 00 [13:39:13]wFMCommunicate OK [13:39:13]SAM_PROTO_ClearQueue done [13:39:13]KKMCreateOFDPacket [13:39:13]OFDProtocolAddRootSTLVToBuf [13:39:13]FM_MakeSignedData [13:39:13]FM_MakeSignedData [13:39:13]SAM_PROTO_SignData [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 0D 01 02 [13:39:13]Write to MH i2c: E2 08 00 C5 44 80 0D 01 02 00 00 00 00 82 [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 C5 44 00 90 00 7D [13:39:13]RAPDU: 90 00 [13:39:13]wFMCommunicate OK [13:39:13]wFMCommunicate request_size=255 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 E3 00 00 00 F4 03 04 00 03 4E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E2 02 [13:39:13]Write to MH i2c: E2 02 01 C6 44 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 E3 00 00 00 F4 03 04 00 03 4E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E2 02 00 00 0C [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 C6 44 00 90 00 7E [13:39:13]RAPDU: 90 00 [13:39:13]wFMCommunicate OK [13:39:13]wFMCommunicate request_size=16 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 3E 5C 72 03 0D [13:39:13]Write to MH i2c: E2 13 00 C7 44 80 0D 02 02 0B 00 00 35 04 06 00 E6 3E 5C 72 03 0D 00 00 DC [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 03 00 C7 44 00 90 00 7F [13:39:13]RAPDU: 90 00 [13:39:13]wFMCommunicate OK [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 0D 03 02 [13:39:13]Write to MH i2c: E2 08 00 C8 44 80 0D 03 02 00 00 00 00 87 [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 0B 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 0B 00 C8 44 00 68 40 FC 9E FE 96 F8 02 90 00 58 [13:39:13]RAPDU: 68 40 FC 9E FE 96 F8 02 90 00 [13:39:13]wFMCommunicate OK [13:39:13]SAM_PROTO_SignData done [13:39:13]FM_MakeSignedData done [13:39:13]CreateOFDProtocolMessage [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 11 00 00 [13:39:13]Write to MH i2c: E2 08 00 C9 44 80 11 00 00 00 00 00 00 87 [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]OFD Sender: No OFD packet to send [13:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:14]Read from MH i2c: E2 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 17 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 17 00 C9 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [13:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:14]wFMCommunicate OK [13:39:14]CreateOFDProtocolMessage done [13:39:14]OFDSenderStorePacket 189154 [13:39:14]StoreOFDPacket docnum=189154 [13:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9F 77 0D 01 9E 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 E3 00 00 00 F4 03 04 00 03 4E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E2 02 00 35 04 06 00 E6 3E 5C 72 03 0D 68 40 FC 9E FE 96 F8 02 [13:39:14]CheckFolder [13:39:14]dirname=/storage/ofd_packets [13:39:14]CheckFolder done [13:39:14]ProducePacketName [13:39:14]name=ofd_packets/00189154 [13:39:14]NVStorageSaveData ofd_packets/00189154 [13:39:14]File name is /storage/ofd_packets/00189154 [13:39:14]Write 307 bytes [13:39:14]NVStorageSaveData done [13:39:14]OFDSenderStorePacket done [13:39:14]KKMCreateOFDPacket done [13:39:14]NVStorageSaveData kkm_last_timestamp [13:39:14]File name is /storage/kkm_last_timestamp [13:39:14]Write 4 bytes [13:39:14]NVStorageSaveData done [13:39:14]ExternCall_PrintAddStr [13:39:14]wPrintStart [13:39:14]Write to MH i2c: 01 00 00 CA 44 0E [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 07 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 07 00 CA 44 00 00 00 00 00 FF 0F 23 [13:39:14]RasterBufferAndPrint [13:39:14]line Счет N : (1)211217 [13:39:14]line ИНН: 02508201610067 [13:39:14]line Контрольно-Кассовый Чек [13:39:14]line ПРОДАЖА [13:39:14]line ТРК (МРК, ГНК) : 11 [13:39:14]line Товар: 2710194210 [13:39:14]line D-ENERGY ДТ-К-5 [13:39:14]line 38.870 * 77.20 [13:39:14]line = 3000.76 [13:39:14]line НДС 12% НСП 1% [13:39:14]line > о реализуемом товаре [13:39:14]line ОКРУГЛЕНИЕ: -0.76 [13:39:14]line ИТОГО: 3000.00 [13:39:14]line Внесено: 3000.00 [13:39:14]line СДАЧА: 0.00 [13:39:14]line НСП 1% : 26.55 [13:39:14]line НДС 12% : 318.66 [13:39:14]line Наличными: 3000.00 [13:39:14]line Безнал.: 0.00 [13:39:14]line Место: АЗС № 86 "Партнер Нефть" [13:39:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:39:14]line СНО: Общий режим [13:39:14]line Чек 227 24.10.2024 13:39 [13:39:14]line Смена: 463 ФФД: 1.0 [13:39:14]line ЗНМ: 0300000155 [13:39:14]line РНМ: 0000000000100030 [13:39:14]line Версия ККМ: 001 [13:39:14]line ФМ: 0000000000965340 [13:39:14]line ФД: 189154 [13:39:14]line ФПД: 253155513336589 [13:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189154&fm=253155513336589&tin=02508201610067®Number=0000000000100030&sum=300000 [13:39:14]written 0, free lines is 4095 [13:39:14]OFD Sender: Processing packet 189154 [packets to send 1062, broken 1061] [13:39:14]ProducePacketName [13:39:14]name=ofd_packets/00189154 [13:39:14]OFD Sender: To server: pG, [13:39:14]CommunicateWithHost lk.salyk.kg:30040 [13:39:14]ConnectInit lk.salyk.kg [13:39:14]Connected sock=10 [13:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9F 77 0D 01 9E 60 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 E3 00 00 00 F4 03 04 00 03 4E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E2 02 00 35 04 06 00 E6 3E 5C 72 03 0D 68 40 FC 9E FE 96 F8 02 [13:39:14]Write to MH i2c: 01 00 00 F5 44 39 [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 07 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: 01 07 00 F5 44 00 00 00 00 00 54 0C A0 [13:39:14]RasterBufferAndPrint [13:39:14]line [13:39:14]line [13:39:14]line [13:39:14]line [13:39:14]line [13:39:14]written 0, free lines is 3160 [13:39:14]MH_Cut [13:39:14]Write to MH i2c: D1 01 00 FC 44 01 12 [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: D1 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: D1 01 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: D1 01 00 FC 44 00 11 [13:39:14]Write to MH i2c: 01 00 00 FD 44 41 [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 2E 47 00 CF 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 E2 02 00 F4 03 04 00 EB F7 19 67 B6 04 01 00 00 B7 04 39 71 C2 CA CC FE [13:39:14]CommunicateWithHost err = 0 [13:39:14]CheckOFDResponse [13:39:14]1017 (14) - 77093643461234 [13:39:14]1041 (16) - 0000000000965340 [13:39:14]1040 (4) - 189154 [13:39:14]1012 (4) - 24.10.2024 07:31 [13:39:14]1206 (1) - 0 [13:39:14]OFD Sender: Remove packet 189154 [13:39:14]ProducePacketName [13:39:14]name=ofd_packets/00189154 [13:39:14]NVStorageDeleteData [13:39:15]OFD Sender: No OFD packet to send [13:39:15]*** Cut start [13:39:15]*** Partial cut [13:39:15]*** CUTSNS_PIN = 1 [13:39:15]*** CUTSNS_PIN = 0 [13:39:16]*** Brake cut motor [13:39:16]Read from MH i2c: 01 [13:39:16]MH_I2C_Read... [13:39:16]*** Stop cut motor [13:39:16]*** Cut end [13:39:16]Read from MH i2c: 01 07 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: 01 07 00 FD 44 00 00 00 00 00 FF 0F 56 [13:39:16]process_action close_receipt done [13:39:16]requested_data is exist [13:39:16]produce_requested_data [13:39:16]requested_item fm.sn is exist - process it [13:39:16]wFMCommunicate request_size=4 [13:39:16]MH_SAM_APDU [13:39:16]CAPDU: 80 11 00 00 [13:39:16]Write to MH i2c: E2 08 00 FE 44 80 11 00 00 00 00 00 00 BC [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 17 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 17 00 FE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [13:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:16]wFMCommunicate OK [13:39:16]requested_item fd.num is exist - process it [13:39:16]SAM_PROTO_GetFieldsCounters [13:39:16]wFMCommunicate request_size=4 [13:39:16]MH_SAM_APDU [13:39:16]CAPDU: 80 13 00 00 [13:39:16]Write to MH i2c: E2 08 00 FF 44 80 13 00 00 00 00 00 00 BF [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 62 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 62 00 FF 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E2 02 00 0E 04 04 00 CF 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 05 [13:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 E2 02 00 0E 04 04 00 CF 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 [13:39:16]wFMCommunicate OK [13:39:16]SAM_PROTO_GetFieldsCounters done [13:39:16]requested_item shift.num is exist - process it [13:39:16]requested_item shift.opened is exist - process it [13:39:16]req_shift_opened [13:39:16]FM_GetShiftState [13:39:16]SAM_PROTO_GetShiftState [13:39:16]wFMCommunicate request_size=4 [13:39:16]MH_SAM_APDU [13:39:16]CAPDU: 80 13 01 00 [13:39:16]Write to MH i2c: E2 08 00 00 45 80 13 01 00 00 00 00 00 C2 [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 0E 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 0E 00 00 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A0 [13:39:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:39:16]wFMCommunicate OK [13:39:16]SAM_PROTO_GetShiftState done [13:39:16]FM_GetShiftState done [13:39:16]req_shift_opened done [13:39:16]requested_item shift.open_date is exist - process it [13:39:16]req_shift_open_date [13:39:16]req_shift_open_date done [13:39:16]produce_requested_data done [13:39:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189154,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:39:16]process_action_free close_receipt [13:39:16]json_value_free [13:39:16]json_value_free done [13:39:16]process_json_proto returns [13:39:16]Send response to host [13:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189154,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:39:16]free response buf [13:39:16]execute_script done [13:39:16]execute_script returns [13:39:16]free content buf [13:39:16]Sock 9.Close socket [13:39:16]Sock 9.Thread stoped [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:42]accept exits with 8 [13:44:42]New connection [13:44:42]New thread 3067215204 created [13:44:42]Thread 3067071844 joined [13:44:42]Waiting for new connection... [13:44:42] Sock 8.Parse request [13:44:42]Sock 8.Check first char [13:44:42]Sock 8.First char is OK [13:44:42]request: POST /json_proto HTTP/1.0 [13:44:42]Method: POST [13:44:42]URL: /json_proto [13:44:42]Method is POST - this is cgi request [13:44:42]url: /json_proto [13:44:42]query_string will be loaded in cgi processing [13:44:42]execute_cgi json_proto POST (null) [13:44:42]execute_cgi path=json_proto method=POST [13:44:42]POST find Content-Length [13:44:42]Host: 172.17.42.131:8080 [13:44:42]Content-Length: 682 [13:44:42]Content-Type: application/json [13:44:42] [13:44:42]POST finish read [13:44:42]Found Content-Length = 682 [13:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:42]execute_script... [13:44: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)211218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:42]POST & json_proto [13:44:42]process_json_proto [13:44:42]json parsed OK: [13:44:42]protocol is kg_v1.0 [13:44:42]action value=close_receipt [13:44:42]process_action close_receipt [13:44:42]cmd_close_receipt [13:44:42]MH_GetDate [13:44:42]Write to MH i2c: F0 00 00 01 45 35 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 01 45 00 4D 4F 1A 67 A0 18 CA 66 43 [13:44:42]GetLastDocTimeStamp 1729777155 [13:44:42]current date 1729777485 [13:44:42]FM_GetShiftState [13:44:42]SAM_PROTO_GetShiftState [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 01 00 [13:44:42]Write to MH i2c: E2 08 00 02 45 80 13 01 00 00 00 00 00 C4 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 02 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A2 [13:44:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:44:42]wFMCommunicate OK [13:44:42]SAM_PROTO_GetShiftState done [13:44:42]FM_GetShiftState done [13:44:42]opened in 1729728961 [13:44:42]opened+sec_in_day 1729815361 [13:44:42]quantity*price = 100015 [13:44:42]sum+1 = 100017 [13:44:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 228 24.10.2024 13:44 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189155 ФПД: 15304041897518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134445&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189155&fm=15304041897518&tin=02508201610067®Number=0000000000100030&sum=100000 [13:44:43]StoreToDocumentArchive [13:44:43]shift 463 fd 189155 [13:44:43]save to /storage/0463/doc_00189155 [13:44:43]save last doc name /storage/0463/doc_00189155 to /storage/kkm_last_doc_name [13:44:43]save OK [13:44:43]Clear old archive folders... [13:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:43]tlvbuf is 0155EC90 [13:44:43]SAM_PROTO_ClearQueue [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 09 00 00 [13:44:43]Write to MH i2c: E2 08 00 0F 45 80 09 00 00 00 00 00 00 C6 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 0F 45 00 90 00 C8 [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_ClearQueue done [13:44:43]KKMCreateOFDPacket [13:44:43]OFDProtocolAddRootSTLVToBuf [13:44:43]FM_MakeSignedData [13:44:43]FM_MakeSignedData [13:44:43]SAM_PROTO_SignData [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 01 02 [13:44:43]Write to MH i2c: E2 08 00 10 45 80 0D 01 02 00 00 00 00 CE [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 10 45 00 90 00 C9 [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]wFMCommunicate request_size=255 [13:44:43]MH_SAM_APDU [13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4D 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E2 02 00 35 04 06 00 0D [13:44:43]Write to MH i2c: E2 02 01 11 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4D 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E2 02 00 35 04 06 00 0D 00 00 E0 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 11 45 00 90 00 CA [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]wFMCommunicate request_size=10 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 02 02 05 EB 3F FB 1E 2E [13:44:43]Write to MH i2c: E2 0D 00 12 45 80 0D 02 02 05 00 EB 3F FB 1E 2E 00 00 4C [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 12 45 00 90 00 CB [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 03 02 [13:44:43]Write to MH i2c: E2 08 00 13 45 80 0D 03 02 00 00 00 00 D3 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 13 45 00 46 DF 14 F3 52 CC 88 FA 90 00 A0 [13:44:44]RAPDU: 46 DF 14 F3 52 CC 88 FA 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_SignData done [13:44:44]FM_MakeSignedData done [13:44:44]CreateOFDProtocolMessage [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 11 00 00 [13:44:44]Write to MH i2c: E2 08 00 14 45 80 11 00 00 00 00 00 00 D3 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 17 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 17 00 14 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [13:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:44]wFMCommunicate OK [13:44:44]CreateOFDProtocolMessage done [13:44:44]OFDSenderStorePacket 189155 [13:44:44]StoreOFDPacket docnum=189155 [13:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE DE 07 01 BA 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4D 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E2 02 00 35 04 06 00 0D EB 3F FB 1E 2E 46 DF 14 F3 52 CC 88 FA [13:44:44]CheckFolder [13:44:44]dirname=/storage/ofd_packets [13:44:44]CheckFolder done [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00189155 [13:44:44]NVStorageSaveData ofd_packets/00189155 [13:44:44]File name is /storage/ofd_packets/00189155 [13:44:44]Write 301 bytes [13:44:44]NVStorageSaveData done [13:44:44]OFDSenderStorePacket done [13:44:44]KKMCreateOFDPacket done [13:44:44]NVStorageSaveData kkm_last_timestamp [13:44:44]File name is /storage/kkm_last_timestamp [13:44:44]Write 4 bytes [13:44:44]NVStorageSaveData done [13:44:44]ExternCall_PrintAddStr [13:44:44]wPrintStart [13:44:44]Write to MH i2c: 01 00 00 15 45 5A [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 15 45 00 00 00 00 00 FF 0F 6F [13:44:44]RasterBufferAndPrint [13:44:44]line Счет N : (1)211218 [13:44:44]line ИНН: 02508201610067 [13:44:44]line Контрольно-Кассовый Чек [13:44:44]line ПРОДАЖА [13:44:44]line ТРК (МРК, ГНК) : 42 [13:44:44]line Товар: 2710124130 [13:44:44]line Аи-92-К-3 [13:44:44]line 14.950 * 66.90 [13:44:44]line = 1000.16 [13:44:44]line НДС 12% НСП 1% [13:44:44]line > о реализуемом товаре [13:44:44]line ОКРУГЛЕНИЕ: -0.16 [13:44:44]line ИТОГО: 1000.00 [13:44:44]line Внесено: 1000.00 [13:44:44]line СДАЧА: 0.00 [13:44:44]line НСП 1% : 8.85 [13:44:44]line НДС 12% : 106.21 [13:44:44]line Наличными: 1000.00 [13:44:44]line Безнал.: 0.00 [13:44:44]line Место: АЗС № 86 "Партнер Нефть" [13:44:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:44:44]line СНО: Общий режим [13:44:44]line Чек 228 24.10.2024 13:44 [13:44:44]line Смена: 463 ФФД: 1.0 [13:44:44]line ЗНМ: 0300000155 [13:44:44]line РНМ: 0000000000100030 [13:44:44]line Версия ККМ: 001 [13:44:44]line ФМ: 0000000000965340 [13:44:44]line ФД: 189155 [13:44:44]line ФПД: 15304041897518 [13:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134445&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189155&fm=15304041897518&tin=02508201610067®Number=0000000000100030&sum=100000 [13:44:44]written 0, free lines is 4095 [13:44:44]OFD Sender: Processing packet 189155 [packets to send 1062, broken 1061] [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00189155 [13:44:44]OFD Sender: To server: pG, [13:44:44]CommunicateWithHost lk.salyk.kg:30040 [13:44:44]ConnectInit lk.salyk.kg [13:44:44]Connected sock=10 [13:44:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AE DE 07 01 BA 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4D 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 E2 02 00 35 04 06 00 0D EB 3F FB 1E 2E 46 DF 14 F3 52 CC 88 FA [13:44:44]Write to MH i2c: 01 00 00 40 45 85 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 40 45 00 00 00 00 00 5D 0C F5 [13:44:44]RasterBufferAndPrint [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]line [13:44:44]written 0, free lines is 3168 [13:44:44]MH_Cut [13:44:44]Write to MH i2c: D1 01 00 47 45 01 5E [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 01 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: D1 01 00 47 45 00 5D [13:44:44]Write to MH i2c: 01 00 00 48 45 8D [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 F8 47 00 D6 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 39 36 35 33 34 30 10 04 04 00 E3 E2 02 00 F4 03 04 00 35 F9 19 67 B6 04 01 00 00 C7 C2 28 DD D4 7B 25 78 [13:44:44]CommunicateWithHost err = 0 [13:44:44]CheckOFDResponse [13:44:44]1017 (14) - 77093643461234 [13:44:44]1041 (16) - 0000000000965340 [13:44:44]1040 (4) - 189155 [13:44:44]1012 (4) - 24.10.2024 07:37 [13:44:44]1206 (1) - 0 [13:44:44]OFD Sender: Remove packet 189155 [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00189155 [13:44:44]NVStorageDeleteData [13:44:45]OFD Sender: No OFD packet to send [13:44:45]*** Cut start [13:44:45]*** Partial cut [13:44:45]*** CUTSNS_PIN = 1 [13:44:45]*** CUTSNS_PIN = 0 [13:44:46]*** Brake cut motor [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]*** Stop cut motor [13:44:46]*** Cut end [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 48 45 00 00 00 00 00 FF 0F A2 [13:44:46]process_action close_receipt done [13:44:46]requested_data is exist [13:44:46]produce_requested_data [13:44:46]requested_item fm.sn is exist - process it [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 11 00 00 [13:44:46]Write to MH i2c: E2 08 00 49 45 80 11 00 00 00 00 00 00 08 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 49 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [13:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:46]wFMCommunicate OK [13:44:46]requested_item fd.num is exist - process it [13:44:46]SAM_PROTO_GetFieldsCounters [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 00 00 [13:44:46]Write to MH i2c: E2 08 00 4A 45 80 13 00 00 00 00 00 00 0B [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 4A 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E2 02 00 0E 04 04 00 CF 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 55 [13:44:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 E2 02 00 0E 04 04 00 CF 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 [13:44:46]wFMCommunicate OK [13:44:46]SAM_PROTO_GetFieldsCounters done [13:44:46]requested_item shift.num is exist - process it [13:44:46]requested_item shift.opened is exist - process it [13:44:46]req_shift_opened [13:44:46]FM_GetShiftState [13:44:46]SAM_PROTO_GetShiftState [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 01 00 [13:44:46]Write to MH i2c: E2 08 00 4B 45 80 13 01 00 00 00 00 00 0D [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0E 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0E 00 4B 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EB [13:44:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:44:46]wFMCommunicate OK [13:44:46]SAM_PROTO_GetShiftState done [13:44:46]FM_GetShiftState done [13:44:46]req_shift_opened done [13:44:46]requested_item shift.open_date is exist - process it [13:44:46]req_shift_open_date [13:44:46]req_shift_open_date done [13:44:46]produce_requested_data done [13:44:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189155,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:44:46]process_action_free close_receipt [13:44:46]json_value_free [13:44:46]json_value_free done [13:44:46]process_json_proto returns [13:44:46]Send response to host [13:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189155,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:44:46]free response buf [13:44:46]execute_script done [13:44:46]execute_script returns [13:44:46]free content buf [13:44:46]Sock 8.Close socket [13:44:46]Sock 8.Thread stoped [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]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:08]accept exits with 9 [13:46:08]New connection [13:46:08]New thread 3067071844 created [13:46:08]Thread 3067215204 joined [13:46:08]Waiting for new connection... [13:46:08] Sock 9.Parse request [13:46:08]Sock 9.Check first char [13:46:08]Sock 9.First char is OK [13:46:08]request: POST /json_proto HTTP/1.0 [13:46:08]Method: POST [13:46:08]URL: /json_proto [13:46:08]Method is POST - this is cgi request [13:46:08]url: /json_proto [13:46:08]query_string will be loaded in cgi processing [13:46:08]execute_cgi json_proto POST (null) [13:46:08]execute_cgi path=json_proto method=POST [13:46:08]POST find Content-Length [13:46:08]Host: 172.17.42.131:8080 [13:46:08]Content-Length: 682 [13:46:08]Content-Type: application/json [13:46:08] [13:46:08]POST finish read [13:46:08]Found Content-Length = 682 [13:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]execute_script... [13:46: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)211220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]POST & json_proto [13:46:08]process_json_proto [13:46:08]json parsed OK: [13:46:08]protocol is kg_v1.0 [13:46:08]action value=close_receipt [13:46:08]process_action close_receipt [13:46:08]cmd_close_receipt [13:46:08]MH_GetDate [13:46:08]Write to MH i2c: F0 00 00 4C 45 80 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 09 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 09 00 4C 45 00 A4 4F 1A 67 A0 18 CA 66 E5 [13:46:08]GetLastDocTimeStamp 1729777485 [13:46:08]current date 1729777572 [13:46:08]FM_GetShiftState [13:46:08]SAM_PROTO_GetShiftState [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 01 00 [13:46:08]Write to MH i2c: E2 08 00 4D 45 80 13 01 00 00 00 00 00 0F [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 4D 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 ED [13:46:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetShiftState done [13:46:08]FM_GetShiftState done [13:46:08]opened in 1729728961 [13:46:08]opened+sec_in_day 1729815361 [13:46:08]quantity*price = 100015 [13:46:08]sum+1 = 100017 [13:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 229 24.10.2024 13:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189156 ФПД: 94155115343215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189156&fm=94155115343215&tin=02508201610067®Number=0000000000100030&sum=100000 [13:46:09]StoreToDocumentArchive [13:46:09]shift 463 fd 189156 [13:46:09]save to /storage/0463/doc_00189156 [13:46:09]save last doc name /storage/0463/doc_00189156 to /storage/kkm_last_doc_name [13:46:09]save OK [13:46:09]Clear old archive folders... [13:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:09]tlvbuf is 014C3030 [13:46:09]SAM_PROTO_ClearQueue [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 09 00 00 [13:46:09]Write to MH i2c: E2 08 00 5A 45 80 09 00 00 00 00 00 00 11 [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]SAM_PROTO_ClearQueue done [13:46:09]KKMCreateOFDPacket [13:46:09]OFDProtocolAddRootSTLVToBuf [13:46:09]FM_MakeSignedData [13:46:09]FM_MakeSignedData [13:46:09]SAM_PROTO_SignData [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 01 02 [13:46:09]Write to MH i2c: E2 08 00 5B 45 80 0D 01 02 00 00 00 00 19 [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]wFMCommunicate request_size=255 [13:46:09]MH_SAM_APDU [13:46: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A4 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E2 02 00 35 04 06 00 55 [13:46:09]Write to MH i2c: E2 02 01 5C 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A4 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E2 02 00 35 04 06 00 55 00 00 CC [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]wFMCommunicate request_size=10 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 02 02 05 A2 32 34 2D 6F [13:46:09]Write to MH i2c: E2 0D 00 5D 45 80 0D 02 02 05 00 A2 32 34 2D 6F 00 00 CA [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:10]Read from MH i2c: E2 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 03 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 03 00 5D 45 00 90 00 16 [13:46:10]RAPDU: 90 00 [13:46:10]wFMCommunicate OK [13:46:10]wFMCommunicate request_size=4 [13:46:10]MH_SAM_APDU [13:46:10]CAPDU: 80 0D 03 02 [13:46:10]Write to MH i2c: E2 08 00 5E 45 80 0D 03 02 00 00 00 00 1E [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:10]Read from MH i2c: E2 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 0B 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 0B 00 5E 45 00 A0 80 F5 32 56 C1 FB BC 90 00 34 [13:46:10]RAPDU: A0 80 F5 32 56 C1 FB BC 90 00 [13:46:10]wFMCommunicate OK [13:46:10]SAM_PROTO_SignData done [13:46:10]FM_MakeSignedData done [13:46:10]CreateOFDProtocolMessage [13:46:10]wFMCommunicate request_size=4 [13:46:10]MH_SAM_APDU [13:46:10]CAPDU: 80 11 00 00 [13:46:10]Write to MH i2c: E2 08 00 5F 45 80 11 00 00 00 00 00 00 1E [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:10]Read from MH i2c: E2 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 17 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 17 00 5F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [13:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:46:10]wFMCommunicate OK [13:46:10]CreateOFDProtocolMessage done [13:46:10]OFDSenderStorePacket 189156 [13:46:10]StoreOFDPacket docnum=189156 [13:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 0C 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A4 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E2 02 00 35 04 06 00 55 A2 32 34 2D 6F A0 80 F5 32 56 C1 FB BC [13:46:10]CheckFolder [13:46:10]dirname=/storage/ofd_packets [13:46:10]CheckFolder done [13:46:10]ProducePacketName [13:46:10]name=ofd_packets/00189156 [13:46:10]NVStorageSaveData ofd_packets/00189156 [13:46:10]File name is /storage/ofd_packets/00189156 [13:46:10]Write 301 bytes [13:46:10]NVStorageSaveData done [13:46:10]OFDSenderStorePacket done [13:46:10]KKMCreateOFDPacket done [13:46:10]NVStorageSaveData kkm_last_timestamp [13:46:10]File name is /storage/kkm_last_timestamp [13:46:10]Write 4 bytes [13:46:10]NVStorageSaveData done [13:46:10]ExternCall_PrintAddStr [13:46:10]wPrintStart [13:46:10]Write to MH i2c: 01 00 00 60 45 A5 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 60 45 00 00 00 00 00 FF 0F BA [13:46:10]RasterBufferAndPrint [13:46:10]line Счет N : (1)211220 [13:46:10]line ИНН: 02508201610067 [13:46:10]line Контрольно-Кассовый Чек [13:46:10]line ПРОДАЖА [13:46:10]line ТРК (МРК, ГНК) : 12 [13:46:10]line Товар: 2710124130 [13:46:10]line Аи-92-К-3 [13:46:10]line 14.950 * 66.90 [13:46:10]line = 1000.16 [13:46:10]line НДС 12% НСП 1% [13:46:10]line > о реализуемом товаре [13:46:10]line ОКРУГЛЕНИЕ: -0.16 [13:46:10]line ИТОГО: 1000.00 [13:46:10]line Внесено: 1000.00 [13:46:10]line СДАЧА: 0.00 [13:46:10]line НСП 1% : 8.85 [13:46:10]line НДС 12% : 106.21 [13:46:10]line Наличными: 1000.00 [13:46:10]line Безнал.: 0.00 [13:46:10]line Место: АЗС № 86 "Партнер Нефть" [13:46:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:46:10]line СНО: Общий режим [13:46:10]line Чек 229 24.10.2024 13:46 [13:46:10]line Смена: 463 ФФД: 1.0 [13:46:10]line ЗНМ: 0300000155 [13:46:10]line РНМ: 0000000000100030 [13:46:10]line Версия ККМ: 001 [13:46:10]line ФМ: 0000000000965340 [13:46:10]line ФД: 189156 [13:46:10]line ФПД: 94155115343215 [13:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189156&fm=94155115343215&tin=02508201610067®Number=0000000000100030&sum=100000 [13:46:10]written 0, free lines is 4095 [13:46:10]OFD Sender: Processing packet 189156 [packets to send 1062, broken 1061] [13:46:10]ProducePacketName [13:46:10]name=ofd_packets/00189156 [13:46:10]OFD Sender: To server: pG, [13:46:10]CommunicateWithHost lk.salyk.kg:30040 [13:46:10]ConnectInit lk.salyk.kg [13:46:10]Connected sock=10 [13:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 0C 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A4 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 E2 02 00 35 04 06 00 55 A2 32 34 2D 6F A0 80 F5 32 56 C1 FB BC [13:46:10]Write to MH i2c: 01 00 00 8B 45 D0 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 8B 45 00 00 00 00 00 56 0C 39 [13:46:10]RasterBufferAndPrint [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]written 0, free lines is 3162 [13:46:10]MH_Cut [13:46:10]Write to MH i2c: D1 01 00 92 45 01 A9 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 01 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 01 00 92 45 00 A8 [13:46:10]Write to MH i2c: 01 00 00 93 45 D8 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E3 7E 47 00 7E 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 39 36 35 33 34 30 10 04 04 00 E4 E2 02 00 F4 03 04 00 8B F9 19 67 B6 04 01 00 00 34 78 85 CC FD A0 86 5B [13:46:10]CommunicateWithHost err = 0 [13:46:10]CheckOFDResponse [13:46:10]1017 (14) - 77093643461234 [13:46:10]1041 (16) - 0000000000965340 [13:46:10]1040 (4) - 189156 [13:46:10]1012 (4) - 24.10.2024 07:38 [13:46:10]1206 (1) - 0 [13:46:10]OFD Sender: Remove packet 189156 [13:46:10]ProducePacketName [13:46:10]name=ofd_packets/00189156 [13:46:10]NVStorageDeleteData [13:46:11]OFD Sender: No OFD packet to send [13:46:11]*** Cut start [13:46:11]*** Partial cut [13:46:11]*** CUTSNS_PIN = 1 [13:46:11]*** CUTSNS_PIN = 0 [13:46:12]*** Brake cut motor [13:46:12]Read from MH i2c: 01 [13:46:12]MH_I2C_Read... [13:46:12]*** Stop cut motor [13:46:12]*** Cut end [13:46:12]Read from MH i2c: 01 07 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: 01 07 00 93 45 00 00 00 00 00 FF 0F ED [13:46:12]process_action close_receipt done [13:46:12]requested_data is exist [13:46:12]produce_requested_data [13:46:12]requested_item fm.sn is exist - process it [13:46:12]wFMCommunicate request_size=4 [13:46:12]MH_SAM_APDU [13:46:12]CAPDU: 80 11 00 00 [13:46:12]Write to MH i2c: E2 08 00 94 45 80 11 00 00 00 00 00 00 53 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:12]Read from MH i2c: E2 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 17 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 17 00 94 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [13:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:46:12]wFMCommunicate OK [13:46:12]requested_item fd.num is exist - process it [13:46:12]SAM_PROTO_GetFieldsCounters [13:46:12]wFMCommunicate request_size=4 [13:46:12]MH_SAM_APDU [13:46:12]CAPDU: 80 13 00 00 [13:46:12]Write to MH i2c: E2 08 00 95 45 80 13 00 00 00 00 00 00 56 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:12]Read from MH i2c: E2 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 62 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 62 00 95 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E2 02 00 0E 04 04 00 CF 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 A4 [13:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 E2 02 00 0E 04 04 00 CF 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 [13:46:12]wFMCommunicate OK [13:46:12]SAM_PROTO_GetFieldsCounters done [13:46:12]requested_item shift.num is exist - process it [13:46:12]requested_item shift.opened is exist - process it [13:46:12]req_shift_opened [13:46:12]FM_GetShiftState [13:46:12]SAM_PROTO_GetShiftState [13:46:12]wFMCommunicate request_size=4 [13:46:12]MH_SAM_APDU [13:46:12]CAPDU: 80 13 01 00 [13:46:12]Write to MH i2c: E2 08 00 96 45 80 13 01 00 00 00 00 00 58 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:12]Read from MH i2c: E2 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 0E 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 0E 00 96 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 36 [13:46:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:46:12]wFMCommunicate OK [13:46:12]SAM_PROTO_GetShiftState done [13:46:12]FM_GetShiftState done [13:46:12]req_shift_opened done [13:46:12]requested_item shift.open_date is exist - process it [13:46:12]req_shift_open_date [13:46:12]req_shift_open_date done [13:46:12]produce_requested_data done [13:46:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189156,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:46:12]process_action_free close_receipt [13:46:12]json_value_free [13:46:12]json_value_free done [13:46:12]process_json_proto returns [13:46:12]Send response to host [13:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189156,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:46:12]free response buf [13:46:12]execute_script done [13:46:12]execute_script returns [13:46:12]free content buf [13:46:12]Sock 9.Close socket [13:46:12]Sock 9.Thread stoped [13:46:13]accept exits with 8 [13:46:13]New connection [13:46:13]New thread 3067215204 created [13:46:13]Thread 3067071844 joined [13:46:13]Waiting for new connection... [13:46:13] Sock 8.Parse request [13:46:13]Sock 8.Check first char [13:46:13]Sock 8.First char is OK [13:46:13]request: POST /json_proto HTTP/1.0 [13:46:13]Method: POST [13:46:13]URL: /json_proto [13:46:13]Method is POST - this is cgi request [13:46:13]url: /json_proto [13:46:13]query_string will be loaded in cgi processing [13:46:13]execute_cgi json_proto POST (null) [13:46:13]execute_cgi path=json_proto method=POST [13:46:13]POST find Content-Length [13:46:13]Host: 172.17.42.131:8080 [13:46:13]Content-Length: 825 [13:46:13]Content-Type: application/json [13:46:13] [13:46:13]POST finish read [13:46:13]Found Content-Length = 825 [13:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:13]execute_script... [13:46: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)211219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:13]POST & json_proto [13:46:13]process_json_proto [13:46:13]json parsed OK: [13:46:13]protocol is kg_v1.0 [13:46:13]action value=close_receipt [13:46:13]process_action close_receipt [13:46:13]cmd_close_receipt [13:46:13]MH_GetDate [13:46:13]Write to MH i2c: F0 00 00 97 45 CB [13:46:13]Write i2c OK [13:46:13]MH_I2C_Read... [13:46:13]Read from MH i2c: F0 [13:46:13]MH_I2C_Read... [13:46:13]Read from MH i2c: F0 09 00 [13:46:13]MH_I2C_Read... [13:46:13]Read from MH i2c: F0 09 00 97 45 00 A8 4F 1A 67 A0 18 CA 66 34 [13:46:13]GetLastDocTimeStamp 1729777572 [13:46:13]current date 1729777576 [13:46:13]FM_GetShiftState [13:46:13]SAM_PROTO_GetShiftState [13:46:13]wFMCommunicate request_size=4 [13:46:13]MH_SAM_APDU [13:46:13]CAPDU: 80 13 01 00 [13:46:13]Write to MH i2c: E2 08 00 98 45 80 13 01 00 00 00 00 00 5A [13:46:13]Write i2c OK [13:46:13]MH_I2C_Read... [13:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:13]Read from MH i2c: E2 [13:46:13]MH_I2C_Read... [13:46:13]Read from MH i2c: E2 0E 00 [13:46:13]MH_I2C_Read... [13:46:13]Read from MH i2c: E2 0E 00 98 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 38 [13:46:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:46:13]wFMCommunicate OK [13:46:13]SAM_PROTO_GetShiftState done [13:46:13]FM_GetShiftState done [13:46:13]opened in 1729728961 [13:46:13]opened+sec_in_day 1729815361 [13:46:13]quantity*price = 250050 [13:46:13]sum+1 = 250052 [13:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 230 24.10.2024 13:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189157 ФПД: 131312731876874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189157&fm=131312731876874&tin=02508201610067®Number=0000000000100030&sum=250051 [13:46:14]StoreToDocumentArchive [13:46:14]shift 463 fd 189157 [13:46:14]save to /storage/0463/doc_00189157 [13:46:14]save last doc name /storage/0463/doc_00189157 to /storage/kkm_last_doc_name [13:46:14]save OK [13:46:14]Clear old archive folders... [13:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:46:14]tlvbuf is 0154B350 [13:46:14]SAM_PROTO_ClearQueue [13:46:14]wFMCommunicate request_size=4 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 09 00 00 [13:46:14]Write to MH i2c: E2 08 00 A5 45 80 09 00 00 00 00 00 00 5C [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:14]Read from MH i2c: E2 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 03 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 03 00 A5 45 00 90 00 5E [13:46:14]RAPDU: 90 00 [13:46:14]wFMCommunicate OK [13:46:14]SAM_PROTO_ClearQueue done [13:46:14]KKMCreateOFDPacket [13:46:14]OFDProtocolAddRootSTLVToBuf [13:46:14]FM_MakeSignedData [13:46:14]FM_MakeSignedData [13:46:14]SAM_PROTO_SignData [13:46:14]wFMCommunicate request_size=4 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 0D 01 02 [13:46:14]Write to MH i2c: E2 08 00 A6 45 80 0D 01 02 00 00 00 00 64 [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:14]Read from MH i2c: E2 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 03 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 03 00 A6 45 00 90 00 5F [13:46:14]RAPDU: 90 00 [13:46:14]wFMCommunicate OK [13:46:14]wFMCommunicate request_size=255 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A8 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E2 02 [13:46:14]Write to MH i2c: E2 02 01 A7 45 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A8 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E2 02 00 00 B0 [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 03 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 03 00 A7 45 00 90 00 60 [13:46:15]RAPDU: 90 00 [13:46:15]wFMCommunicate OK [13:46:15]wFMCommunicate request_size=16 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 77 6D A0 BC EE 0A [13:46:15]Write to MH i2c: E2 13 00 A8 45 80 0D 02 02 0B 00 00 35 04 06 00 77 6D A0 BC EE 0A 00 00 F4 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 03 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 03 00 A8 45 00 90 00 61 [13:46:15]RAPDU: 90 00 [13:46:15]wFMCommunicate OK [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 0D 03 02 [13:46:15]Write to MH i2c: E2 08 00 A9 45 80 0D 03 02 00 00 00 00 69 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 0B 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 0B 00 A9 45 00 D6 28 69 C8 F8 E7 57 10 90 00 DF [13:46:15]RAPDU: D6 28 69 C8 F8 E7 57 10 90 00 [13:46:15]wFMCommunicate OK [13:46:15]SAM_PROTO_SignData done [13:46:15]FM_MakeSignedData done [13:46:15]CreateOFDProtocolMessage [13:46:15]wFMCommunicate request_size=4 [13:46:15]MH_SAM_APDU [13:46:15]CAPDU: 80 11 00 00 [13:46:15]Write to MH i2c: E2 08 00 AA 45 80 11 00 00 00 00 00 00 69 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:15]Read from MH i2c: E2 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 17 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: E2 17 00 AA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [13:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:46:15]wFMCommunicate OK [13:46:15]CreateOFDProtocolMessage done [13:46:15]OFDSenderStorePacket 189157 [13:46:15]StoreOFDPacket docnum=189157 [13:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2C D6 0D 01 D8 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A8 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E2 02 00 35 04 06 00 77 6D A0 BC EE 0A D6 28 69 C8 F8 E7 57 10 [13:46:15]CheckFolder [13:46:15]dirname=/storage/ofd_packets [13:46:15]CheckFolder done [13:46:15]ProducePacketName [13:46:15]name=ofd_packets/00189157 [13:46:15]NVStorageSaveData ofd_packets/00189157 [13:46:15]File name is /storage/ofd_packets/00189157 [13:46:15]Write 307 bytes [13:46:15]NVStorageSaveData done [13:46:15]OFDSenderStorePacket done [13:46:15]KKMCreateOFDPacket done [13:46:15]NVStorageSaveData kkm_last_timestamp [13:46:15]File name is /storage/kkm_last_timestamp [13:46:15]Write 4 bytes [13:46:15]NVStorageSaveData done [13:46:15]ExternCall_PrintAddStr [13:46:15]wPrintStart [13:46:15]Write to MH i2c: 01 00 00 AB 45 F0 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 07 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 07 00 AB 45 00 00 00 00 00 FF 0F 05 [13:46:15]RasterBufferAndPrint [13:46:15]line Счет N : (1)211219 [13:46:15]line ИНН: 02508201610067 [13:46:15]line Контрольно-Кассовый Чек [13:46:15]line ПРОДАЖА [13:46:15]line ТРК (МРК, ГНК) : 31 [13:46:15]line Товар: 2710194210 [13:46:15]line D-ENERGY ДТ-К-5 [13:46:15]line 32.390 * 77.20 [13:46:15]line = 2500.51 [13:46:15]line НДС 12% НСП 1% [13:46:15]line > о реализуемом товаре [13:46:15]line ИТОГО: 2500.51 [13:46:15]line НСП 1% : 22.13 [13:46:15]line НДС 12% : 265.54 [13:46:15]line Наличными: 0.00 [13:46:15]line Безнал.: 2500.51 [13:46:15]line Место: АЗС № 86 "Партнер Нефть" [13:46:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:46:15]line СНО: Общий режим [13:46:15]line Чек 230 24.10.2024 13:46 [13:46:15]line Смена: 463 ФФД: 1.0 [13:46:15]line ЗНМ: 0300000155 [13:46:15]line РНМ: 0000000000100030 [13:46:15]line Версия ККМ: 001 [13:46:15]line Платежная система: Бакай Банк [13:46:15]line ФМ: 0000000000965340 [13:46:15]line ФД: 189157 [13:46:15]line ФПД: 131312731876874 [13:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189157&fm=131312731876874&tin=02508201610067®Number=0000000000100030&sum=250051 [13:46:15]OFD Sender: Processing packet 189157 [packets to send 1062, broken 1061] [13:46:15]ProducePacketName [13:46:15]name=ofd_packets/00189157 [13:46:15]OFD Sender: To server: pG, [13:46:15]CommunicateWithHost lk.salyk.kg:30040 [13:46:15]ConnectInit lk.salyk.kg [13:46:15]written 0, free lines is 4095 [13:46:15]Connected sock=10 [13:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2C D6 0D 01 D8 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A8 4F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 E2 02 00 35 04 06 00 77 6D A0 BC EE 0A D6 28 69 C8 F8 E7 57 10 [13:46:15]Write to MH i2c: 01 00 00 D5 45 1A [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 07 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: 01 07 00 D5 45 00 00 00 00 00 78 0C A5 [13:46:15]RasterBufferAndPrint [13:46:15]line [13:46:15]line [13:46:15]line [13:46:15]line [13:46:15]line [13:46:15]written 0, free lines is 3200 [13:46:15]MH_Cut [13:46:15]Write to MH i2c: D1 01 00 DC 45 01 F3 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: D1 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: D1 01 00 [13:46:15]MH_I2C_Read... [13:46:15]Read from MH i2c: D1 01 00 DC 45 00 F2 [13:46:15]Write to MH i2c: 01 00 00 DD 45 22 [13:46:15]Write i2c OK [13:46:15]MH_I2C_Read... [13:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 49 47 00 E6 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 39 36 35 33 34 30 10 04 04 00 E5 E2 02 00 F4 03 04 00 90 F9 19 67 B6 04 01 00 00 D5 E7 1B B5 09 26 71 C5 [13:46:15]CommunicateWithHost err = 0 [13:46:15]CheckOFDResponse [13:46:15]1017 (14) - 77093643461234 [13:46:15]1041 (16) - 0000000000965340 [13:46:15]1040 (4) - 189157 [13:46:15]1012 (4) - 24.10.2024 07:38 [13:46:15]1206 (1) - 0 [13:46:15]OFD Sender: Remove packet 189157 [13:46:15]ProducePacketName [13:46:15]name=ofd_packets/00189157 [13:46:15]NVStorageDeleteData [13:46:16]OFD Sender: No OFD packet to send [13:46:16]*** Cut start [13:46:16]*** Partial cut [13:46:16]*** CUTSNS_PIN = 1 [13:46:17]*** CUTSNS_PIN = 0 [13:46:17]*** Brake cut motor [13:46:17]Read from MH i2c: 01 [13:46:17]MH_I2C_Read... [13:46:17]*** Stop cut motor [13:46:17]*** Cut end [13:46:17]Read from MH i2c: 01 07 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: 01 07 00 DD 45 00 00 00 00 00 FF 0F 37 [13:46:17]process_action close_receipt done [13:46:17]requested_data is exist [13:46:17]produce_requested_data [13:46:17]requested_item fm.sn is exist - process it [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 11 00 00 [13:46:17]Write to MH i2c: E2 08 00 DE 45 80 11 00 00 00 00 00 00 9D [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 17 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 17 00 DE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [13:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:46:17]wFMCommunicate OK [13:46:17]requested_item fd.num is exist - process it [13:46:17]SAM_PROTO_GetFieldsCounters [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 13 00 00 [13:46:17]Write to MH i2c: E2 08 00 DF 45 80 13 00 00 00 00 00 00 A0 [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 62 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 62 00 DF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E2 02 00 0E 04 04 00 CF 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 F2 [13:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 E2 02 00 0E 04 04 00 CF 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 [13:46:17]wFMCommunicate OK [13:46:17]SAM_PROTO_GetFieldsCounters done [13:46:17]requested_item shift.num is exist - process it [13:46:17]requested_item shift.opened is exist - process it [13:46:17]req_shift_opened [13:46:17]FM_GetShiftState [13:46:17]SAM_PROTO_GetShiftState [13:46:17]wFMCommunicate request_size=4 [13:46:17]MH_SAM_APDU [13:46:17]CAPDU: 80 13 01 00 [13:46:17]Write to MH i2c: E2 08 00 E0 45 80 13 01 00 00 00 00 00 A2 [13:46:17]Write i2c OK [13:46:17]MH_I2C_Read... [13:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:17]Read from MH i2c: E2 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 0E 00 [13:46:17]MH_I2C_Read... [13:46:17]Read from MH i2c: E2 0E 00 E0 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 80 [13:46:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:46:17]wFMCommunicate OK [13:46:17]SAM_PROTO_GetShiftState done [13:46:17]FM_GetShiftState done [13:46:17]req_shift_opened done [13:46:17]requested_item shift.open_date is exist - process it [13:46:17]req_shift_open_date [13:46:17]req_shift_open_date done [13:46:17]produce_requested_data done [13:46:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189157,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:46:17]process_action_free close_receipt [13:46:17]json_value_free [13:46:17]json_value_free done [13:46:17]process_json_proto returns [13:46:17]Send response to host [13:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189157,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:46:17]free response buf [13:46:17]execute_script done [13:46:17]execute_script returns [13:46:17]free content buf [13:46:17]Sock 8.Close socket [13:46:17]Sock 8.Thread stoped [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:49:57]accept exits with 9 [13:49:57]New connection [13:49:57]New thread 3067071844 created [13:49:57]Thread 3067215204 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 9.Parse request [13:49:57]Sock 9.Check first char [13:49:57]Sock 9.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.42.131:8080 [13:49:57]Content-Length: 772 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 772 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]execute_script... [13:49: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)211223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=close_receipt [13:49:57]process_action close_receipt [13:49:57]cmd_close_receipt [13:49:57]MH_GetDate [13:49:57]Write to MH i2c: F0 00 00 E1 45 15 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 E1 45 00 89 50 1A 67 A0 18 CA 66 60 [13:49:57]GetLastDocTimeStamp 1729777576 [13:49:57]current date 1729777801 [13:49:57]FM_GetShiftState [13:49:57]SAM_PROTO_GetShiftState [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 01 00 [13:49:57]Write to MH i2c: E2 08 00 E2 45 80 13 01 00 00 00 00 00 A4 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 E2 45 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 82 [13:49:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetShiftState done [13:49:57]FM_GetShiftState done [13:49:57]opened in 1729728961 [13:49:57]opened+sec_in_day 1729815361 [13:49:57]quantity*price = 50025 [13:49:57]sum+1 = 50027 [13:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 231 24.10.2024 13:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189158 ФПД: 272287195934186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135001&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189158&fm=272287195934186&tin=02508201610067®Number=0000000000100030&sum=50026 [13:49:58]StoreToDocumentArchive [13:49:58]shift 463 fd 189158 [13:49:58]save to /storage/0463/doc_00189158 [13:49:58]save last doc name /storage/0463/doc_00189158 to /storage/kkm_last_doc_name [13:49:58]save OK [13:49:58]Clear old archive folders... [13:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:49:58]tlvbuf is 01538860 [13:49:58]SAM_PROTO_ClearQueue [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 09 00 00 [13:49:58]Write to MH i2c: E2 08 00 EF 45 80 09 00 00 00 00 00 00 A6 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_ClearQueue done [13:49:58]KKMCreateOFDPacket [13:49:58]OFDProtocolAddRootSTLVToBuf [13:49:58]FM_MakeSignedData [13:49:58]FM_MakeSignedData [13:49:58]SAM_PROTO_SignData [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 01 02 [13:49:58]Write to MH i2c: E2 08 00 F0 45 80 0D 01 02 00 00 00 00 AE [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 F0 45 00 90 00 A9 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=255 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 89 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E2 02 [13:49:58]Write to MH i2c: E2 02 01 F1 45 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 89 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E2 02 00 00 CA [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 F1 45 00 90 00 AA [13:49:59]RAPDU: 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=16 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 A4 CD 97 2D EA [13:49:59]Write to MH i2c: E2 13 00 F2 45 80 0D 02 02 0B 00 00 35 04 06 00 F7 A4 CD 97 2D EA 00 00 1C [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 F2 45 00 90 00 AB [13:49:59]RAPDU: 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 03 02 [13:49:59]Write to MH i2c: E2 08 00 F3 45 80 0D 03 02 00 00 00 00 B3 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 F3 45 00 EC AF B2 F5 6D A4 00 D0 90 00 D7 [13:49:59]RAPDU: EC AF B2 F5 6D A4 00 D0 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_SignData done [13:49:59]FM_MakeSignedData done [13:49:59]CreateOFDProtocolMessage [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 11 00 00 [13:49:59]Write to MH i2c: E2 08 00 F4 45 80 11 00 00 00 00 00 00 B3 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 F4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [13:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:49:59]wFMCommunicate OK [13:49:59]CreateOFDProtocolMessage done [13:49:59]OFDSenderStorePacket 189158 [13:49:59]StoreOFDPacket docnum=189158 [13:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E7 A3 0D 01 8A C5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 89 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E2 02 00 35 04 06 00 F7 A4 CD 97 2D EA EC AF B2 F5 6D A4 00 D0 [13:49:59]CheckFolder [13:49:59]dirname=/storage/ofd_packets [13:49:59]CheckFolder done [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00189158 [13:49:59]NVStorageSaveData ofd_packets/00189158 [13:49:59]File name is /storage/ofd_packets/00189158 [13:49:59]Write 307 bytes [13:49:59]NVStorageSaveData done [13:49:59]OFDSenderStorePacket done [13:49:59]KKMCreateOFDPacket done [13:49:59]NVStorageSaveData kkm_last_timestamp [13:49:59]File name is /storage/kkm_last_timestamp [13:49:59]Write 4 bytes [13:49:59]NVStorageSaveData done [13:49:59]ExternCall_PrintAddStr [13:49:59]wPrintStart [13:49:59]Write to MH i2c: 01 00 00 F5 45 3A [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 F5 45 00 00 00 00 00 FF 0F 4F [13:49:59]RasterBufferAndPrint [13:49:59]line Счет N : (1)211223 [13:49:59]line ИНН: 02508201610067 [13:49:59]line Контрольно-Кассовый Чек [13:49:59]line ПРОДАЖА [13:49:59]line ТРК (МРК, ГНК) : 41 [13:49:59]line Товар: 2710194210 [13:49:59]line D-ENERGY ДТ-К-5 [13:49:59]line 6.480 * 77.20 [13:49:59]line = 500.26 [13:49:59]line НДС 12% НСП 1% [13:49:59]line > о реализуемом товаре [13:49:59]line ИТОГО: 500.26 [13:49:59]line НСП 1% : 4.43 [13:49:59]line НДС 12% : 53.12 [13:49:59]line Наличными: 0.00 [13:49:59]line Безнал.: 500.26 [13:49:59]line Место: АЗС № 86 "Партнер Нефть" [13:49:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:49:59]line СНО: Общий режим [13:49:59]line Чек 231 24.10.2024 13:50 [13:49:59]line Смена: 463 ФФД: 1.0 [13:49:59]line ЗНМ: 0300000155 [13:49:59]line РНМ: 0000000000100030 [13:49:59]line Версия ККМ: 001 [13:49:59]line Платежная система: Mbank [13:49:59]line ФМ: 0000000000965340 [13:49:59]line ФД: 189158 [13:49:59]line ФПД: 272287195934186 [13:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135001&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189158&fm=272287195934186&tin=02508201610067®Number=0000000000100030&sum=50026 [13:49:59]written 0, free lines is 4095 [13:49:59]OFD Sender: Processing packet 189158 [packets to send 1062, broken 1061] [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00189158 [13:49:59]OFD Sender: To server: pG, [13:49:59]CommunicateWithHost lk.salyk.kg:30040 [13:49:59]ConnectInit lk.salyk.kg [13:49:59]Connected sock=10 [13:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E7 A3 0D 01 8A C5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 89 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 E2 02 00 35 04 06 00 F7 A4 CD 97 2D EA EC AF B2 F5 6D A4 00 D0 [13:49:59]Write to MH i2c: 01 00 00 1E 46 64 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 1E 46 00 00 00 00 00 95 0C 0C [13:49:59]RasterBufferAndPrint [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]written 0, free lines is 3225 [13:49:59]MH_Cut [13:49:59]Write to MH i2c: D1 01 00 25 46 01 3D [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 25 46 00 3C [13:49:59]Write to MH i2c: 01 00 00 26 46 6C [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 F6 47 00 B6 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 39 36 35 33 34 30 10 04 04 00 E6 E2 02 00 F4 03 04 00 70 FA 19 67 B6 04 01 00 00 52 D8 2B 87 C9 EF 9A BB [13:49:59]CommunicateWithHost err = 0 [13:49:59]CheckOFDResponse [13:49:59]1017 (14) - 77093643461234 [13:49:59]1041 (16) - 0000000000965340 [13:49:59]1040 (4) - 189158 [13:49:59]1012 (4) - 24.10.2024 07:42 [13:49:59]1206 (1) - 0 [13:49:59]OFD Sender: Remove packet 189158 [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00189158 [13:49:59]NVStorageDeleteData [13:50:00]OFD Sender: No OFD packet to send [13:50:00]*** Cut start [13:50:00]*** Partial cut [13:50:00]*** CUTSNS_PIN = 1 [13:50:01]*** CUTSNS_PIN = 0 [13:50:01]*** Brake cut motor [13:50:01]Read from MH i2c: 01 [13:50:01]MH_I2C_Read... [13:50:01]*** Stop cut motor [13:50:01]*** Cut end [13:50:01]Read from MH i2c: 01 07 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 26 46 00 00 00 00 00 FF 0F 81 [13:50:01]process_action close_receipt done [13:50:01]requested_data is exist [13:50:01]produce_requested_data [13:50:01]requested_item fm.sn is exist - process it [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 11 00 00 [13:50:01]Write to MH i2c: E2 08 00 27 46 80 11 00 00 00 00 00 00 E7 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 27 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [13:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:50:01]wFMCommunicate OK [13:50:01]requested_item fd.num is exist - process it [13:50:01]SAM_PROTO_GetFieldsCounters [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 00 00 [13:50:01]Write to MH i2c: E2 08 00 28 46 80 13 00 00 00 00 00 00 EA [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 28 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E2 02 00 0E 04 04 00 CF 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 40 [13:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 E2 02 00 0E 04 04 00 CF 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 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetFieldsCounters done [13:50:01]requested_item shift.num is exist - process it [13:50:01]requested_item shift.opened is exist - process it [13:50:01]req_shift_opened [13:50:01]FM_GetShiftState [13:50:01]SAM_PROTO_GetShiftState [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 01 00 [13:50:01]Write to MH i2c: E2 08 00 29 46 80 13 01 00 00 00 00 00 EC [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 29 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [13:50:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftState done [13:50:01]FM_GetShiftState done [13:50:01]req_shift_opened done [13:50:01]requested_item shift.open_date is exist - process it [13:50:01]req_shift_open_date [13:50:01]req_shift_open_date done [13:50:01]produce_requested_data done [13:50:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189158,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:50:01]process_action_free close_receipt [13:50:01]json_value_free [13:50:01]json_value_free done [13:50:01]process_json_proto returns [13:50:01]Send response to host [13:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189158,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:50:01]free response buf [13:50:01]execute_script done [13:50:01]execute_script returns [13:50:01]free content buf [13:50:01]Sock 9.Close socket [13:50:01]Sock 9.Thread stoped [13:50:02]accept exits with 8 [13:50:02]New connection [13:50:02]New thread 3067215204 created [13:50:02]Thread 3067071844 joined [13:50:02]Waiting for new connection... [13:50:02] Sock 8.Parse request [13:50:02]Sock 8.Check first char [13:50:02]Sock 8.First char is OK [13:50:02]request: POST /json_proto HTTP/1.0 [13:50:02]Method: POST [13:50:02]URL: /json_proto [13:50:02]Method is POST - this is cgi request [13:50:02]url: /json_proto [13:50:02]query_string will be loaded in cgi processing [13:50:02]execute_cgi json_proto POST (null) [13:50:02]execute_cgi path=json_proto method=POST [13:50:02]POST find Content-Length [13:50:02]Host: 172.17.42.131:8080 [13:50:02]Content-Length: 769 [13:50:02]Content-Type: application/json [13:50:02] [13:50:02]POST finish read [13:50:02]Found Content-Length = 769 [13:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:02]execute_script... [13:50: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)211222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:02]POST & json_proto [13:50:02]process_json_proto [13:50:02]json parsed OK: [13:50:02]protocol is kg_v1.0 [13:50:02]action value=close_receipt [13:50:02]process_action close_receipt [13:50:02]cmd_close_receipt [13:50:02]MH_GetDate [13:50:02]Write to MH i2c: F0 00 00 2A 46 5F [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: F0 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: F0 09 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: F0 09 00 2A 46 00 8E 50 1A 67 A0 18 CA 66 AF [13:50:02]GetLastDocTimeStamp 1729777801 [13:50:02]current date 1729777806 [13:50:02]FM_GetShiftState [13:50:02]SAM_PROTO_GetShiftState [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 13 01 00 [13:50:02]Write to MH i2c: E2 08 00 2B 46 80 13 01 00 00 00 00 00 EE [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 0E 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 0E 00 2B 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CC [13:50:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:50:03]wFMCommunicate OK [13:50:03]SAM_PROTO_GetShiftState done [13:50:03]FM_GetShiftState done [13:50:03]opened in 1729728961 [13:50:03]opened+sec_in_day 1729815361 [13:50:03]quantity*price = 100021 [13:50:03]sum+1 = 100023 [13:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 232 24.10.2024 13:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189159 ФПД: 204294653779762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189159&fm=204294653779762&tin=02508201610067®Number=0000000000100030&sum=100022 [13:50:04]StoreToDocumentArchive [13:50:04]shift 463 fd 189159 [13:50:04]save to /storage/0463/doc_00189159 [13:50:04]save last doc name /storage/0463/doc_00189159 to /storage/kkm_last_doc_name [13:50:04]save OK [13:50:04]Clear old archive folders... [13:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:04]tlvbuf is 01538140 [13:50:04]SAM_PROTO_ClearQueue [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 09 00 00 [13:50:04]Write to MH i2c: E2 08 00 38 46 80 09 00 00 00 00 00 00 F0 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 38 46 00 90 00 F2 [13:50:04]RAPDU: 90 00 [13:50:04]wFMCommunicate OK [13:50:04]SAM_PROTO_ClearQueue done [13:50:04]KKMCreateOFDPacket [13:50:04]OFDProtocolAddRootSTLVToBuf [13:50:04]FM_MakeSignedData [13:50:04]FM_MakeSignedData [13:50:04]SAM_PROTO_SignData [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 0D 01 02 [13:50:04]Write to MH i2c: E2 08 00 39 46 80 0D 01 02 00 00 00 00 F8 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 39 46 00 90 00 F3 [13:50:04]RAPDU: 90 00 [13:50:04]wFMCommunicate OK [13:50:04]wFMCommunicate request_size=255 [13:50:04]MH_SAM_APDU [13:50: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 33 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 E8 00 00 00 F4 03 04 00 8E 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E2 02 00 35 04 06 00 B9 [13:50:04]Write to MH i2c: E2 02 01 3A 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 33 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 E8 00 00 00 F4 03 04 00 8E 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E2 02 00 35 04 06 00 B9 00 00 4F [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [13:50:04]RAPDU: 90 00 [13:50:04]wFMCommunicate OK [13:50:04]wFMCommunicate request_size=10 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 0D 02 02 05 CE 0E 44 9F 32 [13:50:04]Write to MH i2c: E2 0D 00 3B 46 80 0D 02 02 05 00 CE 0E 44 9F 32 00 00 F6 [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 03 00 3B 46 00 90 00 F5 [13:50:04]RAPDU: 90 00 [13:50:04]wFMCommunicate OK [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 0D 03 02 [13:50:04]Write to MH i2c: E2 08 00 3C 46 80 0D 03 02 00 00 00 00 FD [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:04]Read from MH i2c: E2 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0B 00 [13:50:04]MH_I2C_Read... [13:50:04]Read from MH i2c: E2 0B 00 3C 46 00 40 52 B2 75 E4 C6 24 4D 90 00 D2 [13:50:04]RAPDU: 40 52 B2 75 E4 C6 24 4D 90 00 [13:50:04]wFMCommunicate OK [13:50:04]SAM_PROTO_SignData done [13:50:04]FM_MakeSignedData done [13:50:04]CreateOFDProtocolMessage [13:50:04]wFMCommunicate request_size=4 [13:50:04]MH_SAM_APDU [13:50:04]CAPDU: 80 11 00 00 [13:50:04]Write to MH i2c: E2 08 00 3D 46 80 11 00 00 00 00 00 00 FD [13:50:04]Write i2c OK [13:50:04]MH_I2C_Read... [13:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:05]Read from MH i2c: E2 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: E2 17 00 3D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [13:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:50:05]wFMCommunicate OK [13:50:05]CreateOFDProtocolMessage done [13:50:05]OFDSenderStorePacket 189159 [13:50:05]StoreOFDPacket docnum=189159 [13:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 39 07 01 E9 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 33 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 E8 00 00 00 F4 03 04 00 8E 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E2 02 00 35 04 06 00 B9 CE 0E 44 9F 32 40 52 B2 75 E4 C6 24 4D [13:50:05]CheckFolder [13:50:05]dirname=/storage/ofd_packets [13:50:05]CheckFolder done [13:50:05]ProducePacketName [13:50:05]name=ofd_packets/00189159 [13:50:05]NVStorageSaveData ofd_packets/00189159 [13:50:05]File name is /storage/ofd_packets/00189159 [13:50:05]Write 301 bytes [13:50:05]NVStorageSaveData done [13:50:05]OFDSenderStorePacket done [13:50:05]KKMCreateOFDPacket done [13:50:05]NVStorageSaveData kkm_last_timestamp [13:50:05]File name is /storage/kkm_last_timestamp [13:50:05]Write 4 bytes [13:50:05]NVStorageSaveData done [13:50:05]ExternCall_PrintAddStr [13:50:05]wPrintStart [13:50:05]Write to MH i2c: 01 00 00 3E 46 84 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 3E 46 00 00 00 00 00 FF 0F 99 [13:50:05]RasterBufferAndPrint [13:50:05]line Счет N : (1)211222 [13:50:05]line ИНН: 02508201610067 [13:50:05]line Контрольно-Кассовый Чек [13:50:05]line ПРОДАЖА [13:50:05]line ТРК (МРК, ГНК) : 33 [13:50:05]line Товар: 2710124500 [13:50:05]line Аи-95-К-3 [13:50:05]line 13.480 * 74.20 [13:50:05]line = 1000.22 [13:50:05]line НДС 12% НСП 1% [13:50:05]line > о реализуемом товаре [13:50:05]line ИТОГО: 1000.22 [13:50:05]line НСП 1% : 8.85 [13:50:05]line НДС 12% : 106.22 [13:50:05]line Наличными: 0.00 [13:50:05]line Безнал.: 1000.22 [13:50:05]line Место: АЗС № 86 "Партнер Нефть" [13:50:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:50:05]line СНО: Общий режим [13:50:05]line Чек 232 24.10.2024 13:50 [13:50:05]line Смена: 463 ФФД: 1.0 [13:50:05]line ЗНМ: 0300000155 [13:50:05]line РНМ: 0000000000100030 [13:50:05]line Версия ККМ: 001 [13:50:05]line Платежная система: Mbank [13:50:05]line ФМ: 0000000000965340 [13:50:05]line ФД: 189159 [13:50:05]line ФПД: 204294653779762 [13:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189159&fm=204294653779762&tin=02508201610067®Number=0000000000100030&sum=100022 [13:50:05]written 0, free lines is 4095 [13:50:05]OFD Sender: Processing packet 189159 [packets to send 1062, broken 1061] [13:50:05]ProducePacketName [13:50:05]name=ofd_packets/00189159 [13:50:05]OFD Sender: To server: pG, [13:50:05]CommunicateWithHost lk.salyk.kg:30040 [13:50:05]ConnectInit lk.salyk.kg [13:50:05]Connected sock=10 [13:50:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 39 07 01 E9 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 33 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 E8 00 00 00 F4 03 04 00 8E 50 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 E2 02 00 35 04 06 00 B9 CE 0E 44 9F 32 40 52 B2 75 E4 C6 24 4D [13:50:05]Write to MH i2c: 01 00 00 67 46 AD [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: 01 07 00 67 46 00 00 00 00 00 8E 0C 4E [13:50:05]RasterBufferAndPrint [13:50:05]line [13:50:05]line [13:50:05]line [13:50:05]line [13:50:05]line [13:50:05]written 0, free lines is 3223 [13:50:05]MH_Cut [13:50:05]Write to MH i2c: D1 01 00 6E 46 01 86 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: D1 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: D1 01 00 [13:50:05]MH_I2C_Read... [13:50:05]Read from MH i2c: D1 01 00 6E 46 00 85 [13:50:05]Write to MH i2c: 01 00 00 6F 46 B5 [13:50:05]Write i2c OK [13:50:05]MH_I2C_Read... [13:50:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 71 A2 47 00 8D 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 39 36 35 33 34 30 10 04 04 00 E7 E2 02 00 F4 03 04 00 76 FA 19 67 B6 04 01 00 00 09 DF 80 BA A7 B4 08 59 [13:50:05]CommunicateWithHost err = 0 [13:50:05]CheckOFDResponse [13:50:05]1017 (14) - 77093643461234 [13:50:05]1041 (16) - 0000000000965340 [13:50:05]1040 (4) - 189159 [13:50:05]1012 (4) - 24.10.2024 07:42 [13:50:05]1206 (1) - 0 [13:50:05]OFD Sender: Remove packet 189159 [13:50:05]ProducePacketName [13:50:05]name=ofd_packets/00189159 [13:50:05]NVStorageDeleteData [13:50:06]OFD Sender: No OFD packet to send [13:50:06]*** Cut start [13:50:06]*** Partial cut [13:50:06]*** CUTSNS_PIN = 1 [13:50:06]*** CUTSNS_PIN = 0 [13:50:07]*** Brake cut motor [13:50:07]Read from MH i2c: 01 [13:50:07]MH_I2C_Read... [13:50:07]*** Stop cut motor [13:50:07]*** Cut end [13:50:07]Read from MH i2c: 01 07 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: 01 07 00 6F 46 00 00 00 00 00 FF 0F CA [13:50:07]process_action close_receipt done [13:50:07]requested_data is exist [13:50:07]produce_requested_data [13:50:07]requested_item fm.sn is exist - process it [13:50:07]wFMCommunicate request_size=4 [13:50:07]MH_SAM_APDU [13:50:07]CAPDU: 80 11 00 00 [13:50:07]Write to MH i2c: E2 08 00 70 46 80 11 00 00 00 00 00 00 30 [13:50:07]Write i2c OK [13:50:07]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:07]Read from MH i2c: E2 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 17 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 17 00 70 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [13:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:50:07]wFMCommunicate OK [13:50:07]requested_item fd.num is exist - process it [13:50:07]SAM_PROTO_GetFieldsCounters [13:50:07]wFMCommunicate request_size=4 [13:50:07]MH_SAM_APDU [13:50:07]CAPDU: 80 13 00 00 [13:50:07]Write to MH i2c: E2 08 00 71 46 80 13 00 00 00 00 00 00 33 [13:50:07]Write i2c OK [13:50:07]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:07]Read from MH i2c: E2 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 62 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 62 00 71 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E2 02 00 0E 04 04 00 CF 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 8D [13:50:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 E2 02 00 0E 04 04 00 CF 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 [13:50:07]wFMCommunicate OK [13:50:07]SAM_PROTO_GetFieldsCounters done [13:50:07]requested_item shift.num is exist - process it [13:50:07]requested_item shift.opened is exist - process it [13:50:07]req_shift_opened [13:50:07]FM_GetShiftState [13:50:07]SAM_PROTO_GetShiftState [13:50:07]wFMCommunicate request_size=4 [13:50:07]MH_SAM_APDU [13:50:07]CAPDU: 80 13 01 00 [13:50:07]Write to MH i2c: E2 08 00 72 46 80 13 01 00 00 00 00 00 35 [13:50:07]Write i2c OK [13:50:07]MH_I2C_Read... [13:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:07]Read from MH i2c: E2 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 0E 00 [13:50:07]MH_I2C_Read... [13:50:07]Read from MH i2c: E2 0E 00 72 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 13 [13:50:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:50:07]wFMCommunicate OK [13:50:07]SAM_PROTO_GetShiftState done [13:50:07]FM_GetShiftState done [13:50:07]req_shift_opened done [13:50:07]requested_item shift.open_date is exist - process it [13:50:07]req_shift_open_date [13:50:07]req_shift_open_date done [13:50:07]produce_requested_data done [13:50:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189159,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:50:07]process_action_free close_receipt [13:50:07]json_value_free [13:50:07]json_value_free done [13:50:07]process_json_proto returns [13:50:07]Send response to host [13:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189159,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:50:07]free response buf [13:50:07]execute_script done [13:50:07]execute_script returns [13:50:07]free content buf [13:50:07]Sock 8.Close socket [13:50:07]Sock 8.Thread stoped [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:49]accept exits with 9 [13:52:49]New connection [13:52:49]New thread 3067071844 created [13:52:49]Thread 3067215204 joined [13:52:49]Waiting for new connection... [13:52:49] Sock 9.Parse request [13:52:49]Sock 9.Check first char [13:52:49]Sock 9.First char is OK [13:52:49]request: POST /json_proto HTTP/1.0 [13:52:49]Method: POST [13:52:49]URL: /json_proto [13:52:49]Method is POST - this is cgi request [13:52:49]url: /json_proto [13:52:49]query_string will be loaded in cgi processing [13:52:49]execute_cgi json_proto POST (null) [13:52:49]execute_cgi path=json_proto method=POST [13:52:49]POST find Content-Length [13:52:49]Host: 172.17.42.131:8080 [13:52:49]Content-Length: 682 [13:52:49]Content-Type: application/json [13:52:49] [13:52:49]POST finish read [13:52:49]Found Content-Length = 682 [13:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:49]execute_script... [13: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)211224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:49]POST & json_proto [13:52:49]process_json_proto [13:52:49]json parsed OK: [13:52:49]protocol is kg_v1.0 [13:52:49]action value=close_receipt [13:52:49]process_action close_receipt [13:52:49]cmd_close_receipt [13:52:49]MH_GetDate [13:52:49]Write to MH i2c: F0 00 00 73 46 A8 [13:52:49]Write i2c OK [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: F0 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: F0 09 00 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: F0 09 00 73 46 00 35 51 1A 67 A0 18 CA 66 A0 [13:52:49]GetLastDocTimeStamp 1729777806 [13:52:49]current date 1729777973 [13:52:49]FM_GetShiftState [13:52:49]SAM_PROTO_GetShiftState [13:52:49]wFMCommunicate request_size=4 [13:52:49]MH_SAM_APDU [13:52:49]CAPDU: 80 13 01 00 [13:52:49]Write to MH i2c: E2 08 00 74 46 80 13 01 00 00 00 00 00 37 [13:52:49]Write i2c OK [13:52:49]MH_I2C_Read... [13:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:49]Read from MH i2c: E2 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: E2 0E 00 [13:52:49]MH_I2C_Read... [13:52:49]Read from MH i2c: E2 0E 00 74 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [13:52:49]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:52:49]wFMCommunicate OK [13:52:49]SAM_PROTO_GetShiftState done [13:52:49]FM_GetShiftState done [13:52:49]opened in 1729728961 [13:52:49]opened+sec_in_day 1729815361 [13:52:49]quantity*price = 100015 [13:52:49]sum+1 = 100017 [13:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 233 24.10.2024 13:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189160 ФПД: 30131822471664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189160&fm=30131822471664&tin=02508201610067®Number=0000000000100030&sum=100000 [13:52:50]StoreToDocumentArchive [13:52:50]shift 463 fd 189160 [13:52:50]save to /storage/0463/doc_00189160 [13:52:50]save last doc name /storage/0463/doc_00189160 to /storage/kkm_last_doc_name [13:52:50]save OK [13:52:50]Clear old archive folders... [13:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:50]tlvbuf is 0158A880 [13:52:50]SAM_PROTO_ClearQueue [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 09 00 00 [13:52:50]Write to MH i2c: E2 08 00 81 46 80 09 00 00 00 00 00 00 39 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 81 46 00 90 00 3B [13:52:50]RAPDU: 90 00 [13:52:50]wFMCommunicate OK [13:52:50]SAM_PROTO_ClearQueue done [13:52:50]KKMCreateOFDPacket [13:52:50]OFDProtocolAddRootSTLVToBuf [13:52:50]FM_MakeSignedData [13:52:50]FM_MakeSignedData [13:52:50]SAM_PROTO_SignData [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 0D 01 02 [13:52:50]Write to MH i2c: E2 08 00 82 46 80 0D 01 02 00 00 00 00 41 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 03 00 82 46 00 90 00 3C [13:52:50]RAPDU: 90 00 [13:52:50]wFMCommunicate OK [13:52:50]wFMCommunicate request_size=255 [13:52:50]MH_SAM_APDU [13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 35 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E2 02 00 35 04 06 00 1B [13:52:50]Write to MH i2c: E2 02 01 83 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 35 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E2 02 00 35 04 06 00 1B 00 00 55 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 83 46 00 90 00 3D [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=10 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 02 02 05 67 9C 93 29 F0 [13:52:51]Write to MH i2c: E2 0D 00 84 46 80 0D 02 02 05 00 67 9C 93 29 F0 00 00 FD [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 84 46 00 90 00 3E [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 03 02 [13:52:51]Write to MH i2c: E2 08 00 85 46 80 0D 03 02 00 00 00 00 46 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 85 46 00 3C CF 84 EA E7 66 8B 8E 90 00 26 [13:52:51]RAPDU: 3C CF 84 EA E7 66 8B 8E 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_SignData done [13:52:51]FM_MakeSignedData done [13:52:51]CreateOFDProtocolMessage [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 11 00 00 [13:52:51]Write to MH i2c: E2 08 00 86 46 80 11 00 00 00 00 00 00 46 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 86 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [13:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:51]wFMCommunicate OK [13:52:51]CreateOFDProtocolMessage done [13:52:51]OFDSenderStorePacket 189160 [13:52:51]StoreOFDPacket docnum=189160 [13:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 88 07 01 FC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 35 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E2 02 00 35 04 06 00 1B 67 9C 93 29 F0 3C CF 84 EA E7 66 8B 8E [13:52:51]CheckFolder [13:52:51]dirname=/storage/ofd_packets [13:52:51]CheckFolder done [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00189160 [13:52:51]NVStorageSaveData ofd_packets/00189160 [13:52:51]File name is /storage/ofd_packets/00189160 [13:52:51]Write 301 bytes [13:52:51]NVStorageSaveData done [13:52:51]OFDSenderStorePacket done [13:52:51]KKMCreateOFDPacket done [13:52:51]NVStorageSaveData kkm_last_timestamp [13:52:51]File name is /storage/kkm_last_timestamp [13:52:51]Write 4 bytes [13:52:51]NVStorageSaveData done [13:52:51]ExternCall_PrintAddStr [13:52:51]wPrintStart [13:52:51]Write to MH i2c: 01 00 00 87 46 CD [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 87 46 00 00 00 00 00 FF 0F E2 [13:52:51]RasterBufferAndPrint [13:52:51]line Счет N : (1)211224 [13:52:51]line ИНН: 02508201610067 [13:52:51]line Контрольно-Кассовый Чек [13:52:51]line ПРОДАЖА [13:52:51]line ТРК (МРК, ГНК) : 42 [13:52:51]line Товар: 2710124130 [13:52:51]line Аи-92-К-3 [13:52:51]line 14.950 * 66.90 [13:52:51]line = 1000.16 [13:52:51]line НДС 12% НСП 1% [13:52:51]line > о реализуемом товаре [13:52:51]line ОКРУГЛЕНИЕ: -0.16 [13:52:51]line ИТОГО: 1000.00 [13:52:51]line Внесено: 1000.00 [13:52:51]line СДАЧА: 0.00 [13:52:51]line НСП 1% : 8.85 [13:52:51]line НДС 12% : 106.21 [13:52:51]line Наличными: 1000.00 [13:52:51]line Безнал.: 0.00 [13:52:51]line Место: АЗС № 86 "Партнер Нефть" [13:52:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:52:51]line СНО: Общий режим [13:52:51]line Чек 233 24.10.2024 13:52 [13:52:51]line Смена: 463 ФФД: 1.0 [13:52:51]line ЗНМ: 0300000155 [13:52:51]line РНМ: 0000000000100030 [13:52:51]line Версия ККМ: 001 [13:52:51]line ФМ: 0000000000965340 [13:52:51]line ФД: 189160 [13:52:51]line ФПД: 30131822471664 [13:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189160&fm=30131822471664&tin=02508201610067®Number=0000000000100030&sum=100000 [13:52:51]written 0, free lines is 4095 [13:52:51]OFD Sender: Processing packet 189160 [packets to send 1062, broken 1061] [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00189160 [13:52:51]OFD Sender: To server: pG, [13:52:51]CommunicateWithHost lk.salyk.kg:30040 [13:52:51]ConnectInit lk.salyk.kg [13:52:51]Connected sock=10 [13:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 94 88 07 01 FC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 35 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 E2 02 00 35 04 06 00 1B 67 9C 93 29 F0 3C CF 84 EA E7 66 8B 8E [13:52:51]Write to MH i2c: 01 00 00 B2 46 F8 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 B2 46 00 00 00 00 00 5C 0C 67 [13:52:51]RasterBufferAndPrint [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]written 0, free lines is 3167 [13:52:51]MH_Cut [13:52:51]Write to MH i2c: D1 01 00 B9 46 01 D1 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 B9 46 00 D0 [13:52:51]Write to MH i2c: 01 00 00 BA 46 00 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 BE 47 00 EE 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 39 36 35 33 34 30 10 04 04 00 E8 E2 02 00 F4 03 04 00 1D FB 19 67 B6 04 01 00 00 38 DB 81 06 95 F6 AA 4C [13:52:52]CommunicateWithHost err = 0 [13:52:52]CheckOFDResponse [13:52:52]1017 (14) - 77093643461234 [13:52:52]1041 (16) - 0000000000965340 [13:52:52]1040 (4) - 189160 [13:52:52]1012 (4) - 24.10.2024 07:45 [13:52:52]1206 (1) - 0 [13:52:52]OFD Sender: Remove packet 189160 [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00189160 [13:52:52]NVStorageDeleteData [13:52:52]OFD Sender: No OFD packet to send [13:52:53]*** Cut start [13:52:53]*** Partial cut [13:52:53]*** CUTSNS_PIN = 1 [13:52:53]*** CUTSNS_PIN = 0 [13:52:53]*** Brake cut motor [13:52:53]Read from MH i2c: 01 [13:52:53]MH_I2C_Read... [13:52:53]*** Stop cut motor [13:52:53]*** Cut end [13:52:53]Read from MH i2c: 01 07 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: 01 07 00 BA 46 00 00 00 00 00 FF 0F 15 [13:52:53]process_action close_receipt done [13:52:53]requested_data is exist [13:52:53]produce_requested_data [13:52:53]requested_item fm.sn is exist - process it [13:52:53]wFMCommunicate request_size=4 [13:52:53]MH_SAM_APDU [13:52:53]CAPDU: 80 11 00 00 [13:52:53]Write to MH i2c: E2 08 00 BB 46 80 11 00 00 00 00 00 00 7B [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:53]Read from MH i2c: E2 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: E2 17 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: E2 17 00 BB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [13:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:53]wFMCommunicate OK [13:52:53]requested_item fd.num is exist - process it [13:52:53]SAM_PROTO_GetFieldsCounters [13:52:53]wFMCommunicate request_size=4 [13:52:53]MH_SAM_APDU [13:52:53]CAPDU: 80 13 00 00 [13:52:53]Write to MH i2c: E2 08 00 BC 46 80 13 00 00 00 00 00 00 7E [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 BC 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E2 02 00 0E 04 04 00 CF 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 DC [13:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 E2 02 00 0E 04 04 00 CF 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 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetFieldsCounters done [13:52:54]requested_item shift.num is exist - process it [13:52:54]requested_item shift.opened is exist - process it [13:52:54]req_shift_opened [13:52:54]FM_GetShiftState [13:52:54]SAM_PROTO_GetShiftState [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 01 00 [13:52:54]Write to MH i2c: E2 08 00 BD 46 80 13 01 00 00 00 00 00 80 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 BD 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [13:52:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetShiftState done [13:52:54]FM_GetShiftState done [13:52:54]req_shift_opened done [13:52:54]requested_item shift.open_date is exist - process it [13:52:54]req_shift_open_date [13:52:54]req_shift_open_date done [13:52:54]produce_requested_data done [13:52:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189160,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:52:54]process_action_free close_receipt [13:52:54]json_value_free [13:52:54]json_value_free done [13:52:54]process_json_proto returns [13:52:54]Send response to host [13:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189160,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:52:54]free response buf [13:52:54]execute_script done [13:52:54]execute_script returns [13:52:54]free content buf [13:52:54]Sock 9.Close socket [13:52:54]Sock 9.Thread stoped [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:11]accept exits with 8 [13:53:11]New connection [13:53:11]New thread 3067215204 created [13:53:11]Thread 3067071844 joined [13:53:11]Waiting for new connection... [13:53:11] Sock 8.Parse request [13:53:11]Sock 8.Check first char [13:53:11]Sock 8.First char is OK [13:53:11]request: POST /json_proto HTTP/1.0 [13:53:11]Method: POST [13:53:11]URL: /json_proto [13:53:11]Method is POST - this is cgi request [13:53:11]url: /json_proto [13:53:11]query_string will be loaded in cgi processing [13:53:11]execute_cgi json_proto POST (null) [13:53:11]execute_cgi path=json_proto method=POST [13:53:11]POST find Content-Length [13:53:11]Host: 172.17.42.131:8080 [13:53:11]Content-Length: 677 [13:53:11]Content-Type: application/json [13:53:11] [13:53:11]POST finish read [13:53:11]Found Content-Length = 677 [13:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:53:11]execute_script... [13:53: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)211225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:53:11]POST & json_proto [13:53:11]process_json_proto [13:53:11]json parsed OK: [13:53:11]protocol is kg_v1.0 [13:53:11]action value=close_receipt [13:53:11]process_action close_receipt [13:53:11]cmd_close_receipt [13:53:11]MH_GetDate [13:53:11]Write to MH i2c: F0 00 00 BE 46 F3 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: F0 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: F0 09 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: F0 09 00 BE 46 00 4B 51 1A 67 A0 18 CA 66 01 [13:53:11]GetLastDocTimeStamp 1729777973 [13:53:11]current date 1729777995 [13:53:11]FM_GetShiftState [13:53:11]SAM_PROTO_GetShiftState [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 13 01 00 [13:53:11]Write to MH i2c: E2 08 00 BF 46 80 13 01 00 00 00 00 00 82 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0E 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0E 00 BF 46 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [13:53:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:53:11]wFMCommunicate OK [13:53:11]SAM_PROTO_GetShiftState done [13:53:11]FM_GetShiftState done [13:53:11]opened in 1729728961 [13:53:11]opened+sec_in_day 1729815361 [13:53:11]quantity*price = 30038 [13:53:11]sum+1 = 30039 [13:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 234 24.10.2024 13:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189161 ФПД: 167986194504070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189161&fm=167986194504070&tin=02508201610067®Number=0000000000100030&sum=30000 [13:53:12]StoreToDocumentArchive [13:53:12]shift 463 fd 189161 [13:53:12]save to /storage/0463/doc_00189161 [13:53:12]save last doc name /storage/0463/doc_00189161 to /storage/kkm_last_doc_name [13:53:12]save OK [13:53:12]Clear old archive folders... [13:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:12]tlvbuf is B6F959B0 [13:53:12]SAM_PROTO_ClearQueue [13:53:12]wFMCommunicate request_size=4 [13:53:12]MH_SAM_APDU [13:53:12]CAPDU: 80 09 00 00 [13:53:12]Write to MH i2c: E2 08 00 CC 46 80 09 00 00 00 00 00 00 84 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:12]OFD Sender: No OFD packet to send [13:53:12]Read from MH i2c: E2 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 CC 46 00 90 00 86 [13:53:12]RAPDU: 90 00 [13:53:12]wFMCommunicate OK [13:53:12]SAM_PROTO_ClearQueue done [13:53:12]KKMCreateOFDPacket [13:53:12]OFDProtocolAddRootSTLVToBuf [13:53:12]FM_MakeSignedData [13:53:12]FM_MakeSignedData [13:53:12]SAM_PROTO_SignData [13:53:12]wFMCommunicate request_size=4 [13:53:12]MH_SAM_APDU [13:53:12]CAPDU: 80 0D 01 02 [13:53:12]Write to MH i2c: E2 08 00 CD 46 80 0D 01 02 00 00 00 00 8C [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:12]Read from MH i2c: E2 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: E2 03 00 CD 46 00 90 00 87 [13:53:12]RAPDU: 90 00 [13:53:12]wFMCommunicate OK [13:53:12]wFMCommunicate request_size=255 [13:53:12]MH_SAM_APDU [13:53: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 00 00 00 F4 03 04 00 4B 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E2 02 00 35 04 06 00 98 [13:53:12]Write to MH i2c: E2 02 01 CE 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 00 00 00 F4 03 04 00 4B 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E2 02 00 35 04 06 00 98 00 00 2F [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 03 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 03 00 CE 46 00 90 00 88 [13:53:13]RAPDU: 90 00 [13:53:13]wFMCommunicate OK [13:53:13]wFMCommunicate request_size=10 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 0D 02 02 05 C8 55 73 59 86 [13:53:13]Write to MH i2c: E2 0D 00 CF 46 80 0D 02 02 05 00 C8 55 73 59 86 00 00 08 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 03 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 03 00 CF 46 00 90 00 89 [13:53:13]RAPDU: 90 00 [13:53:13]wFMCommunicate OK [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 0D 03 02 [13:53:13]Write to MH i2c: E2 08 00 D0 46 80 0D 03 02 00 00 00 00 91 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0B 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0B 00 D0 46 00 B7 54 05 01 EB A1 87 D2 90 00 88 [13:53:13]RAPDU: B7 54 05 01 EB A1 87 D2 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_SignData done [13:53:13]FM_MakeSignedData done [13:53:13]CreateOFDProtocolMessage [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 11 00 00 [13:53:13]Write to MH i2c: E2 08 00 D1 46 80 11 00 00 00 00 00 00 91 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 D1 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [13:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:53:13]wFMCommunicate OK [13:53:13]CreateOFDProtocolMessage done [13:53:13]OFDSenderStorePacket 189161 [13:53:13]StoreOFDPacket docnum=189161 [13:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 D7 07 01 CE E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 00 00 00 F4 03 04 00 4B 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E2 02 00 35 04 06 00 98 C8 55 73 59 86 B7 54 05 01 EB A1 87 D2 [13:53:13]CheckFolder [13:53:13]dirname=/storage/ofd_packets [13:53:13]CheckFolder done [13:53:13]ProducePacketName [13:53:13]name=ofd_packets/00189161 [13:53:13]NVStorageSaveData ofd_packets/00189161 [13:53:13]File name is /storage/ofd_packets/00189161 [13:53:13]Write 301 bytes [13:53:13]NVStorageSaveData done [13:53:13]OFDSenderStorePacket done [13:53:13]KKMCreateOFDPacket done [13:53:13]NVStorageSaveData kkm_last_timestamp [13:53:13]File name is /storage/kkm_last_timestamp [13:53:13]Write 4 bytes [13:53:13]NVStorageSaveData done [13:53:13]ExternCall_PrintAddStr [13:53:13]wPrintStart [13:53:13]Write to MH i2c: 01 00 00 D2 46 18 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 D2 46 00 00 00 00 00 FF 0F 2D [13:53:13]RasterBufferAndPrint [13:53:13]line Счет N : (1)211225 [13:53:13]line ИНН: 02508201610067 [13:53:13]line Контрольно-Кассовый Чек [13:53:13]line ПРОДАЖА [13:53:13]line ТРК (МРК, ГНК) : 32 [13:53:13]line Товар: 2710124130 [13:53:13]line Аи-92-К-3 [13:53:13]line 4.490 * 66.90 [13:53:13]line = 300.38 [13:53:13]line НДС 12% НСП 1% [13:53:13]line > о реализуемом товаре [13:53:13]line ОКРУГЛЕНИЕ: -0.38 [13:53:13]line ИТОГО: 300.00 [13:53:13]line Внесено: 300.00 [13:53:13]line СДАЧА: 0.00 [13:53:13]line НСП 1% : 2.66 [13:53:13]line НДС 12% : 31.90 [13:53:13]line Наличными: 300.00 [13:53:13]line Безнал.: 0.00 [13:53:13]line Место: АЗС № 86 "Партнер Нефть" [13:53:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:53:13]line СНО: Общий режим [13:53:13]line Чек 234 24.10.2024 13:53 [13:53:13]line Смена: 463 ФФД: 1.0 [13:53:13]line ЗНМ: 0300000155 [13:53:13]line РНМ: 0000000000100030 [13:53:13]line Версия ККМ: 001 [13:53:13]line ФМ: 0000000000965340 [13:53:13]line ФД: 189161 [13:53:13]line ФПД: 167986194504070 [13:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189161&fm=167986194504070&tin=02508201610067®Number=0000000000100030&sum=30000 [13:53:13]written 0, free lines is 4095 [13:53:13]OFD Sender: Processing packet 189161 [packets to send 1062, broken 1061] [13:53:13]ProducePacketName [13:53:13]name=ofd_packets/00189161 [13:53:13]OFD Sender: To server: pG, [13:53:13]CommunicateWithHost lk.salyk.kg:30040 [13:53:13]ConnectInit lk.salyk.kg [13:53:13]Connected sock=10 [13:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 D7 07 01 CE E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 00 00 00 F4 03 04 00 4B 51 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 E2 02 00 35 04 06 00 98 C8 55 73 59 86 B7 54 05 01 EB A1 87 D2 [13:53:13]Write to MH i2c: 01 00 00 FD 46 43 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 FD 46 00 00 00 00 00 5F 0C B5 [13:53:13]RasterBufferAndPrint [13:53:13]line [13:53:13]line [13:53:13]line [13:53:13]line [13:53:13]line [13:53:13]written 0, free lines is 3171 [13:53:13]MH_Cut [13:53:13]Write to MH i2c: D1 01 00 04 47 01 1D [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: D1 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: D1 01 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: D1 01 00 04 47 00 1C [13:53:13]Write to MH i2c: 01 00 00 05 47 4C [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 25 47 00 4E 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 39 36 35 33 34 30 10 04 04 00 E9 E2 02 00 F4 03 04 00 33 FB 19 67 B6 04 01 00 00 04 E4 AF 08 AC 26 86 69 [13:53:14]CommunicateWithHost err = 0 [13:53:14]CheckOFDResponse [13:53:14]1017 (14) - 77093643461234 [13:53:14]1041 (16) - 0000000000965340 [13:53:14]1040 (4) - 189161 [13:53:14]1012 (4) - 24.10.2024 07:45 [13:53:14]1206 (1) - 0 [13:53:14]OFD Sender: Remove packet 189161 [13:53:14]ProducePacketName [13:53:14]name=ofd_packets/00189161 [13:53:14]NVStorageDeleteData [13:53:14]OFD Sender: No OFD packet to send [13:53:14]*** Cut start [13:53:14]*** Partial cut [13:53:14]*** CUTSNS_PIN = 1 [13:53:15]*** CUTSNS_PIN = 0 [13:53:15]*** Brake cut motor [13:53:15]Read from MH i2c: 01 [13:53:15]MH_I2C_Read... [13:53:15]*** Stop cut motor [13:53:15]*** Cut end [13:53:15]Read from MH i2c: 01 07 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 07 00 05 47 00 00 00 00 00 FF 0F 61 [13:53:15]process_action close_receipt done [13:53:15]requested_data is exist [13:53:15]produce_requested_data [13:53:15]requested_item fm.sn is exist - process it [13:53:15]wFMCommunicate request_size=4 [13:53:15]MH_SAM_APDU [13:53:15]CAPDU: 80 11 00 00 [13:53:15]Write to MH i2c: E2 08 00 06 47 80 11 00 00 00 00 00 00 C7 [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:15]Read from MH i2c: E2 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 17 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 17 00 06 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [13:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:53:15]wFMCommunicate OK [13:53:15]requested_item fd.num is exist - process it [13:53:15]SAM_PROTO_GetFieldsCounters [13:53:15]wFMCommunicate request_size=4 [13:53:15]MH_SAM_APDU [13:53:15]CAPDU: 80 13 00 00 [13:53:15]Write to MH i2c: E2 08 00 07 47 80 13 00 00 00 00 00 00 CA [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:15]Read from MH i2c: E2 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 62 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 62 00 07 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E2 02 00 0E 04 04 00 CF 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 2C [13:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 E2 02 00 0E 04 04 00 CF 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 [13:53:15]wFMCommunicate OK [13:53:15]SAM_PROTO_GetFieldsCounters done [13:53:15]requested_item shift.num is exist - process it [13:53:15]requested_item shift.opened is exist - process it [13:53:15]req_shift_opened [13:53:15]FM_GetShiftState [13:53:15]SAM_PROTO_GetShiftState [13:53:15]wFMCommunicate request_size=4 [13:53:15]MH_SAM_APDU [13:53:15]CAPDU: 80 13 01 00 [13:53:15]Write to MH i2c: E2 08 00 08 47 80 13 01 00 00 00 00 00 CC [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:15]Read from MH i2c: E2 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 0E 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 0E 00 08 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AA [13:53:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:53:15]wFMCommunicate OK [13:53:15]SAM_PROTO_GetShiftState done [13:53:15]FM_GetShiftState done [13:53:15]req_shift_opened done [13:53:15]requested_item shift.open_date is exist - process it [13:53:15]req_shift_open_date [13:53:15]req_shift_open_date done [13:53:15]produce_requested_data done [13:53:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189161,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:53:15]process_action_free close_receipt [13:53:15]json_value_free [13:53:15]json_value_free done [13:53:15]process_json_proto returns [13:53:15]Send response to host [13:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189161,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:53:15]free response buf [13:53:15]execute_script done [13:53:15]execute_script returns [13:53:15]free content buf [13:53:15]Sock 8.Close socket [13:53:15]Sock 8.Thread stoped [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:14]OFD Sender: No OFD packet to send [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:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [13:59:28]New connection [13:59:28]New thread 3067071844 created [13:59:28]Thread 3067215204 joined [13:59:28]Waiting for new connection... [13:59:28] Sock 9.Parse request [13:59:28]Sock 9.Check first char [13:59:28]Sock 9.First char is OK [13:59:28]request: POST /json_proto HTTP/1.0 [13:59:28]Method: POST [13:59:28]URL: /json_proto [13:59:28]Method is POST - this is cgi request [13:59:28]url: /json_proto [13:59:28]query_string will be loaded in cgi processing [13:59:28]execute_cgi json_proto POST (null) [13:59:28]execute_cgi path=json_proto method=POST [13:59:28]POST find Content-Length [13:59:28]Host: 172.17.42.131:8080 [13:59:28]Content-Length: 677 [13:59:28]Content-Type: application/json [13:59:28] [13:59:28]POST finish read [13:59:28]Found Content-Length = 677 [13:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:28]execute_script... [13:59: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)211227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:28]POST & json_proto [13:59:28]process_json_proto [13:59:28]json parsed OK: [13:59:28]protocol is kg_v1.0 [13:59:28]action value=close_receipt [13:59:28]process_action close_receipt [13:59:28]cmd_close_receipt [13:59:28]MH_GetDate [13:59:28]Write to MH i2c: F0 00 00 09 47 3F [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 09 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 09 00 09 47 00 C4 52 1A 67 A0 18 CA 66 C7 [13:59:28]GetLastDocTimeStamp 1729777995 [13:59:28]current date 1729778372 [13:59:28]FM_GetShiftState [13:59:28]SAM_PROTO_GetShiftState [13:59:28]wFMCommunicate request_size=4 [13:59:28]MH_SAM_APDU [13:59:28]CAPDU: 80 13 01 00 [13:59:28]Write to MH i2c: E2 08 00 0A 47 80 13 01 00 00 00 00 00 CE [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:28]Read from MH i2c: E2 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 0A 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AC [13:59:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:59:28]wFMCommunicate OK [13:59:28]SAM_PROTO_GetShiftState done [13:59:28]FM_GetShiftState done [13:59:28]opened in 1729728961 [13:59:28]opened+sec_in_day 1729815361 [13:59:28]quantity*price = 50041 [13:59:28]sum+1 = 50042 [13:59:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 235 24.10.2024 13:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189162 ФПД: 45727634634380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189162&fm=45727634634380&tin=02508201610067®Number=0000000000100030&sum=50000 [13:59:29]StoreToDocumentArchive [13:59:29]shift 463 fd 189162 [13:59:29]save to /storage/0463/doc_00189162 [13:59:29]save last doc name /storage/0463/doc_00189162 to /storage/kkm_last_doc_name [13:59:29]save OK [13:59:29]Clear old archive folders... [13:59:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:29]tlvbuf is 01578660 [13:59:29]SAM_PROTO_ClearQueue [13:59:29]wFMCommunicate request_size=4 [13:59:29]MH_SAM_APDU [13:59:29]CAPDU: 80 09 00 00 [13:59:29]Write to MH i2c: E2 08 00 17 47 80 09 00 00 00 00 00 00 D0 [13:59:29]Write i2c OK [13:59:29]MH_I2C_Read... [13:59:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:29]Read from MH i2c: E2 [13:59:29]MH_I2C_Read... [13:59:29]Read from MH i2c: E2 03 00 [13:59:29]MH_I2C_Read... [13:59:29]Read from MH i2c: E2 03 00 17 47 00 90 00 D2 [13:59:29]RAPDU: 90 00 [13:59:29]wFMCommunicate OK [13:59:29]SAM_PROTO_ClearQueue done [13:59:29]KKMCreateOFDPacket [13:59:29]OFDProtocolAddRootSTLVToBuf [13:59:29]FM_MakeSignedData [13:59:29]FM_MakeSignedData [13:59:29]SAM_PROTO_SignData [13:59:29]wFMCommunicate request_size=4 [13:59:29]MH_SAM_APDU [13:59:29]CAPDU: 80 0D 01 02 [13:59:29]Write to MH i2c: E2 08 00 18 47 80 0D 01 02 00 00 00 00 D8 [13:59:29]Write i2c OK [13:59:29]MH_I2C_Read... [13:59:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:29]Read from MH i2c: E2 [13:59:29]MH_I2C_Read... [13:59:29]Read from MH i2c: E2 03 00 [13:59:29]MH_I2C_Read... [13:59:29]Read from MH i2c: E2 03 00 18 47 00 90 00 D3 [13:59:29]RAPDU: 90 00 [13:59:29]wFMCommunicate OK [13:59:29]wFMCommunicate request_size=255 [13:59:29]MH_SAM_APDU [13:59: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C4 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E2 02 00 35 04 06 00 29 [13:59:29]Write to MH i2c: E2 02 01 19 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C4 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E2 02 00 35 04 06 00 29 00 00 94 [13:59:29]Write i2c OK [13:59:29]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 19 47 00 90 00 D4 [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]wFMCommunicate request_size=10 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 02 02 05 96 CB 6B 36 8C [13:59:30]Write to MH i2c: E2 0D 00 1A 47 80 0D 02 02 05 00 96 CB 6B 36 8C 00 00 73 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 1A 47 00 90 00 D5 [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 03 02 [13:59:30]Write to MH i2c: E2 08 00 1B 47 80 0D 03 02 00 00 00 00 DD [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0B 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0B 00 1B 47 00 B6 00 68 D8 33 B0 AF 26 90 00 8C [13:59:30]RAPDU: B6 00 68 D8 33 B0 AF 26 90 00 [13:59:30]wFMCommunicate OK [13:59:30]SAM_PROTO_SignData done [13:59:30]FM_MakeSignedData done [13:59:30]CreateOFDProtocolMessage [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 11 00 00 [13:59:30]Write to MH i2c: E2 08 00 1C 47 80 11 00 00 00 00 00 00 DD [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 17 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 17 00 1C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [13:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:30]wFMCommunicate OK [13:59:30]CreateOFDProtocolMessage done [13:59:30]OFDSenderStorePacket 189162 [13:59:30]StoreOFDPacket docnum=189162 [13:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 37 07 01 0A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C4 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E2 02 00 35 04 06 00 29 96 CB 6B 36 8C B6 00 68 D8 33 B0 AF 26 [13:59:30]CheckFolder [13:59:30]dirname=/storage/ofd_packets [13:59:30]CheckFolder done [13:59:30]ProducePacketName [13:59:30]name=ofd_packets/00189162 [13:59:30]NVStorageSaveData ofd_packets/00189162 [13:59:30]File name is /storage/ofd_packets/00189162 [13:59:30]Write 301 bytes [13:59:30]NVStorageSaveData done [13:59:30]OFDSenderStorePacket done [13:59:30]KKMCreateOFDPacket done [13:59:30]NVStorageSaveData kkm_last_timestamp [13:59:30]File name is /storage/kkm_last_timestamp [13:59:30]Write 4 bytes [13:59:30]NVStorageSaveData done [13:59:30]ExternCall_PrintAddStr [13:59:30]wPrintStart [13:59:30]Write to MH i2c: 01 00 00 1D 47 64 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 1D 47 00 00 00 00 00 FF 0F 79 [13:59:30]RasterBufferAndPrint [13:59:30]line Счет N : (1)211227 [13:59:30]line ИНН: 02508201610067 [13:59:30]line Контрольно-Кассовый Чек [13:59:30]line ПРОДАЖА [13:59:30]line ТРК (МРК, ГНК) : 12 [13:59:30]line Товар: 2710124130 [13:59:30]line Аи-92-К-3 [13:59:30]line 7.480 * 66.90 [13:59:30]line = 500.41 [13:59:30]line НДС 12% НСП 1% [13:59:30]line > о реализуемом товаре [13:59:30]line ОКРУГЛЕНИЕ: -0.41 [13:59:30]line ИТОГО: 500.00 [13:59:30]line Внесено: 500.00 [13:59:30]line СДАЧА: 0.00 [13:59:30]line НСП 1% : 4.43 [13:59:30]line НДС 12% : 53.14 [13:59:30]line Наличными: 500.00 [13:59:30]line Безнал.: 0.00 [13:59:30]line Место: АЗС № 86 "Партнер Нефть" [13:59:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:59:30]line СНО: Общий режим [13:59:30]line Чек 235 24.10.2024 13:59 [13:59:30]line Смена: 463 ФФД: 1.0 [13:59:30]line ЗНМ: 0300000155 [13:59:30]line РНМ: 0000000000100030 [13:59:30]line Версия ККМ: 001 [13:59:30]line ФМ: 0000000000965340 [13:59:30]line ФД: 189162 [13:59:30]line ФПД: 45727634634380 [13:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189162&fm=45727634634380&tin=02508201610067®Number=0000000000100030&sum=50000 [13:59:30]written 0, free lines is 4095 [13:59:30]OFD Sender: Processing packet 189162 [packets to send 1062, broken 1061] [13:59:30]ProducePacketName [13:59:30]name=ofd_packets/00189162 [13:59:30]OFD Sender: To server: pG, [13:59:30]CommunicateWithHost lk.salyk.kg:30040 [13:59:30]ConnectInit lk.salyk.kg [13:59:30]Connected sock=10 [13:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 37 07 01 0A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C4 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA E2 02 00 35 04 06 00 29 96 CB 6B 36 8C B6 00 68 D8 33 B0 AF 26 [13:59:30]Write to MH i2c: 01 00 00 48 47 8F [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 48 47 00 00 00 00 00 57 0C F9 [13:59:30]RasterBufferAndPrint [13:59:30]line [13:59:30]line [13:59:30]line [13:59:30]line [13:59:30]line [13:59:30]written 0, free lines is 3163 [13:59:30]MH_Cut [13:59:30]Write to MH i2c: D1 01 00 4F 47 01 68 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: D1 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: D1 01 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: D1 01 00 4F 47 00 67 [13:59:30]Write to MH i2c: 01 00 00 50 47 97 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 1E 47 00 7A 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 39 36 35 33 34 30 10 04 04 00 EA E2 02 00 F4 03 04 00 AC FC 19 67 B6 04 01 00 00 42 72 42 17 FE 62 38 F8 [13:59:30]CommunicateWithHost err = 0 [13:59:30]CheckOFDResponse [13:59:30]1017 (14) - 77093643461234 [13:59:30]1041 (16) - 0000000000965340 [13:59:30]1040 (4) - 189162 [13:59:30]1012 (4) - 24.10.2024 07:52 [13:59:30]1206 (1) - 0 [13:59:30]OFD Sender: Remove packet 189162 [13:59:30]ProducePacketName [13:59:30]name=ofd_packets/00189162 [13:59:30]NVStorageDeleteData [13:59:31]OFD Sender: No OFD packet to send [13:59:32]*** Cut start [13:59:32]*** Partial cut [13:59:32]*** CUTSNS_PIN = 1 [13:59:32]*** CUTSNS_PIN = 0 [13:59:32]*** Brake cut motor [13:59:32]Read from MH i2c: 01 [13:59:32]MH_I2C_Read... [13:59:32]*** Stop cut motor [13:59:32]*** Cut end [13:59:32]Read from MH i2c: 01 07 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: 01 07 00 50 47 00 00 00 00 00 FF 0F AC [13:59:32]process_action close_receipt done [13:59:32]requested_data is exist [13:59:32]produce_requested_data [13:59:32]requested_item fm.sn is exist - process it [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 11 00 00 [13:59:32]Write to MH i2c: E2 08 00 51 47 80 11 00 00 00 00 00 00 12 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 17 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 17 00 51 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [13:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:32]wFMCommunicate OK [13:59:32]requested_item fd.num is exist - process it [13:59:32]SAM_PROTO_GetFieldsCounters [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 13 00 00 [13:59:32]Write to MH i2c: E2 08 00 52 47 80 13 00 00 00 00 00 00 15 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 62 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 62 00 52 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E2 02 00 0E 04 04 00 CF 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 7B [13:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA E2 02 00 0E 04 04 00 CF 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 [13:59:32]wFMCommunicate OK [13:59:32]SAM_PROTO_GetFieldsCounters done [13:59:32]requested_item shift.num is exist - process it [13:59:32]requested_item shift.opened is exist - process it [13:59:32]req_shift_opened [13:59:32]FM_GetShiftState [13:59:32]SAM_PROTO_GetShiftState [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 13 01 00 [13:59:32]Write to MH i2c: E2 08 00 53 47 80 13 01 00 00 00 00 00 17 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0E 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0E 00 53 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F5 [13:59:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [13:59:33]wFMCommunicate OK [13:59:33]SAM_PROTO_GetShiftState done [13:59:33]FM_GetShiftState done [13:59:33]req_shift_opened done [13:59:33]requested_item shift.open_date is exist - process it [13:59:33]req_shift_open_date [13:59:33]req_shift_open_date done [13:59:33]produce_requested_data done [13:59:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189162,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [13:59:33]process_action_free close_receipt [13:59:33]json_value_free [13:59:33]json_value_free done [13:59:33]process_json_proto returns [13:59:33]Send response to host [13:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189162,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [13:59:33]free response buf [13:59:33]execute_script done [13:59:33]execute_script returns [13:59:33]free content buf [13:59:33]Sock 9.Close socket [13:59:33]Sock 9.Thread stoped [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:05]accept exits with 8 [14:00:05]New connection [14:00:05]New thread 3067215204 created [14:00:05]Thread 3067071844 joined [14:00:05]Waiting for new connection... [14:00:05] Sock 8.Parse request [14:00:05]Sock 8.Check first char [14:00:05]Sock 8.First char is OK [14:00:05]request: POST /json_proto HTTP/1.0 [14:00:05]Method: POST [14:00:05]URL: /json_proto [14:00:05]Method is POST - this is cgi request [14:00:05]url: /json_proto [14:00:05]query_string will be loaded in cgi processing [14:00:05]execute_cgi json_proto POST (null) [14:00:05]execute_cgi path=json_proto method=POST [14:00:05]POST find Content-Length [14:00:05]Host: 172.17.42.131:8080 [14:00:05]Content-Length: 682 [14:00:05]Content-Type: application/json [14:00:05] [14:00:05]POST finish read [14:00:05]Found Content-Length = 682 [14:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:00:05]execute_script... [14: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)211226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:00:05]POST & json_proto [14:00:05]process_json_proto [14:00:05]json parsed OK: [14:00:05]protocol is kg_v1.0 [14:00:05]action value=close_receipt [14:00:05]process_action close_receipt [14:00:05]cmd_close_receipt [14:00:05]MH_GetDate [14:00:05]Write to MH i2c: F0 00 00 54 47 8A [14:00:05]Write i2c OK [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 09 00 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: F0 09 00 54 47 00 E9 52 1A 67 A0 18 CA 66 37 [14:00:05]GetLastDocTimeStamp 1729778372 [14:00:05]current date 1729778409 [14:00:05]FM_GetShiftState [14:00:05]SAM_PROTO_GetShiftState [14:00:05]wFMCommunicate request_size=4 [14:00:05]MH_SAM_APDU [14:00:05]CAPDU: 80 13 01 00 [14:00:05]Write to MH i2c: E2 08 00 55 47 80 13 01 00 00 00 00 00 19 [14:00:05]Write i2c OK [14:00:05]MH_I2C_Read... [14:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:05]Read from MH i2c: E2 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: E2 0E 00 [14:00:05]MH_I2C_Read... [14:00:05]Read from MH i2c: E2 0E 00 55 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F7 [14:00:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:00:05]wFMCommunicate OK [14:00:05]SAM_PROTO_GetShiftState done [14:00:05]FM_GetShiftState done [14:00:05]opened in 1729728961 [14:00:05]opened+sec_in_day 1729815361 [14:00:05]quantity*price = 100021 [14:00:05]sum+1 = 100023 [14:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 236 24.10.2024 14:00 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189163 ФПД: 145051616838443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189163&fm=145051616838443&tin=02508201610067®Number=0000000000100030&sum=100000 [14:00:06]StoreToDocumentArchive [14:00:06]shift 463 fd 189163 [14:00:06]save to /storage/0463/doc_00189163 [14:00:06]save last doc name /storage/0463/doc_00189163 to /storage/kkm_last_doc_name [14:00:06]save OK [14:00:06]Clear old archive folders... [14:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:06]tlvbuf is 0158A490 [14:00:06]SAM_PROTO_ClearQueue [14:00:06]wFMCommunicate request_size=4 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 09 00 00 [14:00:06]Write to MH i2c: E2 08 00 62 47 80 09 00 00 00 00 00 00 1B [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:06]Read from MH i2c: E2 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 62 47 00 90 00 1D [14:00:06]RAPDU: 90 00 [14:00:06]wFMCommunicate OK [14:00:06]SAM_PROTO_ClearQueue done [14:00:06]KKMCreateOFDPacket [14:00:06]OFDProtocolAddRootSTLVToBuf [14:00:06]FM_MakeSignedData [14:00:06]FM_MakeSignedData [14:00:06]SAM_PROTO_SignData [14:00:06]wFMCommunicate request_size=4 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 0D 01 02 [14:00:06]Write to MH i2c: E2 08 00 63 47 80 0D 01 02 00 00 00 00 23 [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:06]Read from MH i2c: E2 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 63 47 00 90 00 1E [14:00:06]RAPDU: 90 00 [14:00:06]wFMCommunicate OK [14:00:06]wFMCommunicate request_size=255 [14:00:06]MH_SAM_APDU [14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E9 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E2 02 00 35 04 06 00 83 [14:00:06]Write to MH i2c: E2 02 01 64 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E9 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E2 02 00 35 04 06 00 83 00 00 7D [14:00:06]OFD Sender: No OFD packet to send [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:06]Read from MH i2c: E2 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: E2 03 00 64 47 00 90 00 1F [14:00:06]RAPDU: 90 00 [14:00:06]wFMCommunicate OK [14:00:06]wFMCommunicate request_size=10 [14:00:06]MH_SAM_APDU [14:00:06]CAPDU: 80 0D 02 02 05 EC 76 18 83 2B [14:00:06]Write to MH i2c: E2 0D 00 65 47 80 0D 02 02 05 00 EC 76 18 83 2B 00 00 58 [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 03 00 65 47 00 90 00 20 [14:00:07]RAPDU: 90 00 [14:00:07]wFMCommunicate OK [14:00:07]wFMCommunicate request_size=4 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 0D 03 02 [14:00:07]Write to MH i2c: E2 08 00 66 47 80 0D 03 02 00 00 00 00 28 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 0B 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 0B 00 66 47 00 BC 4D DE 70 EC B3 A2 D4 90 00 95 [14:00:07]RAPDU: BC 4D DE 70 EC B3 A2 D4 90 00 [14:00:07]wFMCommunicate OK [14:00:07]SAM_PROTO_SignData done [14:00:07]FM_MakeSignedData done [14:00:07]CreateOFDProtocolMessage [14:00:07]wFMCommunicate request_size=4 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 11 00 00 [14:00:07]Write to MH i2c: E2 08 00 67 47 80 11 00 00 00 00 00 00 28 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:07]Read from MH i2c: E2 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 17 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: E2 17 00 67 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [14:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:07]wFMCommunicate OK [14:00:07]CreateOFDProtocolMessage done [14:00:07]OFDSenderStorePacket 189163 [14:00:07]StoreOFDPacket docnum=189163 [14:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 FA 07 01 3D 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E9 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E2 02 00 35 04 06 00 83 EC 76 18 83 2B BC 4D DE 70 EC B3 A2 D4 [14:00:07]CheckFolder [14:00:07]dirname=/storage/ofd_packets [14:00:07]CheckFolder done [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00189163 [14:00:07]NVStorageSaveData ofd_packets/00189163 [14:00:07]File name is /storage/ofd_packets/00189163 [14:00:07]Write 301 bytes [14:00:07]NVStorageSaveData done [14:00:07]OFDSenderStorePacket done [14:00:07]KKMCreateOFDPacket done [14:00:07]NVStorageSaveData kkm_last_timestamp [14:00:07]File name is /storage/kkm_last_timestamp [14:00:07]Write 4 bytes [14:00:07]NVStorageSaveData done [14:00:07]ExternCall_PrintAddStr [14:00:07]wPrintStart [14:00:07]Write to MH i2c: 01 00 00 68 47 AF [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 68 47 00 00 00 00 00 FF 0F C4 [14:00:07]RasterBufferAndPrint [14:00:07]line Счет N : (1)211226 [14:00:07]line ИНН: 02508201610067 [14:00:07]line Контрольно-Кассовый Чек [14:00:07]line ПРОДАЖА [14:00:07]line ТРК (МРК, ГНК) : 33 [14:00:07]line Товар: 2710124500 [14:00:07]line Аи-95-К-3 [14:00:07]line 13.480 * 74.20 [14:00:07]line = 1000.22 [14:00:07]line НДС 12% НСП 1% [14:00:07]line > о реализуемом товаре [14:00:07]line ОКРУГЛЕНИЕ: -0.22 [14:00:07]line ИТОГО: 1000.00 [14:00:07]line Внесено: 1000.00 [14:00:07]line СДАЧА: 0.00 [14:00:07]line НСП 1% : 8.85 [14:00:07]line НДС 12% : 106.22 [14:00:07]line Наличными: 1000.00 [14:00:07]line Безнал.: 0.00 [14:00:07]line Место: АЗС № 86 "Партнер Нефть" [14:00:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:00:07]line СНО: Общий режим [14:00:07]line Чек 236 24.10.2024 14:00 [14:00:07]line Смена: 463 ФФД: 1.0 [14:00:07]line ЗНМ: 0300000155 [14:00:07]line РНМ: 0000000000100030 [14:00:07]line Версия ККМ: 001 [14:00:07]line ФМ: 0000000000965340 [14:00:07]line ФД: 189163 [14:00:07]line ФПД: 145051616838443 [14:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189163&fm=145051616838443&tin=02508201610067®Number=0000000000100030&sum=100000 [14:00:07]written 0, free lines is 4095 [14:00:07]OFD Sender: Processing packet 189163 [packets to send 1062, broken 1061] [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00189163 [14:00:07]OFD Sender: To server: pG, [14:00:07]CommunicateWithHost lk.salyk.kg:30040 [14:00:07]ConnectInit lk.salyk.kg [14:00:07]Write to MH i2c: 01 00 00 93 47 DA [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: 01 07 00 93 47 00 00 00 00 00 58 0C 45 [14:00:07]RasterBufferAndPrint [14:00:07]line [14:00:07]line [14:00:07]line [14:00:07]line [14:00:07]line [14:00:07]written 0, free lines is 3163 [14:00:07]MH_Cut [14:00:07]Write to MH i2c: D1 01 00 9A 47 01 B3 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: D1 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: D1 01 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: D1 01 00 9A 47 00 B2 [14:00:07]Write to MH i2c: 01 00 00 9B 47 E2 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Connected sock=11 [14:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 FA 07 01 3D 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E9 52 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB E2 02 00 35 04 06 00 83 EC 76 18 83 2B BC 4D DE 70 EC B3 A2 D4 [14:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 BD 47 00 C6 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 39 36 35 33 34 30 10 04 04 00 EB E2 02 00 F4 03 04 00 D1 FC 19 67 B6 04 01 00 00 98 06 87 86 36 E7 98 AF [14:00:07]CommunicateWithHost err = 0 [14:00:07]CheckOFDResponse [14:00:07]1017 (14) - 77093643461234 [14:00:07]1041 (16) - 0000000000965340 [14:00:07]1040 (4) - 189163 [14:00:07]1012 (4) - 24.10.2024 07:52 [14:00:07]1206 (1) - 0 [14:00:07]OFD Sender: Remove packet 189163 [14:00:07]ProducePacketName [14:00:07]name=ofd_packets/00189163 [14:00:07]NVStorageDeleteData [14:00:08]OFD Sender: No OFD packet to send [14:00:08]*** Cut start [14:00:08]*** Partial cut [14:00:08]*** CUTSNS_PIN = 1 [14:00:08]*** CUTSNS_PIN = 0 [14:00:09]*** Brake cut motor [14:00:09]Read from MH i2c: 01 [14:00:09]MH_I2C_Read... [14:00:09]*** Stop cut motor [14:00:09]*** Cut end [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 9B 47 00 00 00 00 00 FF 0F F7 [14:00:09]process_action close_receipt done [14:00:09]requested_data is exist [14:00:09]produce_requested_data [14:00:09]requested_item fm.sn is exist - process it [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 9C 47 80 11 00 00 00 00 00 00 5D [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 9C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [14:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:09]wFMCommunicate OK [14:00:09]requested_item fd.num is exist - process it [14:00:09]SAM_PROTO_GetFieldsCounters [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 13 00 00 [14:00:09]Write to MH i2c: E2 08 00 9D 47 80 13 00 00 00 00 00 00 60 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 62 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 62 00 9D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E2 02 00 0E 04 04 00 CF 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 CA [14:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB E2 02 00 0E 04 04 00 CF 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 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_GetFieldsCounters done [14:00:09]requested_item shift.num is exist - process it [14:00:09]requested_item shift.opened is exist - process it [14:00:09]req_shift_opened [14:00:09]FM_GetShiftState [14:00:09]SAM_PROTO_GetShiftState [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 13 01 00 [14:00:09]Write to MH i2c: E2 08 00 9E 47 80 13 01 00 00 00 00 00 62 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0E 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0E 00 9E 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 40 [14:00:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_GetShiftState done [14:00:09]FM_GetShiftState done [14:00:09]req_shift_opened done [14:00:09]requested_item shift.open_date is exist - process it [14:00:09]req_shift_open_date [14:00:09]req_shift_open_date done [14:00:09]produce_requested_data done [14:00:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189163,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:00:09]process_action_free close_receipt [14:00:09]json_value_free [14:00:09]json_value_free done [14:00:09]process_json_proto returns [14:00:09]Send response to host [14:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189163,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:00:09]free response buf [14:00:09]execute_script done [14:00:09]execute_script returns [14:00:09]free content buf [14:00:09]Sock 8.Close socket [14:00:09]Sock 8.Thread stoped [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:12]accept exits with 9 [14:01:12]New connection [14:01:12]New thread 3067071844 created [14:01:12]Thread 3067215204 joined [14:01:12]Waiting for new connection... [14:01:12] Sock 9.Parse request [14:01:12]Sock 9.Check first char [14:01:12]Sock 9.First char is OK [14:01:12]request: POST /json_proto HTTP/1.0 [14:01:12]Method: POST [14:01:12]URL: /json_proto [14:01:12]Method is POST - this is cgi request [14:01:12]url: /json_proto [14:01:12]query_string will be loaded in cgi processing [14:01:12]execute_cgi json_proto POST (null) [14:01:12]execute_cgi path=json_proto method=POST [14:01:12]POST find Content-Length [14:01:12]Host: 172.17.42.131:8080 [14:01:12]Content-Length: 678 [14:01:12]Content-Type: application/json [14:01:12] [14:01:12]POST finish read [14:01:12]Found Content-Length = 678 [14:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:01:12]execute_script... [14:01: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)211228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:01:12]POST & json_proto [14:01:12]process_json_proto [14:01:12]json parsed OK: [14:01:12]protocol is kg_v1.0 [14:01:12]action value=close_receipt [14:01:12]process_action close_receipt [14:01:12]cmd_close_receipt [14:01:12]MH_GetDate [14:01:12]Write to MH i2c: F0 00 00 9F 47 D5 [14:01:12]Write i2c OK [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: F0 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: F0 09 00 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: F0 09 00 9F 47 00 2C 53 1A 67 A0 18 CA 66 C6 [14:01:12]GetLastDocTimeStamp 1729778409 [14:01:12]current date 1729778476 [14:01:12]FM_GetShiftState [14:01:12]SAM_PROTO_GetShiftState [14:01:12]wFMCommunicate request_size=4 [14:01:12]MH_SAM_APDU [14:01:12]CAPDU: 80 13 01 00 [14:01:12]Write to MH i2c: E2 08 00 A0 47 80 13 01 00 00 00 00 00 64 [14:01:12]Write i2c OK [14:01:12]MH_I2C_Read... [14:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:12]Read from MH i2c: E2 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: E2 0E 00 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: E2 0E 00 A0 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 42 [14:01:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:01:12]wFMCommunicate OK [14:01:12]SAM_PROTO_GetShiftState done [14:01:12]FM_GetShiftState done [14:01:12]opened in 1729728961 [14:01:12]opened+sec_in_day 1729815361 [14:01:12]quantity*price = 70044 [14:01:12]sum+1 = 70045 [14:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 237 24.10.2024 14:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189164 ФПД: 258013557017830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189164&fm=258013557017830&tin=02508201610067®Number=0000000000100030&sum=70000 [14:01:13]StoreToDocumentArchive [14:01:13]shift 463 fd 189164 [14:01:13]save to /storage/0463/doc_00189164 [14:01:13]save last doc name /storage/0463/doc_00189164 to /storage/kkm_last_doc_name [14:01:13]save OK [14:01:13]Clear old archive folders... [14:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:13]tlvbuf is 01578490 [14:01:13]SAM_PROTO_ClearQueue [14:01:13]wFMCommunicate request_size=4 [14:01:13]MH_SAM_APDU [14:01:13]CAPDU: 80 09 00 00 [14:01:13]Write to MH i2c: E2 08 00 AD 47 80 09 00 00 00 00 00 00 66 [14:01:13]Write i2c OK [14:01:13]MH_I2C_Read... [14:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:13]Read from MH i2c: E2 [14:01:13]MH_I2C_Read... [14:01:13]Read from MH i2c: E2 03 00 [14:01:13]MH_I2C_Read... [14:01:13]Read from MH i2c: E2 03 00 AD 47 00 90 00 68 [14:01:13]RAPDU: 90 00 [14:01:13]wFMCommunicate OK [14:01:13]SAM_PROTO_ClearQueue done [14:01:13]KKMCreateOFDPacket [14:01:13]OFDProtocolAddRootSTLVToBuf [14:01:13]FM_MakeSignedData [14:01:13]FM_MakeSignedData [14:01:13]SAM_PROTO_SignData [14:01:13]wFMCommunicate request_size=4 [14:01:13]MH_SAM_APDU [14:01:13]CAPDU: 80 0D 01 02 [14:01:13]Write to MH i2c: E2 08 00 AE 47 80 0D 01 02 00 00 00 00 6E [14:01:13]Write i2c OK [14:01:13]MH_I2C_Read... [14:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:13]Read from MH i2c: E2 [14:01:13]MH_I2C_Read... [14:01:13]Read from MH i2c: E2 03 00 [14:01:13]MH_I2C_Read... [14:01:13]Read from MH i2c: E2 03 00 AE 47 00 90 00 69 [14:01:13]RAPDU: 90 00 [14:01:13]wFMCommunicate OK [14:01:13]wFMCommunicate request_size=255 [14:01:13]MH_SAM_APDU [14:01: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 ED 00 00 00 F4 03 04 00 2C 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E2 02 00 35 04 06 00 EA [14:01:13]Write to MH i2c: E2 02 01 AF 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 ED 00 00 00 F4 03 04 00 2C 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E2 02 00 35 04 06 00 EA 00 00 68 [14:01:13]OFD Sender: No OFD packet to send [14:01:13]Write i2c OK [14:01:13]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 03 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 03 00 AF 47 00 90 00 6A [14:01:14]RAPDU: 90 00 [14:01:14]wFMCommunicate OK [14:01:14]wFMCommunicate request_size=10 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 0D 02 02 05 A9 76 69 CC E6 [14:01:14]Write to MH i2c: E2 0D 00 B0 47 80 0D 02 02 05 00 A9 76 69 CC E6 00 00 B5 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 03 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 03 00 B0 47 00 90 00 6B [14:01:14]RAPDU: 90 00 [14:01:14]wFMCommunicate OK [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 0D 03 02 [14:01:14]Write to MH i2c: E2 08 00 B1 47 80 0D 03 02 00 00 00 00 73 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0B 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0B 00 B1 47 00 4F C3 3B A0 1C C5 FD AE 90 00 ED [14:01:14]RAPDU: 4F C3 3B A0 1C C5 FD AE 90 00 [14:01:14]wFMCommunicate OK [14:01:14]SAM_PROTO_SignData done [14:01:14]FM_MakeSignedData done [14:01:14]CreateOFDProtocolMessage [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 11 00 00 [14:01:14]Write to MH i2c: E2 08 00 B2 47 80 11 00 00 00 00 00 00 73 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 17 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 17 00 B2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [14:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:01:14]wFMCommunicate OK [14:01:14]CreateOFDProtocolMessage done [14:01:14]OFDSenderStorePacket 189164 [14:01:14]StoreOFDPacket docnum=189164 [14:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 C8 07 01 27 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 ED 00 00 00 F4 03 04 00 2C 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E2 02 00 35 04 06 00 EA A9 76 69 CC E6 4F C3 3B A0 1C C5 FD AE [14:01:14]CheckFolder [14:01:14]dirname=/storage/ofd_packets [14:01:14]CheckFolder done [14:01:14]ProducePacketName [14:01:14]name=ofd_packets/00189164 [14:01:14]NVStorageSaveData ofd_packets/00189164 [14:01:14]File name is /storage/ofd_packets/00189164 [14:01:14]Write 301 bytes [14:01:14]NVStorageSaveData done [14:01:14]OFDSenderStorePacket done [14:01:14]KKMCreateOFDPacket done [14:01:14]NVStorageSaveData kkm_last_timestamp [14:01:14]File name is /storage/kkm_last_timestamp [14:01:14]Write 4 bytes [14:01:14]NVStorageSaveData done [14:01:14]ExternCall_PrintAddStr [14:01:14]wPrintStart [14:01:14]Write to MH i2c: 01 00 00 B3 47 FA [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 07 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 07 00 B3 47 00 00 00 00 00 FF 0F 0F [14:01:14]RasterBufferAndPrint [14:01:14]line Счет N : (1)211228 [14:01:14]line ИНН: 02508201610067 [14:01:14]line Контрольно-Кассовый Чек [14:01:14]line ПРОДАЖА [14:01:14]line ТРК (МРК, ГНК) : 42 [14:01:14]line Товар: 2710124130 [14:01:14]line Аи-92-К-3 [14:01:14]line 10.470 * 66.90 [14:01:14]line = 700.44 [14:01:14]line НДС 12% НСП 1% [14:01:14]line > о реализуемом товаре [14:01:14]line ОКРУГЛЕНИЕ: -0.44 [14:01:14]line ИТОГО: 700.00 [14:01:14]line Внесено: 700.00 [14:01:14]line СДАЧА: 0.00 [14:01:14]line НСП 1% : 6.20 [14:01:14]line НДС 12% : 74.38 [14:01:14]line Наличными: 700.00 [14:01:14]line Безнал.: 0.00 [14:01:14]line Место: АЗС № 86 "Партнер Нефть" [14:01:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:01:14]line СНО: Общий режим [14:01:14]line Чек 237 24.10.2024 14:01 [14:01:14]line Смена: 463 ФФД: 1.0 [14:01:14]line ЗНМ: 0300000155 [14:01:14]line РНМ: 0000000000100030 [14:01:14]line Версия ККМ: 001 [14:01:14]line ФМ: 0000000000965340 [14:01:14]line ФД: 189164 [14:01:14]line ФПД: 258013557017830 [14:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189164&fm=258013557017830&tin=02508201610067®Number=0000000000100030&sum=70000 [14:01:14]written 0, free lines is 4095 [14:01:14]OFD Sender: Processing packet 189164 [packets to send 1062, broken 1061] [14:01:14]ProducePacketName [14:01:14]name=ofd_packets/00189164 [14:01:14]OFD Sender: To server: pG, [14:01:14]CommunicateWithHost lk.salyk.kg:30040 [14:01:14]ConnectInit lk.salyk.kg [14:01:14]Connected sock=11 [14:01:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 C8 07 01 27 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 ED 00 00 00 F4 03 04 00 2C 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC E2 02 00 35 04 06 00 EA A9 76 69 CC E6 4F C3 3B A0 1C C5 FD AE [14:01:14]Write to MH i2c: 01 00 00 DE 47 25 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 07 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 07 00 DE 47 00 00 00 00 00 5B 0C 93 [14:01:14]RasterBufferAndPrint [14:01:14]line [14:01:14]line [14:01:14]line [14:01:14]line [14:01:14]line [14:01:14]written 0, free lines is 3166 [14:01:14]MH_Cut [14:01:14]Write to MH i2c: D1 01 00 E5 47 01 FE [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: D1 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: D1 01 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: D1 01 00 E5 47 00 FD [14:01:14]Write to MH i2c: 01 00 00 E6 47 2D [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A6 5E 47 00 ED 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 39 36 35 33 34 30 10 04 04 00 EC E2 02 00 F4 03 04 00 14 FD 19 67 B6 04 01 00 00 1F 9E 91 E2 9C 15 A9 65 [14:01:15]CommunicateWithHost err = 0 [14:01:15]CheckOFDResponse [14:01:15]1017 (14) - 77093643461234 [14:01:15]1041 (16) - 0000000000965340 [14:01:15]1040 (4) - 189164 [14:01:15]1012 (4) - 24.10.2024 07:53 [14:01:15]1206 (1) - 0 [14:01:15]OFD Sender: Remove packet 189164 [14:01:15]ProducePacketName [14:01:15]name=ofd_packets/00189164 [14:01:15]NVStorageDeleteData [14:01:15]OFD Sender: No OFD packet to send [14:01:16]*** Cut start [14:01:16]*** Partial cut [14:01:16]*** CUTSNS_PIN = 1 [14:01:16]*** CUTSNS_PIN = 0 [14:01:16]*** Brake cut motor [14:01:16]Read from MH i2c: 01 [14:01:16]MH_I2C_Read... [14:01:16]*** Stop cut motor [14:01:16]*** Cut end [14:01:16]Read from MH i2c: 01 07 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: 01 07 00 E6 47 00 00 00 00 00 FF 0F 42 [14:01:16]process_action close_receipt done [14:01:16]requested_data is exist [14:01:16]produce_requested_data [14:01:16]requested_item fm.sn is exist - process it [14:01:16]wFMCommunicate request_size=4 [14:01:16]MH_SAM_APDU [14:01:16]CAPDU: 80 11 00 00 [14:01:16]Write to MH i2c: E2 08 00 E7 47 80 11 00 00 00 00 00 00 A8 [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:16]Read from MH i2c: E2 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 17 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 17 00 E7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [14:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:01:16]wFMCommunicate OK [14:01:16]requested_item fd.num is exist - process it [14:01:16]SAM_PROTO_GetFieldsCounters [14:01:16]wFMCommunicate request_size=4 [14:01:16]MH_SAM_APDU [14:01:16]CAPDU: 80 13 00 00 [14:01:16]Write to MH i2c: E2 08 00 E8 47 80 13 00 00 00 00 00 00 AB [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:16]Read from MH i2c: E2 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 62 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 62 00 E8 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E2 02 00 0E 04 04 00 CF 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 19 [14:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC E2 02 00 0E 04 04 00 CF 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 [14:01:16]wFMCommunicate OK [14:01:16]SAM_PROTO_GetFieldsCounters done [14:01:16]requested_item shift.num is exist - process it [14:01:16]requested_item shift.opened is exist - process it [14:01:16]req_shift_opened [14:01:16]FM_GetShiftState [14:01:16]SAM_PROTO_GetShiftState [14:01:16]wFMCommunicate request_size=4 [14:01:16]MH_SAM_APDU [14:01:16]CAPDU: 80 13 01 00 [14:01:16]Write to MH i2c: E2 08 00 E9 47 80 13 01 00 00 00 00 00 AD [14:01:16]Write i2c OK [14:01:16]MH_I2C_Read... [14:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:16]Read from MH i2c: E2 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 0E 00 [14:01:16]MH_I2C_Read... [14:01:16]Read from MH i2c: E2 0E 00 E9 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8B [14:01:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:01:16]wFMCommunicate OK [14:01:16]SAM_PROTO_GetShiftState done [14:01:16]FM_GetShiftState done [14:01:16]req_shift_opened done [14:01:16]requested_item shift.open_date is exist - process it [14:01:16]req_shift_open_date [14:01:16]req_shift_open_date done [14:01:16]produce_requested_data done [14:01:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189164,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:01:16]process_action_free close_receipt [14:01:16]json_value_free [14:01:16]json_value_free done [14:01:16]process_json_proto returns [14:01:16]Send response to host [14:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189164,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:01:16]free response buf [14:01:16]execute_script done [14:01:16]execute_script returns [14:01:16]free content buf [14:01:16]Sock 9.Close socket [14:01:16]Sock 9.Thread stoped [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:01:57]accept exits with 8 [14:01:57]New connection [14:01:57]New thread 3067215204 created [14:01:57]Thread 3067071844 joined [14:01:57]Waiting for new connection... [14:01:57] Sock 8.Parse request [14:01:57]Sock 8.Check first char [14:01:57]Sock 8.First char is OK [14:01:57]request: POST /json_proto HTTP/1.0 [14:01:57]Method: POST [14:01:57]URL: /json_proto [14:01:57]Method is POST - this is cgi request [14:01:57]url: /json_proto [14:01:57]query_string will be loaded in cgi processing [14:01:57]execute_cgi json_proto POST (null) [14:01:57]execute_cgi path=json_proto method=POST [14:01:57]POST find Content-Length [14:01:57]Host: 172.17.42.131:8080 [14:01:57]Content-Length: 677 [14:01:57]Content-Type: application/json [14:01:57] [14:01:57]POST finish read [14:01:57]Found Content-Length = 677 [14:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:01:57]execute_script... [14:01: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)211230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:01:57]POST & json_proto [14:01:57]process_json_proto [14:01:57]json parsed OK: [14:01:57]protocol is kg_v1.0 [14:01:57]action value=close_receipt [14:01:57]process_action close_receipt [14:01:57]cmd_close_receipt [14:01:57]MH_GetDate [14:01:57]Write to MH i2c: F0 00 00 EA 47 20 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: F0 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: F0 09 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: F0 09 00 EA 47 00 58 53 1A 67 A0 18 CA 66 3D [14:01:57]GetLastDocTimeStamp 1729778476 [14:01:57]current date 1729778520 [14:01:57]FM_GetShiftState [14:01:57]SAM_PROTO_GetShiftState [14:01:57]wFMCommunicate request_size=4 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 13 01 00 [14:01:57]Write to MH i2c: E2 08 00 EB 47 80 13 01 00 00 00 00 00 AF [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 0E 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 0E 00 EB 47 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8D [14:01:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:01:57]wFMCommunicate OK [14:01:57]SAM_PROTO_GetShiftState done [14:01:57]FM_GetShiftState done [14:01:57]opened in 1729728961 [14:01:57]opened+sec_in_day 1729815361 [14:01:57]quantity*price = 40068 [14:01:57]sum+1 = 40069 [14:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 238 24.10.2024 14:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189165 ФПД: 179608218578974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189165&fm=179608218578974&tin=02508201610067®Number=0000000000100030&sum=40000 [14:01:58]StoreToDocumentArchive [14:01:58]shift 463 fd 189165 [14:01:58]save to /storage/0463/doc_00189165 [14:01:58]save last doc name /storage/0463/doc_00189165 to /storage/kkm_last_doc_name [14:01:58]save OK [14:01:58]Clear old archive folders... [14:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:58]tlvbuf is 015343B0 [14:01:58]SAM_PROTO_ClearQueue [14:01:58]wFMCommunicate request_size=4 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 09 00 00 [14:01:58]Write to MH i2c: E2 08 00 F8 47 80 09 00 00 00 00 00 00 B1 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 F8 47 00 90 00 B3 [14:01:58]RAPDU: 90 00 [14:01:58]wFMCommunicate OK [14:01:58]SAM_PROTO_ClearQueue done [14:01:58]KKMCreateOFDPacket [14:01:58]OFDProtocolAddRootSTLVToBuf [14:01:58]FM_MakeSignedData [14:01:58]FM_MakeSignedData [14:01:58]SAM_PROTO_SignData [14:01:58]wFMCommunicate request_size=4 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 0D 01 02 [14:01:58]Write to MH i2c: E2 08 00 F9 47 80 0D 01 02 00 00 00 00 B9 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 F9 47 00 90 00 B4 [14:01:58]RAPDU: 90 00 [14:01:58]wFMCommunicate OK [14:01:58]wFMCommunicate request_size=255 [14:01:58]MH_SAM_APDU [14:01: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 33 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 EE 00 00 00 F4 03 04 00 58 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E2 02 00 35 04 06 00 A3 [14:01:58]Write to MH i2c: E2 02 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 EE 00 00 00 F4 03 04 00 58 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E2 02 00 35 04 06 00 A3 00 00 39 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 FA 47 00 90 00 B5 [14:01:58]RAPDU: 90 00 [14:01:58]wFMCommunicate OK [14:01:58]wFMCommunicate request_size=10 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 0D 02 02 05 5A 4C 11 30 1E [14:01:58]Write to MH i2c: E2 0D 00 FB 47 80 0D 02 02 05 00 5A 4C 11 30 1E 00 00 CB [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 03 00 FB 47 00 90 00 B6 [14:01:58]RAPDU: 90 00 [14:01:58]wFMCommunicate OK [14:01:58]wFMCommunicate request_size=4 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 0D 03 02 [14:01:58]Write to MH i2c: E2 08 00 FC 47 80 0D 03 02 00 00 00 00 BE [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 0B 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 0B 00 FC 47 00 51 55 63 4C 0D 2D 7D CB 90 00 96 [14:01:58]RAPDU: 51 55 63 4C 0D 2D 7D CB 90 00 [14:01:58]wFMCommunicate OK [14:01:58]SAM_PROTO_SignData done [14:01:58]FM_MakeSignedData done [14:01:58]CreateOFDProtocolMessage [14:01:58]wFMCommunicate request_size=4 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 11 00 00 [14:01:58]Write to MH i2c: E2 08 00 FD 47 80 11 00 00 00 00 00 00 BE [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:59]Read from MH i2c: E2 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 17 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 17 00 FD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [14:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:01:59]wFMCommunicate OK [14:01:59]CreateOFDProtocolMessage done [14:01:59]OFDSenderStorePacket 189165 [14:01:59]StoreOFDPacket docnum=189165 [14:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 6D 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 EE 00 00 00 F4 03 04 00 58 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E2 02 00 35 04 06 00 A3 5A 4C 11 30 1E 51 55 63 4C 0D 2D 7D CB [14:01:59]CheckFolder [14:01:59]dirname=/storage/ofd_packets [14:01:59]CheckFolder done [14:01:59]ProducePacketName [14:01:59]name=ofd_packets/00189165 [14:01:59]NVStorageSaveData ofd_packets/00189165 [14:01:59]File name is /storage/ofd_packets/00189165 [14:01:59]Write 301 bytes [14:01:59]NVStorageSaveData done [14:01:59]OFDSenderStorePacket done [14:01:59]KKMCreateOFDPacket done [14:01:59]NVStorageSaveData kkm_last_timestamp [14:01:59]File name is /storage/kkm_last_timestamp [14:01:59]Write 4 bytes [14:01:59]NVStorageSaveData done [14:01:59]ExternCall_PrintAddStr [14:01:59]wPrintStart [14:01:59]Write to MH i2c: 01 00 00 FE 47 45 [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 07 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 07 00 FE 47 00 00 00 00 00 FF 0F 5A [14:01:59]RasterBufferAndPrint [14:01:59]line Счет N : (1)211230 [14:01:59]line ИНН: 02508201610067 [14:01:59]line Контрольно-Кассовый Чек [14:01:59]line ПРОДАЖА [14:01:59]line ТРК (МРК, ГНК) : 23 [14:01:59]line Товар: 2710124500 [14:01:59]line Аи-95-К-3 [14:01:59]line 5.400 * 74.20 [14:01:59]line = 400.68 [14:01:59]line НДС 12% НСП 1% [14:01:59]line > о реализуемом товаре [14:01:59]line ОКРУГЛЕНИЕ: -0.68 [14:01:59]line ИТОГО: 400.00 [14:01:59]line Внесено: 400.00 [14:01:59]line СДАЧА: 0.00 [14:01:59]line НСП 1% : 3.55 [14:01:59]line НДС 12% : 42.55 [14:01:59]line Наличными: 400.00 [14:01:59]line Безнал.: 0.00 [14:01:59]line Место: АЗС № 86 "Партнер Нефть" [14:01:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:01:59]line СНО: Общий режим [14:01:59]line Чек 238 24.10.2024 14:02 [14:01:59]line Смена: 463 ФФД: 1.0 [14:01:59]line ЗНМ: 0300000155 [14:01:59]line РНМ: 0000000000100030 [14:01:59]line Версия ККМ: 001 [14:01:59]line ФМ: 0000000000965340 [14:01:59]line ФД: 189165 [14:01:59]line ФПД: 179608218578974 [14:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189165&fm=179608218578974&tin=02508201610067®Number=0000000000100030&sum=40000 [14:01:59]OFD Sender: Processing packet 189165 [packets to send 1062, broken 1061] [14:01:59]ProducePacketName [14:01:59]name=ofd_packets/00189165 [14:01:59]OFD Sender: To server: pG, [14:01:59]CommunicateWithHost lk.salyk.kg:30040 [14:01:59]ConnectInit lk.salyk.kg [14:01:59]written 0, free lines is 4095 [14:01:59]Connected sock=10 [14:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 6D 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 EE 00 00 00 F4 03 04 00 58 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E2 02 00 35 04 06 00 A3 5A 4C 11 30 1E 51 55 63 4C 0D 2D 7D CB [14:01:59]Write to MH i2c: 01 00 00 29 48 71 [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 07 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: 01 07 00 29 48 00 00 00 00 00 5F 0C E3 [14:01:59]RasterBufferAndPrint [14:01:59]line [14:01:59]line [14:01:59]line [14:01:59]line [14:01:59]line [14:01:59]written 0, free lines is 3172 [14:01:59]MH_Cut [14:01:59]Write to MH i2c: D1 01 00 30 48 01 4A [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: D1 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: D1 01 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: D1 01 00 30 48 00 49 [14:01:59]Write to MH i2c: 01 00 00 31 48 79 [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 5C 47 00 A1 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED E2 02 00 F4 03 04 00 40 FD 19 67 B6 04 01 00 00 D8 52 A7 EC F2 25 03 95 [14:01:59]CommunicateWithHost err = 0 [14:01:59]CheckOFDResponse [14:01:59]1017 (14) - 77093643461234 [14:01:59]1041 (16) - 0000000000965340 [14:01:59]1040 (4) - 189165 [14:01:59]1012 (4) - 24.10.2024 07:54 [14:01:59]1206 (1) - 0 [14:01:59]OFD Sender: Remove packet 189165 [14:01:59]ProducePacketName [14:01:59]name=ofd_packets/00189165 [14:01:59]NVStorageDeleteData [14:02:00]OFD Sender: No OFD packet to send [14:02:00]*** Cut start [14:02:00]*** Partial cut [14:02:00]*** CUTSNS_PIN = 1 [14:02:00]*** CUTSNS_PIN = 0 [14:02:01]*** Brake cut motor [14:02:01]Read from MH i2c: 01 [14:02:01]MH_I2C_Read... [14:02:01]*** Stop cut motor [14:02:01]*** Cut end [14:02:01]Read from MH i2c: 01 07 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 31 48 00 00 00 00 00 FF 0F 8E [14:02:01]process_action close_receipt done [14:02:01]requested_data is exist [14:02:01]produce_requested_data [14:02:01]requested_item fm.sn is exist - process it [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 11 00 00 [14:02:01]Write to MH i2c: E2 08 00 32 48 80 11 00 00 00 00 00 00 F4 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 32 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [14:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:02:01]wFMCommunicate OK [14:02:01]requested_item fd.num is exist - process it [14:02:01]SAM_PROTO_GetFieldsCounters [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 00 00 [14:02:01]Write to MH i2c: E2 08 00 33 48 80 13 00 00 00 00 00 00 F7 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 33 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E2 02 00 0E 04 04 00 CF 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 69 [14:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED E2 02 00 0E 04 04 00 CF 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 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetFieldsCounters done [14:02:01]requested_item shift.num is exist - process it [14:02:01]requested_item shift.opened is exist - process it [14:02:01]req_shift_opened [14:02:01]FM_GetShiftState [14:02:01]SAM_PROTO_GetShiftState [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 01 00 [14:02:01]Write to MH i2c: E2 08 00 34 48 80 13 01 00 00 00 00 00 F9 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 34 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D7 [14:02:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetShiftState done [14:02:01]FM_GetShiftState done [14:02:01]req_shift_opened done [14:02:01]requested_item shift.open_date is exist - process it [14:02:01]req_shift_open_date [14:02:01]req_shift_open_date done [14:02:01]produce_requested_data done [14:02:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189165,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:02:01]process_action_free close_receipt [14:02:01]json_value_free [14:02:01]json_value_free done [14:02:01]process_json_proto returns [14:02:01]Send response to host [14:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189165,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:02:01]free response buf [14:02:01]execute_script done [14:02:01]execute_script returns [14:02:01]free content buf [14:02:01]Sock 8.Close socket [14:02:01]Sock 8.Thread stoped [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:41]accept exits with 9 [14:03:41]New connection [14:03:41]New thread 3067071844 created [14:03:41]Thread 3067215204 joined [14:03:41]Waiting for new connection... [14:03:41] Sock 9.Parse request [14:03:41]Sock 9.Check first char [14:03:41]Sock 9.First char is OK [14:03:41]request: POST /json_proto HTTP/1.0 [14:03:41]Method: POST [14:03:41]URL: /json_proto [14:03:41]Method is POST - this is cgi request [14:03:41]url: /json_proto [14:03:41]query_string will be loaded in cgi processing [14:03:41]execute_cgi json_proto POST (null) [14:03:41]execute_cgi path=json_proto method=POST [14:03:41]POST find Content-Length [14:03:41]Host: 172.17.42.131:8080 [14:03:41]Content-Length: 775 [14:03:41]Content-Type: application/json [14:03:41] [14:03:41]POST finish read [14:03:41]Found Content-Length = 775 [14:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.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: Mbank", "payments": [ { "type": 1, "sum" : 1100.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:41]execute_script... [14:03: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)211231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.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: Mbank", "payments": [ { "type": 1, "sum" : 1100.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:41]POST & json_proto [14:03:41]process_json_proto [14:03:41]json parsed OK: [14:03:41]protocol is kg_v1.0 [14:03:41]action value=close_receipt [14:03:41]process_action close_receipt [14:03:41]cmd_close_receipt [14:03:41]MH_GetDate [14:03:41]Write to MH i2c: F0 00 00 35 48 6C [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: F0 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: F0 09 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: F0 09 00 35 48 00 C1 53 1A 67 A0 18 CA 66 F2 [14:03:41]GetLastDocTimeStamp 1729778520 [14:03:41]current date 1729778625 [14:03:41]FM_GetShiftState [14:03:41]SAM_PROTO_GetShiftState [14:03:41]wFMCommunicate request_size=4 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 13 01 00 [14:03:41]Write to MH i2c: E2 08 00 36 48 80 13 01 00 00 00 00 00 FB [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 0E 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 0E 00 36 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D9 [14:03:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:03:41]wFMCommunicate OK [14:03:41]SAM_PROTO_GetShiftState done [14:03:41]FM_GetShiftState done [14:03:41]opened in 1729728961 [14:03:41]opened+sec_in_day 1729815361 [14:03:41]quantity*price = 110010 [14:03:41]sum+1 = 110011 [14:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.10 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 0.00 Безнал.: 1100.10 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 239 24.10.2024 14:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189166 ФПД: 246365632550222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189166&fm=246365632550222&tin=02508201610067®Number=0000000000100030&sum=110010 [14:03:42]StoreToDocumentArchive [14:03:42]shift 463 fd 189166 [14:03:42]save to /storage/0463/doc_00189166 [14:03:42]save last doc name /storage/0463/doc_00189166 to /storage/kkm_last_doc_name [14:03:42]save OK [14:03:42]Clear old archive folders... [14:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:03:42]tlvbuf is 014C31B0 [14:03:42]SAM_PROTO_ClearQueue [14:03:42]wFMCommunicate request_size=4 [14:03:42]MH_SAM_APDU [14:03:42]CAPDU: 80 09 00 00 [14:03:42]Write to MH i2c: E2 08 00 43 48 80 09 00 00 00 00 00 00 FD [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:42]Read from MH i2c: E2 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: E2 03 00 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: E2 03 00 43 48 00 90 00 FF [14:03:42]RAPDU: 90 00 [14:03:42]wFMCommunicate OK [14:03:42]SAM_PROTO_ClearQueue done [14:03:42]KKMCreateOFDPacket [14:03:42]OFDProtocolAddRootSTLVToBuf [14:03:42]FM_MakeSignedData [14:03:42]FM_MakeSignedData [14:03:42]SAM_PROTO_SignData [14:03:42]wFMCommunicate request_size=4 [14:03:42]MH_SAM_APDU [14:03:42]CAPDU: 80 0D 01 02 [14:03:42]Write to MH i2c: E2 08 00 44 48 80 0D 01 02 00 00 00 00 05 [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:42]Read from MH i2c: E2 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: E2 03 00 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: E2 03 00 44 48 00 90 00 00 [14:03:42]RAPDU: 90 00 [14:03:42]wFMCommunicate OK [14:03:42]wFMCommunicate request_size=255 [14:03:42]MH_SAM_APDU [14:03:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C1 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E2 02 [14:03:42]Write to MH i2c: E2 02 01 45 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C1 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E2 02 00 00 A4 [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:43]Read from MH i2c: E2 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 03 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 03 00 45 48 00 90 00 01 [14:03:43]RAPDU: 90 00 [14:03:43]wFMCommunicate OK [14:03:43]wFMCommunicate request_size=16 [14:03:43]MH_SAM_APDU [14:03:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E0 11 78 03 55 4E [14:03:43]Write to MH i2c: E2 13 00 46 48 80 0D 02 02 0B 00 00 35 04 06 00 E0 11 78 03 55 4E 00 00 6C [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:43]Read from MH i2c: E2 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 03 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 03 00 46 48 00 90 00 02 [14:03:43]RAPDU: 90 00 [14:03:43]wFMCommunicate OK [14:03:43]wFMCommunicate request_size=4 [14:03:43]MH_SAM_APDU [14:03:43]CAPDU: 80 0D 03 02 [14:03:43]Write to MH i2c: E2 08 00 47 48 80 0D 03 02 00 00 00 00 0A [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:43]Read from MH i2c: E2 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 0B 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 0B 00 47 48 00 F0 AE 6F 60 4F 1A 3F 0C 90 00 2C [14:03:43]RAPDU: F0 AE 6F 60 4F 1A 3F 0C 90 00 [14:03:43]wFMCommunicate OK [14:03:43]SAM_PROTO_SignData done [14:03:43]FM_MakeSignedData done [14:03:43]CreateOFDProtocolMessage [14:03:43]wFMCommunicate request_size=4 [14:03:43]MH_SAM_APDU [14:03:43]CAPDU: 80 11 00 00 [14:03:43]Write to MH i2c: E2 08 00 48 48 80 11 00 00 00 00 00 00 0A [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:43]Read from MH i2c: E2 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 17 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 17 00 48 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [14:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:43]wFMCommunicate OK [14:03:43]CreateOFDProtocolMessage done [14:03:43]OFDSenderStorePacket 189166 [14:03:43]StoreOFDPacket docnum=189166 [14:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B B4 0D 01 BE AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C1 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E2 02 00 35 04 06 00 E0 11 78 03 55 4E F0 AE 6F 60 4F 1A 3F 0C [14:03:43]CheckFolder [14:03:43]dirname=/storage/ofd_packets [14:03:43]CheckFolder done [14:03:43]ProducePacketName [14:03:43]name=ofd_packets/00189166 [14:03:43]NVStorageSaveData ofd_packets/00189166 [14:03:43]File name is /storage/ofd_packets/00189166 [14:03:43]Write 307 bytes [14:03:43]NVStorageSaveData done [14:03:43]OFDSenderStorePacket done [14:03:43]KKMCreateOFDPacket done [14:03:43]NVStorageSaveData kkm_last_timestamp [14:03:43]File name is /storage/kkm_last_timestamp [14:03:43]Write 4 bytes [14:03:43]NVStorageSaveData done [14:03:43]ExternCall_PrintAddStr [14:03:43]wPrintStart [14:03:43]Write to MH i2c: 01 00 00 49 48 91 [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 07 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 FF 0F A6 [14:03:43]RasterBufferAndPrint [14:03:43]line Счет N : (1)211231 [14:03:43]line ИНН: 02508201610067 [14:03:43]line Контрольно-Кассовый Чек [14:03:43]line ПРОДАЖА [14:03:43]line ТРК (МРК, ГНК) : 11 [14:03:43]line Товар: 2710194210 [14:03:43]line D-ENERGY ДТ-К-5 [14:03:43]line 14.250 * 77.20 [14:03:43]line = 1100.10 [14:03:43]line НДС 12% НСП 1% [14:03:43]line > о реализуемом товаре [14:03:43]line ИТОГО: 1100.10 [14:03:43]line НСП 1% : 9.73 [14:03:43]line НДС 12% : 116.82 [14:03:43]line Наличными: 0.00 [14:03:43]line Безнал.: 1100.10 [14:03:43]line Место: АЗС № 86 "Партнер Нефть" [14:03:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:43]line СНО: Общий режим [14:03:43]line Чек 239 24.10.2024 14:03 [14:03:43]line Смена: 463 ФФД: 1.0 [14:03:43]line ЗНМ: 0300000155 [14:03:43]line РНМ: 0000000000100030 [14:03:43]line Версия ККМ: 001 [14:03:43]line Платежная система: Mbank [14:03:43]line ФМ: 0000000000965340 [14:03:43]line ФД: 189166 [14:03:43]line ФПД: 246365632550222 [14:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189166&fm=246365632550222&tin=02508201610067®Number=0000000000100030&sum=110010 [14:03:43]written 0, free lines is 4095 [14:03:43]OFD Sender: Processing packet 189166 [packets to send 1062, broken 1061] [14:03:43]ProducePacketName [14:03:43]name=ofd_packets/00189166 [14:03:43]OFD Sender: To server: pG, [14:03:43]CommunicateWithHost lk.salyk.kg:30040 [14:03:43]ConnectInit lk.salyk.kg [14:03:43]Connected sock=10 [14:03:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B B4 0D 01 BE AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C1 53 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE E2 02 00 35 04 06 00 E0 11 78 03 55 4E F0 AE 6F 60 4F 1A 3F 0C [14:03:43]Write to MH i2c: 01 00 00 72 48 BA [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 07 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 07 00 72 48 00 00 00 00 00 91 0C 5E [14:03:43]RasterBufferAndPrint [14:03:43]line [14:03:43]line [14:03:43]line [14:03:43]line [14:03:43]line [14:03:43]written 0, free lines is 3221 [14:03:43]MH_Cut [14:03:43]Write to MH i2c: D1 01 00 79 48 01 93 [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: D1 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: D1 01 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: D1 01 00 79 48 00 92 [14:03:43]Write to MH i2c: 01 00 00 7A 48 C2 [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC D7 47 00 3C 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 39 36 35 33 34 30 10 04 04 00 EE E2 02 00 F4 03 04 00 A9 FD 19 67 B6 04 01 00 00 01 14 9F 2A D9 AC 7B B6 [14:03:43]CommunicateWithHost err = 0 [14:03:43]CheckOFDResponse [14:03:43]1017 (14) - 77093643461234 [14:03:43]1041 (16) - 0000000000965340 [14:03:43]1040 (4) - 189166 [14:03:43]1012 (4) - 24.10.2024 07:56 [14:03:43]1206 (1) - 0 [14:03:43]OFD Sender: Remove packet 189166 [14:03:43]ProducePacketName [14:03:43]name=ofd_packets/00189166 [14:03:43]NVStorageDeleteData [14:03:44]OFD Sender: No OFD packet to send [14:03:45]*** Cut start [14:03:45]*** Partial cut [14:03:45]*** CUTSNS_PIN = 1 [14:03:45]*** CUTSNS_PIN = 0 [14:03:45]*** Brake cut motor [14:03:45]Read from MH i2c: 01 [14:03:45]MH_I2C_Read... [14:03:45]*** Stop cut motor [14:03:45]*** Cut end [14:03:45]Read from MH i2c: 01 07 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 07 00 7A 48 00 00 00 00 00 FF 0F D7 [14:03:45]process_action close_receipt done [14:03:45]requested_data is exist [14:03:45]produce_requested_data [14:03:45]requested_item fm.sn is exist - process it [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 11 00 00 [14:03:45]Write to MH i2c: E2 08 00 7B 48 80 11 00 00 00 00 00 00 3D [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 7B 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [14:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:45]wFMCommunicate OK [14:03:45]requested_item fd.num is exist - process it [14:03:45]SAM_PROTO_GetFieldsCounters [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 13 00 00 [14:03:45]Write to MH i2c: E2 08 00 7C 48 80 13 00 00 00 00 00 00 40 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 62 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 62 00 7C 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E2 02 00 0E 04 04 00 CF 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 B6 [14:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE E2 02 00 0E 04 04 00 CF 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 [14:03:45]wFMCommunicate OK [14:03:45]SAM_PROTO_GetFieldsCounters done [14:03:45]requested_item shift.num is exist - process it [14:03:45]requested_item shift.opened is exist - process it [14:03:45]req_shift_opened [14:03:45]FM_GetShiftState [14:03:45]SAM_PROTO_GetShiftState [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 13 01 00 [14:03:45]Write to MH i2c: E2 08 00 7D 48 80 13 01 00 00 00 00 00 42 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:46]Read from MH i2c: E2 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: E2 0E 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: E2 0E 00 7D 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 20 [14:03:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:03:46]wFMCommunicate OK [14:03:46]SAM_PROTO_GetShiftState done [14:03:46]FM_GetShiftState done [14:03:46]req_shift_opened done [14:03:46]requested_item shift.open_date is exist - process it [14:03:46]req_shift_open_date [14:03:46]req_shift_open_date done [14:03:46]produce_requested_data done [14:03:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189166,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:03:46]process_action_free close_receipt [14:03:46]json_value_free [14:03:46]json_value_free done [14:03:46]process_json_proto returns [14:03:46]Send response to host [14:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189166,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:03:46]free response buf [14:03:46]execute_script done [14:03:46]execute_script returns [14:03:46]free content buf [14:03:46]Sock 9.Close socket [14:03:46]Sock 9.Thread stoped [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:36]accept exits with 8 [14:05:36]New connection [14:05:36]New thread 3067215204 created [14:05:36]Thread 3067071844 joined [14:05:36]Waiting for new connection... [14:05:36] Sock 8.Parse request [14:05:36]Sock 8.Check first char [14:05:36]Sock 8.First char is OK [14:05:36]request: POST /json_proto HTTP/1.0 [14:05:36]Method: POST [14:05:36]URL: /json_proto [14:05:36]Method is POST - this is cgi request [14:05:36]url: /json_proto [14:05:36]query_string will be loaded in cgi processing [14:05:36]execute_cgi json_proto POST (null) [14:05:36]execute_cgi path=json_proto method=POST [14:05:36]POST find Content-Length [14:05:36]Host: 172.17.42.131:8080 [14:05:36]Content-Length: 754 [14:05:36]Content-Type: application/json [14:05:36] [14:05:36]POST finish read [14:05:36]Found Content-Length = 754 [14:05:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:36]execute_script... [14:05: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)211232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:36]POST & json_proto [14:05:36]process_json_proto [14:05:36]json parsed OK: [14:05:36]protocol is kg_v1.0 [14:05:36]action value=close_receipt [14:05:36]process_action close_receipt [14:05:36]cmd_close_receipt [14:05:36]MH_GetDate [14:05:36]Write to MH i2c: F0 00 00 7E 48 B5 [14:05:36]Write i2c OK [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: F0 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: F0 09 00 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: F0 09 00 7E 48 00 34 54 1A 67 A0 18 CA 66 AF [14:05:36]GetLastDocTimeStamp 1729778625 [14:05:36]current date 1729778740 [14:05:36]FM_GetShiftState [14:05:36]SAM_PROTO_GetShiftState [14:05:36]wFMCommunicate request_size=4 [14:05:36]MH_SAM_APDU [14:05:36]CAPDU: 80 13 01 00 [14:05:36]Write to MH i2c: E2 08 00 7F 48 80 13 01 00 00 00 00 00 44 [14:05:36]Write i2c OK [14:05:36]MH_I2C_Read... [14:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:36]Read from MH i2c: E2 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 0E 00 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 0E 00 7F 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 22 [14:05:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:05:36]wFMCommunicate OK [14:05:36]SAM_PROTO_GetShiftState done [14:05:36]FM_GetShiftState done [14:05:36]opened in 1729728961 [14:05:36]opened+sec_in_day 1729815361 [14:05:36]quantity*price = 0 [14:05:36]sum+1 = 1 [14:05:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 240 24.10.2024 14:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118642 ФМ: 0000000000965340 ФД: 189167 ФПД: 177864917891702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189167&fm=177864917891702&tin=02508201610067®Number=0000000000100030&sum=0 [14:05:37]StoreToDocumentArchive [14:05:37]shift 463 fd 189167 [14:05:37]save to /storage/0463/doc_00189167 [14:05:37]save last doc name /storage/0463/doc_00189167 to /storage/kkm_last_doc_name [14:05:37]save OK [14:05:37]Clear old archive folders... [14:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:37]tlvbuf is 01641070 [14:05:37]SAM_PROTO_ClearQueue [14:05:37]wFMCommunicate request_size=4 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 09 00 00 [14:05:37]Write to MH i2c: E2 08 00 8C 48 80 09 00 00 00 00 00 00 46 [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 8C 48 00 90 00 48 [14:05:37]RAPDU: 90 00 [14:05:37]wFMCommunicate OK [14:05:37]SAM_PROTO_ClearQueue done [14:05:37]KKMCreateOFDPacket [14:05:37]OFDProtocolAddRootSTLVToBuf [14:05:37]FM_MakeSignedData [14:05:37]FM_MakeSignedData [14:05:37]SAM_PROTO_SignData [14:05:37]wFMCommunicate request_size=4 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 0D 01 02 [14:05:37]Write to MH i2c: E2 08 00 8D 48 80 0D 01 02 00 00 00 00 4E [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 8D 48 00 90 00 49 [14:05:37]RAPDU: 90 00 [14:05:37]wFMCommunicate OK [14:05:37]wFMCommunicate request_size=255 [14:05:37]MH_SAM_APDU [14:05: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 33 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 F0 00 00 00 F4 03 04 00 34 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E2 02 00 35 04 06 00 A1 [14:05:37]Write to MH i2c: E2 02 01 8E 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 33 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 F0 00 00 00 F4 03 04 00 34 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E2 02 00 35 04 06 00 A1 00 00 E7 [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 8E 48 00 90 00 4A [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]wFMCommunicate request_size=10 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 02 02 05 C4 67 3F BA 76 [14:05:38]Write to MH i2c: E2 0D 00 8F 48 80 0D 02 02 05 00 C4 67 3F BA 76 00 00 F5 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 03 00 8F 48 00 90 00 4B [14:05:38]RAPDU: 90 00 [14:05:38]wFMCommunicate OK [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 0D 03 02 [14:05:38]Write to MH i2c: E2 08 00 90 48 80 0D 03 02 00 00 00 00 53 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 0B 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 0B 00 90 48 00 0F DE BC B2 0A 39 46 BA 90 00 F2 [14:05:38]RAPDU: 0F DE BC B2 0A 39 46 BA 90 00 [14:05:38]wFMCommunicate OK [14:05:38]SAM_PROTO_SignData done [14:05:38]FM_MakeSignedData done [14:05:38]CreateOFDProtocolMessage [14:05:38]wFMCommunicate request_size=4 [14:05:38]MH_SAM_APDU [14:05:38]CAPDU: 80 11 00 00 [14:05:38]Write to MH i2c: E2 08 00 91 48 80 11 00 00 00 00 00 00 53 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:38]Read from MH i2c: E2 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 17 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: E2 17 00 91 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [14:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:38]wFMCommunicate OK [14:05:38]CreateOFDProtocolMessage done [14:05:38]OFDSenderStorePacket 189167 [14:05:38]StoreOFDPacket docnum=189167 [14:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 03 1C 07 01 2E 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 33 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 F0 00 00 00 F4 03 04 00 34 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E2 02 00 35 04 06 00 A1 C4 67 3F BA 76 0F DE BC B2 0A 39 46 BA [14:05:38]CheckFolder [14:05:38]dirname=/storage/ofd_packets [14:05:38]CheckFolder done [14:05:38]ProducePacketName [14:05:38]name=ofd_packets/00189167 [14:05:38]NVStorageSaveData ofd_packets/00189167 [14:05:38]File name is /storage/ofd_packets/00189167 [14:05:38]Write 301 bytes [14:05:38]NVStorageSaveData done [14:05:38]OFDSenderStorePacket done [14:05:38]KKMCreateOFDPacket done [14:05:38]NVStorageSaveData kkm_last_timestamp [14:05:38]File name is /storage/kkm_last_timestamp [14:05:38]Write 4 bytes [14:05:38]NVStorageSaveData done [14:05:38]ExternCall_PrintAddStr [14:05:38]wPrintStart [14:05:38]Write to MH i2c: 01 00 00 92 48 DA [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 92 48 00 00 00 00 00 FF 0F EF [14:05:38]RasterBufferAndPrint [14:05:38]line Счет N : (1)211232 [14:05:38]line ИНН: 02508201610067 [14:05:38]line Контрольно-Кассовый Чек [14:05:38]line ПРОДАЖА [14:05:38]line ТРК (МРК, ГНК) : 32 [14:05:38]line Товар: 2710124130 [14:05:38]line Аи-92-К-3 [14:05:38]line 20.000 * 0.00 [14:05:38]line = 0.00 [14:05:38]line НДС 12% НСП 1% [14:05:38]line > о реализуемом товаре [14:05:38]line ИТОГО: 0.00 [14:05:38]line НСП 1% : 0.00 [14:05:38]line НДС 12% : 0.00 [14:05:38]line Наличными: 0.00 [14:05:38]line Безнал.: 0.00 [14:05:38]line Место: АЗС № 86 "Партнер Нефть" [14:05:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:38]line СНО: Общий режим [14:05:38]line Чек 240 24.10.2024 14:05 [14:05:38]line Смена: 463 ФФД: 1.0 [14:05:38]line ЗНМ: 0300000155 [14:05:38]line РНМ: 0000000000100030 [14:05:38]line Версия ККМ: 001 [14:05:38]line Талоны: ТК ГПНА Online [14:05:38]line 30118642 [14:05:38]line ФМ: 0000000000965340 [14:05:38]line ФД: 189167 [14:05:38]line ФПД: 177864917891702 [14:05:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189167&fm=177864917891702&tin=02508201610067®Number=0000000000100030&sum=0 [14:05:38]written 0, free lines is 4095 [14:05:38]OFD Sender: Processing packet 189167 [packets to send 1062, broken 1061] [14:05:38]ProducePacketName [14:05:38]name=ofd_packets/00189167 [14:05:38]OFD Sender: To server: pG, [14:05:38]CommunicateWithHost lk.salyk.kg:30040 [14:05:38]ConnectInit lk.salyk.kg [14:05:38]Connected sock=10 [14:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 03 1C 07 01 2E 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 33 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 F0 00 00 00 F4 03 04 00 34 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF E2 02 00 35 04 06 00 A1 C4 67 3F BA 76 0F DE BC B2 0A 39 46 BA [14:05:38]Write to MH i2c: 01 00 00 BC 48 04 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 BC 48 00 00 00 00 00 71 0C 88 [14:05:38]RasterBufferAndPrint [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]written 0, free lines is 3191 [14:05:38]MH_Cut [14:05:38]Write to MH i2c: D1 01 00 C3 48 01 DD [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 01 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 01 00 C3 48 00 DC [14:05:38]Write to MH i2c: 01 00 00 C4 48 0C [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 9D 47 00 8C 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 39 36 35 33 34 30 10 04 04 00 EF E2 02 00 F4 03 04 00 1B FE 19 67 B6 04 01 00 00 D4 9C 83 06 6A F8 4F F1 [14:05:38]CommunicateWithHost err = 0 [14:05:38]CheckOFDResponse [14:05:38]1017 (14) - 77093643461234 [14:05:38]1041 (16) - 0000000000965340 [14:05:38]1040 (4) - 189167 [14:05:38]1012 (4) - 24.10.2024 07:58 [14:05:38]1206 (1) - 0 [14:05:38]OFD Sender: Remove packet 189167 [14:05:38]ProducePacketName [14:05:38]name=ofd_packets/00189167 [14:05:38]NVStorageDeleteData [14:05:39]OFD Sender: No OFD packet to send [14:05:39]*** Cut start [14:05:39]*** Partial cut [14:05:39]*** CUTSNS_PIN = 1 [14:05:39]*** CUTSNS_PIN = 0 [14:05:40]*** Brake cut motor [14:05:40]Read from MH i2c: 01 [14:05:40]MH_I2C_Read... [14:05:40]*** Stop cut motor [14:05:40]*** Cut end [14:05:40]Read from MH i2c: 01 07 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: 01 07 00 C4 48 00 00 00 00 00 FF 0F 21 [14:05:40]process_action close_receipt done [14:05:40]requested_data is exist [14:05:40]produce_requested_data [14:05:40]requested_item fm.sn is exist - process it [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 11 00 00 [14:05:40]Write to MH i2c: E2 08 00 C5 48 80 11 00 00 00 00 00 00 87 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 17 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 17 00 C5 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [14:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:40]wFMCommunicate OK [14:05:40]requested_item fd.num is exist - process it [14:05:40]SAM_PROTO_GetFieldsCounters [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 00 00 [14:05:40]Write to MH i2c: E2 08 00 C6 48 80 13 00 00 00 00 00 00 8A [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 62 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 62 00 C6 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E2 02 00 0E 04 04 00 CF 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 04 [14:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF E2 02 00 0E 04 04 00 CF 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 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetFieldsCounters done [14:05:40]requested_item shift.num is exist - process it [14:05:40]requested_item shift.opened is exist - process it [14:05:40]req_shift_opened [14:05:40]FM_GetShiftState [14:05:40]SAM_PROTO_GetShiftState [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 01 00 [14:05:40]Write to MH i2c: E2 08 00 C7 48 80 13 01 00 00 00 00 00 8C [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 C7 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6A [14:05:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetShiftState done [14:05:40]FM_GetShiftState done [14:05:40]req_shift_opened done [14:05:40]requested_item shift.open_date is exist - process it [14:05:40]req_shift_open_date [14:05:40]req_shift_open_date done [14:05:40]produce_requested_data done [14:05:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189167,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:05:40]process_action_free close_receipt [14:05:40]json_value_free [14:05:40]json_value_free done [14:05:40]process_json_proto returns [14:05:40]Send response to host [14:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189167,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:05:40]free response buf [14:05:40]execute_script done [14:05:40]execute_script returns [14:05:40]free content buf [14:05:40]Sock 8.Close socket [14:05:40]Sock 8.Thread stoped [14:05:41]accept exits with 9 [14:05:41]New connection [14:05:41]New thread 3067071844 created [14:05:41]Thread 3067215204 joined [14:05:41]Waiting for new connection... [14:05:41] Sock 9.Parse request [14:05:41]Sock 9.Check first char [14:05:41]Sock 9.First char is OK [14:05:41]request: POST /json_proto HTTP/1.0 [14:05:41]Method: POST [14:05:41]URL: /json_proto [14:05:41]Method is POST - this is cgi request [14:05:41]url: /json_proto [14:05:41]query_string will be loaded in cgi processing [14:05:41]execute_cgi json_proto POST (null) [14:05:41]execute_cgi path=json_proto method=POST [14:05:41]POST find Content-Length [14:05:41]Host: 172.17.42.131:8080 [14:05:41]Content-Length: 677 [14:05:41]Content-Type: application/json [14:05:41] [14:05:41]POST finish read [14:05:41]Found Content-Length = 677 [14:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]execute_script... [14:05: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)211233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:41]POST & json_proto [14:05:41]process_json_proto [14:05:41]json parsed OK: [14:05:41]protocol is kg_v1.0 [14:05:41]action value=close_receipt [14:05:41]process_action close_receipt [14:05:41]cmd_close_receipt [14:05:41]MH_GetDate [14:05:41]Write to MH i2c: F0 00 00 C8 48 FF [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: F0 09 00 C8 48 00 38 54 1A 67 A0 18 CA 66 FD [14:05:41]GetLastDocTimeStamp 1729778740 [14:05:41]current date 1729778744 [14:05:41]FM_GetShiftState [14:05:41]SAM_PROTO_GetShiftState [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 13 01 00 [14:05:41]Write to MH i2c: E2 08 00 C9 48 80 13 01 00 00 00 00 00 8E [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0E 00 C9 48 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6C [14:05:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_GetShiftState done [14:05:41]FM_GetShiftState done [14:05:41]opened in 1729728961 [14:05:41]opened+sec_in_day 1729815361 [14:05:41]quantity*price = 34052 [14:05:41]sum+1 = 34053 [14:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 241 24.10.2024 14:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189168 ФПД: 210561858246511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189168&fm=210561858246511&tin=02508201610067®Number=0000000000100030&sum=34000 [14:05:42]StoreToDocumentArchive [14:05:42]shift 463 fd 189168 [14:05:42]save to /storage/0463/doc_00189168 [14:05:42]save last doc name /storage/0463/doc_00189168 to /storage/kkm_last_doc_name [14:05:42]save OK [14:05:42]Clear old archive folders... [14:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:42]tlvbuf is 0156DD70 [14:05:42]SAM_PROTO_ClearQueue [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 09 00 00 [14:05:42]Write to MH i2c: E2 08 00 D6 48 80 09 00 00 00 00 00 00 90 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D6 48 00 90 00 92 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_ClearQueue done [14:05:42]KKMCreateOFDPacket [14:05:42]OFDProtocolAddRootSTLVToBuf [14:05:42]FM_MakeSignedData [14:05:42]FM_MakeSignedData [14:05:42]SAM_PROTO_SignData [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 01 02 [14:05:42]Write to MH i2c: E2 08 00 D7 48 80 0D 01 02 00 00 00 00 98 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 D7 48 00 90 00 93 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=255 [14:05:42]MH_SAM_APDU [14:05: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 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 38 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E2 02 00 35 04 06 00 BF [14:05:42]Write to MH i2c: E2 02 01 D8 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 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 38 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E2 02 00 35 04 06 00 BF 00 00 A5 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 D8 48 00 90 00 94 [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=10 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 02 02 05 81 40 C3 97 6F [14:05:43]Write to MH i2c: E2 0D 00 D9 48 80 0D 02 02 05 00 81 40 C3 97 6F 00 00 2F [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 D9 48 00 90 00 95 [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 03 02 [14:05:43]Write to MH i2c: E2 08 00 DA 48 80 0D 03 02 00 00 00 00 9D [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0B 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0B 00 DA 48 00 97 37 47 F9 CA 29 30 2B 90 00 FA [14:05:43]RAPDU: 97 37 47 F9 CA 29 30 2B 90 00 [14:05:43]wFMCommunicate OK [14:05:43]SAM_PROTO_SignData done [14:05:43]FM_MakeSignedData done [14:05:43]CreateOFDProtocolMessage [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 11 00 00 [14:05:43]Write to MH i2c: E2 08 00 DB 48 80 11 00 00 00 00 00 00 9D [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 DB 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [14:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:43]wFMCommunicate OK [14:05:43]CreateOFDProtocolMessage done [14:05:43]OFDSenderStorePacket 189168 [14:05:43]StoreOFDPacket docnum=189168 [14:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 B4 07 01 F3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 38 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E2 02 00 35 04 06 00 BF 81 40 C3 97 6F 97 37 47 F9 CA 29 30 2B [14:05:43]CheckFolder [14:05:43]dirname=/storage/ofd_packets [14:05:43]CheckFolder done [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00189168 [14:05:43]NVStorageSaveData ofd_packets/00189168 [14:05:43]File name is /storage/ofd_packets/00189168 [14:05:43]Write 301 bytes [14:05:43]NVStorageSaveData done [14:05:43]OFDSenderStorePacket done [14:05:43]KKMCreateOFDPacket done [14:05:43]NVStorageSaveData kkm_last_timestamp [14:05:43]File name is /storage/kkm_last_timestamp [14:05:43]Write 4 bytes [14:05:43]NVStorageSaveData done [14:05:43]ExternCall_PrintAddStr [14:05:43]wPrintStart [14:05:43]Write to MH i2c: 01 00 00 DC 48 24 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 DC 48 00 00 00 00 00 FF 0F 39 [14:05:43]RasterBufferAndPrint [14:05:43]line Счет N : (1)211233 [14:05:43]line ИНН: 02508201610067 [14:05:43]line Контрольно-Кассовый Чек [14:05:43]line ПРОДАЖА [14:05:43]line ТРК (МРК, ГНК) : 42 [14:05:43]line Товар: 2710124130 [14:05:43]line Аи-92-К-3 [14:05:43]line 5.090 * 66.90 [14:05:43]line = 340.52 [14:05:43]line НДС 12% НСП 1% [14:05:43]line > о реализуемом товаре [14:05:43]line ОКРУГЛЕНИЕ: -0.52 [14:05:43]line ИТОГО: 340.00 [14:05:43]line Внесено: 340.00 [14:05:43]line СДАЧА: 0.00 [14:05:43]line НСП 1% : 3.01 [14:05:43]line НДС 12% : 36.16 [14:05:43]line Наличными: 340.00 [14:05:43]line Безнал.: 0.00 [14:05:43]line Место: АЗС № 86 "Партнер Нефть" [14:05:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:43]line СНО: Общий режим [14:05:43]line Чек 241 24.10.2024 14:05 [14:05:43]line Смена: 463 ФФД: 1.0 [14:05:43]line ЗНМ: 0300000155 [14:05:43]line РНМ: 0000000000100030 [14:05:43]line Версия ККМ: 001 [14:05:43]line ФМ: 0000000000965340 [14:05:43]line ФД: 189168 [14:05:43]line ФПД: 210561858246511 [14:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189168&fm=210561858246511&tin=02508201610067®Number=0000000000100030&sum=34000 [14:05:43]written 0, free lines is 4095 [14:05:43]OFD Sender: Processing packet 189168 [packets to send 1062, broken 1061] [14:05:43]ProducePacketName [14:05:43]name=ofd_packets/00189168 [14:05:43]OFD Sender: To server: pG, [14:05:43]CommunicateWithHost lk.salyk.kg:30040 [14:05:43]ConnectInit lk.salyk.kg [14:05:43]Connected sock=10 [14:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 B4 07 01 F3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 38 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 E2 02 00 35 04 06 00 BF 81 40 C3 97 6F 97 37 47 F9 CA 29 30 2B [14:05:43]Write to MH i2c: 01 00 00 07 49 50 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 07 49 00 00 00 00 00 B0 0C 13 [14:05:43]RasterBufferAndPrint [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]line [14:05:43]written 0, free lines is 3258 [14:05:43]MH_Cut [14:05:43]Write to MH i2c: D1 01 00 0E 49 01 29 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 01 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: D1 01 00 0E 49 00 28 [14:05:43]Write to MH i2c: 01 00 00 0F 49 58 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 0C 47 00 A0 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 39 36 35 33 34 30 10 04 04 00 F0 E2 02 00 F4 03 04 00 21 FE 19 67 B6 04 01 00 00 68 8F 60 34 0E 58 98 8F [14:05:44]CommunicateWithHost err = 0 [14:05:44]CheckOFDResponse [14:05:44]1017 (14) - 77093643461234 [14:05:44]1041 (16) - 0000000000965340 [14:05:44]1040 (4) - 189168 [14:05:44]1012 (4) - 24.10.2024 07:58 [14:05:44]1206 (1) - 0 [14:05:44]OFD Sender: Remove packet 189168 [14:05:44]ProducePacketName [14:05:44]name=ofd_packets/00189168 [14:05:44]NVStorageDeleteData [14:05:44]OFD Sender: No OFD packet to send [14:05:44]*** Cut start [14:05:44]*** Partial cut [14:05:44]*** CUTSNS_PIN = 1 [14:05:45]*** CUTSNS_PIN = 0 [14:05:45]*** Brake cut motor [14:05:45]Read from MH i2c: 01 [14:05:45]MH_I2C_Read... [14:05:45]*** Stop cut motor [14:05:45]*** Cut end [14:05:45]Read from MH i2c: 01 07 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 07 00 0F 49 00 00 00 00 00 FF 0F 6D [14:05:45]process_action close_receipt done [14:05:45]requested_data is exist [14:05:45]produce_requested_data [14:05:45]requested_item fm.sn is exist - process it [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 11 00 00 [14:05:45]Write to MH i2c: E2 08 00 10 49 80 11 00 00 00 00 00 00 D3 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 10 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [14:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:45]wFMCommunicate OK [14:05:45]requested_item fd.num is exist - process it [14:05:45]SAM_PROTO_GetFieldsCounters [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 00 00 [14:05:45]Write to MH i2c: E2 08 00 11 49 80 13 00 00 00 00 00 00 D6 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 62 00 11 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E2 02 00 0E 04 04 00 CF 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 54 [14:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 E2 02 00 0E 04 04 00 CF 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 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetFieldsCounters done [14:05:45]requested_item shift.num is exist - process it [14:05:45]requested_item shift.opened is exist - process it [14:05:45]req_shift_opened [14:05:45]FM_GetShiftState [14:05:45]SAM_PROTO_GetShiftState [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 13 01 00 [14:05:45]Write to MH i2c: E2 08 00 12 49 80 13 01 00 00 00 00 00 D8 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0E 00 12 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B6 [14:05:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_GetShiftState done [14:05:45]FM_GetShiftState done [14:05:45]req_shift_opened done [14:05:45]requested_item shift.open_date is exist - process it [14:05:45]req_shift_open_date [14:05:45]req_shift_open_date done [14:05:45]produce_requested_data done [14:05:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189168,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:05:45]process_action_free close_receipt [14:05:45]json_value_free [14:05:45]json_value_free done [14:05:45]process_json_proto returns [14:05:45]Send response to host [14:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189168,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:05:45]free response buf [14:05:45]execute_script done [14:05:45]execute_script returns [14:05:45]free content buf [14:05:45]Sock 9.Close socket [14:05:45]Sock 9.Thread stoped [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:05]accept exits with 8 [14:06:05]New connection [14:06:05]New thread 3067215204 created [14:06:05]Thread 3067071844 joined [14:06:05]Waiting for new connection... [14:06:05] Sock 8.Parse request [14:06:05]Sock 8.Check first char [14:06:05]Sock 8.First char is OK [14:06:05]request: POST /json_proto HTTP/1.0 [14:06:05]Method: POST [14:06:05]URL: /json_proto [14:06:05]Method is POST - this is cgi request [14:06:05]url: /json_proto [14:06:05]query_string will be loaded in cgi processing [14:06:05]execute_cgi json_proto POST (null) [14:06:05]execute_cgi path=json_proto method=POST [14:06:05]POST find Content-Length [14:06:05]Host: 172.17.42.131:8080 [14:06:05]Content-Length: 682 [14:06:05]Content-Type: application/json [14:06:05] [14:06:05]POST finish read [14:06:05]Found Content-Length = 682 [14:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:05]execute_script... [14: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)211234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:05]POST & json_proto [14:06:05]process_json_proto [14:06:05]json parsed OK: [14:06:05]protocol is kg_v1.0 [14:06:05]action value=close_receipt [14:06:05]process_action close_receipt [14:06:05]cmd_close_receipt [14:06:05]MH_GetDate [14:06:05]Write to MH i2c: F0 00 00 13 49 4B [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: F0 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: F0 09 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: F0 09 00 13 49 00 50 54 1A 67 A0 18 CA 66 61 [14:06:05]GetLastDocTimeStamp 1729778744 [14:06:05]current date 1729778768 [14:06:05]FM_GetShiftState [14:06:05]SAM_PROTO_GetShiftState [14:06:05]wFMCommunicate request_size=4 [14:06:05]MH_SAM_APDU [14:06:05]CAPDU: 80 13 01 00 [14:06:05]Write to MH i2c: E2 08 00 14 49 80 13 01 00 00 00 00 00 DA [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:05]Read from MH i2c: E2 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 0E 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 0E 00 14 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B8 [14:06:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:06:05]wFMCommunicate OK [14:06:05]SAM_PROTO_GetShiftState done [14:06:05]FM_GetShiftState done [14:06:05]opened in 1729728961 [14:06:05]opened+sec_in_day 1729815361 [14:06:05]quantity*price = 100015 [14:06:05]sum+1 = 100017 [14:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 242 24.10.2024 14:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189169 ФПД: 66379860674423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140608&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189169&fm=66379860674423&tin=02508201610067®Number=0000000000100030&sum=100000 [14:06:06]StoreToDocumentArchive [14:06:06]shift 463 fd 189169 [14:06:06]save to /storage/0463/doc_00189169 [14:06:06]save last doc name /storage/0463/doc_00189169 to /storage/kkm_last_doc_name [14:06:06]save OK [14:06:06]Clear old archive folders... [14:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:06]tlvbuf is 0168E800 [14:06:06]SAM_PROTO_ClearQueue [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 09 00 00 [14:06:06]Write to MH i2c: E2 08 00 21 49 80 09 00 00 00 00 00 00 DC [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 21 49 00 90 00 DE [14:06:06]RAPDU: 90 00 [14:06:06]wFMCommunicate OK [14:06:06]SAM_PROTO_ClearQueue done [14:06:06]KKMCreateOFDPacket [14:06:06]OFDProtocolAddRootSTLVToBuf [14:06:06]FM_MakeSignedData [14:06:06]FM_MakeSignedData [14:06:06]SAM_PROTO_SignData [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 0D 01 02 [14:06:06]Write to MH i2c: E2 08 00 22 49 80 0D 01 02 00 00 00 00 E4 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 22 49 00 90 00 DF [14:06:06]RAPDU: 90 00 [14:06:06]wFMCommunicate OK [14:06:06]wFMCommunicate request_size=255 [14:06:06]MH_SAM_APDU [14: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 50 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E2 02 00 35 04 06 00 3C [14:06:06]Write to MH i2c: E2 02 01 23 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 50 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E2 02 00 35 04 06 00 3C 00 00 49 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 23 49 00 90 00 E0 [14:06:06]RAPDU: 90 00 [14:06:06]wFMCommunicate OK [14:06:06]wFMCommunicate request_size=10 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 0D 02 02 05 5F 44 04 07 77 [14:06:06]Write to MH i2c: E2 0D 00 24 49 80 0D 02 02 05 00 5F 44 04 07 77 00 00 16 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 03 00 24 49 00 90 00 E1 [14:06:06]RAPDU: 90 00 [14:06:06]wFMCommunicate OK [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 0D 03 02 [14:06:06]Write to MH i2c: E2 08 00 25 49 80 0D 03 02 00 00 00 00 E9 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 0B 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 0B 00 25 49 00 D6 CE C2 97 18 F6 59 08 90 00 56 [14:06:06]RAPDU: D6 CE C2 97 18 F6 59 08 90 00 [14:06:06]wFMCommunicate OK [14:06:06]SAM_PROTO_SignData done [14:06:06]FM_MakeSignedData done [14:06:06]CreateOFDProtocolMessage [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 11 00 00 [14:06:06]Write to MH i2c: E2 08 00 26 49 80 11 00 00 00 00 00 00 E9 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 17 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 17 00 26 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [14:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:06]wFMCommunicate OK [14:06:06]CreateOFDProtocolMessage done [14:06:06]OFDSenderStorePacket 189169 [14:06:06]StoreOFDPacket docnum=189169 [14:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 EF 07 01 D6 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 50 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E2 02 00 35 04 06 00 3C 5F 44 04 07 77 D6 CE C2 97 18 F6 59 08 [14:06:06]CheckFolder [14:06:06]dirname=/storage/ofd_packets [14:06:06]CheckFolder done [14:06:06]ProducePacketName [14:06:06]name=ofd_packets/00189169 [14:06:06]NVStorageSaveData ofd_packets/00189169 [14:06:06]File name is /storage/ofd_packets/00189169 [14:06:06]Write 301 bytes [14:06:06]NVStorageSaveData done [14:06:06]OFDSenderStorePacket done [14:06:06]KKMCreateOFDPacket done [14:06:06]NVStorageSaveData kkm_last_timestamp [14:06:06]File name is /storage/kkm_last_timestamp [14:06:06]Write 4 bytes [14:06:06]NVStorageSaveData done [14:06:06]ExternCall_PrintAddStr [14:06:06]wPrintStart [14:06:06]Write to MH i2c: 01 00 00 27 49 70 [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 07 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 07 00 27 49 00 00 00 00 00 FF 0F 85 [14:06:07]RasterBufferAndPrint [14:06:07]line Счет N : (1)211234 [14:06:07]line ИНН: 02508201610067 [14:06:07]line Контрольно-Кассовый Чек [14:06:07]line ПРОДАЖА [14:06:07]line ТРК (МРК, ГНК) : 22 [14:06:07]line Товар: 2710124130 [14:06:07]line Аи-92-К-3 [14:06:07]line 14.950 * 66.90 [14:06:07]line = 1000.16 [14:06:07]line НДС 12% НСП 1% [14:06:07]line > о реализуемом товаре [14:06:07]line ОКРУГЛЕНИЕ: -0.16 [14:06:07]line ИТОГО: 1000.00 [14:06:07]line Внесено: 1000.00 [14:06:07]line СДАЧА: 0.00 [14:06:07]line НСП 1% : 8.85 [14:06:07]line НДС 12% : 106.21 [14:06:07]line Наличными: 1000.00 [14:06:07]line Безнал.: 0.00 [14:06:07]line Место: АЗС № 86 "Партнер Нефть" [14:06:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:06:07]line СНО: Общий режим [14:06:07]line Чек 242 24.10.2024 14:06 [14:06:07]line Смена: 463 ФФД: 1.0 [14:06:07]line ЗНМ: 0300000155 [14:06:07]line РНМ: 0000000000100030 [14:06:07]line Версия ККМ: 001 [14:06:07]line ФМ: 0000000000965340 [14:06:07]line ФД: 189169 [14:06:07]line ФПД: 66379860674423 [14:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140608&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189169&fm=66379860674423&tin=02508201610067®Number=0000000000100030&sum=100000 [14:06:07]written 0, free lines is 4095 [14:06:07]OFD Sender: Processing packet 189169 [packets to send 1062, broken 1061] [14:06:07]ProducePacketName [14:06:07]name=ofd_packets/00189169 [14:06:07]OFD Sender: To server: pG, [14:06:07]CommunicateWithHost lk.salyk.kg:30040 [14:06:07]ConnectInit lk.salyk.kg [14:06:07]Connected sock=10 [14:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 EF 07 01 D6 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 50 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 E2 02 00 35 04 06 00 3C 5F 44 04 07 77 D6 CE C2 97 18 F6 59 08 [14:06:07]Write to MH i2c: 01 00 00 52 49 9B [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 07 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: 01 07 00 52 49 00 00 00 00 00 66 0C 14 [14:06:07]RasterBufferAndPrint [14:06:07]line [14:06:07]line [14:06:07]line [14:06:07]line [14:06:07]line [14:06:07]written 0, free lines is 3178 [14:06:07]MH_Cut [14:06:07]Write to MH i2c: D1 01 00 59 49 01 74 [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: D1 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: D1 01 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: D1 01 00 59 49 00 73 [14:06:07]Write to MH i2c: 01 00 00 5A 49 A3 [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C1 53 47 00 33 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 39 36 35 33 34 30 10 04 04 00 F1 E2 02 00 F4 03 04 00 38 FE 19 67 B6 04 01 00 00 80 63 27 53 DA 48 86 E2 [14:06:07]CommunicateWithHost err = 0 [14:06:07]CheckOFDResponse [14:06:07]1017 (14) - 77093643461234 [14:06:07]1041 (16) - 0000000000965340 [14:06:07]1040 (4) - 189169 [14:06:07]1012 (4) - 24.10.2024 07:58 [14:06:07]1206 (1) - 0 [14:06:07]OFD Sender: Remove packet 189169 [14:06:07]ProducePacketName [14:06:07]name=ofd_packets/00189169 [14:06:07]NVStorageDeleteData [14:06:08]OFD Sender: No OFD packet to send [14:06:08]*** Cut start [14:06:08]*** Partial cut [14:06:08]*** CUTSNS_PIN = 1 [14:06:08]*** CUTSNS_PIN = 0 [14:06:09]*** Brake cut motor [14:06:09]Read from MH i2c: 01 [14:06:09]MH_I2C_Read... [14:06:09]*** Stop cut motor [14:06:09]*** Cut end [14:06:09]Read from MH i2c: 01 07 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 07 00 5A 49 00 00 00 00 00 FF 0F B8 [14:06:09]process_action close_receipt done [14:06:09]requested_data is exist [14:06:09]produce_requested_data [14:06:09]requested_item fm.sn is exist - process it [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 11 00 00 [14:06:09]Write to MH i2c: E2 08 00 5B 49 80 11 00 00 00 00 00 00 1E [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 5B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [14:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:09]wFMCommunicate OK [14:06:09]requested_item fd.num is exist - process it [14:06:09]SAM_PROTO_GetFieldsCounters [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 13 00 00 [14:06:09]Write to MH i2c: E2 08 00 5C 49 80 13 00 00 00 00 00 00 21 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 62 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 62 00 5C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E2 02 00 0E 04 04 00 CF 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 A3 [14:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 E2 02 00 0E 04 04 00 CF 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 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_GetFieldsCounters done [14:06:09]requested_item shift.num is exist - process it [14:06:09]requested_item shift.opened is exist - process it [14:06:09]req_shift_opened [14:06:09]FM_GetShiftState [14:06:09]SAM_PROTO_GetShiftState [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 13 01 00 [14:06:09]Write to MH i2c: E2 08 00 5D 49 80 13 01 00 00 00 00 00 23 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0E 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0E 00 5D 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 01 [14:06:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_GetShiftState done [14:06:09]FM_GetShiftState done [14:06:09]req_shift_opened done [14:06:09]requested_item shift.open_date is exist - process it [14:06:09]req_shift_open_date [14:06:09]req_shift_open_date done [14:06:09]produce_requested_data done [14:06:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189169,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:06:09]process_action_free close_receipt [14:06:09]json_value_free [14:06:09]json_value_free done [14:06:09]process_json_proto returns [14:06:09]Send response to host [14:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189169,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:06:09]free response buf [14:06:09]execute_script done [14:06:09]execute_script returns [14:06:09]free content buf [14:06:09]Sock 8.Close socket [14:06:09]Sock 8.Thread stoped [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:28]accept exits with 9 [14:06:28]New connection [14:06:28]New thread 3067071844 created [14:06:28]Thread 3067215204 joined [14:06:28]Waiting for new connection... [14:06:28] Sock 9.Parse request [14:06:28]Sock 9.Check first char [14:06:28]Sock 9.First char is OK [14:06:28]request: POST /json_proto HTTP/1.0 [14:06:28]Method: POST [14:06:28]URL: /json_proto [14:06:28]Method is POST - this is cgi request [14:06:28]url: /json_proto [14:06:28]query_string will be loaded in cgi processing [14:06:28]execute_cgi json_proto POST (null) [14:06:28]execute_cgi path=json_proto method=POST [14:06:28]POST find Content-Length [14:06:28]Host: 172.17.42.131:8080 [14:06:28]Content-Length: 677 [14:06:28]Content-Type: application/json [14:06:28] [14:06:28]POST finish read [14:06:28]Found Content-Length = 677 [14:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:06:28]execute_script... [14:06: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)211235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:06:28]POST & json_proto [14:06:28]process_json_proto [14:06:28]json parsed OK: [14:06:28]protocol is kg_v1.0 [14:06:28]action value=close_receipt [14:06:28]process_action close_receipt [14:06:28]cmd_close_receipt [14:06:28]MH_GetDate [14:06:28]Write to MH i2c: F0 00 00 5E 49 96 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: F0 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: F0 09 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: F0 09 00 5E 49 00 68 54 1A 67 A0 18 CA 66 C4 [14:06:28]GetLastDocTimeStamp 1729778768 [14:06:28]current date 1729778792 [14:06:28]FM_GetShiftState [14:06:28]SAM_PROTO_GetShiftState [14:06:28]wFMCommunicate request_size=4 [14:06:28]MH_SAM_APDU [14:06:28]CAPDU: 80 13 01 00 [14:06:28]Write to MH i2c: E2 08 00 5F 49 80 13 01 00 00 00 00 00 25 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:28]Read from MH i2c: E2 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 0E 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: E2 0E 00 5F 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 03 [14:06:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:06:28]wFMCommunicate OK [14:06:28]SAM_PROTO_GetShiftState done [14:06:28]FM_GetShiftState done [14:06:28]opened in 1729728961 [14:06:28]opened+sec_in_day 1729815361 [14:06:28]quantity*price = 40006 [14:06:28]sum+1 = 40007 [14:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 243 24.10.2024 14:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189170 ФПД: 18241083305018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189170&fm=18241083305018&tin=02508201610067®Number=0000000000100030&sum=40000 [14:06:29]StoreToDocumentArchive [14:06:29]shift 463 fd 189170 [14:06:29]save to /storage/0463/doc_00189170 [14:06:29]save last doc name /storage/0463/doc_00189170 to /storage/kkm_last_doc_name [14:06:29]save OK [14:06:29]Clear old archive folders... [14:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:29]tlvbuf is 01567A80 [14:06:29]SAM_PROTO_ClearQueue [14:06:29]wFMCommunicate request_size=4 [14:06:29]MH_SAM_APDU [14:06:29]CAPDU: 80 09 00 00 [14:06:29]Write to MH i2c: E2 08 00 6C 49 80 09 00 00 00 00 00 00 27 [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:29]Read from MH i2c: E2 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 03 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 03 00 6C 49 00 90 00 29 [14:06:29]RAPDU: 90 00 [14:06:29]wFMCommunicate OK [14:06:29]SAM_PROTO_ClearQueue done [14:06:29]KKMCreateOFDPacket [14:06:29]OFDProtocolAddRootSTLVToBuf [14:06:29]FM_MakeSignedData [14:06:29]FM_MakeSignedData [14:06:29]SAM_PROTO_SignData [14:06:29]wFMCommunicate request_size=4 [14:06:29]MH_SAM_APDU [14:06:29]CAPDU: 80 0D 01 02 [14:06:29]Write to MH i2c: E2 08 00 6D 49 80 0D 01 02 00 00 00 00 2F [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:29]Read from MH i2c: E2 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 03 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 03 00 6D 49 00 90 00 2A [14:06:29]RAPDU: 90 00 [14:06:29]wFMCommunicate OK [14:06:29]wFMCommunicate request_size=255 [14:06:29]MH_SAM_APDU [14:06: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 F3 00 00 00 F4 03 04 00 68 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E2 02 00 35 04 06 00 10 [14:06:29]Write to MH i2c: E2 02 01 6E 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 F3 00 00 00 F4 03 04 00 68 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E2 02 00 35 04 06 00 10 00 00 57 [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 6E 49 00 90 00 2B [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]wFMCommunicate request_size=10 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 02 02 05 97 15 4A 6C 3A [14:06:30]Write to MH i2c: E2 0D 00 6F 49 80 0D 02 02 05 00 97 15 4A 6C 3A 00 00 D8 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 6F 49 00 90 00 2C [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 03 02 [14:06:30]Write to MH i2c: E2 08 00 70 49 80 0D 03 02 00 00 00 00 34 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 0B 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 0B 00 70 49 00 E6 84 44 16 1B 29 A9 A3 90 00 89 [14:06:30]RAPDU: E6 84 44 16 1B 29 A9 A3 90 00 [14:06:30]wFMCommunicate OK [14:06:30]SAM_PROTO_SignData done [14:06:30]FM_MakeSignedData done [14:06:30]CreateOFDProtocolMessage [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 11 00 00 [14:06:30]Write to MH i2c: E2 08 00 71 49 80 11 00 00 00 00 00 00 34 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 17 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 17 00 71 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [14:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:30]wFMCommunicate OK [14:06:30]CreateOFDProtocolMessage done [14:06:30]OFDSenderStorePacket 189170 [14:06:30]StoreOFDPacket docnum=189170 [14:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 43 07 01 F6 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 F3 00 00 00 F4 03 04 00 68 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E2 02 00 35 04 06 00 10 97 15 4A 6C 3A E6 84 44 16 1B 29 A9 A3 [14:06:30]CheckFolder [14:06:30]dirname=/storage/ofd_packets [14:06:30]CheckFolder done [14:06:30]ProducePacketName [14:06:30]name=ofd_packets/00189170 [14:06:30]NVStorageSaveData ofd_packets/00189170 [14:06:30]File name is /storage/ofd_packets/00189170 [14:06:30]Write 301 bytes [14:06:30]NVStorageSaveData done [14:06:30]OFDSenderStorePacket done [14:06:30]KKMCreateOFDPacket done [14:06:30]NVStorageSaveData kkm_last_timestamp [14:06:30]File name is /storage/kkm_last_timestamp [14:06:30]Write 4 bytes [14:06:30]NVStorageSaveData done [14:06:30]ExternCall_PrintAddStr [14:06:30]wPrintStart [14:06:30]Write to MH i2c: 01 00 00 72 49 BB [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 07 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 07 00 72 49 00 00 00 00 00 FF 0F D0 [14:06:30]RasterBufferAndPrint [14:06:30]line Счет N : (1)211235 [14:06:30]line ИНН: 02508201610067 [14:06:30]line Контрольно-Кассовый Чек [14:06:30]line ПРОДАЖА [14:06:30]line ТРК (МРК, ГНК) : 12 [14:06:30]line Товар: 2710124130 [14:06:30]line Аи-92-К-3 [14:06:30]line 5.980 * 66.90 [14:06:30]line = 400.06 [14:06:30]line НДС 12% НСП 1% [14:06:30]line > о реализуемом товаре [14:06:30]line ОКРУГЛЕНИЕ: -0.06 [14:06:30]line ИТОГО: 400.00 [14:06:30]line Внесено: 400.00 [14:06:30]line СДАЧА: 0.00 [14:06:30]line НСП 1% : 3.54 [14:06:30]line НДС 12% : 42.48 [14:06:30]line Наличными: 400.00 [14:06:30]line Безнал.: 0.00 [14:06:30]line Место: АЗС № 86 "Партнер Нефть" [14:06:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:06:30]line СНО: Общий режим [14:06:30]line Чек 243 24.10.2024 14:06 [14:06:30]line Смена: 463 ФФД: 1.0 [14:06:30]line ЗНМ: 0300000155 [14:06:30]line РНМ: 0000000000100030 [14:06:30]line Версия ККМ: 001 [14:06:30]line ФМ: 0000000000965340 [14:06:30]line ФД: 189170 [14:06:30]line ФПД: 18241083305018 [14:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189170&fm=18241083305018&tin=02508201610067®Number=0000000000100030&sum=40000 [14:06:30]written 0, free lines is 4095 [14:06:30]OFD Sender: Processing packet 189170 [packets to send 1062, broken 1061] [14:06:30]ProducePacketName [14:06:30]name=ofd_packets/00189170 [14:06:30]OFD Sender: To server: pG, [14:06:30]CommunicateWithHost lk.salyk.kg:30040 [14:06:30]ConnectInit lk.salyk.kg [14:06:30]Connected sock=8 [14:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 43 07 01 F6 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 F3 00 00 00 F4 03 04 00 68 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 E2 02 00 35 04 06 00 10 97 15 4A 6C 3A E6 84 44 16 1B 29 A9 A3 [14:06:30]Write to MH i2c: 01 00 00 9D 49 E6 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 07 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: 01 07 00 9D 49 00 00 00 00 00 62 0C 5B [14:06:30]RasterBufferAndPrint [14:06:30]line [14:06:30]line [14:06:30]line [14:06:30]line [14:06:30]line [14:06:30]written 0, free lines is 3174 [14:06:30]MH_Cut [14:06:30]Write to MH i2c: D1 01 00 A4 49 01 BF [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: D1 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: D1 01 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: D1 01 00 A4 49 00 BE [14:06:30]Write to MH i2c: 01 00 00 A5 49 EE [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C1 D1 47 00 B4 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 39 36 35 33 34 30 10 04 04 00 F2 E2 02 00 F4 03 04 00 50 FE 19 67 B6 04 01 00 00 17 FE 7F 40 71 26 E7 8A [14:06:31]CommunicateWithHost err = 0 [14:06:31]CheckOFDResponse [14:06:31]1017 (14) - 77093643461234 [14:06:31]1041 (16) - 0000000000965340 [14:06:31]1040 (4) - 189170 [14:06:31]1012 (4) - 24.10.2024 07:59 [14:06:31]1206 (1) - 0 [14:06:31]OFD Sender: Remove packet 189170 [14:06:31]ProducePacketName [14:06:31]name=ofd_packets/00189170 [14:06:31]NVStorageDeleteData [14:06:31]OFD Sender: No OFD packet to send [14:06:31]*** Cut start [14:06:31]*** Partial cut [14:06:31]*** CUTSNS_PIN = 1 [14:06:32]*** CUTSNS_PIN = 0 [14:06:32]*** Brake cut motor [14:06:32]Read from MH i2c: 01 [14:06:32]MH_I2C_Read... [14:06:32]*** Stop cut motor [14:06:32]*** Cut end [14:06:32]Read from MH i2c: 01 07 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: 01 07 00 A5 49 00 00 00 00 00 FF 0F 03 [14:06:32]process_action close_receipt done [14:06:32]requested_data is exist [14:06:32]produce_requested_data [14:06:32]requested_item fm.sn is exist - process it [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 11 00 00 [14:06:32]Write to MH i2c: E2 08 00 A6 49 80 11 00 00 00 00 00 00 69 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 17 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 17 00 A6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [14:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:32]wFMCommunicate OK [14:06:32]requested_item fd.num is exist - process it [14:06:32]SAM_PROTO_GetFieldsCounters [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 13 00 00 [14:06:32]Write to MH i2c: E2 08 00 A7 49 80 13 00 00 00 00 00 00 6C [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 62 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 62 00 A7 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E2 02 00 0E 04 04 00 CF 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 F2 [14:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 E2 02 00 0E 04 04 00 CF 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 [14:06:32]wFMCommunicate OK [14:06:32]SAM_PROTO_GetFieldsCounters done [14:06:32]requested_item shift.num is exist - process it [14:06:32]requested_item shift.opened is exist - process it [14:06:32]req_shift_opened [14:06:32]FM_GetShiftState [14:06:32]SAM_PROTO_GetShiftState [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 13 01 00 [14:06:32]Write to MH i2c: E2 08 00 A8 49 80 13 01 00 00 00 00 00 6E [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 0E 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 0E 00 A8 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4C [14:06:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:06:32]wFMCommunicate OK [14:06:32]SAM_PROTO_GetShiftState done [14:06:32]FM_GetShiftState done [14:06:32]req_shift_opened done [14:06:32]requested_item shift.open_date is exist - process it [14:06:32]req_shift_open_date [14:06:32]req_shift_open_date done [14:06:32]produce_requested_data done [14:06:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189170,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:06:32]process_action_free close_receipt [14:06:32]json_value_free [14:06:32]json_value_free done [14:06:32]process_json_proto returns [14:06:32]Send response to host [14:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189170,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:06:32]free response buf [14:06:32]execute_script done [14:06:32]execute_script returns [14:06:32]free content buf [14:06:32]Sock 9.Close socket [14:06:32]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:50]accept exits with 10 [14:07:50]New connection [14:07:50]New thread 3067215204 created [14:07:50]Thread 3067071844 joined [14:07:50]Waiting for new connection... [14:07:50] Sock 10.Parse request [14:07:50]Sock 10.Check first char [14:07:50]Sock 10.First char is OK [14:07:50]request: POST /json_proto HTTP/1.0 [14:07:50]Method: POST [14:07:50]URL: /json_proto [14:07:50]Method is POST - this is cgi request [14:07:50]url: /json_proto [14:07:50]query_string will be loaded in cgi processing [14:07:50]execute_cgi json_proto POST (null) [14:07:50]execute_cgi path=json_proto method=POST [14:07:50]POST find Content-Length [14:07:50]Host: 172.17.42.131:8080 [14:07:50]Content-Length: 682 [14:07:50]Content-Type: application/json [14:07:50] [14:07:50]POST finish read [14:07:50]Found Content-Length = 682 [14:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50]execute_script... [14:07: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)211236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50]POST & json_proto [14:07:50]process_json_proto [14:07:50]json parsed OK: [14:07:50]protocol is kg_v1.0 [14:07:50]action value=close_receipt [14:07:50]process_action close_receipt [14:07:50]cmd_close_receipt [14:07:50]MH_GetDate [14:07:50]Write to MH i2c: F0 00 00 A9 49 E1 [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: F0 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: F0 09 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: F0 09 00 A9 49 00 BA 54 1A 67 A0 18 CA 66 61 [14:07:50]GetLastDocTimeStamp 1729778792 [14:07:50]current date 1729778874 [14:07:50]FM_GetShiftState [14:07:50]SAM_PROTO_GetShiftState [14:07:50]wFMCommunicate request_size=4 [14:07:50]MH_SAM_APDU [14:07:50]CAPDU: 80 13 01 00 [14:07:50]Write to MH i2c: E2 08 00 AA 49 80 13 01 00 00 00 00 00 70 [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 AA 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4E [14:07:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:07:50]wFMCommunicate OK [14:07:50]SAM_PROTO_GetShiftState done [14:07:50]FM_GetShiftState done [14:07:50]opened in 1729728961 [14:07:50]opened+sec_in_day 1729815361 [14:07:50]quantity*price = 100015 [14:07:50]sum+1 = 100017 [14:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 244 24.10.2024 14:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189171 ФПД: 196324732155169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189171&fm=196324732155169&tin=02508201610067®Number=0000000000100030&sum=100000 [14:07:52]StoreToDocumentArchive [14:07:52]shift 463 fd 189171 [14:07:52]save to /storage/0463/doc_00189171 [14:07:52]save last doc name /storage/0463/doc_00189171 to /storage/kkm_last_doc_name [14:07:52]save OK [14:07:52]Clear old archive folders... [14:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:52]tlvbuf is 01553640 [14:07:52]SAM_PROTO_ClearQueue [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 09 00 00 [14:07:52]Write to MH i2c: E2 08 00 B7 49 80 09 00 00 00 00 00 00 72 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 B7 49 00 90 00 74 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_ClearQueue done [14:07:52]KKMCreateOFDPacket [14:07:52]OFDProtocolAddRootSTLVToBuf [14:07:52]FM_MakeSignedData [14:07:52]FM_MakeSignedData [14:07:52]SAM_PROTO_SignData [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 01 02 [14:07:52]Write to MH i2c: E2 08 00 B8 49 80 0D 01 02 00 00 00 00 7A [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 B8 49 00 90 00 75 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=255 [14:07:52]MH_SAM_APDU [14:07: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 BA 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E2 02 00 35 04 06 00 B2 [14:07:52]Write to MH i2c: E2 02 01 B9 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 BA 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E2 02 00 35 04 06 00 B2 00 00 C3 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 B9 49 00 90 00 76 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=10 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 02 02 05 8E 69 EB B5 21 [14:07:52]Write to MH i2c: E2 0D 00 BA 49 80 0D 02 02 05 00 8E 69 EB B5 21 00 00 3F [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 BA 49 00 90 00 77 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 03 02 [14:07:52]Write to MH i2c: E2 08 00 BB 49 80 0D 03 02 00 00 00 00 7F [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0B 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0B 00 BB 49 00 9F BA 20 6B 88 78 A8 59 90 00 65 [14:07:52]RAPDU: 9F BA 20 6B 88 78 A8 59 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_SignData done [14:07:52]FM_MakeSignedData done [14:07:52]CreateOFDProtocolMessage [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 11 00 00 [14:07:52]Write to MH i2c: E2 08 00 BC 49 80 11 00 00 00 00 00 00 7F [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 17 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 17 00 BC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [14:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:07:52]wFMCommunicate OK [14:07:52]CreateOFDProtocolMessage done [14:07:52]OFDSenderStorePacket 189171 [14:07:52]StoreOFDPacket docnum=189171 [14:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A 54 07 01 C1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 BA 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E2 02 00 35 04 06 00 B2 8E 69 EB B5 21 9F BA 20 6B 88 78 A8 59 [14:07:52]CheckFolder [14:07:52]dirname=/storage/ofd_packets [14:07:52]CheckFolder done [14:07:52]ProducePacketName [14:07:52]name=ofd_packets/00189171 [14:07:52]NVStorageSaveData ofd_packets/00189171 [14:07:52]File name is /storage/ofd_packets/00189171 [14:07:52]Write 301 bytes [14:07:52]NVStorageSaveData done [14:07:52]OFDSenderStorePacket done [14:07:52]KKMCreateOFDPacket done [14:07:52]NVStorageSaveData kkm_last_timestamp [14:07:52]File name is /storage/kkm_last_timestamp [14:07:52]Write 4 bytes [14:07:52]NVStorageSaveData done [14:07:52]ExternCall_PrintAddStr [14:07:52]wPrintStart [14:07:52]Write to MH i2c: 01 00 00 BD 49 06 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 07 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 07 00 BD 49 00 00 00 00 00 FF 0F 1B [14:07:52]RasterBufferAndPrint [14:07:52]line Счет N : (1)211236 [14:07:52]line ИНН: 02508201610067 [14:07:52]line Контрольно-Кассовый Чек [14:07:52]line ПРОДАЖА [14:07:52]line ТРК (МРК, ГНК) : 32 [14:07:52]line Товар: 2710124130 [14:07:52]line Аи-92-К-3 [14:07:52]line 14.950 * 66.90 [14:07:52]line = 1000.16 [14:07:52]line НДС 12% НСП 1% [14:07:52]line > о реализуемом товаре [14:07:52]line ОКРУГЛЕНИЕ: -0.16 [14:07:52]line ИТОГО: 1000.00 [14:07:52]line Внесено: 1000.00 [14:07:52]line СДАЧА: 0.00 [14:07:52]line НСП 1% : 8.85 [14:07:52]line НДС 12% : 106.21 [14:07:52]line Наличными: 1000.00 [14:07:52]line Безнал.: 0.00 [14:07:52]line Место: АЗС № 86 "Партнер Нефть" [14:07:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:07:52]line СНО: Общий режим [14:07:52]line Чек 244 24.10.2024 14:07 [14:07:52]line Смена: 463 ФФД: 1.0 [14:07:52]line ЗНМ: 0300000155 [14:07:52]line РНМ: 0000000000100030 [14:07:52]line Версия ККМ: 001 [14:07:52]line ФМ: 0000000000965340 [14:07:52]line ФД: 189171 [14:07:52]line ФПД: 196324732155169 [14:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189171&fm=196324732155169&tin=02508201610067®Number=0000000000100030&sum=100000 [14:07:52]OFD Sender: Processing packet 189171 [packets to send 1062, broken 1061] [14:07:52]ProducePacketName [14:07:52]name=ofd_packets/00189171 [14:07:52]OFD Sender: To server: pG, [14:07:52]CommunicateWithHost lk.salyk.kg:30040 [14:07:52]ConnectInit lk.salyk.kg [14:07:52]written 0, free lines is 4095 [14:07:53]Write to MH i2c: 01 00 00 E8 49 31 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 E8 49 00 00 00 00 00 5B 0C 9F [14:07:53]RasterBufferAndPrint [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]written 0, free lines is 3166 [14:07:53]MH_Cut [14:07:53]Write to MH i2c: D1 01 00 EF 49 01 0A [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 01 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 01 00 EF 49 00 09 [14:07:53]Write to MH i2c: 01 00 00 F0 49 39 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Connected sock=11 [14:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A 54 07 01 C1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 BA 54 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 E2 02 00 35 04 06 00 B2 8E 69 EB B5 21 9F BA 20 6B 88 78 A8 59 [14:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 03 16 47 00 66 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 39 36 35 33 34 30 10 04 04 00 F3 E2 02 00 F4 03 04 00 A2 FE 19 67 B6 04 01 00 00 4D 44 97 B5 2B 74 58 5E [14:07:53]CommunicateWithHost err = 0 [14:07:53]CheckOFDResponse [14:07:53]1017 (14) - 77093643461234 [14:07:53]1041 (16) - 0000000000965340 [14:07:53]1040 (4) - 189171 [14:07:53]1012 (4) - 24.10.2024 08:00 [14:07:53]1206 (1) - 0 [14:07:53]OFD Sender: Remove packet 189171 [14:07:53]ProducePacketName [14:07:53]name=ofd_packets/00189171 [14:07:53]NVStorageDeleteData [14:07:54]OFD Sender: No OFD packet to send [14:07:54]*** Cut start [14:07:54]*** Partial cut [14:07:54]*** CUTSNS_PIN = 1 [14:07:54]*** CUTSNS_PIN = 0 [14:07:54]*** Brake cut motor [14:07:54]Read from MH i2c: 01 [14:07:54]MH_I2C_Read... [14:07:54]*** Stop cut motor [14:07:55]*** Cut end [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 F0 49 00 00 00 00 00 FF 0F 4E [14:07:55]process_action close_receipt done [14:07:55]requested_data is exist [14:07:55]produce_requested_data [14:07:55]requested_item fm.sn is exist - process it [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 11 00 00 [14:07:55]Write to MH i2c: E2 08 00 F1 49 80 11 00 00 00 00 00 00 B4 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 F1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [14:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:07:55]wFMCommunicate OK [14:07:55]requested_item fd.num is exist - process it [14:07:55]SAM_PROTO_GetFieldsCounters [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 00 00 [14:07:55]Write to MH i2c: E2 08 00 F2 49 80 13 00 00 00 00 00 00 B7 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 F2 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E2 02 00 0E 04 04 00 CF 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 41 [14:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 E2 02 00 0E 04 04 00 CF 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 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetFieldsCounters done [14:07:55]requested_item shift.num is exist - process it [14:07:55]requested_item shift.opened is exist - process it [14:07:55]req_shift_opened [14:07:55]FM_GetShiftState [14:07:55]SAM_PROTO_GetShiftState [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 01 00 [14:07:55]Write to MH i2c: E2 08 00 F3 49 80 13 01 00 00 00 00 00 B9 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 F3 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 97 [14:07:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetShiftState done [14:07:55]FM_GetShiftState done [14:07:55]req_shift_opened done [14:07:55]requested_item shift.open_date is exist - process it [14:07:55]req_shift_open_date [14:07:55]req_shift_open_date done [14:07:55]produce_requested_data done [14:07:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189171,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:07:55]process_action_free close_receipt [14:07:55]json_value_free [14:07:55]json_value_free done [14:07:55]process_json_proto returns [14:07:55]Send response to host [14:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189171,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:07:55]free response buf [14:07:55]execute_script done [14:07:55]execute_script returns [14:07:55]free content buf [14:07:55]Sock 10.Close socket [14:07:55]Sock 10.Thread stoped [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:53]accept exits with 8 [14:09:53]New connection [14:09:53]New thread 3067071844 created [14:09:53]Thread 3067215204 joined [14:09:53]Waiting for new connection... [14:09:53] Sock 8.Parse request [14:09:53]Sock 8.Check first char [14:09:53]Sock 8.First char is OK [14:09:53]request: POST /json_proto HTTP/1.0 [14:09:53]Method: POST [14:09:53]URL: /json_proto [14:09:53]Method is POST - this is cgi request [14:09:53]url: /json_proto [14:09:53]query_string will be loaded in cgi processing [14:09:53]execute_cgi json_proto POST (null) [14:09:53]execute_cgi path=json_proto method=POST [14:09:53]POST find Content-Length [14:09:53]Host: 172.17.42.131:8080 [14:09:53]Content-Length: 677 [14:09:53]Content-Type: application/json [14:09:53] [14:09:53]POST finish read [14:09:53]Found Content-Length = 677 [14:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:09:53]execute_script... [14:09: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)211237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:09:53]POST & json_proto [14:09:53]process_json_proto [14:09:53]json parsed OK: [14:09:53]protocol is kg_v1.0 [14:09:53]action value=close_receipt [14:09:53]process_action close_receipt [14:09:53]cmd_close_receipt [14:09:53]MH_GetDate [14:09:53]Write to MH i2c: F0 00 00 F4 49 2C [14:09:53]Write i2c OK [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 09 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: F0 09 00 F4 49 00 35 55 1A 67 A0 18 CA 66 28 [14:09:53]GetLastDocTimeStamp 1729778874 [14:09:53]current date 1729778997 [14:09:53]FM_GetShiftState [14:09:53]SAM_PROTO_GetShiftState [14:09:53]wFMCommunicate request_size=4 [14:09:53]MH_SAM_APDU [14:09:53]CAPDU: 80 13 01 00 [14:09:53]Write to MH i2c: E2 08 00 F5 49 80 13 01 00 00 00 00 00 BB [14:09:53]Write i2c OK [14:09:53]MH_I2C_Read... [14:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:53]Read from MH i2c: E2 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 F5 49 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 99 [14:09:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:09:53]wFMCommunicate OK [14:09:53]SAM_PROTO_GetShiftState done [14:09:53]FM_GetShiftState done [14:09:53]opened in 1729728961 [14:09:53]opened+sec_in_day 1729815361 [14:09:53]quantity*price = 60009 [14:09:53]sum+1 = 60010 [14:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 245 24.10.2024 14:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189172 ФПД: 275424228541768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189172&fm=275424228541768&tin=02508201610067®Number=0000000000100030&sum=60000 [14:09:55]StoreToDocumentArchive [14:09:55]shift 463 fd 189172 [14:09:55]save to /storage/0463/doc_00189172 [14:09:55]save last doc name /storage/0463/doc_00189172 to /storage/kkm_last_doc_name [14:09:55]save OK [14:09:55]Clear old archive folders... [14:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:55]tlvbuf is 01685BB0 [14:09:55]SAM_PROTO_ClearQueue [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 09 00 00 [14:09:55]Write to MH i2c: E2 08 00 02 4A 80 09 00 00 00 00 00 00 BE [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 02 4A 00 90 00 C0 [14:09:55]RAPDU: 90 00 [14:09:55]wFMCommunicate OK [14:09:55]SAM_PROTO_ClearQueue done [14:09:55]KKMCreateOFDPacket [14:09:55]OFDProtocolAddRootSTLVToBuf [14:09:55]FM_MakeSignedData [14:09:55]FM_MakeSignedData [14:09:55]SAM_PROTO_SignData [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 0D 01 02 [14:09:55]Write to MH i2c: E2 08 00 03 4A 80 0D 01 02 00 00 00 00 C6 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 03 4A 00 90 00 C1 [14:09:55]RAPDU: 90 00 [14:09:55]wFMCommunicate OK [14:09:55]wFMCommunicate request_size=255 [14:09:55]MH_SAM_APDU [14:09: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 F5 00 00 00 F4 03 04 00 35 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E2 02 00 35 04 06 00 FA [14:09:55]Write to MH i2c: E2 02 01 04 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 F5 00 00 00 F4 03 04 00 35 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E2 02 00 35 04 06 00 FA 00 00 B8 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 04 4A 00 90 00 C2 [14:09:55]RAPDU: 90 00 [14:09:55]wFMCommunicate OK [14:09:55]wFMCommunicate request_size=10 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 0D 02 02 05 7F 33 4E 05 48 [14:09:55]Write to MH i2c: E2 0D 00 05 4A 80 0D 02 02 05 00 7F 33 4E 05 48 00 00 20 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 03 00 05 4A 00 90 00 C3 [14:09:55]RAPDU: 90 00 [14:09:55]wFMCommunicate OK [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 0D 03 02 [14:09:55]Write to MH i2c: E2 08 00 06 4A 80 0D 03 02 00 00 00 00 CB [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0B 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0B 00 06 4A 00 3F 19 C9 1C 68 28 5C 17 90 00 0C [14:09:55]RAPDU: 3F 19 C9 1C 68 28 5C 17 90 00 [14:09:55]wFMCommunicate OK [14:09:55]SAM_PROTO_SignData done [14:09:55]FM_MakeSignedData done [14:09:55]CreateOFDProtocolMessage [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 11 00 00 [14:09:55]Write to MH i2c: E2 08 00 07 4A 80 11 00 00 00 00 00 00 CB [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 17 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 17 00 07 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [14:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:09:55]wFMCommunicate OK [14:09:55]CreateOFDProtocolMessage done [14:09:55]OFDSenderStorePacket 189172 [14:09:55]StoreOFDPacket docnum=189172 [14:09:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 53 07 01 1F 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 F5 00 00 00 F4 03 04 00 35 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E2 02 00 35 04 06 00 FA 7F 33 4E 05 48 3F 19 C9 1C 68 28 5C 17 [14:09:55]CheckFolder [14:09:55]dirname=/storage/ofd_packets [14:09:55]CheckFolder done [14:09:55]ProducePacketName [14:09:55]name=ofd_packets/00189172 [14:09:55]NVStorageSaveData ofd_packets/00189172 [14:09:55]File name is /storage/ofd_packets/00189172 [14:09:55]Write 301 bytes [14:09:55]NVStorageSaveData done [14:09:55]OFDSenderStorePacket done [14:09:55]KKMCreateOFDPacket done [14:09:55]NVStorageSaveData kkm_last_timestamp [14:09:55]File name is /storage/kkm_last_timestamp [14:09:55]Write 4 bytes [14:09:55]NVStorageSaveData done [14:09:55]ExternCall_PrintAddStr [14:09:55]wPrintStart [14:09:55]Write to MH i2c: 01 00 00 08 4A 52 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: 01 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: 01 07 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: 01 07 00 08 4A 00 00 00 00 00 FF 0F 67 [14:09:55]RasterBufferAndPrint [14:09:55]line Счет N : (1)211237 [14:09:55]line ИНН: 02508201610067 [14:09:55]line Контрольно-Кассовый Чек [14:09:55]line ПРОДАЖА [14:09:55]line ТРК (МРК, ГНК) : 32 [14:09:55]line Товар: 2710124130 [14:09:55]line Аи-92-К-3 [14:09:55]line 8.970 * 66.90 [14:09:55]line = 600.09 [14:09:55]line НДС 12% НСП 1% [14:09:55]line > о реализуемом товаре [14:09:55]line ОКРУГЛЕНИЕ: -0.09 [14:09:55]line ИТОГО: 600.00 [14:09:55]line Внесено: 600.00 [14:09:55]line СДАЧА: 0.00 [14:09:55]line НСП 1% : 5.31 [14:09:55]line НДС 12% : 63.73 [14:09:55]line Наличными: 600.00 [14:09:55]line Безнал.: 0.00 [14:09:55]line Место: АЗС № 86 "Партнер Нефть" [14:09:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:09:55]line СНО: Общий режим [14:09:55]line Чек 245 24.10.2024 14:09 [14:09:55]line Смена: 463 ФФД: 1.0 [14:09:55]line ЗНМ: 0300000155 [14:09:55]line РНМ: 0000000000100030 [14:09:55]line Версия ККМ: 001 [14:09:55]line ФМ: 0000000000965340 [14:09:55]line ФД: 189172 [14:09:55]line ФПД: 275424228541768 [14:09:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189172&fm=275424228541768&tin=02508201610067®Number=0000000000100030&sum=60000 [14:09:55]written 0, free lines is 4095 [14:09:55]OFD Sender: Processing packet 189172 [packets to send 1062, broken 1061] [14:09:55]ProducePacketName [14:09:55]name=ofd_packets/00189172 [14:09:55]OFD Sender: To server: pG, [14:09:55]CommunicateWithHost lk.salyk.kg:30040 [14:09:55]ConnectInit lk.salyk.kg [14:09:56]Write to MH i2c: 01 00 00 33 4A 7D [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 07 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 07 00 33 4A 00 00 00 00 00 5E 0C EE [14:09:56]RasterBufferAndPrint [14:09:56]line [14:09:56]line [14:09:56]line [14:09:56]line [14:09:56]line [14:09:56]written 0, free lines is 3168 [14:09:56]MH_Cut [14:09:56]Write to MH i2c: D1 01 00 3A 4A 01 56 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: D1 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: D1 01 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: D1 01 00 3A 4A 00 55 [14:09:56]Write to MH i2c: 01 00 00 3B 4A 85 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:57]*** Cut start [14:09:57]*** Partial cut [14:09:57]*** CUTSNS_PIN = 1 [14:09:57]*** CUTSNS_PIN = 0 [14:09:57]*** Brake cut motor [14:09:57]Read from MH i2c: 01 [14:09:57]MH_I2C_Read... [14:09:57]*** Stop cut motor [14:09:57]*** Cut end [14:09:57]Read from MH i2c: 01 07 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 3B 4A 00 00 00 00 00 FF 0F 9A [14:09:57]process_action close_receipt done [14:09:57]requested_data is exist [14:09:57]produce_requested_data [14:09:57]requested_item fm.sn is exist - process it [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 11 00 00 [14:09:57]Write to MH i2c: E2 08 00 3C 4A 80 11 00 00 00 00 00 00 00 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 17 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 17 00 3C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [14:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:09:58]wFMCommunicate OK [14:09:58]requested_item fd.num is exist - process it [14:09:58]SAM_PROTO_GetFieldsCounters [14:09:58]wFMCommunicate request_size=4 [14:09:58]MH_SAM_APDU [14:09:58]CAPDU: 80 13 00 00 [14:09:58]Write to MH i2c: E2 08 00 3D 4A 80 13 00 00 00 00 00 00 03 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 62 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 62 00 3D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E2 02 00 0E 04 04 00 CF 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 91 [14:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 E2 02 00 0E 04 04 00 CF 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 [14:09:58]wFMCommunicate OK [14:09:58]SAM_PROTO_GetFieldsCounters done [14:09:58]requested_item shift.num is exist - process it [14:09:58]requested_item shift.opened is exist - process it [14:09:58]req_shift_opened [14:09:58]FM_GetShiftState [14:09:58]SAM_PROTO_GetShiftState [14:09:58]wFMCommunicate request_size=4 [14:09:58]MH_SAM_APDU [14:09:58]CAPDU: 80 13 01 00 [14:09:58]Write to MH i2c: E2 08 00 3E 4A 80 13 01 00 00 00 00 00 05 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 0E 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 0E 00 3E 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E3 [14:09:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:09:58]wFMCommunicate OK [14:09:58]SAM_PROTO_GetShiftState done [14:09:58]FM_GetShiftState done [14:09:58]req_shift_opened done [14:09:58]requested_item shift.open_date is exist - process it [14:09:58]req_shift_open_date [14:09:58]req_shift_open_date done [14:09:58]produce_requested_data done [14:09:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189172,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:09:58]process_action_free close_receipt [14:09:58]json_value_free [14:09:58]json_value_free done [14:09:58]process_json_proto returns [14:09:58]Send response to host [14:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189172,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:09:58]free response buf [14:09:58]execute_script done [14:09:58]execute_script returns [14:09:58]free content buf [14:09:58]Sock 8.Close socket [14:09:58]Sock 8.Thread stoped [14:10:23]accept exits with 9 [14:10:23]New connection [14:10:23]New thread 3067215204 created [14:10:23]Thread 3067071844 joined [14:10:23]Waiting for new connection... [14:10:23] Sock 9.Parse request [14:10:23]Sock 9.Check first char [14:10:23]Sock 9.First char is OK [14:10:23]request: POST /json_proto HTTP/1.0 [14:10:23]Method: POST [14:10:23]URL: /json_proto [14:10:23]Method is POST - this is cgi request [14:10:23]url: /json_proto [14:10:23]query_string will be loaded in cgi processing [14:10:23]execute_cgi json_proto POST (null) [14:10:23]execute_cgi path=json_proto method=POST [14:10:23]POST find Content-Length [14:10:23]Host: 172.17.42.131:8080 [14:10:23]Content-Length: 682 [14:10:23]Content-Type: application/json [14:10:23] [14:10:23]POST finish read [14:10:23]Found Content-Length = 682 [14:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:23]execute_script... [14:10: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)211238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:23]POST & json_proto [14:10:23]process_json_proto [14:10:23]json parsed OK: [14:10:23]protocol is kg_v1.0 [14:10:23]action value=close_receipt [14:10:23]process_action close_receipt [14:10:23]cmd_close_receipt [14:10:23]MH_GetDate [14:10:23]Write to MH i2c: F0 00 00 3F 4A 78 [14:10:23]Write i2c OK [14:10:23]MH_I2C_Read... [14:10:23]Read from MH i2c: F0 [14:10:23]MH_I2C_Read... [14:10:23]Read from MH i2c: F0 09 00 [14:10:23]MH_I2C_Read... [14:10:23]Read from MH i2c: F0 09 00 3F 4A 00 53 55 1A 67 A0 18 CA 66 92 [14:10:23]GetLastDocTimeStamp 1729778997 [14:10:23]current date 1729779027 [14:10:23]FM_GetShiftState [14:10:23]SAM_PROTO_GetShiftState [14:10:23]wFMCommunicate request_size=4 [14:10:23]MH_SAM_APDU [14:10:23]CAPDU: 80 13 01 00 [14:10:23]Write to MH i2c: E2 08 00 40 4A 80 13 01 00 00 00 00 00 07 [14:10:23]Write i2c OK [14:10:23]MH_I2C_Read... [14:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:23]Read from MH i2c: E2 [14:10:23]MH_I2C_Read... [14:10:23]Read from MH i2c: E2 0E 00 [14:10:23]MH_I2C_Read... [14:10:23]Read from MH i2c: E2 0E 00 40 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E5 [14:10:23]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:10:23]wFMCommunicate OK [14:10:23]SAM_PROTO_GetShiftState done [14:10:23]FM_GetShiftState done [14:10:23]opened in 1729728961 [14:10:23]opened+sec_in_day 1729815361 [14:10:23]quantity*price = 100015 [14:10:23]sum+1 = 100017 [14:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 246 24.10.2024 14:10 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189173 ФПД: 277554402929045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189173&fm=277554402929045&tin=02508201610067®Number=0000000000100030&sum=100000 [14:10:24]StoreToDocumentArchive [14:10:24]shift 463 fd 189173 [14:10:24]save to /storage/0463/doc_00189173 [14:10:24]save last doc name /storage/0463/doc_00189173 to /storage/kkm_last_doc_name [14:10:24]save OK [14:10:24]Clear old archive folders... [14:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:24]tlvbuf is 0158AEA0 [14:10:24]SAM_PROTO_ClearQueue [14:10:24]wFMCommunicate request_size=4 [14:10:24]MH_SAM_APDU [14:10:24]CAPDU: 80 09 00 00 [14:10:24]Write to MH i2c: E2 08 00 4D 4A 80 09 00 00 00 00 00 00 09 [14:10:24]Write i2c OK [14:10:24]MH_I2C_Read... [14:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:24]Read from MH i2c: E2 [14:10:24]MH_I2C_Read... [14:10:24]Read from MH i2c: E2 03 00 [14:10:24]MH_I2C_Read... [14:10:24]Read from MH i2c: E2 03 00 4D 4A 00 90 00 0B [14:10:24]RAPDU: 90 00 [14:10:24]wFMCommunicate OK [14:10:24]SAM_PROTO_ClearQueue done [14:10:24]KKMCreateOFDPacket [14:10:24]OFDProtocolAddRootSTLVToBuf [14:10:24]FM_MakeSignedData [14:10:24]FM_MakeSignedData [14:10:24]SAM_PROTO_SignData [14:10:24]wFMCommunicate request_size=4 [14:10:24]MH_SAM_APDU [14:10:24]CAPDU: 80 0D 01 02 [14:10:24]Write to MH i2c: E2 08 00 4E 4A 80 0D 01 02 00 00 00 00 11 [14:10:24]Write i2c OK [14:10:24]MH_I2C_Read... [14:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:24]Read from MH i2c: E2 [14:10:24]MH_I2C_Read... [14:10:24]Read from MH i2c: E2 03 00 [14:10:24]MH_I2C_Read... [14:10:24]Read from MH i2c: E2 03 00 4E 4A 00 90 00 0C [14:10:24]RAPDU: 90 00 [14:10:24]wFMCommunicate OK [14:10:24]wFMCommunicate request_size=255 [14:10:24]MH_SAM_APDU [14:10: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 53 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E2 02 00 35 04 06 00 FC [14:10:24]Write to MH i2c: E2 02 01 4F 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 53 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E2 02 00 35 04 06 00 FC 00 00 42 [14:10:24]Write i2c OK [14:10:24]MH_I2C_Read... [14:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:25]Read from MH i2c: E2 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 03 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [14:10:25]RAPDU: 90 00 [14:10:25]wFMCommunicate OK [14:10:25]wFMCommunicate request_size=10 [14:10:25]MH_SAM_APDU [14:10:25]CAPDU: 80 0D 02 02 05 6F 2B 97 A9 95 [14:10:25]Write to MH i2c: E2 0D 00 50 4A 80 0D 02 02 05 00 6F 2B 97 A9 95 00 00 8D [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:25]Read from MH i2c: E2 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 03 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [14:10:25]RAPDU: 90 00 [14:10:25]wFMCommunicate OK [14:10:25]wFMCommunicate request_size=4 [14:10:25]MH_SAM_APDU [14:10:25]CAPDU: 80 0D 03 02 [14:10:25]Write to MH i2c: E2 08 00 51 4A 80 0D 03 02 00 00 00 00 16 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:25]Read from MH i2c: E2 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 0B 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 0B 00 51 4A 00 C2 CA A0 AA EE 2C 13 ED 90 00 07 [14:10:25]RAPDU: C2 CA A0 AA EE 2C 13 ED 90 00 [14:10:25]wFMCommunicate OK [14:10:25]SAM_PROTO_SignData done [14:10:25]FM_MakeSignedData done [14:10:25]CreateOFDProtocolMessage [14:10:25]wFMCommunicate request_size=4 [14:10:25]MH_SAM_APDU [14:10:25]CAPDU: 80 11 00 00 [14:10:25]Write to MH i2c: E2 08 00 52 4A 80 11 00 00 00 00 00 00 16 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:25]Read from MH i2c: E2 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 17 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: E2 17 00 52 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [14:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:10:25]wFMCommunicate OK [14:10:25]CreateOFDProtocolMessage done [14:10:25]OFDSenderStorePacket 189173 [14:10:25]StoreOFDPacket docnum=189173 [14:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 19 07 01 FC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 53 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E2 02 00 35 04 06 00 FC 6F 2B 97 A9 95 C2 CA A0 AA EE 2C 13 ED [14:10:25]CheckFolder [14:10:25]dirname=/storage/ofd_packets [14:10:25]CheckFolder done [14:10:25]ProducePacketName [14:10:25]name=ofd_packets/00189173 [14:10:25]NVStorageSaveData ofd_packets/00189173 [14:10:25]File name is /storage/ofd_packets/00189173 [14:10:25]Write 301 bytes [14:10:25]NVStorageSaveData done [14:10:25]OFDSenderStorePacket done [14:10:25]KKMCreateOFDPacket done [14:10:25]NVStorageSaveData kkm_last_timestamp [14:10:25]File name is /storage/kkm_last_timestamp [14:10:25]Write 4 bytes [14:10:25]NVStorageSaveData done [14:10:25]ExternCall_PrintAddStr [14:10:25]wPrintStart [14:10:25]Write to MH i2c: 01 00 00 53 4A 9D [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 07 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 07 00 53 4A 00 00 00 00 00 FF 0F B2 [14:10:25]RasterBufferAndPrint [14:10:25]line Счет N : (1)211238 [14:10:25]line ИНН: 02508201610067 [14:10:25]line Контрольно-Кассовый Чек [14:10:25]line ПРОДАЖА [14:10:25]line ТРК (МРК, ГНК) : 12 [14:10:25]line Товар: 2710124130 [14:10:25]line Аи-92-К-3 [14:10:25]line 14.950 * 66.90 [14:10:25]line = 1000.16 [14:10:25]line НДС 12% НСП 1% [14:10:25]line > о реализуемом товаре [14:10:25]line ОКРУГЛЕНИЕ: -0.16 [14:10:25]line ИТОГО: 1000.00 [14:10:25]line Внесено: 1000.00 [14:10:25]line СДАЧА: 0.00 [14:10:25]line НСП 1% : 8.85 [14:10:25]line НДС 12% : 106.21 [14:10:25]line Наличными: 1000.00 [14:10:25]line Безнал.: 0.00 [14:10:25]line Место: АЗС № 86 "Партнер Нефть" [14:10:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:10:25]line СНО: Общий режим [14:10:25]line Чек 246 24.10.2024 14:10 [14:10:25]line Смена: 463 ФФД: 1.0 [14:10:25]line ЗНМ: 0300000155 [14:10:25]line РНМ: 0000000000100030 [14:10:25]line Версия ККМ: 001 [14:10:25]line ФМ: 0000000000965340 [14:10:25]line ФД: 189173 [14:10:25]line ФПД: 277554402929045 [14:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189173&fm=277554402929045&tin=02508201610067®Number=0000000000100030&sum=100000 [14:10:25]written 0, free lines is 4095 [14:10:25]Write to MH i2c: 01 00 00 7E 4A C8 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 07 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: 01 07 00 7E 4A 00 00 00 00 00 59 0C 34 [14:10:25]RasterBufferAndPrint [14:10:25]line [14:10:25]line [14:10:25]line [14:10:25]line [14:10:25]line [14:10:25]written 0, free lines is 3166 [14:10:25]MH_Cut [14:10:25]Write to MH i2c: D1 01 00 85 4A 01 A1 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: D1 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: D1 01 00 [14:10:25]MH_I2C_Read... [14:10:25]Read from MH i2c: D1 01 00 85 4A 00 A0 [14:10:25]Write to MH i2c: 01 00 00 86 4A D0 [14:10:25]Write i2c OK [14:10:25]MH_I2C_Read... [14:10:26]*** Cut start [14:10:26]*** Partial cut [14:10:26]*** CUTSNS_PIN = 1 [14:10:27]*** CUTSNS_PIN = 0 [14:10:27]*** Brake cut motor [14:10:27]Read from MH i2c: 01 [14:10:27]MH_I2C_Read... [14:10:27]*** Stop cut motor [14:10:27]*** Cut end [14:10:27]Read from MH i2c: 01 07 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: 01 07 00 86 4A 00 00 00 00 00 FF 0F E5 [14:10:27]process_action close_receipt done [14:10:27]requested_data is exist [14:10:27]produce_requested_data [14:10:27]requested_item fm.sn is exist - process it [14:10:27]wFMCommunicate request_size=4 [14:10:27]MH_SAM_APDU [14:10:27]CAPDU: 80 11 00 00 [14:10:27]Write to MH i2c: E2 08 00 87 4A 80 11 00 00 00 00 00 00 4B [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:27]Read from MH i2c: E2 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 17 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 17 00 87 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [14:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:10:27]wFMCommunicate OK [14:10:27]requested_item fd.num is exist - process it [14:10:27]SAM_PROTO_GetFieldsCounters [14:10:27]wFMCommunicate request_size=4 [14:10:27]MH_SAM_APDU [14:10:27]CAPDU: 80 13 00 00 [14:10:27]Write to MH i2c: E2 08 00 88 4A 80 13 00 00 00 00 00 00 4E [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:27]Read from MH i2c: E2 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 62 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 62 00 88 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E2 02 00 0E 04 04 00 CF 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 E0 [14:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 E2 02 00 0E 04 04 00 CF 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 [14:10:27]wFMCommunicate OK [14:10:27]SAM_PROTO_GetFieldsCounters done [14:10:27]requested_item shift.num is exist - process it [14:10:27]requested_item shift.opened is exist - process it [14:10:27]req_shift_opened [14:10:27]FM_GetShiftState [14:10:27]SAM_PROTO_GetShiftState [14:10:27]wFMCommunicate request_size=4 [14:10:27]MH_SAM_APDU [14:10:27]CAPDU: 80 13 01 00 [14:10:27]Write to MH i2c: E2 08 00 89 4A 80 13 01 00 00 00 00 00 50 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:27]Read from MH i2c: E2 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 89 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2E [14:10:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:10:27]wFMCommunicate OK [14:10:27]SAM_PROTO_GetShiftState done [14:10:27]FM_GetShiftState done [14:10:27]req_shift_opened done [14:10:27]requested_item shift.open_date is exist - process it [14:10:27]req_shift_open_date [14:10:27]req_shift_open_date done [14:10:27]produce_requested_data done [14:10:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189173,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:10:27]process_action_free close_receipt [14:10:27]json_value_free [14:10:27]json_value_free done [14:10:27]process_json_proto returns [14:10:27]Send response to host [14:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189173,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:10:27]free response buf [14:10:27]execute_script done [14:10:27]execute_script returns [14:10:27]free content buf [14:10:27]Sock 9.Close socket [14:10:27]Sock 9.Thread stoped [14:12:08]ConnectInit Can't connect to host [14:12:08]CommunicateWithHost connect error [14:12:08]CommunicateWithHost err = -1 [14:12:08]OFD Sender: Server communicate error [14:12:08]OFD Sender: Processing packet 189172 [packets to send 1063, broken 1061] [14:12:08]ProducePacketName [14:12:08]name=ofd_packets/00189172 [14:12:08]OFD Sender: To server: pG, [14:12:08]CommunicateWithHost lk.salyk.kg:30040 [14:12:08]ConnectInit lk.salyk.kg [14:12:08]Connected sock=9 [14:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 53 07 01 1F 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 F5 00 00 00 F4 03 04 00 35 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 E2 02 00 35 04 06 00 FA 7F 33 4E 05 48 3F 19 C9 1C 68 28 5C 17 [14:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 AA 47 00 67 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 39 36 35 33 34 30 10 04 04 00 F4 E2 02 00 F4 03 04 00 A2 FF 19 67 B6 04 01 00 00 60 EE AD 20 D5 B0 DA 16 [14:12:09]CommunicateWithHost err = 0 [14:12:09]CheckOFDResponse [14:12:09]1017 (14) - 77093643461234 [14:12:09]1041 (16) - 0000000000965340 [14:12:09]1040 (4) - 189172 [14:12:09]1012 (4) - 24.10.2024 08:04 [14:12:09]1206 (1) - 0 [14:12:09]OFD Sender: Remove packet 189172 [14:12:09]ProducePacketName [14:12:09]name=ofd_packets/00189172 [14:12:09]NVStorageDeleteData [14:12:09]OFD Sender: Processing packet 189173 [packets to send 1062, broken 1061] [14:12:09]ProducePacketName [14:12:09]name=ofd_packets/00189173 [14:12:09]OFD Sender: To server: pG, [14:12:09]CommunicateWithHost lk.salyk.kg:30040 [14:12:09]ConnectInit lk.salyk.kg [14:12:10]Connected sock=9 [14:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 19 07 01 FC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 53 55 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 E2 02 00 35 04 06 00 FC 6F 2B 97 A9 95 C2 CA A0 AA EE 2C 13 ED [14:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E7 6E 47 00 93 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 39 36 35 33 34 30 10 04 04 00 F5 E2 02 00 F4 03 04 00 A3 FF 19 67 B6 04 01 00 00 45 AA EC 6F 67 99 64 EA [14:12:10]CommunicateWithHost err = 0 [14:12:10]CheckOFDResponse [14:12:10]1017 (14) - 77093643461234 [14:12:10]1041 (16) - 0000000000965340 [14:12:10]1040 (4) - 189173 [14:12:10]1012 (4) - 24.10.2024 08:04 [14:12:10]1206 (1) - 0 [14:12:10]OFD Sender: Remove packet 189173 [14:12:10]ProducePacketName [14:12:10]name=ofd_packets/00189173 [14:12:10]NVStorageDeleteData [14:12:10]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:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]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:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:27]accept exits with 8 [14:20:27]New connection [14:20:27]New thread 3067071844 created [14:20:27]Thread 3067215204 joined [14:20:27]Waiting for new connection... [14:20:27] Sock 8.Parse request [14:20:27]Sock 8.Check first char [14:20:27]Sock 8.First char is OK [14:20:27]request: POST /json_proto HTTP/1.0 [14:20:27]Method: POST [14:20:27]URL: /json_proto [14:20:27]Method is POST - this is cgi request [14:20:27]url: /json_proto [14:20:27]query_string will be loaded in cgi processing [14:20:27]execute_cgi json_proto POST (null) [14:20:27]execute_cgi path=json_proto method=POST [14:20:27]POST find Content-Length [14:20:27]Host: 172.17.42.131:8080 [14:20:27]Content-Length: 983 [14:20:27]Content-Type: application/json [14:20:27] [14:20:27]POST finish read [14:20:27]Found Content-Length = 983 [14:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:20:27]execute_script... [14:20: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)211239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:20:27]POST & json_proto [14:20:27]process_json_proto [14:20:27]json parsed OK: [14:20:27]protocol is kg_v1.0 [14:20:27]action value=close_receipt [14:20:27]process_action close_receipt [14:20:27]cmd_close_receipt [14:20:27]MH_GetDate [14:20:27]Write to MH i2c: F0 00 00 8A 4A C3 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: F0 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: F0 09 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: F0 09 00 8A 4A 00 AF 57 1A 67 A0 18 CA 66 3B [14:20:27]GetLastDocTimeStamp 1729779027 [14:20:27]current date 1729779631 [14:20:27]FM_GetShiftState [14:20:27]SAM_PROTO_GetShiftState [14:20:27]wFMCommunicate request_size=4 [14:20:27]MH_SAM_APDU [14:20:27]CAPDU: 80 13 01 00 [14:20:27]Write to MH i2c: E2 08 00 8B 4A 80 13 01 00 00 00 00 00 52 [14:20:27]Write i2c OK [14:20:27]MH_I2C_Read... [14:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:27]Read from MH i2c: E2 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0E 00 [14:20:27]MH_I2C_Read... [14:20:27]Read from MH i2c: E2 0E 00 8B 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 30 [14:20:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:20:27]wFMCommunicate OK [14:20:27]SAM_PROTO_GetShiftState done [14:20:27]FM_GetShiftState done [14:20:27]opened in 1729728961 [14:20:27]opened+sec_in_day 1729815361 [14:20:27]quantity*price = 200006 [14:20:27]sum+1 = 200008 [14:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 247 24.10.2024 14:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 189174 ФПД: 24293808817021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142031&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189174&fm=24293808817021&tin=02508201610067®Number=0000000000100030&sum=200000 [14:20:28]StoreToDocumentArchive [14:20:28]shift 463 fd 189174 [14:20:28]save to /storage/0463/doc_00189174 [14:20:28]save last doc name /storage/0463/doc_00189174 to /storage/kkm_last_doc_name [14:20:28]save OK [14:20:28]Clear old archive folders... [14:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:28]tlvbuf is 01534060 [14:20:28]SAM_PROTO_ClearQueue [14:20:28]wFMCommunicate request_size=4 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 09 00 00 [14:20:28]Write to MH i2c: E2 08 00 98 4A 80 09 00 00 00 00 00 00 54 [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 98 4A 00 90 00 56 [14:20:28]RAPDU: 90 00 [14:20:28]wFMCommunicate OK [14:20:28]SAM_PROTO_ClearQueue done [14:20:28]KKMCreateOFDPacket [14:20:28]OFDProtocolAddRootSTLVToBuf [14:20:28]FM_MakeSignedData [14:20:28]FM_MakeSignedData [14:20:28]SAM_PROTO_SignData [14:20:28]wFMCommunicate request_size=4 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 0D 01 02 [14:20:28]Write to MH i2c: E2 08 00 99 4A 80 0D 01 02 00 00 00 00 5C [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 99 4A 00 90 00 57 [14:20:28]RAPDU: 90 00 [14:20:28]wFMCommunicate OK [14:20:28]wFMCommunicate request_size=255 [14:20:28]MH_SAM_APDU [14:20: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F7 00 00 00 F4 03 04 00 AF 57 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E2 02 00 35 04 06 00 16 [14:20:28]Write to MH i2c: E2 02 01 9A 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F7 00 00 00 F4 03 04 00 AF 57 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E2 02 00 35 04 06 00 16 00 00 94 [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 9A 4A 00 90 00 58 [14:20:28]RAPDU: 90 00 [14:20:28]wFMCommunicate OK [14:20:28]wFMCommunicate request_size=10 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 0D 02 02 05 18 57 D8 43 7D [14:20:28]Write to MH i2c: E2 0D 00 9B 4A 80 0D 02 02 05 00 18 57 D8 43 7D 00 00 70 [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 03 00 9B 4A 00 90 00 59 [14:20:28]RAPDU: 90 00 [14:20:28]wFMCommunicate OK [14:20:28]wFMCommunicate request_size=4 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 0D 03 02 [14:20:28]Write to MH i2c: E2 08 00 9C 4A 80 0D 03 02 00 00 00 00 61 [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 0B 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 0B 00 9C 4A 00 EF BD 14 5C 47 DC A5 86 90 00 CC [14:20:28]RAPDU: EF BD 14 5C 47 DC A5 86 90 00 [14:20:28]wFMCommunicate OK [14:20:28]SAM_PROTO_SignData done [14:20:28]FM_MakeSignedData done [14:20:28]CreateOFDProtocolMessage [14:20:28]wFMCommunicate request_size=4 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 11 00 00 [14:20:28]Write to MH i2c: E2 08 00 9D 4A 80 11 00 00 00 00 00 00 61 [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 17 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 17 00 9D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [14:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:20:29]wFMCommunicate OK [14:20:29]CreateOFDProtocolMessage done [14:20:29]OFDSenderStorePacket 189174 [14:20:29]StoreOFDPacket docnum=189174 [14:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 0D 07 01 D6 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F7 00 00 00 F4 03 04 00 AF 57 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E2 02 00 35 04 06 00 16 18 57 D8 43 7D EF BD 14 5C 47 DC A5 86 [14:20:29]CheckFolder [14:20:29]dirname=/storage/ofd_packets [14:20:29]CheckFolder done [14:20:29]ProducePacketName [14:20:29]name=ofd_packets/00189174 [14:20:29]NVStorageSaveData ofd_packets/00189174 [14:20:29]File name is /storage/ofd_packets/00189174 [14:20:29]Write 301 bytes [14:20:29]NVStorageSaveData done [14:20:29]OFDSenderStorePacket done [14:20:29]KKMCreateOFDPacket done [14:20:29]NVStorageSaveData kkm_last_timestamp [14:20:29]File name is /storage/kkm_last_timestamp [14:20:29]Write 4 bytes [14:20:29]NVStorageSaveData done [14:20:29]ExternCall_PrintAddStr [14:20:29]wPrintStart [14:20:29]Write to MH i2c: 01 00 00 9E 4A E8 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 9E 4A 00 00 00 00 00 FF 0F FD [14:20:29]RasterBufferAndPrint [14:20:29]line Счет N : (1)211239 [14:20:29]line ИНН: 02508201610067 [14:20:29]line Контрольно-Кассовый Чек [14:20:29]line ПРОДАЖА [14:20:29]line ТРК (МРК, ГНК) : 42 [14:20:29]line Товар: 2710124130 [14:20:29]line Аи-92-К-3 [14:20:29]line 30.350 * 65.90 [14:20:29]line = 2000.07 [14:20:29]line НДС 12% НСП 1% [14:20:29]line > о реализуемом товаре [14:20:29]line ОКРУГЛЕНИЕ: -0.07 [14:20:29]line ИТОГО: 2000.00 [14:20:29]line Внесено: 2000.00 [14:20:29]line СДАЧА: 0.00 [14:20:29]line НСП 1% : 17.70 [14:20:29]line НДС 12% : 212.40 [14:20:29]line Наличными: 2000.00 [14:20:29]line Безнал.: 0.00 [14:20:29]line Место: АЗС № 86 "Партнер Нефть" [14:20:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:20:29]line СНО: Общий режим [14:20:29]line Чек 247 24.10.2024 14:20 [14:20:29]line Смена: 463 ФФД: 1.0 [14:20:29]line ЗНМ: 0300000155 [14:20:29]line РНМ: 0000000000100030 [14:20:29]line Версия ККМ: 001 [14:20:29]line [14:20:29]line Дисконтная программа [14:20:29]line АИ-92 [14:20:29]line номер 86 [14:20:29]line сэкономлено 30.35 сом [14:20:29]line ФМ: 0000000000965340 [14:20:29]line ФД: 189174 [14:20:29]line ФПД: 24293808817021 [14:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142031&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189174&fm=24293808817021&tin=02508201610067®Number=0000000000100030&sum=200000 [14:20:29]OFD Sender: Processing packet 189174 [packets to send 1062, broken 1061] [14:20:29]ProducePacketName [14:20:29]name=ofd_packets/00189174 [14:20:29]OFD Sender: To server: pG, [14:20:29]CommunicateWithHost lk.salyk.kg:30040 [14:20:29]ConnectInit lk.salyk.kg [14:20:29]written 0, free lines is 4095 [14:20:29]Connected sock=10 [14:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 0D 07 01 D6 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F7 00 00 00 F4 03 04 00 AF 57 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E2 02 00 35 04 06 00 16 18 57 D8 43 7D EF BD 14 5C 47 DC A5 86 [14:20:29]Write to MH i2c: 01 00 00 CE 4A 18 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 CE 4A 00 00 00 00 00 E7 0B 11 [14:20:29]RasterBufferAndPrint [14:20:29]line [14:20:29]line [14:20:29]line [14:20:29]line [14:20:29]line [14:20:29]written 0, free lines is 3050 [14:20:29]MH_Cut [14:20:29]Write to MH i2c: D1 01 00 D5 4A 01 F1 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: D1 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: D1 01 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: D1 01 00 D5 4A 00 F0 [14:20:29]Write to MH i2c: 01 00 00 D6 4A 20 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A C1 47 00 49 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 E2 02 00 F4 03 04 00 96 01 1A 67 B6 04 01 00 00 BF 0C 0C 22 7A F1 A0 7A [14:20:29]CommunicateWithHost err = 0 [14:20:29]CheckOFDResponse [14:20:29]1017 (14) - 77093643461234 [14:20:29]1041 (16) - 0000000000965340 [14:20:29]1040 (4) - 189174 [14:20:29]1012 (4) - 24.10.2024 08:13 [14:20:29]1206 (1) - 0 [14:20:29]OFD Sender: Remove packet 189174 [14:20:29]ProducePacketName [14:20:29]name=ofd_packets/00189174 [14:20:29]NVStorageDeleteData [14:20:30]OFD Sender: No OFD packet to send [14:20:30]*** Cut start [14:20:30]*** Partial cut [14:20:30]*** CUTSNS_PIN = 1 [14:20:31]*** CUTSNS_PIN = 0 [14:20:31]*** Brake cut motor [14:20:31]Read from MH i2c: 01 [14:20:31]MH_I2C_Read... [14:20:31]*** Stop cut motor [14:20:31]*** Cut end [14:20:31]Read from MH i2c: 01 07 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: 01 07 00 D6 4A 00 00 00 00 00 FF 0F 35 [14:20:31]process_action close_receipt done [14:20:31]requested_data is exist [14:20:31]produce_requested_data [14:20:31]requested_item fm.sn is exist - process it [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 11 00 00 [14:20:31]Write to MH i2c: E2 08 00 D7 4A 80 11 00 00 00 00 00 00 9B [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:31]Read from MH i2c: E2 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 17 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 17 00 D7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [14:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:20:31]wFMCommunicate OK [14:20:31]requested_item fd.num is exist - process it [14:20:31]SAM_PROTO_GetFieldsCounters [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 13 00 00 [14:20:31]Write to MH i2c: E2 08 00 D8 4A 80 13 00 00 00 00 00 00 9E [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:31]Read from MH i2c: E2 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 62 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 62 00 D8 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E2 02 00 0E 04 04 00 CF 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 34 [14:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 E2 02 00 0E 04 04 00 CF 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 [14:20:31]wFMCommunicate OK [14:20:31]SAM_PROTO_GetFieldsCounters done [14:20:31]requested_item shift.num is exist - process it [14:20:31]requested_item shift.opened is exist - process it [14:20:31]req_shift_opened [14:20:31]FM_GetShiftState [14:20:31]SAM_PROTO_GetShiftState [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 13 01 00 [14:20:31]Write to MH i2c: E2 08 00 D9 4A 80 13 01 00 00 00 00 00 A0 [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:31]Read from MH i2c: E2 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 0E 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 0E 00 D9 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7E [14:20:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:20:31]wFMCommunicate OK [14:20:31]SAM_PROTO_GetShiftState done [14:20:31]FM_GetShiftState done [14:20:31]req_shift_opened done [14:20:31]requested_item shift.open_date is exist - process it [14:20:31]req_shift_open_date [14:20:31]req_shift_open_date done [14:20:31]produce_requested_data done [14:20:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189174,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:20:31]process_action_free close_receipt [14:20:31]json_value_free [14:20:31]json_value_free done [14:20:31]process_json_proto returns [14:20:31]Send response to host [14:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189174,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:20:31]free response buf [14:20:31]execute_script done [14:20:31]execute_script returns [14:20:31]free content buf [14:20:31]Sock 8.Close socket [14:20:31]Sock 8.Thread stoped [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:10]accept exits with 9 [14:22:10]New connection [14:22:10]New thread 3067215204 created [14:22:10]Thread 3067071844 joined [14:22:10]Waiting for new connection... [14:22:10] Sock 9.Parse request [14:22:10]Sock 9.Check first char [14:22:10]Sock 9.First char is OK [14:22:10]request: POST /json_proto HTTP/1.0 [14:22:10]Method: POST [14:22:10]URL: /json_proto [14:22:10]Method is POST - this is cgi request [14:22:10]url: /json_proto [14:22:10]query_string will be loaded in cgi processing [14:22:10]execute_cgi json_proto POST (null) [14:22:10]execute_cgi path=json_proto method=POST [14:22:10]POST find Content-Length [14:22:10]Host: 172.17.42.131:8080 [14:22:10]Content-Length: 688 [14:22:10]Content-Type: application/json [14:22:10] [14:22:10]POST finish read [14:22:10]Found Content-Length = 688 [14:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [14:22:10]execute_script... [14:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [14:22:10]POST & json_proto [14:22:10]process_json_proto [14:22:10]json parsed OK: [14:22:10]protocol is kg_v1.0 [14:22:10]action value=close_receipt [14:22:10]process_action close_receipt [14:22:10]cmd_close_receipt [14:22:10]MH_GetDate [14:22:10]Write to MH i2c: F0 00 00 DA 4A 13 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: F0 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: F0 09 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: F0 09 00 DA 4A 00 16 58 1A 67 A0 18 CA 66 F3 [14:22:10]GetLastDocTimeStamp 1729779631 [14:22:10]current date 1729779734 [14:22:10]FM_GetShiftState [14:22:10]SAM_PROTO_GetShiftState [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 13 01 00 [14:22:10]Write to MH i2c: E2 08 00 DB 4A 80 13 01 00 00 00 00 00 A2 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 0E 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 0E 00 DB 4A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 80 [14:22:10]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:22:10]wFMCommunicate OK [14:22:10]SAM_PROTO_GetShiftState done [14:22:10]FM_GetShiftState done [14:22:10]opened in 1729728961 [14:22:10]opened+sec_in_day 1729815361 [14:22:10]quantity*price = 300076 [14:22:10]sum+1 = 300077 [14:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 248 24.10.2024 14:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189175 ФПД: 243209606392818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142214&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189175&fm=243209606392818&tin=02508201610067®Number=0000000000100030&sum=300000 [14:22:12]StoreToDocumentArchive [14:22:12]shift 463 fd 189175 [14:22:12]save to /storage/0463/doc_00189175 [14:22:12]save last doc name /storage/0463/doc_00189175 to /storage/kkm_last_doc_name [14:22:12]save OK [14:22:12]Clear old archive folders... [14:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:22:12]tlvbuf is 01577E60 [14:22:12]SAM_PROTO_ClearQueue [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 09 00 00 [14:22:12]Write to MH i2c: E2 08 00 E8 4A 80 09 00 00 00 00 00 00 A4 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 E8 4A 00 90 00 A6 [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_ClearQueue done [14:22:12]KKMCreateOFDPacket [14:22:12]OFDProtocolAddRootSTLVToBuf [14:22:12]FM_MakeSignedData [14:22:12]FM_MakeSignedData [14:22:12]SAM_PROTO_SignData [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 01 02 [14:22:12]Write to MH i2c: E2 08 00 E9 4A 80 0D 01 02 00 00 00 00 AC [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 E9 4A 00 90 00 A7 [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=255 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 F8 00 00 00 F4 03 04 00 16 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E2 02 [14:22:12]Write to MH i2c: E2 02 01 EA 4A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 F8 00 00 00 F4 03 04 00 16 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E2 02 00 00 7D [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 EA 4A 00 90 00 A8 [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=16 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD 32 A6 31 EB F2 [14:22:12]Write to MH i2c: E2 13 00 EB 4A 80 0D 02 02 0B 00 00 35 04 06 00 DD 32 A6 31 EB F2 00 00 C7 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 EB 4A 00 90 00 A9 [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 03 02 [14:22:12]Write to MH i2c: E2 08 00 EC 4A 80 0D 03 02 00 00 00 00 B1 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0B 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0B 00 EC 4A 00 D2 E8 43 14 BA 35 C9 9B 90 00 16 [14:22:12]RAPDU: D2 E8 43 14 BA 35 C9 9B 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_SignData done [14:22:12]FM_MakeSignedData done [14:22:12]CreateOFDProtocolMessage [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 11 00 00 [14:22:12]Write to MH i2c: E2 08 00 ED 4A 80 11 00 00 00 00 00 00 B1 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 17 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 17 00 ED 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [14:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:22:12]wFMCommunicate OK [14:22:12]CreateOFDProtocolMessage done [14:22:12]OFDSenderStorePacket 189175 [14:22:12]StoreOFDPacket docnum=189175 [14:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 78 0D 01 6B D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 F8 00 00 00 F4 03 04 00 16 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E2 02 00 35 04 06 00 DD 32 A6 31 EB F2 D2 E8 43 14 BA 35 C9 9B [14:22:12]CheckFolder [14:22:12]dirname=/storage/ofd_packets [14:22:12]CheckFolder done [14:22:12]ProducePacketName [14:22:12]name=ofd_packets/00189175 [14:22:12]NVStorageSaveData ofd_packets/00189175 [14:22:12]File name is /storage/ofd_packets/00189175 [14:22:12]Write 307 bytes [14:22:12]NVStorageSaveData done [14:22:12]OFDSenderStorePacket done [14:22:12]KKMCreateOFDPacket done [14:22:12]NVStorageSaveData kkm_last_timestamp [14:22:12]File name is /storage/kkm_last_timestamp [14:22:12]Write 4 bytes [14:22:12]NVStorageSaveData done [14:22:12]ExternCall_PrintAddStr [14:22:12]wPrintStart [14:22:12]Write to MH i2c: 01 00 00 EE 4A 38 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 EE 4A 00 00 00 00 00 FF 0F 4D [14:22:12]RasterBufferAndPrint [14:22:12]line Счет N : (1)211240 [14:22:12]line ИНН: 02508201610067 [14:22:12]line Контрольно-Кассовый Чек [14:22:12]line ПРОДАЖА [14:22:12]line ТРК (МРК, ГНК) : 21 [14:22:12]line Товар: 2710194210 [14:22:12]line D-ENERGY ДТ-К-5 [14:22:12]line 38.870 * 77.20 [14:22:12]line = 3000.76 [14:22:12]line НДС 12% НСП 1% [14:22:12]line > о реализуемом товаре [14:22:12]line ОКРУГЛЕНИЕ: -0.76 [14:22:12]line ИТОГО: 3000.00 [14:22:12]line Внесено: 3000.00 [14:22:12]line СДАЧА: 0.00 [14:22:12]line НСП 1% : 26.55 [14:22:12]line НДС 12% : 318.66 [14:22:12]line Наличными: 3000.00 [14:22:12]line Безнал.: 0.00 [14:22:12]line Место: АЗС № 86 "Партнер Нефть" [14:22:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:22:12]line СНО: Общий режим [14:22:12]line Чек 248 24.10.2024 14:22 [14:22:12]line Смена: 463 ФФД: 1.0 [14:22:12]line ЗНМ: 0300000155 [14:22:12]line РНМ: 0000000000100030 [14:22:12]line Версия ККМ: 001 [14:22:12]line ФМ: 0000000000965340 [14:22:12]line ФД: 189175 [14:22:12]line ФПД: 243209606392818 [14:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142214&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189175&fm=243209606392818&tin=02508201610067®Number=0000000000100030&sum=300000 [14:22:12]written 0, free lines is 4095 [14:22:12]OFD Sender: Processing packet 189175 [packets to send 1062, broken 1061] [14:22:12]ProducePacketName [14:22:12]name=ofd_packets/00189175 [14:22:12]OFD Sender: To server: pG, [14:22:12]CommunicateWithHost lk.salyk.kg:30040 [14:22:12]ConnectInit lk.salyk.kg [14:22:13]Connected sock=10 [14:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 78 0D 01 6B D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 F8 00 00 00 F4 03 04 00 16 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E2 02 00 35 04 06 00 DD 32 A6 31 EB F2 D2 E8 43 14 BA 35 C9 9B [14:22:13]Write to MH i2c: 01 00 00 19 4B 64 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 19 4B 00 00 00 00 00 5F 0C D6 [14:22:13]RasterBufferAndPrint [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]written 0, free lines is 3172 [14:22:13]MH_Cut [14:22:13]Write to MH i2c: D1 01 00 20 4B 01 3D [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 01 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 01 00 20 4B 00 3C [14:22:13]Write to MH i2c: 01 00 00 21 4B 6C [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6C 16 47 00 8B C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 E2 02 00 F4 03 04 00 FE 01 1A 67 B6 04 01 00 00 65 0E DB 65 17 37 74 A4 [14:22:13]CommunicateWithHost err = 0 [14:22:13]CheckOFDResponse [14:22:13]1017 (14) - 77093643461234 [14:22:13]1041 (16) - 0000000000965340 [14:22:13]1040 (4) - 189175 [14:22:13]1012 (4) - 24.10.2024 08:14 [14:22:13]1206 (1) - 0 [14:22:13]OFD Sender: Remove packet 189175 [14:22:13]ProducePacketName [14:22:13]name=ofd_packets/00189175 [14:22:13]NVStorageDeleteData [14:22:13]OFD Sender: No OFD packet to send [14:22:14]*** Cut start [14:22:14]*** Partial cut [14:22:14]*** CUTSNS_PIN = 1 [14:22:14]*** CUTSNS_PIN = 0 [14:22:14]*** Brake cut motor [14:22:14]Read from MH i2c: 01 [14:22:14]MH_I2C_Read... [14:22:14]*** Stop cut motor [14:22:14]*** Cut end [14:22:14]Read from MH i2c: 01 07 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 21 4B 00 00 00 00 00 FF 0F 81 [14:22:14]process_action close_receipt done [14:22:14]requested_data is exist [14:22:14]produce_requested_data [14:22:14]requested_item fm.sn is exist - process it [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 11 00 00 [14:22:14]Write to MH i2c: E2 08 00 22 4B 80 11 00 00 00 00 00 00 E7 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 17 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 17 00 22 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [14:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:22:15]wFMCommunicate OK [14:22:15]requested_item fd.num is exist - process it [14:22:15]SAM_PROTO_GetFieldsCounters [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 13 00 00 [14:22:15]Write to MH i2c: E2 08 00 23 4B 80 13 00 00 00 00 00 00 EA [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 62 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 62 00 23 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E2 02 00 0E 04 04 00 CF 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 84 [14:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 E2 02 00 0E 04 04 00 CF 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 [14:22:15]wFMCommunicate OK [14:22:15]SAM_PROTO_GetFieldsCounters done [14:22:15]requested_item shift.num is exist - process it [14:22:15]requested_item shift.opened is exist - process it [14:22:15]req_shift_opened [14:22:15]FM_GetShiftState [14:22:15]SAM_PROTO_GetShiftState [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 13 01 00 [14:22:15]Write to MH i2c: E2 08 00 24 4B 80 13 01 00 00 00 00 00 EC [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 0E 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 0E 00 24 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [14:22:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:22:15]wFMCommunicate OK [14:22:15]SAM_PROTO_GetShiftState done [14:22:15]FM_GetShiftState done [14:22:15]req_shift_opened done [14:22:15]requested_item shift.open_date is exist - process it [14:22:15]req_shift_open_date [14:22:15]req_shift_open_date done [14:22:15]produce_requested_data done [14:22:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189175,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:22:15]process_action_free close_receipt [14:22:15]json_value_free [14:22:15]json_value_free done [14:22:15]process_json_proto returns [14:22:15]Send response to host [14:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189175,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:22:15]free response buf [14:22:15]execute_script done [14:22:15]execute_script returns [14:22:15]free content buf [14:22:15]Sock 9.Close socket [14:22:15]Sock 9.Thread stoped [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:29]accept exits with 8 [14:22:29]New connection [14:22:29]New thread 3067071844 created [14:22:29]Thread 3067215204 joined [14:22:29]Waiting for new connection... [14:22:29] Sock 8.Parse request [14:22:29]Sock 8.Check first char [14:22:29]Sock 8.First char is OK [14:22:29]request: POST /json_proto HTTP/1.0 [14:22:29]Method: POST [14:22:29]URL: /json_proto [14:22:29]Method is POST - this is cgi request [14:22:29]url: /json_proto [14:22:29]query_string will be loaded in cgi processing [14:22:29]execute_cgi json_proto POST (null) [14:22:29]execute_cgi path=json_proto method=POST [14:22:29]POST find Content-Length [14:22:29]Host: 172.17.42.131:8080 [14:22:29]Content-Length: 682 [14:22:29]Content-Type: application/json [14:22:29] [14:22:29]POST finish read [14:22:29]Found Content-Length = 682 [14:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:29]execute_script... [14:22: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)211241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:29]POST & json_proto [14:22:29]process_json_proto [14:22:29]json parsed OK: [14:22:29]protocol is kg_v1.0 [14:22:29]action value=close_receipt [14:22:29]process_action close_receipt [14:22:29]cmd_close_receipt [14:22:29]MH_GetDate [14:22:29]Write to MH i2c: F0 00 00 25 4B 5F [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: F0 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: F0 09 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: F0 09 00 25 4B 00 29 58 1A 67 A0 18 CA 66 52 [14:22:29]GetLastDocTimeStamp 1729779734 [14:22:29]current date 1729779753 [14:22:29]FM_GetShiftState [14:22:29]SAM_PROTO_GetShiftState [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 13 01 00 [14:22:29]Write to MH i2c: E2 08 00 26 4B 80 13 01 00 00 00 00 00 EE [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 26 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CC [14:22:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_GetShiftState done [14:22:29]FM_GetShiftState done [14:22:29]opened in 1729728961 [14:22:29]opened+sec_in_day 1729815361 [14:22:29]quantity*price = 100015 [14:22:29]sum+1 = 100017 [14:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 249 24.10.2024 14:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189176 ФПД: 208731338627443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189176&fm=208731338627443&tin=02508201610067®Number=0000000000100030&sum=100000 [14:22:30]StoreToDocumentArchive [14:22:30]shift 463 fd 189176 [14:22:30]save to /storage/0463/doc_00189176 [14:22:30]save last doc name /storage/0463/doc_00189176 to /storage/kkm_last_doc_name [14:22:30]save OK [14:22:30]Clear old archive folders... [14:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:30]tlvbuf is 01531FA0 [14:22:30]SAM_PROTO_ClearQueue [14:22:30]wFMCommunicate request_size=4 [14:22:30]MH_SAM_APDU [14:22:30]CAPDU: 80 09 00 00 [14:22:30]Write to MH i2c: E2 08 00 33 4B 80 09 00 00 00 00 00 00 F0 [14:22:30]Write i2c OK [14:22:30]MH_I2C_Read... [14:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:30]Read from MH i2c: E2 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: E2 03 00 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: E2 03 00 33 4B 00 90 00 F2 [14:22:30]RAPDU: 90 00 [14:22:30]wFMCommunicate OK [14:22:30]SAM_PROTO_ClearQueue done [14:22:30]KKMCreateOFDPacket [14:22:30]OFDProtocolAddRootSTLVToBuf [14:22:30]FM_MakeSignedData [14:22:30]FM_MakeSignedData [14:22:30]SAM_PROTO_SignData [14:22:30]wFMCommunicate request_size=4 [14:22:30]MH_SAM_APDU [14:22:30]CAPDU: 80 0D 01 02 [14:22:30]Write to MH i2c: E2 08 00 34 4B 80 0D 01 02 00 00 00 00 F8 [14:22:30]Write i2c OK [14:22:30]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 03 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 03 00 34 4B 00 90 00 F3 [14:22:31]RAPDU: 90 00 [14:22:31]wFMCommunicate OK [14:22:31]wFMCommunicate request_size=255 [14:22:31]MH_SAM_APDU [14:22: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 29 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E2 02 00 35 04 06 00 BD [14:22:31]Write to MH i2c: E2 02 01 35 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 29 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E2 02 00 35 04 06 00 BD 00 00 C9 [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 03 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 03 00 35 4B 00 90 00 F4 [14:22:31]RAPDU: 90 00 [14:22:31]wFMCommunicate OK [14:22:31]wFMCommunicate request_size=10 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 0D 02 02 05 D7 0D 4A D9 73 [14:22:31]Write to MH i2c: E2 0D 00 36 4B 80 0D 02 02 05 00 D7 0D 4A D9 73 00 00 7F [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:31]Read from MH i2c: E2 03 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 03 00 36 4B 00 90 00 F5 [14:22:31]RAPDU: 90 00 [14:22:31]wFMCommunicate OK [14:22:31]wFMCommunicate request_size=4 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 0D 03 02 [14:22:31]Write to MH i2c: E2 08 00 37 4B 80 0D 03 02 00 00 00 00 FD [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 0B 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 0B 00 37 4B 00 10 B8 CB 15 EF 07 70 25 90 00 31 [14:22:31]RAPDU: 10 B8 CB 15 EF 07 70 25 90 00 [14:22:31]wFMCommunicate OK [14:22:31]SAM_PROTO_SignData done [14:22:31]FM_MakeSignedData done [14:22:31]CreateOFDProtocolMessage [14:22:31]wFMCommunicate request_size=4 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 11 00 00 [14:22:31]Write to MH i2c: E2 08 00 38 4B 80 11 00 00 00 00 00 00 FD [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:31]Read from MH i2c: E2 17 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 17 00 38 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [14:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:22:31]wFMCommunicate OK [14:22:31]CreateOFDProtocolMessage done [14:22:31]OFDSenderStorePacket 189176 [14:22:31]StoreOFDPacket docnum=189176 [14:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 46 07 01 8D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 29 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E2 02 00 35 04 06 00 BD D7 0D 4A D9 73 10 B8 CB 15 EF 07 70 25 [14:22:31]CheckFolder [14:22:31]dirname=/storage/ofd_packets [14:22:31]CheckFolder done [14:22:31]ProducePacketName [14:22:31]name=ofd_packets/00189176 [14:22:31]NVStorageSaveData ofd_packets/00189176 [14:22:31]File name is /storage/ofd_packets/00189176 [14:22:31]Write 301 bytes [14:22:31]NVStorageSaveData done [14:22:31]OFDSenderStorePacket done [14:22:31]KKMCreateOFDPacket done [14:22:31]NVStorageSaveData kkm_last_timestamp [14:22:31]File name is /storage/kkm_last_timestamp [14:22:31]Write 4 bytes [14:22:31]NVStorageSaveData done [14:22:31]ExternCall_PrintAddStr [14:22:31]wPrintStart [14:22:31]Write to MH i2c: 01 00 00 39 4B 84 [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 07 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 07 00 39 4B 00 00 00 00 00 FF 0F 99 [14:22:31]RasterBufferAndPrint [14:22:31]line Счет N : (1)211241 [14:22:31]line ИНН: 02508201610067 [14:22:31]line Контрольно-Кассовый Чек [14:22:31]line ПРОДАЖА [14:22:31]line ТРК (МРК, ГНК) : 12 [14:22:31]line Товар: 2710124130 [14:22:31]line Аи-92-К-3 [14:22:31]line 14.950 * 66.90 [14:22:31]line = 1000.16 [14:22:31]line НДС 12% НСП 1% [14:22:31]line > о реализуемом товаре [14:22:31]line ОКРУГЛЕНИЕ: -0.16 [14:22:31]line ИТОГО: 1000.00 [14:22:31]line Внесено: 1000.00 [14:22:31]line СДАЧА: 0.00 [14:22:31]line НСП 1% : 8.85 [14:22:31]line НДС 12% : 106.21 [14:22:31]line Наличными: 1000.00 [14:22:31]line Безнал.: 0.00 [14:22:31]line Место: АЗС № 86 "Партнер Нефть" [14:22:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:22:31]line СНО: Общий режим [14:22:31]line Чек 249 24.10.2024 14:22 [14:22:31]line Смена: 463 ФФД: 1.0 [14:22:31]line ЗНМ: 0300000155 [14:22:31]line РНМ: 0000000000100030 [14:22:31]line Версия ККМ: 001 [14:22:31]line ФМ: 0000000000965340 [14:22:31]line ФД: 189176 [14:22:31]line ФПД: 208731338627443 [14:22:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189176&fm=208731338627443&tin=02508201610067®Number=0000000000100030&sum=100000 [14:22:31]written 0, free lines is 4095 [14:22:31]OFD Sender: Processing packet 189176 [packets to send 1062, broken 1061] [14:22:31]ProducePacketName [14:22:31]name=ofd_packets/00189176 [14:22:31]OFD Sender: To server: pG, [14:22:31]CommunicateWithHost lk.salyk.kg:30040 [14:22:31]ConnectInit lk.salyk.kg [14:22:31]Connected sock=10 [14:22:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 46 07 01 8D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 29 58 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E2 02 00 35 04 06 00 BD D7 0D 4A D9 73 10 B8 CB 15 EF 07 70 25 [14:22:31]Write to MH i2c: 01 00 00 64 4B AF [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 07 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 07 00 64 4B 00 00 00 00 00 5E 0C 20 [14:22:31]RasterBufferAndPrint [14:22:31]line [14:22:31]line [14:22:31]line [14:22:31]line [14:22:31]line [14:22:31]written 0, free lines is 3169 [14:22:31]MH_Cut [14:22:31]Write to MH i2c: D1 01 00 6B 4B 01 88 [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: D1 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: D1 01 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: D1 01 00 6B 4B 00 87 [14:22:31]Write to MH i2c: 01 00 00 6C 4B B7 [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 9A 47 00 4E 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 E2 02 00 F4 03 04 00 11 02 1A 67 B6 04 01 00 00 5A 40 18 58 25 A9 46 C5 [14:22:32]CommunicateWithHost err = 0 [14:22:32]CheckOFDResponse [14:22:32]1017 (14) - 77093643461234 [14:22:32]1041 (16) - 0000000000965340 [14:22:32]1040 (4) - 189176 [14:22:32]1012 (4) - 24.10.2024 08:15 [14:22:32]1206 (1) - 0 [14:22:32]OFD Sender: Remove packet 189176 [14:22:32]ProducePacketName [14:22:32]name=ofd_packets/00189176 [14:22:32]NVStorageDeleteData [14:22:32]OFD Sender: No OFD packet to send [14:22:33]*** Cut start [14:22:33]*** Partial cut [14:22:33]*** CUTSNS_PIN = 1 [14:22:33]*** CUTSNS_PIN = 0 [14:22:33]*** Brake cut motor [14:22:33]Read from MH i2c: 01 [14:22:33]MH_I2C_Read... [14:22:33]*** Stop cut motor [14:22:33]*** Cut end [14:22:33]Read from MH i2c: 01 07 00 [14:22:33]MH_I2C_Read... [14:22:33]Read from MH i2c: 01 07 00 6C 4B 00 00 00 00 00 FF 0F CC [14:22:33]process_action close_receipt done [14:22:33]requested_data is exist [14:22:33]produce_requested_data [14:22:33]requested_item fm.sn is exist - process it [14:22:33]wFMCommunicate request_size=4 [14:22:33]MH_SAM_APDU [14:22:33]CAPDU: 80 11 00 00 [14:22:33]Write to MH i2c: E2 08 00 6D 4B 80 11 00 00 00 00 00 00 32 [14:22:33]Write i2c OK [14:22:33]MH_I2C_Read... [14:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:33]Read from MH i2c: E2 [14:22:33]MH_I2C_Read... [14:22:33]Read from MH i2c: E2 17 00 [14:22:33]MH_I2C_Read... [14:22:33]Read from MH i2c: E2 17 00 6D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [14:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:22:33]wFMCommunicate OK [14:22:33]requested_item fd.num is exist - process it [14:22:33]SAM_PROTO_GetFieldsCounters [14:22:33]wFMCommunicate request_size=4 [14:22:33]MH_SAM_APDU [14:22:33]CAPDU: 80 13 00 00 [14:22:33]Write to MH i2c: E2 08 00 6E 4B 80 13 00 00 00 00 00 00 35 [14:22:33]Write i2c OK [14:22:33]MH_I2C_Read... [14:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:34]Read from MH i2c: E2 [14:22:34]MH_I2C_Read... [14:22:34]Read from MH i2c: E2 62 00 [14:22:34]MH_I2C_Read... [14:22:34]Read from MH i2c: E2 62 00 6E 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E2 02 00 0E 04 04 00 CF 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 D3 [14:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 E2 02 00 0E 04 04 00 CF 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 [14:22:34]wFMCommunicate OK [14:22:34]SAM_PROTO_GetFieldsCounters done [14:22:34]requested_item shift.num is exist - process it [14:22:34]requested_item shift.opened is exist - process it [14:22:34]req_shift_opened [14:22:34]FM_GetShiftState [14:22:34]SAM_PROTO_GetShiftState [14:22:34]wFMCommunicate request_size=4 [14:22:34]MH_SAM_APDU [14:22:34]CAPDU: 80 13 01 00 [14:22:34]Write to MH i2c: E2 08 00 6F 4B 80 13 01 00 00 00 00 00 37 [14:22:34]Write i2c OK [14:22:34]MH_I2C_Read... [14:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:34]Read from MH i2c: E2 [14:22:34]MH_I2C_Read... [14:22:34]Read from MH i2c: E2 0E 00 [14:22:34]MH_I2C_Read... [14:22:34]Read from MH i2c: E2 0E 00 6F 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [14:22:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:22:34]wFMCommunicate OK [14:22:34]SAM_PROTO_GetShiftState done [14:22:34]FM_GetShiftState done [14:22:34]req_shift_opened done [14:22:34]requested_item shift.open_date is exist - process it [14:22:34]req_shift_open_date [14:22:34]req_shift_open_date done [14:22:34]produce_requested_data done [14:22:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189176,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:22:34]process_action_free close_receipt [14:22:34]json_value_free [14:22:34]json_value_free done [14:22:34]process_json_proto returns [14:22:34]Send response to host [14:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189176,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:22:34]free response buf [14:22:34]execute_script done [14:22:34]execute_script returns [14:22:34]free content buf [14:22:34]Sock 8.Close socket [14:22:34]Sock 8.Thread stoped [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:42]ConnectInit Can't connect to host [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [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:09]accept exits with 9 [14:27:09]New connection [14:27:09]New thread 3067215204 created [14:27:09]Thread 3067071844 joined [14:27:09]Waiting for new connection... [14:27:09] Sock 9.Parse request [14:27:09]Sock 9.Check first char [14:27:09]Sock 9.First char is OK [14:27:09]request: POST /json_proto HTTP/1.0 [14:27:09]Method: POST [14:27:09]URL: /json_proto [14:27:09]Method is POST - this is cgi request [14:27:09]url: /json_proto [14:27:09]query_string will be loaded in cgi processing [14:27:09]execute_cgi json_proto POST (null) [14:27:09]execute_cgi path=json_proto method=POST [14:27:09]POST find Content-Length [14:27:09]Host: 172.17.42.131:8080 [14:27:09]Content-Length: 766 [14:27:09]Content-Type: application/json [14:27:09] [14:27:09]POST finish read [14:27:09]Found Content-Length = 766 [14:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.050, "sum" : 404.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 404.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:09]execute_script... [14: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)211243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.050, "sum" : 404.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 404.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:09]POST & json_proto [14:27:09]process_json_proto [14:27:09]json parsed OK: [14:27:09]protocol is kg_v1.0 [14:27:09]action value=close_receipt [14:27:09]process_action close_receipt [14:27:09]cmd_close_receipt [14:27:09]MH_GetDate [14:27:09]Write to MH i2c: F0 00 00 70 4B AA [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: F0 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: F0 09 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: F0 09 00 70 4B 00 41 59 1A 67 A0 18 CA 66 B6 [14:27:09]GetLastDocTimeStamp 1729779753 [14:27:09]current date 1729780033 [14:27:09]FM_GetShiftState [14:27:09]SAM_PROTO_GetShiftState [14:27:09]wFMCommunicate request_size=4 [14:27:09]MH_SAM_APDU [14:27:09]CAPDU: 80 13 01 00 [14:27:09]Write to MH i2c: E2 08 00 71 4B 80 13 01 00 00 00 00 00 39 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:09]Read from MH i2c: E2 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 0E 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 0E 00 71 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 17 [14:27:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:27:09]wFMCommunicate OK [14:27:09]SAM_PROTO_GetShiftState done [14:27:09]FM_GetShiftState done [14:27:09]opened in 1729728961 [14:27:09]opened+sec_in_day 1729815361 [14:27:09]quantity*price = 40474 [14:27:09]sum+1 = 40476 [14:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 404.75 НСП 1% : 3.58 НДС 12% : 42.98 Наличными: 0.00 Безнал.: 404.75 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 250 24.10.2024 14:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189177 ФПД: 14412776432133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189177&fm=14412776432133&tin=02508201610067®Number=0000000000100030&sum=40475 [14:27:11]StoreToDocumentArchive [14:27:11]shift 463 fd 189177 [14:27:11]save to /storage/0463/doc_00189177 [14:27:11]save last doc name /storage/0463/doc_00189177 to /storage/kkm_last_doc_name [14:27:11]save OK [14:27:11]Clear old archive folders... [14:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:11]tlvbuf is 015E7840 [14:27:11]SAM_PROTO_ClearQueue [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 09 00 00 [14:27:11]Write to MH i2c: E2 08 00 7E 4B 80 09 00 00 00 00 00 00 3B [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 7E 4B 00 90 00 3D [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_ClearQueue done [14:27:11]KKMCreateOFDPacket [14:27:11]OFDProtocolAddRootSTLVToBuf [14:27:11]FM_MakeSignedData [14:27:11]FM_MakeSignedData [14:27:11]SAM_PROTO_SignData [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 01 02 [14:27:11]Write to MH i2c: E2 08 00 7F 4B 80 0D 01 02 00 00 00 00 43 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 7F 4B 00 90 00 3E [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=255 [14:27:11]MH_SAM_APDU [14: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 41 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E2 02 00 35 04 06 00 0D [14:27:11]Write to MH i2c: E2 02 01 80 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 33 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 41 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E2 02 00 35 04 06 00 0D 00 00 61 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 80 4B 00 90 00 3F [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=10 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 02 02 05 1B BC 6B 62 05 [14:27:11]Write to MH i2c: E2 0D 00 81 4B 80 0D 02 02 05 00 1B BC 6B 62 05 00 00 F9 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 81 4B 00 90 00 40 [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 03 02 [14:27:11]Write to MH i2c: E2 08 00 82 4B 80 0D 03 02 00 00 00 00 48 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 82 4B 00 33 B9 E6 49 C6 44 8E 7C 90 00 78 [14:27:11]RAPDU: 33 B9 E6 49 C6 44 8E 7C 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_SignData done [14:27:11]FM_MakeSignedData done [14:27:11]CreateOFDProtocolMessage [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 11 00 00 [14:27:11]Write to MH i2c: E2 08 00 83 4B 80 11 00 00 00 00 00 00 48 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 83 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [14:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:11]wFMCommunicate OK [14:27:11]CreateOFDProtocolMessage done [14:27:11]OFDSenderStorePacket 189177 [14:27:11]StoreOFDPacket docnum=189177 [14:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 84 07 01 44 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 33 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 41 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E2 02 00 35 04 06 00 0D 1B BC 6B 62 05 33 B9 E6 49 C6 44 8E 7C [14:27:11]CheckFolder [14:27:11]dirname=/storage/ofd_packets [14:27:11]CheckFolder done [14:27:11]ProducePacketName [14:27:11]name=ofd_packets/00189177 [14:27:11]NVStorageSaveData ofd_packets/00189177 [14:27:11]File name is /storage/ofd_packets/00189177 [14:27:11]Write 301 bytes [14:27:11]NVStorageSaveData done [14:27:11]OFDSenderStorePacket done [14:27:11]KKMCreateOFDPacket done [14:27:11]NVStorageSaveData kkm_last_timestamp [14:27:11]File name is /storage/kkm_last_timestamp [14:27:11]Write 4 bytes [14:27:11]NVStorageSaveData done [14:27:11]ExternCall_PrintAddStr [14:27:11]wPrintStart [14:27:11]Write to MH i2c: 01 00 00 84 4B CF [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 84 4B 00 00 00 00 00 FF 0F E4 [14:27:11]RasterBufferAndPrint [14:27:11]line Счет N : (1)211243 [14:27:11]line ИНН: 02508201610067 [14:27:11]line Контрольно-Кассовый Чек [14:27:11]line ПРОДАЖА [14:27:11]line ТРК (МРК, ГНК) : 32 [14:27:11]line Товар: 2710124130 [14:27:11]line Аи-92-К-3 [14:27:11]line 6.050 * 66.90 [14:27:11]line = 404.75 [14:27:11]line НДС 12% НСП 1% [14:27:11]line > о реализуемом товаре [14:27:11]line ИТОГО: 404.75 [14:27:11]line НСП 1% : 3.58 [14:27:11]line НДС 12% : 42.98 [14:27:11]line Наличными: 0.00 [14:27:11]line Безнал.: 404.75 [14:27:11]line Место: АЗС № 86 "Партнер Нефть" [14:27:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:11]line СНО: Общий режим [14:27:11]line Чек 250 24.10.2024 14:27 [14:27:11]line Смена: 463 ФФД: 1.0 [14:27:11]line ЗНМ: 0300000155 [14:27:11]line РНМ: 0000000000100030 [14:27:11]line Версия ККМ: 001 [14:27:11]line Платежная система: Mbank [14:27:11]line ФМ: 0000000000965340 [14:27:11]line ФД: 189177 [14:27:11]line ФПД: 14412776432133 [14:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189177&fm=14412776432133&tin=02508201610067®Number=0000000000100030&sum=40475 [14:27:11]written 0, free lines is 4095 [14:27:11]OFD Sender: Processing packet 189177 [packets to send 1062, broken 1061] [14:27:11]ProducePacketName [14:27:11]name=ofd_packets/00189177 [14:27:11]OFD Sender: To server: pG, [14:27:11]CommunicateWithHost lk.salyk.kg:30040 [14:27:11]ConnectInit lk.salyk.kg [14:27:11]Connected sock=10 [14:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 84 07 01 44 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 33 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1B 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 41 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 E2 02 00 35 04 06 00 0D 1B BC 6B 62 05 33 B9 E6 49 C6 44 8E 7C [14:27:12]Write to MH i2c: 01 00 00 AD 4B F8 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 AD 4B 00 00 00 00 00 84 0C 8F [14:27:12]RasterBufferAndPrint [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]written 0, free lines is 3208 [14:27:12]MH_Cut [14:27:12]Write to MH i2c: D1 01 00 B4 4B 01 D1 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 01 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 01 00 B4 4B 00 D0 [14:27:12]Write to MH i2c: 01 00 00 B5 4B 00 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 46 47 00 8A 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 39 36 35 33 34 30 10 04 04 00 F9 E2 02 00 F4 03 04 00 29 03 1A 67 B6 04 01 00 00 BE 7D 62 49 DB 02 30 C1 [14:27:12]CommunicateWithHost err = 0 [14:27:12]CheckOFDResponse [14:27:12]1017 (14) - 77093643461234 [14:27:12]1041 (16) - 0000000000965340 [14:27:12]1040 (4) - 189177 [14:27:12]1012 (4) - 24.10.2024 08:19 [14:27:12]1206 (1) - 0 [14:27:12]OFD Sender: Remove packet 189177 [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00189177 [14:27:12]NVStorageDeleteData [14:27:12]OFD Sender: No OFD packet to send [14:27:13]*** Cut start [14:27:13]*** Partial cut [14:27:13]*** CUTSNS_PIN = 1 [14:27:13]*** CUTSNS_PIN = 0 [14:27:13]*** Brake cut motor [14:27:13]Read from MH i2c: 01 [14:27:13]MH_I2C_Read... [14:27:13]*** Stop cut motor [14:27:13]*** Cut end [14:27:13]Read from MH i2c: 01 07 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: 01 07 00 B5 4B 00 00 00 00 00 FF 0F 15 [14:27:13]process_action close_receipt done [14:27:13]requested_data is exist [14:27:13]produce_requested_data [14:27:13]requested_item fm.sn is exist - process it [14:27:13]wFMCommunicate request_size=4 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 11 00 00 [14:27:13]Write to MH i2c: E2 08 00 B6 4B 80 11 00 00 00 00 00 00 7B [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 17 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 17 00 B6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [14:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:13]wFMCommunicate OK [14:27:13]requested_item fd.num is exist - process it [14:27:13]SAM_PROTO_GetFieldsCounters [14:27:13]wFMCommunicate request_size=4 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 13 00 00 [14:27:13]Write to MH i2c: E2 08 00 B7 4B 80 13 00 00 00 00 00 00 7E [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:14]Read from MH i2c: E2 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 62 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 62 00 B7 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 E2 02 00 0E 04 04 00 CF 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 20 [14:27:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 E2 02 00 0E 04 04 00 CF 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 [14:27:14]wFMCommunicate OK [14:27:14]SAM_PROTO_GetFieldsCounters done [14:27:14]requested_item shift.num is exist - process it [14:27:14]requested_item shift.opened is exist - process it [14:27:14]req_shift_opened [14:27:14]FM_GetShiftState [14:27:14]SAM_PROTO_GetShiftState [14:27:14]wFMCommunicate request_size=4 [14:27:14]MH_SAM_APDU [14:27:14]CAPDU: 80 13 01 00 [14:27:14]Write to MH i2c: E2 08 00 B8 4B 80 13 01 00 00 00 00 00 80 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:14]Read from MH i2c: E2 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 0E 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 0E 00 B8 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [14:27:14]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:27:14]wFMCommunicate OK [14:27:14]SAM_PROTO_GetShiftState done [14:27:14]FM_GetShiftState done [14:27:14]req_shift_opened done [14:27:14]requested_item shift.open_date is exist - process it [14:27:14]req_shift_open_date [14:27:14]req_shift_open_date done [14:27:14]produce_requested_data done [14:27:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189177,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:27:14]process_action_free close_receipt [14:27:14]json_value_free [14:27:14]json_value_free done [14:27:14]process_json_proto returns [14:27:14]Send response to host [14:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189177,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:27:14]free response buf [14:27:14]execute_script done [14:27:14]execute_script returns [14:27:14]free content buf [14:27:14]Sock 9.Close socket [14:27:14]Sock 9.Thread stoped [14:27:14]accept exits with 8 [14:27:14]New connection [14:27:14]New thread 3067071844 created [14:27:14]Thread 3067215204 joined [14:27:14]Waiting for new connection... [14:27:14] Sock 8.Parse request [14:27:14]Sock 8.Check first char [14:27:14]Sock 8.First char is OK [14:27:14]request: POST /json_proto HTTP/1.0 [14:27:14]Method: POST [14:27:14]URL: /json_proto [14:27:14]Method is POST - this is cgi request [14:27:14]url: /json_proto [14:27:14]query_string will be loaded in cgi processing [14:27:14]execute_cgi json_proto POST (null) [14:27:14]execute_cgi path=json_proto method=POST [14:27:14]POST find Content-Length [14:27:14]Host: 172.17.42.131:8080 [14:27:14]Content-Length: 754 [14:27:14]Content-Type: application/json [14:27:14] [14:27:14]POST finish read [14:27:14]Found Content-Length = 754 [14:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:14]execute_script... [14: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)211242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:14]POST & json_proto [14:27:14]process_json_proto [14:27:14]json parsed OK: [14:27:14]protocol is kg_v1.0 [14:27:14]action value=close_receipt [14:27:14]process_action close_receipt [14:27:14]cmd_close_receipt [14:27:14]MH_GetDate [14:27:14]Write to MH i2c: F0 00 00 B9 4B F3 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: F0 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: F0 09 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: F0 09 00 B9 4B 00 46 59 1A 67 A0 18 CA 66 04 [14:27:14]GetLastDocTimeStamp 1729780033 [14:27:14]current date 1729780038 [14:27:14]FM_GetShiftState [14:27:14]SAM_PROTO_GetShiftState [14:27:14]wFMCommunicate request_size=4 [14:27:14]MH_SAM_APDU [14:27:14]CAPDU: 80 13 01 00 [14:27:14]Write to MH i2c: E2 08 00 BA 4B 80 13 01 00 00 00 00 00 82 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:14]Read from MH i2c: E2 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 0E 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: E2 0E 00 BA 4B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [14:27:14]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:27:14]wFMCommunicate OK [14:27:14]SAM_PROTO_GetShiftState done [14:27:14]FM_GetShiftState done [14:27:14]opened in 1729728961 [14:27:14]opened+sec_in_day 1729815361 [14:27:14]quantity*price = 0 [14:27:14]sum+1 = 1 [14:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 251 24.10.2024 14:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118758 ФМ: 0000000000965340 ФД: 189178 ФПД: 82381052832975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189178&fm=82381052832975&tin=02508201610067®Number=0000000000100030&sum=0 [14:27:16]StoreToDocumentArchive [14:27:16]shift 463 fd 189178 [14:27:16]save to /storage/0463/doc_00189178 [14:27:16]save last doc name /storage/0463/doc_00189178 to /storage/kkm_last_doc_name [14:27:16]save OK [14:27:16]Clear old archive folders... [14:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:16]tlvbuf is 015343A0 [14:27:16]SAM_PROTO_ClearQueue [14:27:16]wFMCommunicate request_size=4 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 09 00 00 [14:27:16]Write to MH i2c: E2 08 00 C7 4B 80 09 00 00 00 00 00 00 84 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 C7 4B 00 90 00 86 [14:27:16]RAPDU: 90 00 [14:27:16]wFMCommunicate OK [14:27:16]SAM_PROTO_ClearQueue done [14:27:16]KKMCreateOFDPacket [14:27:16]OFDProtocolAddRootSTLVToBuf [14:27:16]FM_MakeSignedData [14:27:16]FM_MakeSignedData [14:27:16]SAM_PROTO_SignData [14:27:16]wFMCommunicate request_size=4 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 0D 01 02 [14:27:16]Write to MH i2c: E2 08 00 C8 4B 80 0D 01 02 00 00 00 00 8C [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 C8 4B 00 90 00 87 [14:27:16]RAPDU: 90 00 [14:27:16]wFMCommunicate OK [14:27:16]wFMCommunicate request_size=255 [14:27:16]MH_SAM_APDU [14: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 33 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 FB 00 00 00 F4 03 04 00 46 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E2 02 00 35 04 06 00 4A [14:27:16]Write to MH i2c: E2 02 01 C9 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 33 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 FB 00 00 00 F4 03 04 00 46 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E2 02 00 35 04 06 00 4A 00 00 C4 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 C9 4B 00 90 00 88 [14:27:16]RAPDU: 90 00 [14:27:16]wFMCommunicate OK [14:27:16]wFMCommunicate request_size=10 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 0D 02 02 05 EC D5 63 EC CF [14:27:16]Write to MH i2c: E2 0D 00 CA 4B 80 0D 02 02 05 00 EC D5 63 EC CF 00 00 78 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 03 00 CA 4B 00 90 00 89 [14:27:16]RAPDU: 90 00 [14:27:16]wFMCommunicate OK [14:27:16]wFMCommunicate request_size=4 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 0D 03 02 [14:27:16]Write to MH i2c: E2 08 00 CB 4B 80 0D 03 02 00 00 00 00 91 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 0B 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 0B 00 CB 4B 00 78 FA 88 18 EA 51 2D FD 90 00 09 [14:27:16]RAPDU: 78 FA 88 18 EA 51 2D FD 90 00 [14:27:16]wFMCommunicate OK [14:27:16]SAM_PROTO_SignData done [14:27:16]FM_MakeSignedData done [14:27:16]CreateOFDProtocolMessage [14:27:16]wFMCommunicate request_size=4 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 11 00 00 [14:27:16]Write to MH i2c: E2 08 00 CC 4B 80 11 00 00 00 00 00 00 91 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 17 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 17 00 CC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [14:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:16]wFMCommunicate OK [14:27:16]CreateOFDProtocolMessage done [14:27:16]OFDSenderStorePacket 189178 [14:27:16]StoreOFDPacket docnum=189178 [14:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 54 07 01 45 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 33 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 FB 00 00 00 F4 03 04 00 46 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E2 02 00 35 04 06 00 4A EC D5 63 EC CF 78 FA 88 18 EA 51 2D FD [14:27:16]CheckFolder [14:27:16]dirname=/storage/ofd_packets [14:27:16]CheckFolder done [14:27:16]ProducePacketName [14:27:16]name=ofd_packets/00189178 [14:27:16]NVStorageSaveData ofd_packets/00189178 [14:27:16]File name is /storage/ofd_packets/00189178 [14:27:16]Write 301 bytes [14:27:16]NVStorageSaveData done [14:27:16]OFDSenderStorePacket done [14:27:16]KKMCreateOFDPacket done [14:27:16]NVStorageSaveData kkm_last_timestamp [14:27:16]File name is /storage/kkm_last_timestamp [14:27:16]Write 4 bytes [14:27:16]NVStorageSaveData done [14:27:16]ExternCall_PrintAddStr [14:27:16]wPrintStart [14:27:16]Write to MH i2c: 01 00 00 CD 4B 18 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 07 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 07 00 CD 4B 00 00 00 00 00 FF 0F 2D [14:27:16]RasterBufferAndPrint [14:27:16]line Счет N : (1)211242 [14:27:16]line ИНН: 02508201610067 [14:27:16]line Контрольно-Кассовый Чек [14:27:16]line ПРОДАЖА [14:27:16]line ТРК (МРК, ГНК) : 42 [14:27:16]line Товар: 2710124130 [14:27:16]line Аи-92-К-3 [14:27:16]line 10.000 * 0.00 [14:27:16]line = 0.00 [14:27:16]line НДС 12% НСП 1% [14:27:16]line > о реализуемом товаре [14:27:16]line ИТОГО: 0.00 [14:27:16]line НСП 1% : 0.00 [14:27:16]line НДС 12% : 0.00 [14:27:16]line Наличными: 0.00 [14:27:16]line Безнал.: 0.00 [14:27:16]line Место: АЗС № 86 "Партнер Нефть" [14:27:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:16]line СНО: Общий режим [14:27:16]line Чек 251 24.10.2024 14:27 [14:27:16]line Смена: 463 ФФД: 1.0 [14:27:16]line ЗНМ: 0300000155 [14:27:16]line РНМ: 0000000000100030 [14:27:16]line Версия ККМ: 001 [14:27:16]line Талоны: ТК ГПНА Online [14:27:16]line 30118758 [14:27:16]line ФМ: 0000000000965340 [14:27:16]line ФД: 189178 [14:27:16]line ФПД: 82381052832975 [14:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142718&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189178&fm=82381052832975&tin=02508201610067®Number=0000000000100030&sum=0 [14:27:16]written 0, free lines is 4095 [14:27:16]OFD Sender: Processing packet 189178 [packets to send 1062, broken 1061] [14:27:16]ProducePacketName [14:27:16]name=ofd_packets/00189178 [14:27:16]OFD Sender: To server: pG, [14:27:16]CommunicateWithHost lk.salyk.kg:30040 [14:27:16]ConnectInit lk.salyk.kg [14:27:17]Connected sock=10 [14:27:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 54 07 01 45 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 33 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 FB 00 00 00 F4 03 04 00 46 59 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA E2 02 00 35 04 06 00 4A EC D5 63 EC CF 78 FA 88 18 EA 51 2D FD [14:27:17]Write to MH i2c: 01 00 00 F7 4B 42 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 07 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 07 00 F7 4B 00 00 00 00 00 75 0C CA [14:27:17]RasterBufferAndPrint [14:27:17]line [14:27:17]line [14:27:17]line [14:27:17]line [14:27:17]line [14:27:17]written 0, free lines is 3200 [14:27:17]MH_Cut [14:27:17]Write to MH i2c: D1 01 00 FE 4B 01 1B [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: D1 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: D1 01 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: D1 01 00 FE 4B 00 1A [14:27:17]Write to MH i2c: 01 00 00 FF 4B 4A [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 09 47 00 7E 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 39 36 35 33 34 30 10 04 04 00 FA E2 02 00 F4 03 04 00 2E 03 1A 67 B6 04 01 00 00 1D E4 62 93 1E 22 E9 49 [14:27:17]CommunicateWithHost err = 0 [14:27:17]CheckOFDResponse [14:27:17]1017 (14) - 77093643461234 [14:27:17]1041 (16) - 0000000000965340 [14:27:17]1040 (4) - 189178 [14:27:17]1012 (4) - 24.10.2024 08:19 [14:27:17]1206 (1) - 0 [14:27:17]OFD Sender: Remove packet 189178 [14:27:17]ProducePacketName [14:27:17]name=ofd_packets/00189178 [14:27:17]NVStorageDeleteData [14:27:18]OFD Sender: No OFD packet to send [14:27:18]*** Cut start [14:27:18]*** Partial cut [14:27:18]*** CUTSNS_PIN = 1 [14:27:18]*** CUTSNS_PIN = 0 [14:27:18]*** Brake cut motor [14:27:19]Read from MH i2c: 01 [14:27:19]MH_I2C_Read... [14:27:19]*** Stop cut motor [14:27:19]*** Cut end [14:27:19]Read from MH i2c: 01 07 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 FF 4B 00 00 00 00 00 FF 0F 5F [14:27:19]process_action close_receipt done [14:27:19]requested_data is exist [14:27:19]produce_requested_data [14:27:19]requested_item fm.sn is exist - process it [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 11 00 00 [14:27:19]Write to MH i2c: E2 08 00 00 4C 80 11 00 00 00 00 00 00 C6 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 17 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 17 00 00 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [14:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:19]wFMCommunicate OK [14:27:19]requested_item fd.num is exist - process it [14:27:19]SAM_PROTO_GetFieldsCounters [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 13 00 00 [14:27:19]Write to MH i2c: E2 08 00 01 4C 80 13 00 00 00 00 00 00 C9 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 62 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 62 00 01 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA E2 02 00 0E 04 04 00 CF 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 6F [14:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA E2 02 00 0E 04 04 00 CF 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 [14:27:19]wFMCommunicate OK [14:27:19]SAM_PROTO_GetFieldsCounters done [14:27:19]requested_item shift.num is exist - process it [14:27:19]requested_item shift.opened is exist - process it [14:27:19]req_shift_opened [14:27:19]FM_GetShiftState [14:27:19]SAM_PROTO_GetShiftState [14:27:19]wFMCommunicate request_size=4 [14:27:19]MH_SAM_APDU [14:27:19]CAPDU: 80 13 01 00 [14:27:19]Write to MH i2c: E2 08 00 02 4C 80 13 01 00 00 00 00 00 CB [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:19]Read from MH i2c: E2 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 0E 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: E2 0E 00 02 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A9 [14:27:19]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:27:19]wFMCommunicate OK [14:27:19]SAM_PROTO_GetShiftState done [14:27:19]FM_GetShiftState done [14:27:19]req_shift_opened done [14:27:19]requested_item shift.open_date is exist - process it [14:27:19]req_shift_open_date [14:27:19]req_shift_open_date done [14:27:19]produce_requested_data done [14:27:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189178,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:27:19]process_action_free close_receipt [14:27:19]json_value_free [14:27:19]json_value_free done [14:27:19]process_json_proto returns [14:27:19]Send response to host [14:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189178,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:27:19]free response buf [14:27:19]execute_script done [14:27:19]execute_script returns [14:27:19]free content buf [14:27:19]Sock 8.Close socket [14:27:19]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]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:50]accept exits with 9 [14:30:50]New connection [14:30:50]New thread 3067215204 created [14:30:50]Thread 3067071844 joined [14:30:50]Waiting for new connection... [14:30:50] Sock 9.Parse request [14:30:50]Sock 9.Check first char [14:30:50]Sock 9.First char is OK [14:30:50]request: POST /json_proto HTTP/1.0 [14:30:50]Method: POST [14:30:50]URL: /json_proto [14:30:50]Method is POST - this is cgi request [14:30:50]url: /json_proto [14:30:50]query_string will be loaded in cgi processing [14:30:50]execute_cgi json_proto POST (null) [14:30:50]execute_cgi path=json_proto method=POST [14:30:50]POST find Content-Length [14:30:50]Host: 172.17.42.131:8080 [14:30:50]Content-Length: 792 [14:30:50]Content-Type: application/json [14:30:50] [14:30:50]POST finish read [14:30:50]Found Content-Length = 792 [14:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A72783", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:50]execute_script... [14:30: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)211244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A72783", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:50]POST & json_proto [14:30:50]process_json_proto [14:30:50]json parsed OK: [14:30:50]protocol is kg_v1.0 [14:30:50]action value=close_receipt [14:30:50]process_action close_receipt [14:30:50]cmd_close_receipt [14:30:50]MH_GetDate [14:30:50]Write to MH i2c: F0 00 00 03 4C 3E [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: F0 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: F0 09 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: F0 09 00 03 4C 00 1E 5A 1A 67 A0 18 CA 66 28 [14:30:50]GetLastDocTimeStamp 1729780038 [14:30:50]current date 1729780254 [14:30:50]FM_GetShiftState [14:30:50]SAM_PROTO_GetShiftState [14:30:50]wFMCommunicate request_size=4 [14:30:50]MH_SAM_APDU [14:30:50]CAPDU: 80 13 01 00 [14:30:50]Write to MH i2c: E2 08 00 04 4C 80 13 01 00 00 00 00 00 CD [14:30:50]Write i2c OK [14:30:50]MH_I2C_Read... [14:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:50]Read from MH i2c: E2 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0E 00 [14:30:50]MH_I2C_Read... [14:30:50]Read from MH i2c: E2 0E 00 04 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AB [14:30:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:30:50]wFMCommunicate OK [14:30:50]SAM_PROTO_GetShiftState done [14:30:50]FM_GetShiftState done [14:30:50]opened in 1729728961 [14:30:50]opened+sec_in_day 1729815361 [14:30:50]quantity*price = 0 [14:30:50]sum+1 = 1 [14:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 252 24.10.2024 14:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 72783 ФМ: 0000000000965340 ФД: 189179 ФПД: 63932595240220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143054&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189179&fm=63932595240220&tin=02508201610067®Number=0000000000100030&sum=0 [14:30:51]StoreToDocumentArchive [14:30:51]shift 463 fd 189179 [14:30:51]save to /storage/0463/doc_00189179 [14:30:51]save last doc name /storage/0463/doc_00189179 to /storage/kkm_last_doc_name [14:30:51]save OK [14:30:51]Clear old archive folders... [14:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:51]tlvbuf is B6F1A730 [14:30:51]SAM_PROTO_ClearQueue [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 09 00 00 [14:30:51]Write to MH i2c: E2 08 00 11 4C 80 09 00 00 00 00 00 00 CF [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 11 4C 00 90 00 D1 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_ClearQueue done [14:30:51]KKMCreateOFDPacket [14:30:51]OFDProtocolAddRootSTLVToBuf [14:30:51]FM_MakeSignedData [14:30:51]FM_MakeSignedData [14:30:51]SAM_PROTO_SignData [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 01 02 [14:30:51]Write to MH i2c: E2 08 00 12 4C 80 0D 01 02 00 00 00 00 D7 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 12 4C 00 90 00 D2 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]wFMCommunicate request_size=255 [14:30:51]MH_SAM_APDU [14:30: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 33 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 FC 00 00 00 F4 03 04 00 1E 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E2 02 00 35 04 06 00 3A [14:30:51]Write to MH i2c: E2 02 01 13 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 33 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 FC 00 00 00 F4 03 04 00 1E 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E2 02 00 35 04 06 00 3A 00 00 11 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 13 4C 00 90 00 D3 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]wFMCommunicate request_size=10 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 02 02 05 25 77 A0 FD 1C [14:30:51]Write to MH i2c: E2 0D 00 14 4C 80 0D 02 02 05 00 25 77 A0 FD 1C 00 00 39 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 03 00 14 4C 00 90 00 D4 [14:30:51]RAPDU: 90 00 [14:30:51]wFMCommunicate OK [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 0D 03 02 [14:30:51]Write to MH i2c: E2 08 00 15 4C 80 0D 03 02 00 00 00 00 DC [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0B 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0B 00 15 4C 00 34 B1 91 A7 C6 26 81 B5 90 00 1C [14:30:51]RAPDU: 34 B1 91 A7 C6 26 81 B5 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_SignData done [14:30:51]FM_MakeSignedData done [14:30:51]CreateOFDProtocolMessage [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 11 00 00 [14:30:51]Write to MH i2c: E2 08 00 16 4C 80 11 00 00 00 00 00 00 DC [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 17 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 17 00 16 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [14:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:52]wFMCommunicate OK [14:30:52]CreateOFDProtocolMessage done [14:30:52]OFDSenderStorePacket 189179 [14:30:52]StoreOFDPacket docnum=189179 [14:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E CE 07 01 10 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FC 00 00 00 F4 03 04 00 1E 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E2 02 00 35 04 06 00 3A 25 77 A0 FD 1C 34 B1 91 A7 C6 26 81 B5 [14:30:52]CheckFolder [14:30:52]dirname=/storage/ofd_packets [14:30:52]CheckFolder done [14:30:52]ProducePacketName [14:30:52]name=ofd_packets/00189179 [14:30:52]NVStorageSaveData ofd_packets/00189179 [14:30:52]File name is /storage/ofd_packets/00189179 [14:30:52]Write 301 bytes [14:30:52]NVStorageSaveData done [14:30:52]OFDSenderStorePacket done [14:30:52]KKMCreateOFDPacket done [14:30:52]NVStorageSaveData kkm_last_timestamp [14:30:52]File name is /storage/kkm_last_timestamp [14:30:52]Write 4 bytes [14:30:52]NVStorageSaveData done [14:30:52]ExternCall_PrintAddStr [14:30:52]wPrintStart [14:30:52]Write to MH i2c: 01 00 00 17 4C 63 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 17 4C 00 00 00 00 00 FF 0F 78 [14:30:52]RasterBufferAndPrint [14:30:52]line Счет N : (1)211244 [14:30:52]line ИНН: 02508201610067 [14:30:52]line Контрольно-Кассовый Чек [14:30:52]line ПРОДАЖА [14:30:52]line ТРК (МРК, ГНК) : 42 [14:30:52]line Товар: 2710124130 [14:30:52]line Аи-92-К-3 [14:30:52]line 20.000 * 0.00 [14:30:52]line = 0.00 [14:30:52]line НДС 12% НСП 1% [14:30:52]line > о реализуемом товаре [14:30:52]line ИТОГО: 0.00 [14:30:52]line НСП 1% : 0.00 [14:30:52]line НДС 12% : 0.00 [14:30:52]line Наличными: 0.00 [14:30:52]line Безнал.: 0.00 [14:30:52]line Место: АЗС № 86 "Партнер Нефть" [14:30:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:30:52]line СНО: Общий режим [14:30:52]line Чек 252 24.10.2024 14:30 [14:30:52]line Смена: 463 ФФД: 1.0 [14:30:52]line ЗНМ: 0300000155 [14:30:52]line РНМ: 0000000000100030 [14:30:52]line Версия ККМ: 001 [14:30:52]line Талоны: Топливная Карта [14:30:52]line 72783 [14:30:52]line ФМ: 0000000000965340 [14:30:52]line ФД: 189179 [14:30:52]line ФПД: 63932595240220 [14:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143054&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189179&fm=63932595240220&tin=02508201610067®Number=0000000000100030&sum=0 [14:30:52]written 0, free lines is 4095 [14:30:52]OFD Sender: Processing packet 189179 [packets to send 1062, broken 1061] [14:30:52]ProducePacketName [14:30:52]name=ofd_packets/00189179 [14:30:52]OFD Sender: To server: pG, [14:30:52]CommunicateWithHost lk.salyk.kg:30040 [14:30:52]ConnectInit lk.salyk.kg [14:30:52]Connected sock=10 [14:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E CE 07 01 10 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FC 00 00 00 F4 03 04 00 1E 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E2 02 00 35 04 06 00 3A 25 77 A0 FD 1C 34 B1 91 A7 C6 26 81 B5 [14:30:52]Write to MH i2c: 01 00 00 41 4C 8D [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 41 4C 00 00 00 00 00 71 0C 11 [14:30:52]RasterBufferAndPrint [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]line [14:30:52]written 0, free lines is 3191 [14:30:52]MH_Cut [14:30:52]Write to MH i2c: D1 01 00 48 4C 01 66 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 01 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D1 01 00 48 4C 00 65 [14:30:52]Write to MH i2c: 01 00 00 49 4C 95 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 80 47 00 33 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB E2 02 00 F4 03 04 00 05 04 1A 67 B6 04 01 00 00 06 2D AC E4 AC D9 CD 04 [14:30:52]CommunicateWithHost err = 0 [14:30:52]CheckOFDResponse [14:30:52]1017 (14) - 77093643461234 [14:30:52]1041 (16) - 0000000000965340 [14:30:52]1040 (4) - 189179 [14:30:52]1012 (4) - 24.10.2024 08:23 [14:30:52]1206 (1) - 0 [14:30:52]OFD Sender: Remove packet 189179 [14:30:52]ProducePacketName [14:30:52]name=ofd_packets/00189179 [14:30:52]NVStorageDeleteData [14:30:53]OFD Sender: No OFD packet to send [14:30:53]*** Cut start [14:30:53]*** Partial cut [14:30:53]*** CUTSNS_PIN = 1 [14:30:53]*** CUTSNS_PIN = 0 [14:30:54]*** Brake cut motor [14:30:54]Read from MH i2c: 01 [14:30:54]MH_I2C_Read... [14:30:54]*** Stop cut motor [14:30:54]*** Cut end [14:30:54]Read from MH i2c: 01 07 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 FF 0F AA [14:30:54]process_action close_receipt done [14:30:54]requested_data is exist [14:30:54]produce_requested_data [14:30:54]requested_item fm.sn is exist - process it [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 11 00 00 [14:30:54]Write to MH i2c: E2 08 00 4A 4C 80 11 00 00 00 00 00 00 10 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 17 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 17 00 4A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [14:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:54]wFMCommunicate OK [14:30:54]requested_item fd.num is exist - process it [14:30:54]SAM_PROTO_GetFieldsCounters [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 13 00 00 [14:30:54]Write to MH i2c: E2 08 00 4B 4C 80 13 00 00 00 00 00 00 13 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 62 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 62 00 4B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB E2 02 00 0E 04 04 00 CF 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 BD [14:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB E2 02 00 0E 04 04 00 CF 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 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetFieldsCounters done [14:30:54]requested_item shift.num is exist - process it [14:30:54]requested_item shift.opened is exist - process it [14:30:54]req_shift_opened [14:30:54]FM_GetShiftState [14:30:54]SAM_PROTO_GetShiftState [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 13 01 00 [14:30:54]Write to MH i2c: E2 08 00 4C 4C 80 13 01 00 00 00 00 00 15 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 4C 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F3 [14:30:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetShiftState done [14:30:54]FM_GetShiftState done [14:30:54]req_shift_opened done [14:30:54]requested_item shift.open_date is exist - process it [14:30:54]req_shift_open_date [14:30:54]req_shift_open_date done [14:30:54]produce_requested_data done [14:30:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189179,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:30:54]process_action_free close_receipt [14:30:54]json_value_free [14:30:54]json_value_free done [14:30:54]process_json_proto returns [14:30:54]Send response to host [14:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189179,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:30:54]free response buf [14:30:54]execute_script done [14:30:54]execute_script returns [14:30:54]free content buf [14:30:54]Sock 9.Close socket [14:30:54]Sock 9.Thread stoped [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:32]accept exits with 8 [14:31:32]New connection [14:31:32]New thread 3067071844 created [14:31:32]Thread 3067215204 joined [14:31:32]Waiting for new connection... [14:31:32] Sock 8.Parse request [14:31:32]Sock 8.Check first char [14:31:32]Sock 8.First char is OK [14:31:32]request: POST /json_proto HTTP/1.0 [14:31:32]Method: POST [14:31:32]URL: /json_proto [14:31:32]Method is POST - this is cgi request [14:31:32]url: /json_proto [14:31:32]query_string will be loaded in cgi processing [14:31:32]execute_cgi json_proto POST (null) [14:31:32]execute_cgi path=json_proto method=POST [14:31:32]POST find Content-Length [14:31:32]Host: 172.17.42.131:8080 [14:31:32]Content-Length: 678 [14:31:32]Content-Type: application/json [14:31:32] [14:31:32]POST finish read [14:31:32]Found Content-Length = 678 [14:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:31:32]execute_script... [14:31: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)211245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:31:32]POST & json_proto [14:31:32]process_json_proto [14:31:32]json parsed OK: [14:31:32]protocol is kg_v1.0 [14:31:32]action value=close_receipt [14:31:32]process_action close_receipt [14:31:32]cmd_close_receipt [14:31:32]MH_GetDate [14:31:32]Write to MH i2c: F0 00 00 4D 4C 88 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 09 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: F0 09 00 4D 4C 00 48 5A 1A 67 A0 18 CA 66 9C [14:31:32]GetLastDocTimeStamp 1729780254 [14:31:32]current date 1729780296 [14:31:32]FM_GetShiftState [14:31:32]SAM_PROTO_GetShiftState [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 01 00 [14:31:32]Write to MH i2c: E2 08 00 4E 4C 80 13 01 00 00 00 00 00 17 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 0E 00 4E 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F5 [14:31:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:31:32]wFMCommunicate OK [14:31:32]SAM_PROTO_GetShiftState done [14:31:32]FM_GetShiftState done [14:31:32]opened in 1729728961 [14:31:32]opened+sec_in_day 1729815361 [14:31:32]quantity*price = 70044 [14:31:32]sum+1 = 70045 [14:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 253 24.10.2024 14:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189180 ФПД: 159929808141271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189180&fm=159929808141271&tin=02508201610067®Number=0000000000100030&sum=70000 [14:31:33]StoreToDocumentArchive [14:31:33]shift 463 fd 189180 [14:31:33]save to /storage/0463/doc_00189180 [14:31:33]save last doc name /storage/0463/doc_00189180 to /storage/kkm_last_doc_name [14:31:33]save OK [14:31:33]Clear old archive folders... [14:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:33]tlvbuf is 015DBDA0 [14:31:33]SAM_PROTO_ClearQueue [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 09 00 00 [14:31:33]Write to MH i2c: E2 08 00 5B 4C 80 09 00 00 00 00 00 00 19 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 5B 4C 00 90 00 1B [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_ClearQueue done [14:31:33]KKMCreateOFDPacket [14:31:33]OFDProtocolAddRootSTLVToBuf [14:31:33]FM_MakeSignedData [14:31:33]FM_MakeSignedData [14:31:33]SAM_PROTO_SignData [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 0D 01 02 [14:31:33]Write to MH i2c: E2 08 00 5C 4C 80 0D 01 02 00 00 00 00 21 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 03 00 5C 4C 00 90 00 1C [14:31:33]RAPDU: 90 00 [14:31:33]wFMCommunicate OK [14:31:33]wFMCommunicate request_size=255 [14:31:33]MH_SAM_APDU [14:31: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 48 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E2 02 00 35 04 06 00 91 [14:31:33]Write to MH i2c: E2 02 01 5D 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 48 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E2 02 00 35 04 06 00 91 00 00 05 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 03 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 03 00 5D 4C 00 90 00 1D [14:31:34]RAPDU: 90 00 [14:31:34]wFMCommunicate OK [14:31:34]wFMCommunicate request_size=10 [14:31:34]MH_SAM_APDU [14:31:34]CAPDU: 80 0D 02 02 05 74 8F 67 3B D7 [14:31:34]Write to MH i2c: E2 0D 00 5E 4C 80 0D 02 02 05 00 74 8F 67 3B D7 00 00 AA [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 03 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 03 00 5E 4C 00 90 00 1E [14:31:34]RAPDU: 90 00 [14:31:34]wFMCommunicate OK [14:31:34]wFMCommunicate request_size=4 [14:31:34]MH_SAM_APDU [14:31:34]CAPDU: 80 0D 03 02 [14:31:34]Write to MH i2c: E2 08 00 5F 4C 80 0D 03 02 00 00 00 00 26 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 0B 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 0B 00 5F 4C 00 E2 F6 AD D2 3F 85 FD 23 90 00 62 [14:31:34]RAPDU: E2 F6 AD D2 3F 85 FD 23 90 00 [14:31:34]wFMCommunicate OK [14:31:34]SAM_PROTO_SignData done [14:31:34]FM_MakeSignedData done [14:31:34]CreateOFDProtocolMessage [14:31:34]wFMCommunicate request_size=4 [14:31:34]MH_SAM_APDU [14:31:34]CAPDU: 80 11 00 00 [14:31:34]Write to MH i2c: E2 08 00 60 4C 80 11 00 00 00 00 00 00 26 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 17 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 17 00 60 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [14:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:31:34]wFMCommunicate OK [14:31:34]CreateOFDProtocolMessage done [14:31:34]OFDSenderStorePacket 189180 [14:31:34]StoreOFDPacket docnum=189180 [14:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 1E 07 01 B5 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 48 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E2 02 00 35 04 06 00 91 74 8F 67 3B D7 E2 F6 AD D2 3F 85 FD 23 [14:31:34]CheckFolder [14:31:34]dirname=/storage/ofd_packets [14:31:34]CheckFolder done [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00189180 [14:31:34]NVStorageSaveData ofd_packets/00189180 [14:31:34]File name is /storage/ofd_packets/00189180 [14:31:34]Write 301 bytes [14:31:34]NVStorageSaveData done [14:31:34]OFDSenderStorePacket done [14:31:34]KKMCreateOFDPacket done [14:31:34]NVStorageSaveData kkm_last_timestamp [14:31:34]File name is /storage/kkm_last_timestamp [14:31:34]Write 4 bytes [14:31:34]NVStorageSaveData done [14:31:34]ExternCall_PrintAddStr [14:31:34]wPrintStart [14:31:34]Write to MH i2c: 01 00 00 61 4C AD [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 61 4C 00 00 00 00 00 FF 0F C2 [14:31:34]RasterBufferAndPrint [14:31:34]line Счет N : (1)211245 [14:31:34]line ИНН: 02508201610067 [14:31:34]line Контрольно-Кассовый Чек [14:31:34]line ПРОДАЖА [14:31:34]line ТРК (МРК, ГНК) : 12 [14:31:34]line Товар: 2710124130 [14:31:34]line Аи-92-К-3 [14:31:34]line 10.470 * 66.90 [14:31:34]line = 700.44 [14:31:34]line НДС 12% НСП 1% [14:31:34]line > о реализуемом товаре [14:31:34]line ОКРУГЛЕНИЕ: -0.44 [14:31:34]line ИТОГО: 700.00 [14:31:34]line Внесено: 700.00 [14:31:34]line СДАЧА: 0.00 [14:31:34]line НСП 1% : 6.20 [14:31:34]line НДС 12% : 74.38 [14:31:34]line Наличными: 700.00 [14:31:34]line Безнал.: 0.00 [14:31:34]line Место: АЗС № 86 "Партнер Нефть" [14:31:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:31:34]line СНО: Общий режим [14:31:34]line Чек 253 24.10.2024 14:31 [14:31:34]line Смена: 463 ФФД: 1.0 [14:31:34]line ЗНМ: 0300000155 [14:31:34]line РНМ: 0000000000100030 [14:31:34]line Версия ККМ: 001 [14:31:34]line ФМ: 0000000000965340 [14:31:34]line ФД: 189180 [14:31:34]line ФПД: 159929808141271 [14:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189180&fm=159929808141271&tin=02508201610067®Number=0000000000100030&sum=70000 [14:31:34]written 0, free lines is 4095 [14:31:34]OFD Sender: Processing packet 189180 [packets to send 1062, broken 1061] [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00189180 [14:31:34]OFD Sender: To server: pG, [14:31:34]CommunicateWithHost lk.salyk.kg:30040 [14:31:34]ConnectInit lk.salyk.kg [14:31:34]Connected sock=10 [14:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 1E 07 01 B5 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FD 00 00 00 F4 03 04 00 48 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC E2 02 00 35 04 06 00 91 74 8F 67 3B D7 E2 F6 AD D2 3F 85 FD 23 [14:31:34]Write to MH i2c: 01 00 00 8C 4C D8 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: 01 07 00 8C 4C 00 00 00 00 00 58 0C 43 [14:31:34]RasterBufferAndPrint [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]line [14:31:34]written 0, free lines is 3165 [14:31:34]MH_Cut [14:31:34]Write to MH i2c: D1 01 00 93 4C 01 B1 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 01 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: D1 01 00 93 4C 00 B0 [14:31:34]Write to MH i2c: 01 00 00 94 4C E0 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F6 DF 47 00 18 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 39 36 35 33 34 30 10 04 04 00 FC E2 02 00 F4 03 04 00 30 04 1A 67 B6 04 01 00 00 03 57 FD 75 C1 A0 26 11 [14:31:34]CommunicateWithHost err = 0 [14:31:34]CheckOFDResponse [14:31:34]1017 (14) - 77093643461234 [14:31:34]1041 (16) - 0000000000965340 [14:31:34]1040 (4) - 189180 [14:31:34]1012 (4) - 24.10.2024 08:24 [14:31:34]1206 (1) - 0 [14:31:34]OFD Sender: Remove packet 189180 [14:31:34]ProducePacketName [14:31:34]name=ofd_packets/00189180 [14:31:34]NVStorageDeleteData [14:31:35]OFD Sender: No OFD packet to send [14:31:35]*** Cut start [14:31:35]*** Partial cut [14:31:35]*** CUTSNS_PIN = 1 [14:31:36]*** CUTSNS_PIN = 0 [14:31:36]*** Brake cut motor [14:31:36]Read from MH i2c: 01 [14:31:36]MH_I2C_Read... [14:31:36]*** Stop cut motor [14:31:36]*** Cut end [14:31:36]Read from MH i2c: 01 07 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 FF 0F F5 [14:31:36]process_action close_receipt done [14:31:36]requested_data is exist [14:31:36]produce_requested_data [14:31:36]requested_item fm.sn is exist - process it [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 11 00 00 [14:31:36]Write to MH i2c: E2 08 00 95 4C 80 11 00 00 00 00 00 00 5B [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:36]Read from MH i2c: E2 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 17 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 17 00 95 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [14:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:31:36]wFMCommunicate OK [14:31:36]requested_item fd.num is exist - process it [14:31:36]SAM_PROTO_GetFieldsCounters [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 13 00 00 [14:31:36]Write to MH i2c: E2 08 00 96 4C 80 13 00 00 00 00 00 00 5E [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:36]Read from MH i2c: E2 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 62 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 62 00 96 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC E2 02 00 0E 04 04 00 CF 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 0C [14:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC E2 02 00 0E 04 04 00 CF 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 [14:31:36]wFMCommunicate OK [14:31:36]SAM_PROTO_GetFieldsCounters done [14:31:36]requested_item shift.num is exist - process it [14:31:36]requested_item shift.opened is exist - process it [14:31:36]req_shift_opened [14:31:36]FM_GetShiftState [14:31:36]SAM_PROTO_GetShiftState [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 13 01 00 [14:31:36]Write to MH i2c: E2 08 00 97 4C 80 13 01 00 00 00 00 00 60 [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:36]Read from MH i2c: E2 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 0E 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 0E 00 97 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3E [14:31:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:31:36]wFMCommunicate OK [14:31:36]SAM_PROTO_GetShiftState done [14:31:36]FM_GetShiftState done [14:31:36]req_shift_opened done [14:31:36]requested_item shift.open_date is exist - process it [14:31:36]req_shift_open_date [14:31:36]req_shift_open_date done [14:31:36]produce_requested_data done [14:31:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189180,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:31:36]process_action_free close_receipt [14:31:36]json_value_free [14:31:36]json_value_free done [14:31:36]process_json_proto returns [14:31:36]Send response to host [14:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189180,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:31:36]free response buf [14:31:36]execute_script done [14:31:36]execute_script returns [14:31:36]free content buf [14:31:36]Sock 8.Close socket [14:31:36]Sock 8.Thread stoped [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:32]accept exits with 9 [14:33:32]New connection [14:33:32]New thread 3067215204 created [14:33:32]Thread 3067071844 joined [14:33:32]Waiting for new connection... [14:33:32] Sock 9.Parse request [14:33:32]Sock 9.Check first char [14:33:32]Sock 9.First char is OK [14:33:32]request: POST /json_proto HTTP/1.0 [14:33:32]Method: POST [14:33:32]URL: /json_proto [14:33:32]Method is POST - this is cgi request [14:33:32]url: /json_proto [14:33:32]query_string will be loaded in cgi processing [14:33:32]execute_cgi json_proto POST (null) [14:33:32]execute_cgi path=json_proto method=POST [14:33:32]POST find Content-Length [14:33:32]Host: 172.17.42.131:8080 [14:33:32]Content-Length: 769 [14:33:32]Content-Type: application/json [14:33:32] [14:33:32]POST finish read [14:33:32]Found Content-Length = 769 [14:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.000, "sum" : 1484.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: Mbank", "payments": [ { "type": 1, "sum" : 1484.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:32]execute_script... [14:33: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)211246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.000, "sum" : 1484.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: Mbank", "payments": [ { "type": 1, "sum" : 1484.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:32]POST & json_proto [14:33:32]process_json_proto [14:33:32]json parsed OK: [14:33:32]protocol is kg_v1.0 [14:33:32]action value=close_receipt [14:33:32]process_action close_receipt [14:33:32]cmd_close_receipt [14:33:32]MH_GetDate [14:33:32]Write to MH i2c: F0 00 00 98 4C D3 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 09 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 09 00 98 4C 00 C0 5A 1A 67 A0 18 CA 66 5F [14:33:32]GetLastDocTimeStamp 1729780296 [14:33:32]current date 1729780416 [14:33:32]FM_GetShiftState [14:33:32]SAM_PROTO_GetShiftState [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 13 01 00 [14:33:32]Write to MH i2c: E2 08 00 99 4C 80 13 01 00 00 00 00 00 62 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 99 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 40 [14:33:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetShiftState done [14:33:32]FM_GetShiftState done [14:33:32]opened in 1729728961 [14:33:32]opened+sec_in_day 1729815361 [14:33:32]quantity*price = 148400 [14:33:32]sum+1 = 148401 [14:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1484.00 НСП 1% : 13.13 НДС 12% : 157.59 Наличными: 0.00 Безнал.: 1484.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 254 24.10.2024 14:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189181 ФПД: 231874767605022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143336&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189181&fm=231874767605022&tin=02508201610067®Number=0000000000100030&sum=148400 [14:33:33]StoreToDocumentArchive [14:33:33]shift 463 fd 189181 [14:33:33]save to /storage/0463/doc_00189181 [14:33:33]save last doc name /storage/0463/doc_00189181 to /storage/kkm_last_doc_name [14:33:33]save OK [14:33:33]Clear old archive folders... [14:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:33]tlvbuf is 015EA750 [14:33:33]SAM_PROTO_ClearQueue [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 09 00 00 [14:33:33]Write to MH i2c: E2 08 00 A6 4C 80 09 00 00 00 00 00 00 64 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 A6 4C 00 90 00 66 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_ClearQueue done [14:33:33]KKMCreateOFDPacket [14:33:33]OFDProtocolAddRootSTLVToBuf [14:33:33]FM_MakeSignedData [14:33:33]FM_MakeSignedData [14:33:33]SAM_PROTO_SignData [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 0D 01 02 [14:33:33]Write to MH i2c: E2 08 00 A7 4C 80 0D 01 02 00 00 00 00 6C [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 A7 4C 00 90 00 67 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]wFMCommunicate request_size=255 [14:33:33]MH_SAM_APDU [14:33: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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B0 43 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 43 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 43 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 C0 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E2 02 00 35 04 06 00 D2 [14:33:33]Write to MH i2c: E2 02 01 A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B0 43 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 43 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 43 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 C0 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E2 02 00 35 04 06 00 D2 00 00 D1 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 A8 4C 00 90 00 68 [14:33:34]RAPDU: 90 00 [14:33:34]wFMCommunicate OK [14:33:34]wFMCommunicate request_size=10 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 0D 02 02 05 E3 8D 27 CD 1E [14:33:34]Write to MH i2c: E2 0D 00 A9 4C 80 0D 02 02 05 00 E3 8D 27 CD 1E 00 00 FB [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 A9 4C 00 90 00 69 [14:33:34]RAPDU: 90 00 [14:33:34]wFMCommunicate OK [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 0D 03 02 [14:33:34]Write to MH i2c: E2 08 00 AA 4C 80 0D 03 02 00 00 00 00 71 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0B 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0B 00 AA 4C 00 32 51 D8 DD B1 76 FA FE 90 00 C9 [14:33:34]RAPDU: 32 51 D8 DD B1 76 FA FE 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_SignData done [14:33:34]FM_MakeSignedData done [14:33:34]CreateOFDProtocolMessage [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 11 00 00 [14:33:34]Write to MH i2c: E2 08 00 AB 4C 80 11 00 00 00 00 00 00 71 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 17 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 17 00 AB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [14:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:34]wFMCommunicate OK [14:33:34]CreateOFDProtocolMessage done [14:33:34]OFDSenderStorePacket 189181 [14:33:34]StoreOFDPacket docnum=189181 [14:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B 16 07 01 09 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B0 43 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 43 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 43 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 C0 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E2 02 00 35 04 06 00 D2 E3 8D 27 CD 1E 32 51 D8 DD B1 76 FA FE [14:33:34]CheckFolder [14:33:34]dirname=/storage/ofd_packets [14:33:34]CheckFolder done [14:33:34]ProducePacketName [14:33:34]name=ofd_packets/00189181 [14:33:34]NVStorageSaveData ofd_packets/00189181 [14:33:34]File name is /storage/ofd_packets/00189181 [14:33:34]Write 301 bytes [14:33:34]NVStorageSaveData done [14:33:34]OFDSenderStorePacket done [14:33:34]KKMCreateOFDPacket done [14:33:34]NVStorageSaveData kkm_last_timestamp [14:33:34]File name is /storage/kkm_last_timestamp [14:33:34]Write 4 bytes [14:33:34]NVStorageSaveData done [14:33:34]ExternCall_PrintAddStr [14:33:34]wPrintStart [14:33:34]Write to MH i2c: 01 00 00 AC 4C F8 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 AC 4C 00 00 00 00 00 FF 0F 0D [14:33:34]RasterBufferAndPrint [14:33:34]line Счет N : (1)211246 [14:33:34]line ИНН: 02508201610067 [14:33:34]line Контрольно-Кассовый Чек [14:33:34]line ПРОДАЖА [14:33:34]line ТРК (МРК, ГНК) : 33 [14:33:34]line Товар: 2710124500 [14:33:34]line Аи-95-К-3 [14:33:34]line 20.000 * 74.20 [14:33:34]line = 1484.00 [14:33:34]line НДС 12% НСП 1% [14:33:34]line > о реализуемом товаре [14:33:34]line ИТОГО: 1484.00 [14:33:34]line НСП 1% : 13.13 [14:33:34]line НДС 12% : 157.59 [14:33:34]line Наличными: 0.00 [14:33:34]line Безнал.: 1484.00 [14:33:34]line Место: АЗС № 86 "Партнер Нефть" [14:33:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:33:34]line СНО: Общий режим [14:33:34]line Чек 254 24.10.2024 14:33 [14:33:34]line Смена: 463 ФФД: 1.0 [14:33:34]line ЗНМ: 0300000155 [14:33:34]line РНМ: 0000000000100030 [14:33:34]line Версия ККМ: 001 [14:33:34]line Платежная система: Mbank [14:33:34]line ФМ: 0000000000965340 [14:33:34]line ФД: 189181 [14:33:34]line ФПД: 231874767605022 [14:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143336&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189181&fm=231874767605022&tin=02508201610067®Number=0000000000100030&sum=148400 [14:33:34]written 0, free lines is 4095 [14:33:34]OFD Sender: Processing packet 189181 [packets to send 1062, broken 1061] [14:33:34]ProducePacketName [14:33:34]name=ofd_packets/00189181 [14:33:34]OFD Sender: To server: pG, [14:33:34]CommunicateWithHost lk.salyk.kg:30040 [14:33:34]ConnectInit lk.salyk.kg [14:33:34]Connected sock=10 [14:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B 16 07 01 09 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B0 43 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 43 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 43 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 C0 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD E2 02 00 35 04 06 00 D2 E3 8D 27 CD 1E 32 51 D8 DD B1 76 FA FE [14:33:34]Write to MH i2c: 01 00 00 D5 4C 21 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 D5 4C 00 00 00 00 00 8B 0C BF [14:33:34]RasterBufferAndPrint [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]written 0, free lines is 3215 [14:33:34]MH_Cut [14:33:34]Write to MH i2c: D1 01 00 DC 4C 01 FA [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 01 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 01 00 DC 4C 00 F9 [14:33:34]Write to MH i2c: 01 00 00 DD 4C 29 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5A C7 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 39 36 35 33 34 30 10 04 04 00 FD E2 02 00 F4 03 04 00 A8 04 1A 67 B6 04 01 00 00 97 48 22 44 AF 7F 97 28 [14:33:34]CommunicateWithHost err = 0 [14:33:34]CheckOFDResponse [14:33:34]1017 (14) - 77093643461234 [14:33:34]1041 (16) - 0000000000965340 [14:33:34]1040 (4) - 189181 [14:33:34]1012 (4) - 24.10.2024 08:26 [14:33:34]1206 (1) - 0 [14:33:34]OFD Sender: Remove packet 189181 [14:33:34]ProducePacketName [14:33:34]name=ofd_packets/00189181 [14:33:34]NVStorageDeleteData [14:33:35]OFD Sender: No OFD packet to send [14:33:36]*** Cut start [14:33:36]*** Partial cut [14:33:36]*** CUTSNS_PIN = 1 [14:33:36]*** CUTSNS_PIN = 0 [14:33:36]*** Brake cut motor [14:33:36]Read from MH i2c: 01 [14:33:36]MH_I2C_Read... [14:33:36]*** Stop cut motor [14:33:36]*** Cut end [14:33:36]Read from MH i2c: 01 07 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: 01 07 00 DD 4C 00 00 00 00 00 FF 0F 3E [14:33:36]process_action close_receipt done [14:33:36]requested_data is exist [14:33:36]produce_requested_data [14:33:36]requested_item fm.sn is exist - process it [14:33:36]wFMCommunicate request_size=4 [14:33:36]MH_SAM_APDU [14:33:36]CAPDU: 80 11 00 00 [14:33:36]Write to MH i2c: E2 08 00 DE 4C 80 11 00 00 00 00 00 00 A4 [14:33:36]Write i2c OK [14:33:36]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:36]Read from MH i2c: E2 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 17 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 17 00 DE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [14:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:36]wFMCommunicate OK [14:33:36]requested_item fd.num is exist - process it [14:33:36]SAM_PROTO_GetFieldsCounters [14:33:36]wFMCommunicate request_size=4 [14:33:36]MH_SAM_APDU [14:33:36]CAPDU: 80 13 00 00 [14:33:36]Write to MH i2c: E2 08 00 DF 4C 80 13 00 00 00 00 00 00 A7 [14:33:36]Write i2c OK [14:33:36]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:36]Read from MH i2c: E2 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 62 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 62 00 DF 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD E2 02 00 0E 04 04 00 CF 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 59 [14:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD E2 02 00 0E 04 04 00 CF 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 [14:33:36]wFMCommunicate OK [14:33:36]SAM_PROTO_GetFieldsCounters done [14:33:36]requested_item shift.num is exist - process it [14:33:36]requested_item shift.opened is exist - process it [14:33:36]req_shift_opened [14:33:36]FM_GetShiftState [14:33:36]SAM_PROTO_GetShiftState [14:33:36]wFMCommunicate request_size=4 [14:33:36]MH_SAM_APDU [14:33:36]CAPDU: 80 13 01 00 [14:33:36]Write to MH i2c: E2 08 00 E0 4C 80 13 01 00 00 00 00 00 A9 [14:33:36]Write i2c OK [14:33:36]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:37]Read from MH i2c: E2 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: E2 0E 00 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: E2 0E 00 E0 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 87 [14:33:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:33:37]wFMCommunicate OK [14:33:37]SAM_PROTO_GetShiftState done [14:33:37]FM_GetShiftState done [14:33:37]req_shift_opened done [14:33:37]requested_item shift.open_date is exist - process it [14:33:37]req_shift_open_date [14:33:37]req_shift_open_date done [14:33:37]produce_requested_data done [14:33:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189181,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:33:37]process_action_free close_receipt [14:33:37]json_value_free [14:33:37]json_value_free done [14:33:37]process_json_proto returns [14:33:37]Send response to host [14:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189181,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:33:37]free response buf [14:33:37]execute_script done [14:33:37]execute_script returns [14:33:37]free content buf [14:33:37]Sock 9.Close socket [14:33:37]Sock 9.Thread stoped [14:33:37]accept exits with 8 [14:33:37]New connection [14:33:37]New thread 3067071844 created [14:33:37]Thread 3067215204 joined [14:33:37]Waiting for new connection... [14:33:37] Sock 8.Parse request [14:33:37]Sock 8.Check first char [14:33:37]Sock 8.First char is OK [14:33:37]request: POST /json_proto HTTP/1.0 [14:33:37]Method: POST [14:33:37]URL: /json_proto [14:33:37]Method is POST - this is cgi request [14:33:37]url: /json_proto [14:33:37]query_string will be loaded in cgi processing [14:33:37]execute_cgi json_proto POST (null) [14:33:37]execute_cgi path=json_proto method=POST [14:33:37]POST find Content-Length [14:33:37]Host: 172.17.42.131:8080 [14:33:37]Content-Length: 677 [14:33:37]Content-Type: application/json [14:33:37] [14:33:37]POST finish read [14:33:37]Found Content-Length = 677 [14:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:33:37]execute_script... [14:33: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)211247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:33:37]POST & json_proto [14:33:37]process_json_proto [14:33:37]json parsed OK: [14:33:37]protocol is kg_v1.0 [14:33:37]action value=close_receipt [14:33:37]process_action close_receipt [14:33:37]cmd_close_receipt [14:33:37]MH_GetDate [14:33:37]Write to MH i2c: F0 00 00 E1 4C 1C [14:33:37]Write i2c OK [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: F0 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: F0 09 00 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: F0 09 00 E1 4C 00 C5 5A 1A 67 A0 18 CA 66 AD [14:33:37]GetLastDocTimeStamp 1729780416 [14:33:37]current date 1729780421 [14:33:37]FM_GetShiftState [14:33:37]SAM_PROTO_GetShiftState [14:33:37]wFMCommunicate request_size=4 [14:33:37]MH_SAM_APDU [14:33:37]CAPDU: 80 13 01 00 [14:33:37]Write to MH i2c: E2 08 00 E2 4C 80 13 01 00 00 00 00 00 AB [14:33:37]Write i2c OK [14:33:37]MH_I2C_Read... [14:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:37]Read from MH i2c: E2 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: E2 0E 00 [14:33:37]MH_I2C_Read... [14:33:37]Read from MH i2c: E2 0E 00 E2 4C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 89 [14:33:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:33:37]wFMCommunicate OK [14:33:37]SAM_PROTO_GetShiftState done [14:33:37]FM_GetShiftState done [14:33:37]opened in 1729728961 [14:33:37]opened+sec_in_day 1729815361 [14:33:37]quantity*price = 50041 [14:33:37]sum+1 = 50042 [14:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 255 24.10.2024 14:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189182 ФПД: 57791324003306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189182&fm=57791324003306&tin=02508201610067®Number=0000000000100030&sum=50000 [14:33:38]StoreToDocumentArchive [14:33:38]shift 463 fd 189182 [14:33:38]save to /storage/0463/doc_00189182 [14:33:38]save last doc name /storage/0463/doc_00189182 to /storage/kkm_last_doc_name [14:33:38]save OK [14:33:38]Clear old archive folders... [14:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:38]tlvbuf is 01555F80 [14:33:38]SAM_PROTO_ClearQueue [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 09 00 00 [14:33:38]Write to MH i2c: E2 08 00 EF 4C 80 09 00 00 00 00 00 00 AD [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:38]Read from MH i2c: E2 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 03 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 03 00 EF 4C 00 90 00 AF [14:33:38]RAPDU: 90 00 [14:33:38]wFMCommunicate OK [14:33:38]SAM_PROTO_ClearQueue done [14:33:38]KKMCreateOFDPacket [14:33:38]OFDProtocolAddRootSTLVToBuf [14:33:38]FM_MakeSignedData [14:33:38]FM_MakeSignedData [14:33:38]SAM_PROTO_SignData [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 0D 01 02 [14:33:38]Write to MH i2c: E2 08 00 F0 4C 80 0D 01 02 00 00 00 00 B5 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:38]Read from MH i2c: E2 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 03 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 03 00 F0 4C 00 90 00 B0 [14:33:38]RAPDU: 90 00 [14:33:38]wFMCommunicate OK [14:33:38]wFMCommunicate request_size=255 [14:33:38]MH_SAM_APDU [14:33: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E2 02 00 35 04 06 00 34 [14:33:38]Write to MH i2c: E2 02 01 F1 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E2 02 00 35 04 06 00 34 00 00 AD [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 F1 4C 00 90 00 B1 [14:33:39]RAPDU: 90 00 [14:33:39]wFMCommunicate OK [14:33:39]wFMCommunicate request_size=10 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 0D 02 02 05 8F 97 56 9B EA [14:33:39]Write to MH i2c: E2 0D 00 F2 4C 80 0D 02 02 05 00 8F 97 56 9B EA 00 00 C3 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 F2 4C 00 90 00 B2 [14:33:39]RAPDU: 90 00 [14:33:39]wFMCommunicate OK [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 0D 03 02 [14:33:39]Write to MH i2c: E2 08 00 F3 4C 80 0D 03 02 00 00 00 00 BA [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0B 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0B 00 F3 4C 00 14 85 AC C7 65 30 DE D7 90 00 11 [14:33:39]RAPDU: 14 85 AC C7 65 30 DE D7 90 00 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_SignData done [14:33:39]FM_MakeSignedData done [14:33:39]CreateOFDProtocolMessage [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 11 00 00 [14:33:39]Write to MH i2c: E2 08 00 F4 4C 80 11 00 00 00 00 00 00 BA [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 17 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 17 00 F4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [14:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:39]wFMCommunicate OK [14:33:39]CreateOFDProtocolMessage done [14:33:39]OFDSenderStorePacket 189182 [14:33:39]StoreOFDPacket docnum=189182 [14:33:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 C4 07 01 4C B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E2 02 00 35 04 06 00 34 8F 97 56 9B EA 14 85 AC C7 65 30 DE D7 [14:33:39]CheckFolder [14:33:39]dirname=/storage/ofd_packets [14:33:39]CheckFolder done [14:33:39]ProducePacketName [14:33:39]name=ofd_packets/00189182 [14:33:39]NVStorageSaveData ofd_packets/00189182 [14:33:39]File name is /storage/ofd_packets/00189182 [14:33:39]Write 301 bytes [14:33:39]NVStorageSaveData done [14:33:39]OFDSenderStorePacket done [14:33:39]KKMCreateOFDPacket done [14:33:39]NVStorageSaveData kkm_last_timestamp [14:33:39]File name is /storage/kkm_last_timestamp [14:33:39]Write 4 bytes [14:33:39]NVStorageSaveData done [14:33:39]ExternCall_PrintAddStr [14:33:39]wPrintStart [14:33:39]Write to MH i2c: 01 00 00 F5 4C 41 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: 01 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: 01 07 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: 01 07 00 F5 4C 00 00 00 00 00 FF 0F 56 [14:33:39]RasterBufferAndPrint [14:33:39]line Счет N : (1)211247 [14:33:39]line ИНН: 02508201610067 [14:33:39]line Контрольно-Кассовый Чек [14:33:39]line ПРОДАЖА [14:33:39]line ТРК (МРК, ГНК) : 22 [14:33:39]line Товар: 2710124130 [14:33:39]line Аи-92-К-3 [14:33:39]line 7.480 * 66.90 [14:33:39]line = 500.41 [14:33:39]line НДС 12% НСП 1% [14:33:39]line > о реализуемом товаре [14:33:39]line ОКРУГЛЕНИЕ: -0.41 [14:33:39]line ИТОГО: 500.00 [14:33:39]line Внесено: 500.00 [14:33:39]line СДАЧА: 0.00 [14:33:39]line НСП 1% : 4.43 [14:33:39]line НДС 12% : 53.14 [14:33:39]line Наличными: 500.00 [14:33:39]line Безнал.: 0.00 [14:33:39]line Место: АЗС № 86 "Партнер Нефть" [14:33:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:33:39]line СНО: Общий режим [14:33:39]line Чек 255 24.10.2024 14:33 [14:33:39]line Смена: 463 ФФД: 1.0 [14:33:39]line ЗНМ: 0300000155 [14:33:39]line РНМ: 0000000000100030 [14:33:39]line Версия ККМ: 001 [14:33:39]line ФМ: 0000000000965340 [14:33:39]line ФД: 189182 [14:33:39]line ФПД: 57791324003306 [14:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189182&fm=57791324003306&tin=02508201610067®Number=0000000000100030&sum=50000 [14:33:39]written 0, free lines is 4095 [14:33:39]OFD Sender: Processing packet 189182 [packets to send 1062, broken 1061] [14:33:39]ProducePacketName [14:33:39]name=ofd_packets/00189182 [14:33:39]OFD Sender: To server: pG, [14:33:39]CommunicateWithHost lk.salyk.kg:30040 [14:33:39]ConnectInit lk.salyk.kg [14:33:40]Connected sock=10 [14:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 C4 07 01 4C B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 5A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE E2 02 00 35 04 06 00 34 8F 97 56 9B EA 14 85 AC C7 65 30 DE D7 [14:33:40]Write to MH i2c: 01 00 00 20 4D 6D [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 20 4D 00 00 00 00 00 68 0C E8 [14:33:40]RasterBufferAndPrint [14:33:40]line [14:33:40]line [14:33:40]line [14:33:40]line [14:33:40]line [14:33:40]written 0, free lines is 3183 [14:33:40]MH_Cut [14:33:40]Write to MH i2c: D1 01 00 27 4D 01 46 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: D1 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: D1 01 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: D1 01 00 27 4D 00 45 [14:33:40]Write to MH i2c: 01 00 00 28 4D 75 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F 7D 47 00 FE 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 39 36 35 33 34 30 10 04 04 00 FE E2 02 00 F4 03 04 00 AD 04 1A 67 B6 04 01 00 00 57 30 49 0C E8 39 BD 6B [14:33:40]CommunicateWithHost err = 0 [14:33:40]CheckOFDResponse [14:33:40]1017 (14) - 77093643461234 [14:33:40]1041 (16) - 0000000000965340 [14:33:40]1040 (4) - 189182 [14:33:40]1012 (4) - 24.10.2024 08:26 [14:33:40]1206 (1) - 0 [14:33:40]OFD Sender: Remove packet 189182 [14:33:40]ProducePacketName [14:33:40]name=ofd_packets/00189182 [14:33:40]NVStorageDeleteData [14:33:40]OFD Sender: No OFD packet to send [14:33:41]*** Cut start [14:33:41]*** Partial cut [14:33:41]*** CUTSNS_PIN = 1 [14:33:41]*** CUTSNS_PIN = 0 [14:33:41]*** Brake cut motor [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]*** Stop cut motor [14:33:41]*** Cut end [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 28 4D 00 00 00 00 00 FF 0F 8A [14:33:41]process_action close_receipt done [14:33:41]requested_data is exist [14:33:41]produce_requested_data [14:33:41]requested_item fm.sn is exist - process it [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 11 00 00 [14:33:41]Write to MH i2c: E2 08 00 29 4D 80 11 00 00 00 00 00 00 F0 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 17 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 17 00 29 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [14:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:33:42]wFMCommunicate OK [14:33:42]requested_item fd.num is exist - process it [14:33:42]SAM_PROTO_GetFieldsCounters [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 00 00 [14:33:42]Write to MH i2c: E2 08 00 2A 4D 80 13 00 00 00 00 00 00 F3 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 62 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 62 00 2A 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE E2 02 00 0E 04 04 00 CF 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 AA [14:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE E2 02 00 0E 04 04 00 CF 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 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetFieldsCounters done [14:33:42]requested_item shift.num is exist - process it [14:33:42]requested_item shift.opened is exist - process it [14:33:42]req_shift_opened [14:33:42]FM_GetShiftState [14:33:42]SAM_PROTO_GetShiftState [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 01 00 [14:33:42]Write to MH i2c: E2 08 00 2B 4D 80 13 01 00 00 00 00 00 F5 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 2B 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D3 [14:33:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetShiftState done [14:33:42]FM_GetShiftState done [14:33:42]req_shift_opened done [14:33:42]requested_item shift.open_date is exist - process it [14:33:42]req_shift_open_date [14:33:42]req_shift_open_date done [14:33:42]produce_requested_data done [14:33:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189182,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:33:42]process_action_free close_receipt [14:33:42]json_value_free [14:33:42]json_value_free done [14:33:42]process_json_proto returns [14:33:42]Send response to host [14:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189182,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:33:42]free response buf [14:33:42]execute_script done [14:33:42]execute_script returns [14:33:42]free content buf [14:33:42]Sock 8.Close socket [14:33:42]Sock 8.Thread stoped [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:32]accept exits with 9 [14:37:32]New connection [14:37:32]New thread 3067215204 created [14:37:32]Thread 3067071844 joined [14:37:32]Waiting for new connection... [14:37:32] Sock 9.Parse request [14:37:32]Sock 9.Check first char [14:37:32]Sock 9.First char is OK [14:37:32]request: POST /json_proto HTTP/1.0 [14:37:32]Method: POST [14:37:32]URL: /json_proto [14:37:32]Method is POST - this is cgi request [14:37:32]url: /json_proto [14:37:32]query_string will be loaded in cgi processing [14:37:32]execute_cgi json_proto POST (null) [14:37:32]execute_cgi path=json_proto method=POST [14:37:32]POST find Content-Length [14:37:32]Host: 172.17.42.131:8080 [14:37:32]Content-Length: 682 [14:37:32]Content-Type: application/json [14:37:32] [14:37:32]POST finish read [14:37:32]Found Content-Length = 682 [14:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:32]execute_script... [14:37: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)211248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:32]POST & json_proto [14:37:32]process_json_proto [14:37:32]json parsed OK: [14:37:32]protocol is kg_v1.0 [14:37:32]action value=close_receipt [14:37:32]process_action close_receipt [14:37:32]cmd_close_receipt [14:37:32]MH_GetDate [14:37:32]Write to MH i2c: F0 00 00 2C 4D 68 [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: F0 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: F0 09 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: F0 09 00 2C 4D 00 B0 5B 1A 67 A0 18 CA 66 E5 [14:37:32]GetLastDocTimeStamp 1729780421 [14:37:32]current date 1729780656 [14:37:32]FM_GetShiftState [14:37:32]SAM_PROTO_GetShiftState [14:37:32]wFMCommunicate request_size=4 [14:37:32]MH_SAM_APDU [14:37:32]CAPDU: 80 13 01 00 [14:37:32]Write to MH i2c: E2 08 00 2D 4D 80 13 01 00 00 00 00 00 F7 [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:32]Read from MH i2c: E2 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 0E 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 0E 00 2D 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D5 [14:37:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:37:32]wFMCommunicate OK [14:37:32]SAM_PROTO_GetShiftState done [14:37:32]FM_GetShiftState done [14:37:32]opened in 1729728961 [14:37:32]opened+sec_in_day 1729815361 [14:37:32]quantity*price = 100015 [14:37:32]sum+1 = 100017 [14:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 256 24.10.2024 14:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189183 ФПД: 82991131005768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189183&fm=82991131005768&tin=02508201610067®Number=0000000000100030&sum=100000 [14:37:33]StoreToDocumentArchive [14:37:33]shift 463 fd 189183 [14:37:33]save to /storage/0463/doc_00189183 [14:37:33]save last doc name /storage/0463/doc_00189183 to /storage/kkm_last_doc_name [14:37:33]save OK [14:37:33]Clear old archive folders... [14:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:33]tlvbuf is 01517560 [14:37:33]SAM_PROTO_ClearQueue [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 09 00 00 [14:37:33]Write to MH i2c: E2 08 00 3A 4D 80 09 00 00 00 00 00 00 F9 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 3A 4D 00 90 00 FB [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]SAM_PROTO_ClearQueue done [14:37:33]KKMCreateOFDPacket [14:37:33]OFDProtocolAddRootSTLVToBuf [14:37:33]FM_MakeSignedData [14:37:33]FM_MakeSignedData [14:37:33]SAM_PROTO_SignData [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 0D 01 02 [14:37:33]Write to MH i2c: E2 08 00 3B 4D 80 0D 01 02 00 00 00 00 01 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 3B 4D 00 90 00 FC [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]wFMCommunicate request_size=255 [14:37:33]MH_SAM_APDU [14:37: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 B0 5B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E2 02 00 35 04 06 00 4B [14:37:33]Write to MH i2c: E2 02 01 3C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 B0 5B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E2 02 00 35 04 06 00 4B 00 00 F9 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 3C 4D 00 90 00 FD [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]wFMCommunicate request_size=10 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 0D 02 02 05 7A E0 E2 13 48 [14:37:33]Write to MH i2c: E2 0D 00 3D 4D 80 0D 02 02 05 00 7A E0 E2 13 48 00 00 A5 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 03 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 03 00 3D 4D 00 90 00 FE [14:37:34]RAPDU: 90 00 [14:37:34]wFMCommunicate OK [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 0D 03 02 [14:37:34]Write to MH i2c: E2 08 00 3E 4D 80 0D 03 02 00 00 00 00 06 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0B 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0B 00 3E 4D 00 D1 E5 E6 E5 6E 14 7D E5 90 00 6C [14:37:34]RAPDU: D1 E5 E6 E5 6E 14 7D E5 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_SignData done [14:37:34]FM_MakeSignedData done [14:37:34]CreateOFDProtocolMessage [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 11 00 00 [14:37:34]Write to MH i2c: E2 08 00 3F 4D 80 11 00 00 00 00 00 00 06 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 3F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [14:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:37:34]wFMCommunicate OK [14:37:34]CreateOFDProtocolMessage done [14:37:34]OFDSenderStorePacket 189183 [14:37:34]StoreOFDPacket docnum=189183 [14:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 A5 07 01 4E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 B0 5B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E2 02 00 35 04 06 00 4B 7A E0 E2 13 48 D1 E5 E6 E5 6E 14 7D E5 [14:37:34]CheckFolder [14:37:34]dirname=/storage/ofd_packets [14:37:34]CheckFolder done [14:37:34]ProducePacketName [14:37:34]name=ofd_packets/00189183 [14:37:34]NVStorageSaveData ofd_packets/00189183 [14:37:34]File name is /storage/ofd_packets/00189183 [14:37:34]Write 301 bytes [14:37:34]NVStorageSaveData done [14:37:34]OFDSenderStorePacket done [14:37:34]KKMCreateOFDPacket done [14:37:34]NVStorageSaveData kkm_last_timestamp [14:37:34]File name is /storage/kkm_last_timestamp [14:37:34]Write 4 bytes [14:37:34]NVStorageSaveData done [14:37:34]ExternCall_PrintAddStr [14:37:34]wPrintStart [14:37:34]Write to MH i2c: 01 00 00 40 4D 8D [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 07 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 07 00 40 4D 00 00 00 00 00 FF 0F A2 [14:37:34]RasterBufferAndPrint [14:37:34]line Счет N : (1)211248 [14:37:34]line ИНН: 02508201610067 [14:37:34]line Контрольно-Кассовый Чек [14:37:34]line ПРОДАЖА [14:37:34]line ТРК (МРК, ГНК) : 32 [14:37:34]line Товар: 2710124130 [14:37:34]line Аи-92-К-3 [14:37:34]line 14.950 * 66.90 [14:37:34]line = 1000.16 [14:37:34]line НДС 12% НСП 1% [14:37:34]line > о реализуемом товаре [14:37:34]line ОКРУГЛЕНИЕ: -0.16 [14:37:34]line ИТОГО: 1000.00 [14:37:34]line Внесено: 1000.00 [14:37:34]line СДАЧА: 0.00 [14:37:34]line НСП 1% : 8.85 [14:37:34]line НДС 12% : 106.21 [14:37:34]line Наличными: 1000.00 [14:37:34]line Безнал.: 0.00 [14:37:34]line Место: АЗС № 86 "Партнер Нефть" [14:37:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:37:34]line СНО: Общий режим [14:37:34]line Чек 256 24.10.2024 14:37 [14:37:34]line Смена: 463 ФФД: 1.0 [14:37:34]line ЗНМ: 0300000155 [14:37:34]line РНМ: 0000000000100030 [14:37:34]line Версия ККМ: 001 [14:37:34]line ФМ: 0000000000965340 [14:37:34]line ФД: 189183 [14:37:34]line ФПД: 82991131005768 [14:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189183&fm=82991131005768&tin=02508201610067®Number=0000000000100030&sum=100000 [14:37:34]written 0, free lines is 4095 [14:37:34]OFD Sender: Processing packet 189183 [packets to send 1062, broken 1061] [14:37:34]ProducePacketName [14:37:34]name=ofd_packets/00189183 [14:37:34]OFD Sender: To server: pG, [14:37:34]CommunicateWithHost lk.salyk.kg:30040 [14:37:34]ConnectInit lk.salyk.kg [14:37:34]Connected sock=10 [14:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 A5 07 01 4E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 B0 5B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF E2 02 00 35 04 06 00 4B 7A E0 E2 13 48 D1 E5 E6 E5 6E 14 7D E5 [14:37:34]Write to MH i2c: 01 00 00 6B 4D B8 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 07 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 07 00 6B 4D 00 00 00 00 00 60 0C 2B [14:37:34]RasterBufferAndPrint [14:37:34]line [14:37:34]line [14:37:34]line [14:37:34]line [14:37:34]line [14:37:34]written 0, free lines is 3172 [14:37:34]MH_Cut [14:37:34]Write to MH i2c: D1 01 00 72 4D 01 91 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: D1 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: D1 01 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: D1 01 00 72 4D 00 90 [14:37:34]Write to MH i2c: 01 00 00 73 4D C0 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D2 9B 47 00 C2 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 39 36 35 33 34 30 10 04 04 00 FF E2 02 00 F4 03 04 00 97 05 1A 67 B6 04 01 00 00 BE 51 C0 0D 3E 7C 49 2E [14:37:34]CommunicateWithHost err = 0 [14:37:34]CheckOFDResponse [14:37:34]1017 (14) - 77093643461234 [14:37:34]1041 (16) - 0000000000965340 [14:37:34]1040 (4) - 189183 [14:37:34]1012 (4) - 24.10.2024 08:30 [14:37:34]1206 (1) - 0 [14:37:34]OFD Sender: Remove packet 189183 [14:37:34]ProducePacketName [14:37:34]name=ofd_packets/00189183 [14:37:34]NVStorageDeleteData [14:37:35]OFD Sender: No OFD packet to send [14:37:35]*** Cut start [14:37:35]*** Partial cut [14:37:35]*** CUTSNS_PIN = 1 [14:37:35]*** CUTSNS_PIN = 0 [14:37:36]*** Brake cut motor [14:37:36]Read from MH i2c: 01 [14:37:36]MH_I2C_Read... [14:37:36]*** Stop cut motor [14:37:36]*** Cut end [14:37:36]Read from MH i2c: 01 07 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 73 4D 00 00 00 00 00 FF 0F D5 [14:37:36]process_action close_receipt done [14:37:36]requested_data is exist [14:37:36]produce_requested_data [14:37:36]requested_item fm.sn is exist - process it [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 11 00 00 [14:37:36]Write to MH i2c: E2 08 00 74 4D 80 11 00 00 00 00 00 00 3B [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 17 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 17 00 74 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [14:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:37:36]wFMCommunicate OK [14:37:36]requested_item fd.num is exist - process it [14:37:36]SAM_PROTO_GetFieldsCounters [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 13 00 00 [14:37:36]Write to MH i2c: E2 08 00 75 4D 80 13 00 00 00 00 00 00 3E [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 62 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 62 00 75 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF E2 02 00 0E 04 04 00 CF 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 FB [14:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF E2 02 00 0E 04 04 00 CF 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 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_GetFieldsCounters done [14:37:36]requested_item shift.num is exist - process it [14:37:36]requested_item shift.opened is exist - process it [14:37:36]req_shift_opened [14:37:36]FM_GetShiftState [14:37:36]SAM_PROTO_GetShiftState [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 13 01 00 [14:37:36]Write to MH i2c: E2 08 00 76 4D 80 13 01 00 00 00 00 00 40 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 76 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1E [14:37:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_GetShiftState done [14:37:36]FM_GetShiftState done [14:37:36]req_shift_opened done [14:37:36]requested_item shift.open_date is exist - process it [14:37:36]req_shift_open_date [14:37:36]req_shift_open_date done [14:37:36]produce_requested_data done [14:37:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189183,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:37:36]process_action_free close_receipt [14:37:36]json_value_free [14:37:36]json_value_free done [14:37:36]process_json_proto returns [14:37:36]Send response to host [14:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189183,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:37:36]free response buf [14:37:36]execute_script done [14:37:36]execute_script returns [14:37:36]free content buf [14:37:36]Sock 9.Close socket [14:37:36]Sock 9.Thread stoped [14:37:40]OFD Sender: No OFD packet to send [14:37:41]int [14:37:41]Write to MH i2c: 01 00 00 77 4D C4 [14:37:41]*** FLAG_PRN_PAP2 set [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 77 4D 00 02 00 00 00 FF 0F DB [14:37:41]state=0 [14:37:41]Cover opened [14:37:41]int [14:37:41]Write to MH i2c: 01 00 00 78 4D C5 [14:37:41]*** FLAG_PRN_PAP1 set [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 78 4D 00 03 00 00 00 FF 0F DD [14:37:41]state=3 [14:37:41]No paper [14:37:41]Cover opened [14:37:45]OFD Sender: No OFD packet to send [14:37:46]Write to MH i2c: 01 00 00 79 4D C6 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: 01 07 00 79 4D 00 03 00 00 00 FF 0F DE [14:37:46]state=3 [14:37:46]No paper [14:37:46]Cover opened [14:37:48]int [14:37:48]Write to MH i2c: 01 00 00 7A 4D C7 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 [14:37:48]MH_I2C_Read... [14:37:48]*** FLAG_PRN_PAP2 reset [14:37:48]*** FLAG_PRN_PAP1 reset [14:37:48]Read from MH i2c: 01 07 00 7A 4D 00 00 00 00 00 FF 0F DC [14:37:48]state=3 [14:37:48]Cover closed [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:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:51]accept exits with 8 [14:48:51]New connection [14:48:51]New thread 3067071844 created [14:48:51]Thread 3067215204 joined [14:48:51]Waiting for new connection... [14:48:51] Sock 8.Parse request [14:48:51]Sock 8.Check first char [14:48:51]Sock 8.First char is OK [14:48:51]request: POST /json_proto HTTP/1.0 [14:48:51]Method: POST [14:48:51]URL: /json_proto [14:48:51]Method is POST - this is cgi request [14:48:51]url: /json_proto [14:48:51]query_string will be loaded in cgi processing [14:48:51]execute_cgi json_proto POST (null) [14:48:51]execute_cgi path=json_proto method=POST [14:48:51]POST find Content-Length [14:48:51]Host: 172.17.42.131:8080 [14:48:51]Content-Length: 682 [14:48:51]Content-Type: application/json [14:48:51] [14:48:51]POST finish read [14:48:51]Found Content-Length = 682 [14:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:51]execute_script... [14: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)211249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:51]POST & json_proto [14:48:51]process_json_proto [14:48:51]json parsed OK: [14:48:51]protocol is kg_v1.0 [14:48:51]action value=close_receipt [14:48:51]process_action close_receipt [14:48:51]cmd_close_receipt [14:48:51]MH_GetDate [14:48:51]Write to MH i2c: F0 00 00 7B 4D B7 [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: F0 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: F0 09 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: F0 09 00 7B 4D 00 57 5E 1A 67 A0 18 CA 66 DE [14:48:51]GetLastDocTimeStamp 1729780656 [14:48:51]current date 1729781335 [14:48:51]FM_GetShiftState [14:48:51]SAM_PROTO_GetShiftState [14:48:51]wFMCommunicate request_size=4 [14:48:51]MH_SAM_APDU [14:48:51]CAPDU: 80 13 01 00 [14:48:51]Write to MH i2c: E2 08 00 7C 4D 80 13 01 00 00 00 00 00 46 [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:51]Read from MH i2c: E2 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 0E 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 0E 00 7C 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 24 [14:48:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:48:51]wFMCommunicate OK [14:48:51]SAM_PROTO_GetShiftState done [14:48:51]FM_GetShiftState done [14:48:51]opened in 1729728961 [14:48:51]opened+sec_in_day 1729815361 [14:48:51]quantity*price = 134000 [14:48:51]sum+1 = 134002 [14:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.30 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 257 24.10.2024 14:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189184 ФПД: 140540630668447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144855&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189184&fm=140540630668447&tin=02508201610067®Number=0000000000100030&sum=134000 [14:48:53]StoreToDocumentArchive [14:48:53]shift 463 fd 189184 [14:48:53]save to /storage/0463/doc_00189184 [14:48:53]save last doc name /storage/0463/doc_00189184 to /storage/kkm_last_doc_name [14:48:53]save OK [14:48:53]Clear old archive folders... [14:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:53]tlvbuf is 015EE2A0 [14:48:53]SAM_PROTO_ClearQueue [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 09 00 00 [14:48:53]Write to MH i2c: E2 08 00 89 4D 80 09 00 00 00 00 00 00 48 [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [14:48:53]RAPDU: 90 00 [14:48:53]wFMCommunicate OK [14:48:53]SAM_PROTO_ClearQueue done [14:48:53]KKMCreateOFDPacket [14:48:53]OFDProtocolAddRootSTLVToBuf [14:48:53]FM_MakeSignedData [14:48:53]FM_MakeSignedData [14:48:53]SAM_PROTO_SignData [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 0D 01 02 [14:48:53]Write to MH i2c: E2 08 00 8A 4D 80 0D 01 02 00 00 00 00 50 [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 8A 4D 00 90 00 4B [14:48:53]RAPDU: 90 00 [14:48:53]wFMCommunicate OK [14:48:53]wFMCommunicate request_size=255 [14:48:53]MH_SAM_APDU [14: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 33 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 57 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E3 02 00 35 04 06 00 7F [14:48:53]Write to MH i2c: E2 02 01 8B 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 33 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 57 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E3 02 00 35 04 06 00 7F 00 00 5D [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]OFD Sender: No OFD packet to send [14:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 8B 4D 00 90 00 4C [14:48:53]RAPDU: 90 00 [14:48:53]wFMCommunicate OK [14:48:53]wFMCommunicate request_size=10 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 0D 02 02 05 D2 2A 5E 14 9F [14:48:53]Write to MH i2c: E2 0D 00 8C 4D 80 0D 02 02 05 00 D2 2A 5E 14 9F 00 00 6A [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 03 00 8C 4D 00 90 00 4D [14:48:53]RAPDU: 90 00 [14:48:53]wFMCommunicate OK [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 0D 03 02 [14:48:53]Write to MH i2c: E2 08 00 8D 4D 80 0D 03 02 00 00 00 00 55 [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 0B 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 0B 00 8D 4D 00 08 E0 54 9B BF BD 27 D6 90 00 A6 [14:48:53]RAPDU: 08 E0 54 9B BF BD 27 D6 90 00 [14:48:53]wFMCommunicate OK [14:48:53]SAM_PROTO_SignData done [14:48:53]FM_MakeSignedData done [14:48:53]CreateOFDProtocolMessage [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 11 00 00 [14:48:53]Write to MH i2c: E2 08 00 8E 4D 80 11 00 00 00 00 00 00 55 [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 17 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 17 00 8E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [14:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:53]wFMCommunicate OK [14:48:53]CreateOFDProtocolMessage done [14:48:53]OFDSenderStorePacket 189184 [14:48:53]StoreOFDPacket docnum=189184 [14:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 34 07 01 FB 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 33 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 57 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E3 02 00 35 04 06 00 7F D2 2A 5E 14 9F 08 E0 54 9B BF BD 27 D6 [14:48:53]CheckFolder [14:48:53]dirname=/storage/ofd_packets [14:48:53]CheckFolder done [14:48:53]ProducePacketName [14:48:53]name=ofd_packets/00189184 [14:48:53]NVStorageSaveData ofd_packets/00189184 [14:48:53]File name is /storage/ofd_packets/00189184 [14:48:53]Write 301 bytes [14:48:53]NVStorageSaveData done [14:48:53]OFDSenderStorePacket done [14:48:53]KKMCreateOFDPacket done [14:48:53]NVStorageSaveData kkm_last_timestamp [14:48:53]File name is /storage/kkm_last_timestamp [14:48:53]Write 4 bytes [14:48:53]NVStorageSaveData done [14:48:53]ExternCall_PrintAddStr [14:48:53]wPrintStart [14:48:53]Write to MH i2c: 01 00 00 8F 4D DC [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: 01 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: 01 07 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: 01 07 00 8F 4D 00 00 00 00 00 FF 0F F1 [14:48:53]RasterBufferAndPrint [14:48:53]line Счет N : (1)211249 [14:48:53]line ИНН: 02508201610067 [14:48:53]line Контрольно-Кассовый Чек [14:48:53]line ПРОДАЖА [14:48:53]line ТРК (МРК, ГНК) : 32 [14:48:53]line Товар: 2710124130 [14:48:53]line Аи-92-К-3 [14:48:53]line 20.030 * 66.90 [14:48:53]line = 1340.01 [14:48:53]line НДС 12% НСП 1% [14:48:53]line > о реализуемом товаре [14:48:53]line ОКРУГЛЕНИЕ: -0.01 [14:48:53]line ИТОГО: 1340.00 [14:48:53]line Внесено: 1340.00 [14:48:53]line СДАЧА: 0.00 [14:48:53]line НСП 1% : 11.86 [14:48:53]line НДС 12% : 142.30 [14:48:53]line Наличными: 1340.00 [14:48:53]line Безнал.: 0.00 [14:48:53]line Место: АЗС № 86 "Партнер Нефть" [14:48:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:48:53]line СНО: Общий режим [14:48:53]line Чек 257 24.10.2024 14:48 [14:48:53]line Смена: 463 ФФД: 1.0 [14:48:53]line ЗНМ: 0300000155 [14:48:53]line РНМ: 0000000000100030 [14:48:53]line Версия ККМ: 001 [14:48:53]line ФМ: 0000000000965340 [14:48:53]line ФД: 189184 [14:48:53]line ФПД: 140540630668447 [14:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144855&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189184&fm=140540630668447&tin=02508201610067®Number=0000000000100030&sum=134000 [14:48:53]written 0, free lines is 4095 [14:48:53]OFD Sender: Processing packet 189184 [packets to send 1062, broken 1061] [14:48:53]ProducePacketName [14:48:53]name=ofd_packets/00189184 [14:48:53]OFD Sender: To server: pG, [14:48:53]CommunicateWithHost lk.salyk.kg:30040 [14:48:53]ConnectInit lk.salyk.kg [14:48:53]Connected sock=10 [14:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 34 07 01 FB 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 33 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 70 0B 02 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 57 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E3 02 00 35 04 06 00 7F D2 2A 5E 14 9F 08 E0 54 9B BF BD 27 D6 [14:48:54]Write to MH i2c: 01 00 00 BA 4D 07 [14:48:54]Write i2c OK [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: 01 [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: 01 07 00 [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: 01 07 00 BA 4D 00 00 00 00 00 57 0C 71 [14:48:54]RasterBufferAndPrint [14:48:54]line [14:48:54]line [14:48:54]line [14:48:54]line [14:48:54]line [14:48:54]written 0, free lines is 3162 [14:48:54]MH_Cut [14:48:54]Write to MH i2c: D1 01 00 C1 4D 01 E0 [14:48:54]Write i2c OK [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: D1 [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: D1 01 00 [14:48:54]MH_I2C_Read... [14:48:54]Read from MH i2c: D1 01 00 C1 4D 00 DF [14:48:54]Write to MH i2c: 01 00 00 C2 4D 0F [14:48:54]Write i2c OK [14:48:54]MH_I2C_Read... [14:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 52 47 00 14 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 39 36 35 33 34 30 10 04 04 00 00 E3 02 00 F4 03 04 00 3F 08 1A 67 B6 04 01 00 00 C5 29 C6 9B 98 40 01 E2 [14:48:54]CommunicateWithHost err = 0 [14:48:54]CheckOFDResponse [14:48:54]1017 (14) - 77093643461234 [14:48:54]1041 (16) - 0000000000965340 [14:48:54]1040 (4) - 189184 [14:48:54]1012 (4) - 24.10.2024 08:41 [14:48:54]1206 (1) - 0 [14:48:54]OFD Sender: Remove packet 189184 [14:48:54]ProducePacketName [14:48:54]name=ofd_packets/00189184 [14:48:54]NVStorageDeleteData [14:48:54]OFD Sender: No OFD packet to send [14:48:55]*** Cut start [14:48:55]*** Partial cut [14:48:55]*** CUTSNS_PIN = 1 [14:48:55]*** CUTSNS_PIN = 0 [14:48:55]*** Brake cut motor [14:48:55]Read from MH i2c: 01 [14:48:56]MH_I2C_Read... [14:48:56]*** Stop cut motor [14:48:56]*** Cut end [14:48:56]Read from MH i2c: 01 07 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: 01 07 00 C2 4D 00 00 00 00 00 FF 0F 24 [14:48:56]process_action close_receipt done [14:48:56]requested_data is exist [14:48:56]produce_requested_data [14:48:56]requested_item fm.sn is exist - process it [14:48:56]wFMCommunicate request_size=4 [14:48:56]MH_SAM_APDU [14:48:56]CAPDU: 80 11 00 00 [14:48:56]Write to MH i2c: E2 08 00 C3 4D 80 11 00 00 00 00 00 00 8A [14:48:56]Write i2c OK [14:48:56]MH_I2C_Read... [14:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:56]Read from MH i2c: E2 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 17 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 17 00 C3 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [14:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:48:56]wFMCommunicate OK [14:48:56]requested_item fd.num is exist - process it [14:48:56]SAM_PROTO_GetFieldsCounters [14:48:56]wFMCommunicate request_size=4 [14:48:56]MH_SAM_APDU [14:48:56]CAPDU: 80 13 00 00 [14:48:56]Write to MH i2c: E2 08 00 C4 4D 80 13 00 00 00 00 00 00 8D [14:48:56]Write i2c OK [14:48:56]MH_I2C_Read... [14:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:56]Read from MH i2c: E2 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 62 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 62 00 C4 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E3 02 00 0E 04 04 00 CF 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 4F [14:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E3 02 00 0E 04 04 00 CF 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 [14:48:56]wFMCommunicate OK [14:48:56]SAM_PROTO_GetFieldsCounters done [14:48:56]requested_item shift.num is exist - process it [14:48:56]requested_item shift.opened is exist - process it [14:48:56]req_shift_opened [14:48:56]FM_GetShiftState [14:48:56]SAM_PROTO_GetShiftState [14:48:56]wFMCommunicate request_size=4 [14:48:56]MH_SAM_APDU [14:48:56]CAPDU: 80 13 01 00 [14:48:56]Write to MH i2c: E2 08 00 C5 4D 80 13 01 00 00 00 00 00 8F [14:48:56]Write i2c OK [14:48:56]MH_I2C_Read... [14:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:56]Read from MH i2c: E2 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 0E 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 0E 00 C5 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6D [14:48:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:48:56]wFMCommunicate OK [14:48:56]SAM_PROTO_GetShiftState done [14:48:56]FM_GetShiftState done [14:48:56]req_shift_opened done [14:48:56]requested_item shift.open_date is exist - process it [14:48:56]req_shift_open_date [14:48:56]req_shift_open_date done [14:48:56]produce_requested_data done [14:48:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189184,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:48:56]process_action_free close_receipt [14:48:56]json_value_free [14:48:56]json_value_free done [14:48:56]process_json_proto returns [14:48:56]Send response to host [14:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189184,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:48:56]free response buf [14:48:56]execute_script done [14:48:56]execute_script returns [14:48:56]free content buf [14:48:56]Sock 8.Close socket [14:48:56]Sock 8.Thread stoped [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:36]accept exits with 9 [14:49:36]New connection [14:49:36]New thread 3067215204 created [14:49:36]Thread 3067071844 joined [14:49:36]Waiting for new connection... [14:49:36] Sock 9.Parse request [14:49:36]Sock 9.Check first char [14:49:36]Sock 9.First char is OK [14:49:36]request: POST /json_proto HTTP/1.0 [14:49:36]Method: POST [14:49:36]URL: /json_proto [14:49:36]Method is POST - this is cgi request [14:49:36]url: /json_proto [14:49:36]query_string will be loaded in cgi processing [14:49:36]execute_cgi json_proto POST (null) [14:49:36]execute_cgi path=json_proto method=POST [14:49:36]POST find Content-Length [14:49:36]Host: 172.17.42.131:8080 [14:49:36]Content-Length: 677 [14:49:36]Content-Type: application/json [14:49:36] [14:49:36]POST finish read [14:49:36]Found Content-Length = 677 [14:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [14:49:36]execute_script... [14:49: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)211251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [14:49:36]POST & json_proto [14:49:36]process_json_proto [14:49:36]json parsed OK: [14:49:36]protocol is kg_v1.0 [14:49:36]action value=close_receipt [14:49:36]process_action close_receipt [14:49:36]cmd_close_receipt [14:49:36]MH_GetDate [14:49:36]Write to MH i2c: F0 00 00 C6 4D 02 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: F0 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: F0 09 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: F0 09 00 C6 4D 00 84 5E 1A 67 A0 18 CA 66 56 [14:49:36]GetLastDocTimeStamp 1729781335 [14:49:36]current date 1729781380 [14:49:36]FM_GetShiftState [14:49:36]SAM_PROTO_GetShiftState [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 13 01 00 [14:49:36]Write to MH i2c: E2 08 00 C7 4D 80 13 01 00 00 00 00 00 91 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 C7 4D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6F [14:49:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_GetShiftState done [14:49:36]FM_GetShiftState done [14:49:36]opened in 1729728961 [14:49:36]opened+sec_in_day 1729815361 [14:49:36]quantity*price = 30038 [14:49:36]sum+1 = 30039 [14:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 258 24.10.2024 14:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189185 ФПД: 34166454914062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189185&fm=34166454914062&tin=02508201610067®Number=0000000000100030&sum=30000 [14:49:37]StoreToDocumentArchive [14:49:37]shift 463 fd 189185 [14:49:37]save to /storage/0463/doc_00189185 [14:49:37]save last doc name /storage/0463/doc_00189185 to /storage/kkm_last_doc_name [14:49:37]save OK [14:49:37]Clear old archive folders... [14:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:37]tlvbuf is 016760B0 [14:49:37]SAM_PROTO_ClearQueue [14:49:37]wFMCommunicate request_size=4 [14:49:37]MH_SAM_APDU [14:49:37]CAPDU: 80 09 00 00 [14:49:37]Write to MH i2c: E2 08 00 D4 4D 80 09 00 00 00 00 00 00 93 [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 D4 4D 00 90 00 95 [14:49:38]RAPDU: 90 00 [14:49:38]wFMCommunicate OK [14:49:38]SAM_PROTO_ClearQueue done [14:49:38]KKMCreateOFDPacket [14:49:38]OFDProtocolAddRootSTLVToBuf [14:49:38]FM_MakeSignedData [14:49:38]FM_MakeSignedData [14:49:38]SAM_PROTO_SignData [14:49:38]wFMCommunicate request_size=4 [14:49:38]MH_SAM_APDU [14:49:38]CAPDU: 80 0D 01 02 [14:49:38]Write to MH i2c: E2 08 00 D5 4D 80 0D 01 02 00 00 00 00 9B [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 D5 4D 00 90 00 96 [14:49:38]RAPDU: 90 00 [14:49:38]wFMCommunicate OK [14:49:38]wFMCommunicate request_size=255 [14:49:38]MH_SAM_APDU [14: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 02 01 00 00 F4 03 04 00 84 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E3 02 00 35 04 06 00 1F [14:49:38]Write to MH i2c: E2 02 01 D6 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 02 01 00 00 F4 03 04 00 84 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E3 02 00 35 04 06 00 1F 00 00 3D [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 D6 4D 00 90 00 97 [14:49:38]RAPDU: 90 00 [14:49:38]wFMCommunicate OK [14:49:38]wFMCommunicate request_size=10 [14:49:38]MH_SAM_APDU [14:49:38]CAPDU: 80 0D 02 02 05 12 FF 68 8C 0E [14:49:38]Write to MH i2c: E2 0D 00 D7 4D 80 0D 02 02 05 00 12 FF 68 8C 0E 00 00 BB [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 03 00 D7 4D 00 90 00 98 [14:49:38]RAPDU: 90 00 [14:49:38]wFMCommunicate OK [14:49:38]wFMCommunicate request_size=4 [14:49:38]MH_SAM_APDU [14:49:38]CAPDU: 80 0D 03 02 [14:49:38]Write to MH i2c: E2 08 00 D8 4D 80 0D 03 02 00 00 00 00 A0 [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 0B 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 0B 00 D8 4D 00 0C 79 3F DF 5D 21 B7 58 90 00 D1 [14:49:38]RAPDU: 0C 79 3F DF 5D 21 B7 58 90 00 [14:49:38]wFMCommunicate OK [14:49:38]SAM_PROTO_SignData done [14:49:38]FM_MakeSignedData done [14:49:38]CreateOFDProtocolMessage [14:49:38]wFMCommunicate request_size=4 [14:49:38]MH_SAM_APDU [14:49:38]CAPDU: 80 11 00 00 [14:49:38]Write to MH i2c: E2 08 00 D9 4D 80 11 00 00 00 00 00 00 A0 [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 17 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 17 00 D9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [14:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:38]wFMCommunicate OK [14:49:38]CreateOFDProtocolMessage done [14:49:38]OFDSenderStorePacket 189185 [14:49:38]StoreOFDPacket docnum=189185 [14:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 D5 07 01 71 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 02 01 00 00 F4 03 04 00 84 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E3 02 00 35 04 06 00 1F 12 FF 68 8C 0E 0C 79 3F DF 5D 21 B7 58 [14:49:38]CheckFolder [14:49:38]dirname=/storage/ofd_packets [14:49:38]CheckFolder done [14:49:38]ProducePacketName [14:49:38]name=ofd_packets/00189185 [14:49:38]NVStorageSaveData ofd_packets/00189185 [14:49:38]File name is /storage/ofd_packets/00189185 [14:49:38]Write 301 bytes [14:49:38]NVStorageSaveData done [14:49:38]OFDSenderStorePacket done [14:49:38]KKMCreateOFDPacket done [14:49:38]NVStorageSaveData kkm_last_timestamp [14:49:38]File name is /storage/kkm_last_timestamp [14:49:38]Write 4 bytes [14:49:38]NVStorageSaveData done [14:49:38]ExternCall_PrintAddStr [14:49:38]wPrintStart [14:49:38]Write to MH i2c: 01 00 00 DA 4D 27 [14:49:38]Write i2c OK [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: 01 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: 01 07 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: 01 07 00 DA 4D 00 00 00 00 00 FF 0F 3C [14:49:38]RasterBufferAndPrint [14:49:38]line Счет N : (1)211251 [14:49:38]line ИНН: 02508201610067 [14:49:38]line Контрольно-Кассовый Чек [14:49:38]line ПРОДАЖА [14:49:38]line ТРК (МРК, ГНК) : 42 [14:49:38]line Товар: 2710124130 [14:49:38]line Аи-92-К-3 [14:49:38]line 4.490 * 66.90 [14:49:38]line = 300.38 [14:49:38]line НДС 12% НСП 1% [14:49:38]line > о реализуемом товаре [14:49:38]line ОКРУГЛЕНИЕ: -0.38 [14:49:38]line ИТОГО: 300.00 [14:49:38]line Внесено: 300.00 [14:49:38]line СДАЧА: 0.00 [14:49:38]line НСП 1% : 2.66 [14:49:38]line НДС 12% : 31.90 [14:49:38]line Наличными: 300.00 [14:49:38]line Безнал.: 0.00 [14:49:38]line Место: АЗС № 86 "Партнер Нефть" [14:49:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:49:38]line СНО: Общий режим [14:49:38]line Чек 258 24.10.2024 14:49 [14:49:38]line Смена: 463 ФФД: 1.0 [14:49:38]line ЗНМ: 0300000155 [14:49:38]line РНМ: 0000000000100030 [14:49:38]line Версия ККМ: 001 [14:49:38]line ФМ: 0000000000965340 [14:49:38]line ФД: 189185 [14:49:38]line ФПД: 34166454914062 [14:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189185&fm=34166454914062&tin=02508201610067®Number=0000000000100030&sum=30000 [14:49:38]OFD Sender: Processing packet 189185 [packets to send 1062, broken 1061] [14:49:38]ProducePacketName [14:49:38]name=ofd_packets/00189185 [14:49:38]OFD Sender: To server: pG, [14:49:38]CommunicateWithHost lk.salyk.kg:30040 [14:49:38]ConnectInit lk.salyk.kg [14:49:38]written 0, free lines is 4095 [14:49:39]Connected sock=10 [14:49:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 D5 07 01 71 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 02 01 00 00 F4 03 04 00 84 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E3 02 00 35 04 06 00 1F 12 FF 68 8C 0E 0C 79 3F DF 5D 21 B7 58 [14:49:39]Write to MH i2c: 01 00 00 05 4E 53 [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: 01 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: 01 07 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: 01 07 00 05 4E 00 00 00 00 00 5A 0C C0 [14:49:39]RasterBufferAndPrint [14:49:39]line [14:49:39]line [14:49:39]line [14:49:39]line [14:49:39]line [14:49:39]written 0, free lines is 3166 [14:49:39]MH_Cut [14:49:39]Write to MH i2c: D1 01 00 0C 4E 01 2C [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: D1 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: D1 01 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: D1 01 00 0C 4E 00 2B [14:49:39]Write to MH i2c: 01 00 00 0D 4E 5B [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 EE 47 00 B7 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 39 36 35 33 34 30 10 04 04 00 01 E3 02 00 F4 03 04 00 6C 08 1A 67 B6 04 01 00 00 36 24 8B 6D E1 01 6A C9 [14:49:39]CommunicateWithHost err = 0 [14:49:39]CheckOFDResponse [14:49:39]1017 (14) - 77093643461234 [14:49:39]1041 (16) - 0000000000965340 [14:49:39]1040 (4) - 189185 [14:49:39]1012 (4) - 24.10.2024 08:42 [14:49:39]1206 (1) - 0 [14:49:39]OFD Sender: Remove packet 189185 [14:49:39]ProducePacketName [14:49:39]name=ofd_packets/00189185 [14:49:39]NVStorageDeleteData [14:49:39]OFD Sender: No OFD packet to send [14:49:40]*** Cut start [14:49:40]*** Partial cut [14:49:40]*** CUTSNS_PIN = 1 [14:49:40]*** CUTSNS_PIN = 0 [14:49:40]*** Brake cut motor [14:49:41]Read from MH i2c: 01 [14:49:41]MH_I2C_Read... [14:49:41]*** Stop cut motor [14:49:41]*** Cut end [14:49:41]Read from MH i2c: 01 07 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 07 00 0D 4E 00 00 00 00 00 FF 0F 70 [14:49:41]process_action close_receipt done [14:49:41]requested_data is exist [14:49:41]produce_requested_data [14:49:41]requested_item fm.sn is exist - process it [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 11 00 00 [14:49:41]Write to MH i2c: E2 08 00 0E 4E 80 11 00 00 00 00 00 00 D6 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 17 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 17 00 0E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [14:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:41]wFMCommunicate OK [14:49:41]requested_item fd.num is exist - process it [14:49:41]SAM_PROTO_GetFieldsCounters [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 13 00 00 [14:49:41]Write to MH i2c: E2 08 00 0F 4E 80 13 00 00 00 00 00 00 D9 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 62 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 62 00 0F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E3 02 00 0E 04 04 00 CF 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 9F [14:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E3 02 00 0E 04 04 00 CF 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 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_GetFieldsCounters done [14:49:41]requested_item shift.num is exist - process it [14:49:41]requested_item shift.opened is exist - process it [14:49:41]req_shift_opened [14:49:41]FM_GetShiftState [14:49:41]SAM_PROTO_GetShiftState [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 13 01 00 [14:49:41]Write to MH i2c: E2 08 00 10 4E 80 13 01 00 00 00 00 00 DB [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 0E 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 0E 00 10 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B9 [14:49:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_GetShiftState done [14:49:41]FM_GetShiftState done [14:49:41]req_shift_opened done [14:49:41]requested_item shift.open_date is exist - process it [14:49:41]req_shift_open_date [14:49:41]req_shift_open_date done [14:49:41]produce_requested_data done [14:49:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189185,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:49:41]process_action_free close_receipt [14:49:41]json_value_free [14:49:41]json_value_free done [14:49:41]process_json_proto returns [14:49:41]Send response to host [14:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189185,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:49:41]free response buf [14:49:41]execute_script done [14:49:41]execute_script returns [14:49:41]free content buf [14:49:41]Sock 9.Close socket [14:49:41]Sock 9.Thread stoped [14:49:44]OFD Sender: No OFD packet to send [14:49:46]accept exits with 8 [14:49:46]New connection [14:49:46]New thread 3067071844 created [14:49:46]Thread 3067215204 joined [14:49:46]Waiting for new connection... [14:49:46] Sock 8.Parse request [14:49:46]Sock 8.Check first char [14:49:46]Sock 8.First char is OK [14:49:46]request: POST /json_proto HTTP/1.0 [14:49:46]Method: POST [14:49:46]URL: /json_proto [14:49:46]Method is POST - this is cgi request [14:49:46]url: /json_proto [14:49:46]query_string will be loaded in cgi processing [14:49:46]execute_cgi json_proto POST (null) [14:49:46]execute_cgi path=json_proto method=POST [14:49:46]POST find Content-Length [14:49:46]Host: 172.17.42.131:8080 [14:49:46]Content-Length: 688 [14:49:46]Content-Type: application/json [14:49:46] [14:49:46]POST finish read [14:49:46]Found Content-Length = 688 [14:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [14:49:46]execute_script... [14:49: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)211250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [14:49:46]POST & json_proto [14:49:46]process_json_proto [14:49:46]json parsed OK: [14:49:46]protocol is kg_v1.0 [14:49:46]action value=close_receipt [14:49:46]process_action close_receipt [14:49:46]cmd_close_receipt [14:49:46]MH_GetDate [14:49:46]Write to MH i2c: F0 00 00 11 4E 4E [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: F0 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: F0 09 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: F0 09 00 11 4E 00 8E 5E 1A 67 A0 18 CA 66 AC [14:49:46]GetLastDocTimeStamp 1729781380 [14:49:46]current date 1729781390 [14:49:46]FM_GetShiftState [14:49:46]SAM_PROTO_GetShiftState [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 13 01 00 [14:49:46]Write to MH i2c: E2 08 00 12 4E 80 13 01 00 00 00 00 00 DD [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 0E 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 0E 00 12 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BB [14:49:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:49:46]wFMCommunicate OK [14:49:46]SAM_PROTO_GetShiftState done [14:49:46]FM_GetShiftState done [14:49:46]opened in 1729728961 [14:49:46]opened+sec_in_day 1729815361 [14:49:46]quantity*price = 200025 [14:49:46]sum+1 = 200026 [14:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 259 24.10.2024 14:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189186 ФПД: 233110076302345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189186&fm=233110076302345&tin=02508201610067®Number=0000000000100030&sum=200000 [14:49:47]StoreToDocumentArchive [14:49:47]shift 463 fd 189186 [14:49:47]save to /storage/0463/doc_00189186 [14:49:47]save last doc name /storage/0463/doc_00189186 to /storage/kkm_last_doc_name [14:49:47]save OK [14:49:47]Clear old archive folders... [14:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:49:47]tlvbuf is 014B46D0 [14:49:47]SAM_PROTO_ClearQueue [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 09 00 00 [14:49:47]Write to MH i2c: E2 08 00 1F 4E 80 09 00 00 00 00 00 00 DF [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 1F 4E 00 90 00 E1 [14:49:47]RAPDU: 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_ClearQueue done [14:49:47]KKMCreateOFDPacket [14:49:47]OFDProtocolAddRootSTLVToBuf [14:49:47]FM_MakeSignedData [14:49:47]FM_MakeSignedData [14:49:47]SAM_PROTO_SignData [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 0D 01 02 [14:49:47]Write to MH i2c: E2 08 00 20 4E 80 0D 01 02 00 00 00 00 E7 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 03 00 20 4E 00 90 00 E2 [14:49:47]RAPDU: 90 00 [14:49:47]wFMCommunicate OK [14:49:47]wFMCommunicate request_size=255 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 01 00 00 F4 03 04 00 8E 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E3 02 [14:49:47]Write to MH i2c: E2 02 01 21 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 01 00 00 F4 03 04 00 8E 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E3 02 00 00 B0 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 21 4E 00 90 00 E3 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=16 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D4 03 2B 4A A4 09 [14:49:48]Write to MH i2c: E2 13 00 22 4E 80 0D 02 02 0B 00 00 35 04 06 00 D4 03 2B 4A A4 09 00 00 38 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 03 00 22 4E 00 90 00 E4 [14:49:48]RAPDU: 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 0D 03 02 [14:49:48]Write to MH i2c: E2 08 00 23 4E 80 0D 03 02 00 00 00 00 EC [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0B 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0B 00 23 4E 00 B9 CA 6A 94 AB 8D 4A 6E 90 00 5E [14:49:48]RAPDU: B9 CA 6A 94 AB 8D 4A 6E 90 00 [14:49:48]wFMCommunicate OK [14:49:48]SAM_PROTO_SignData done [14:49:48]FM_MakeSignedData done [14:49:48]CreateOFDProtocolMessage [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 11 00 00 [14:49:48]Write to MH i2c: E2 08 00 24 4E 80 11 00 00 00 00 00 00 EC [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 17 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 17 00 24 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [14:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:48]wFMCommunicate OK [14:49:48]CreateOFDProtocolMessage done [14:49:48]OFDSenderStorePacket 189186 [14:49:48]StoreOFDPacket docnum=189186 [14:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9E EC 0D 01 4D 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 01 00 00 F4 03 04 00 8E 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E3 02 00 35 04 06 00 D4 03 2B 4A A4 09 B9 CA 6A 94 AB 8D 4A 6E [14:49:48]CheckFolder [14:49:48]dirname=/storage/ofd_packets [14:49:48]CheckFolder done [14:49:48]ProducePacketName [14:49:48]name=ofd_packets/00189186 [14:49:48]NVStorageSaveData ofd_packets/00189186 [14:49:48]File name is /storage/ofd_packets/00189186 [14:49:48]Write 307 bytes [14:49:48]NVStorageSaveData done [14:49:48]OFDSenderStorePacket done [14:49:48]KKMCreateOFDPacket done [14:49:48]NVStorageSaveData kkm_last_timestamp [14:49:48]File name is /storage/kkm_last_timestamp [14:49:48]Write 4 bytes [14:49:48]NVStorageSaveData done [14:49:48]ExternCall_PrintAddStr [14:49:48]wPrintStart [14:49:48]Write to MH i2c: 01 00 00 25 4E 73 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 25 4E 00 00 00 00 00 FF 0F 88 [14:49:48]RasterBufferAndPrint [14:49:48]line Счет N : (1)211250 [14:49:48]line ИНН: 02508201610067 [14:49:48]line Контрольно-Кассовый Чек [14:49:48]line ПРОДАЖА [14:49:48]line ТРК (МРК, ГНК) : 21 [14:49:48]line Товар: 2710194210 [14:49:48]line D-ENERGY ДТ-К-5 [14:49:48]line 25.910 * 77.20 [14:49:48]line = 2000.25 [14:49:48]line НДС 12% НСП 1% [14:49:48]line > о реализуемом товаре [14:49:48]line ОКРУГЛЕНИЕ: -0.25 [14:49:48]line ИТОГО: 2000.00 [14:49:48]line Внесено: 2000.00 [14:49:48]line СДАЧА: 0.00 [14:49:48]line НСП 1% : 17.70 [14:49:48]line НДС 12% : 212.42 [14:49:48]line Наличными: 2000.00 [14:49:48]line Безнал.: 0.00 [14:49:48]line Место: АЗС № 86 "Партнер Нефть" [14:49:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:49:48]line СНО: Общий режим [14:49:48]line Чек 259 24.10.2024 14:49 [14:49:48]line Смена: 463 ФФД: 1.0 [14:49:48]line ЗНМ: 0300000155 [14:49:48]line РНМ: 0000000000100030 [14:49:48]line Версия ККМ: 001 [14:49:48]line ФМ: 0000000000965340 [14:49:48]line ФД: 189186 [14:49:48]line ФПД: 233110076302345 [14:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189186&fm=233110076302345&tin=02508201610067®Number=0000000000100030&sum=200000 [14:49:48]written 0, free lines is 4095 [14:49:48]OFD Sender: Processing packet 189186 [packets to send 1062, broken 1061] [14:49:48]ProducePacketName [14:49:48]name=ofd_packets/00189186 [14:49:48]OFD Sender: To server: pG, [14:49:48]CommunicateWithHost lk.salyk.kg:30040 [14:49:48]ConnectInit lk.salyk.kg [14:49:48]Connected sock=10 [14:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9E EC 0D 01 4D 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 01 00 00 F4 03 04 00 8E 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E3 02 00 35 04 06 00 D4 03 2B 4A A4 09 B9 CA 6A 94 AB 8D 4A 6E [14:49:48]Write to MH i2c: 01 00 00 50 4E 9E [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: 01 07 00 50 4E 00 00 00 00 00 61 0C 12 [14:49:48]RasterBufferAndPrint [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]line [14:49:48]written 0, free lines is 3173 [14:49:48]MH_Cut [14:49:48]Write to MH i2c: D1 01 00 57 4E 01 77 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 01 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: D1 01 00 57 4E 00 76 [14:49:48]Write to MH i2c: 01 00 00 58 4E A6 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 C0 47 00 51 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 39 36 35 33 34 30 10 04 04 00 02 E3 02 00 F4 03 04 00 76 08 1A 67 B6 04 01 00 00 9E 0E 87 1E 1D C6 21 91 [14:49:48]CommunicateWithHost err = 0 [14:49:48]CheckOFDResponse [14:49:48]1017 (14) - 77093643461234 [14:49:48]1041 (16) - 0000000000965340 [14:49:48]1040 (4) - 189186 [14:49:48]1012 (4) - 24.10.2024 08:42 [14:49:48]1206 (1) - 0 [14:49:48]OFD Sender: Remove packet 189186 [14:49:48]ProducePacketName [14:49:48]name=ofd_packets/00189186 [14:49:48]NVStorageDeleteData [14:49:49]OFD Sender: No OFD packet to send [14:49:49]*** Cut start [14:49:49]*** Partial cut [14:49:49]*** CUTSNS_PIN = 1 [14:49:50]*** CUTSNS_PIN = 0 [14:49:50]*** Brake cut motor [14:49:50]Read from MH i2c: 01 [14:49:50]MH_I2C_Read... [14:49:50]*** Stop cut motor [14:49:50]*** Cut end [14:49:50]Read from MH i2c: 01 07 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: 01 07 00 58 4E 00 00 00 00 00 FF 0F BB [14:49:50]process_action close_receipt done [14:49:50]requested_data is exist [14:49:50]produce_requested_data [14:49:50]requested_item fm.sn is exist - process it [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 11 00 00 [14:49:50]Write to MH i2c: E2 08 00 59 4E 80 11 00 00 00 00 00 00 21 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 17 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 17 00 59 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [14:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:50]wFMCommunicate OK [14:49:50]requested_item fd.num is exist - process it [14:49:50]SAM_PROTO_GetFieldsCounters [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 13 00 00 [14:49:50]Write to MH i2c: E2 08 00 5A 4E 80 13 00 00 00 00 00 00 24 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 62 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 62 00 5A 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E3 02 00 0E 04 04 00 CF 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 EE [14:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E3 02 00 0E 04 04 00 CF 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 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetFieldsCounters done [14:49:50]requested_item shift.num is exist - process it [14:49:50]requested_item shift.opened is exist - process it [14:49:50]req_shift_opened [14:49:50]FM_GetShiftState [14:49:50]SAM_PROTO_GetShiftState [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 13 01 00 [14:49:50]Write to MH i2c: E2 08 00 5B 4E 80 13 01 00 00 00 00 00 26 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 5B 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 04 [14:49:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetShiftState done [14:49:50]FM_GetShiftState done [14:49:50]req_shift_opened done [14:49:50]requested_item shift.open_date is exist - process it [14:49:50]req_shift_open_date [14:49:50]req_shift_open_date done [14:49:50]produce_requested_data done [14:49:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189186,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:49:50]process_action_free close_receipt [14:49:50]json_value_free [14:49:50]json_value_free done [14:49:50]process_json_proto returns [14:49:50]Send response to host [14:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189186,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:49:50]free response buf [14:49:50]execute_script done [14:49:50]execute_script returns [14:49:50]free content buf [14:49:50]Sock 8.Close socket [14:49:50]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:17]accept exits with 9 [14:51:17]New connection [14:51:17]New thread 3067215204 created [14:51:17]Thread 3067071844 joined [14:51:17]Waiting for new connection... [14:51:17] Sock 9.Parse request [14:51:17]Sock 9.Check first char [14:51:17]Sock 9.First char is OK [14:51:17]request: POST /json_proto HTTP/1.0 [14:51:17]Method: POST [14:51:17]URL: /json_proto [14:51:17]Method is POST - this is cgi request [14:51:17]url: /json_proto [14:51:17]query_string will be loaded in cgi processing [14:51:17]execute_cgi json_proto POST (null) [14:51:17]execute_cgi path=json_proto method=POST [14:51:17]POST find Content-Length [14:51:17]Host: 172.17.42.131:8080 [14:51:17]Content-Length: 678 [14:51:17]Content-Type: application/json [14:51:17] [14:51:17]POST finish read [14:51:17]Found Content-Length = 678 [14:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:51:17]execute_script... [14:51: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)211252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:51:17]POST & json_proto [14:51:17]process_json_proto [14:51:17]json parsed OK: [14:51:17]protocol is kg_v1.0 [14:51:17]action value=close_receipt [14:51:17]process_action close_receipt [14:51:17]cmd_close_receipt [14:51:17]MH_GetDate [14:51:17]Write to MH i2c: F0 00 00 5C 4E 99 [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: F0 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: F0 09 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: F0 09 00 5C 4E 00 E9 5E 1A 67 A0 18 CA 66 52 [14:51:17]GetLastDocTimeStamp 1729781390 [14:51:17]current date 1729781481 [14:51:17]FM_GetShiftState [14:51:17]SAM_PROTO_GetShiftState [14:51:17]wFMCommunicate request_size=4 [14:51:17]MH_SAM_APDU [14:51:17]CAPDU: 80 13 01 00 [14:51:17]Write to MH i2c: E2 08 00 5D 4E 80 13 01 00 00 00 00 00 28 [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:17]Read from MH i2c: E2 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 0E 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 0E 00 5D 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 06 [14:51:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:51:17]wFMCommunicate OK [14:51:17]SAM_PROTO_GetShiftState done [14:51:17]FM_GetShiftState done [14:51:17]opened in 1729728961 [14:51:17]opened+sec_in_day 1729815361 [14:51:17]quantity*price = 80061 [14:51:17]sum+1 = 80063 [14:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 260 24.10.2024 14:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189187 ФПД: 75948955741751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145121&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189187&fm=75948955741751&tin=02508201610067®Number=0000000000100030&sum=80000 [14:51:18]StoreToDocumentArchive [14:51:18]shift 463 fd 189187 [14:51:18]save to /storage/0463/doc_00189187 [14:51:18]save last doc name /storage/0463/doc_00189187 to /storage/kkm_last_doc_name [14:51:18]save OK [14:51:18]Clear old archive folders... [14:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:18]tlvbuf is 0158AE90 [14:51:18]SAM_PROTO_ClearQueue [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 09 00 00 [14:51:18]Write to MH i2c: E2 08 00 6A 4E 80 09 00 00 00 00 00 00 2A [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 6A 4E 00 90 00 2C [14:51:18]RAPDU: 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_ClearQueue done [14:51:18]KKMCreateOFDPacket [14:51:18]OFDProtocolAddRootSTLVToBuf [14:51:18]FM_MakeSignedData [14:51:18]FM_MakeSignedData [14:51:18]SAM_PROTO_SignData [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 0D 01 02 [14:51:18]Write to MH i2c: E2 08 00 6B 4E 80 0D 01 02 00 00 00 00 32 [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 6B 4E 00 90 00 2D [14:51:18]RAPDU: 90 00 [14:51:18]wFMCommunicate OK [14:51:18]wFMCommunicate request_size=255 [14:51:18]MH_SAM_APDU [14:51: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 33 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 04 01 00 00 F4 03 04 00 E9 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E3 02 00 35 04 06 00 45 [14:51:18]Write to MH i2c: E2 02 01 6C 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 33 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 04 01 00 00 F4 03 04 00 E9 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E3 02 00 35 04 06 00 45 00 00 DC [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 6C 4E 00 90 00 2E [14:51:18]RAPDU: 90 00 [14:51:18]wFMCommunicate OK [14:51:18]wFMCommunicate request_size=10 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 0D 02 02 05 13 3E 87 2E 37 [14:51:18]Write to MH i2c: E2 0D 00 6D 4E 80 0D 02 02 05 00 13 3E 87 2E 37 00 00 7C [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 03 00 6D 4E 00 90 00 2F [14:51:18]RAPDU: 90 00 [14:51:18]wFMCommunicate OK [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 0D 03 02 [14:51:18]Write to MH i2c: E2 08 00 6E 4E 80 0D 03 02 00 00 00 00 37 [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0B 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0B 00 6E 4E 00 62 2B 2A 4E 20 90 E0 E8 90 00 B5 [14:51:18]RAPDU: 62 2B 2A 4E 20 90 E0 E8 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_SignData done [14:51:18]FM_MakeSignedData done [14:51:18]CreateOFDProtocolMessage [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 11 00 00 [14:51:18]Write to MH i2c: E2 08 00 6F 4E 80 11 00 00 00 00 00 00 37 [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 17 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 17 00 6F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [14:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:51:18]wFMCommunicate OK [14:51:18]CreateOFDProtocolMessage done [14:51:18]OFDSenderStorePacket 189187 [14:51:18]StoreOFDPacket docnum=189187 [14:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB 0F 07 01 BD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 04 01 00 00 F4 03 04 00 E9 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E3 02 00 35 04 06 00 45 13 3E 87 2E 37 62 2B 2A 4E 20 90 E0 E8 [14:51:18]CheckFolder [14:51:18]dirname=/storage/ofd_packets [14:51:18]CheckFolder done [14:51:18]ProducePacketName [14:51:18]name=ofd_packets/00189187 [14:51:18]NVStorageSaveData ofd_packets/00189187 [14:51:18]File name is /storage/ofd_packets/00189187 [14:51:18]Write 301 bytes [14:51:18]NVStorageSaveData done [14:51:18]OFDSenderStorePacket done [14:51:18]KKMCreateOFDPacket done [14:51:18]NVStorageSaveData kkm_last_timestamp [14:51:18]File name is /storage/kkm_last_timestamp [14:51:18]Write 4 bytes [14:51:18]NVStorageSaveData done [14:51:18]ExternCall_PrintAddStr [14:51:18]wPrintStart [14:51:18]Write to MH i2c: 01 00 00 70 4E BE [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: 01 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: 01 07 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: 01 07 00 70 4E 00 00 00 00 00 FF 0F D3 [14:51:18]RasterBufferAndPrint [14:51:18]line Счет N : (1)211252 [14:51:18]line ИНН: 02508201610067 [14:51:18]line Контрольно-Кассовый Чек [14:51:18]line ПРОДАЖА [14:51:18]line ТРК (МРК, ГНК) : 13 [14:51:18]line Товар: 2710124500 [14:51:18]line Аи-95-К-3 [14:51:18]line 10.790 * 74.20 [14:51:18]line = 800.62 [14:51:18]line НДС 12% НСП 1% [14:51:18]line > о реализуемом товаре [14:51:18]line ОКРУГЛЕНИЕ: -0.62 [14:51:18]line ИТОГО: 800.00 [14:51:18]line Внесено: 800.00 [14:51:18]line СДАЧА: 0.00 [14:51:18]line НСП 1% : 7.08 [14:51:18]line НДС 12% : 85.02 [14:51:18]line Наличными: 800.00 [14:51:18]line Безнал.: 0.00 [14:51:18]line Место: АЗС № 86 "Партнер Нефть" [14:51:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:51:18]line СНО: Общий режим [14:51:18]line Чек 260 24.10.2024 14:51 [14:51:18]line Смена: 463 ФФД: 1.0 [14:51:18]line ЗНМ: 0300000155 [14:51:18]line РНМ: 0000000000100030 [14:51:18]line Версия ККМ: 001 [14:51:18]line ФМ: 0000000000965340 [14:51:18]line ФД: 189187 [14:51:18]line ФПД: 75948955741751 [14:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145121&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189187&fm=75948955741751&tin=02508201610067®Number=0000000000100030&sum=80000 [14:51:18]written 0, free lines is 4095 [14:51:18]OFD Sender: Processing packet 189187 [packets to send 1062, broken 1061] [14:51:18]ProducePacketName [14:51:18]name=ofd_packets/00189187 [14:51:18]OFD Sender: To server: pG, [14:51:18]CommunicateWithHost lk.salyk.kg:30040 [14:51:18]ConnectInit lk.salyk.kg [14:51:19]Connected sock=11 [14:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB 0F 07 01 BD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 04 01 00 00 F4 03 04 00 E9 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E3 02 00 35 04 06 00 45 13 3E 87 2E 37 62 2B 2A 4E 20 90 E0 E8 [14:51:19]Write to MH i2c: 01 00 00 9B 4E E9 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 07 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: 01 07 00 9B 4E 00 00 00 00 00 61 0C 5D [14:51:19]RasterBufferAndPrint [14:51:19]line [14:51:19]line [14:51:19]line [14:51:19]line [14:51:19]line [14:51:19]written 0, free lines is 3173 [14:51:19]MH_Cut [14:51:19]Write to MH i2c: D1 01 00 A2 4E 01 C2 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: D1 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: D1 01 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: D1 01 00 A2 4E 00 C1 [14:51:19]Write to MH i2c: 01 00 00 A3 4E F1 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 92 47 00 48 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E3 02 00 F4 03 04 00 D0 08 1A 67 B6 04 01 00 00 ED 65 07 E4 18 83 A8 1E [14:51:19]CommunicateWithHost err = 0 [14:51:19]CheckOFDResponse [14:51:19]1017 (14) - 77093643461234 [14:51:19]1041 (16) - 0000000000965340 [14:51:19]1040 (4) - 189187 [14:51:19]1012 (4) - 24.10.2024 08:44 [14:51:19]1206 (1) - 0 [14:51:19]OFD Sender: Remove packet 189187 [14:51:19]ProducePacketName [14:51:19]name=ofd_packets/00189187 [14:51:19]NVStorageDeleteData [14:51:20]OFD Sender: No OFD packet to send [14:51:20]*** Cut start [14:51:20]*** Partial cut [14:51:20]*** CUTSNS_PIN = 1 [14:51:20]*** CUTSNS_PIN = 0 [14:51:20]*** Brake cut motor [14:51:21]Read from MH i2c: 01 [14:51:21]MH_I2C_Read... [14:51:21]*** Stop cut motor [14:51:21]*** Cut end [14:51:21]Read from MH i2c: 01 07 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: 01 07 00 A3 4E 00 00 00 00 00 FF 0F 06 [14:51:21]process_action close_receipt done [14:51:21]requested_data is exist [14:51:21]produce_requested_data [14:51:21]requested_item fm.sn is exist - process it [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 11 00 00 [14:51:21]Write to MH i2c: E2 08 00 A4 4E 80 11 00 00 00 00 00 00 6C [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 A4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [14:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:51:21]wFMCommunicate OK [14:51:21]requested_item fd.num is exist - process it [14:51:21]SAM_PROTO_GetFieldsCounters [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 00 00 [14:51:21]Write to MH i2c: E2 08 00 A5 4E 80 13 00 00 00 00 00 00 6F [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 A5 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E3 02 00 0E 04 04 00 CF 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 3D [14:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E3 02 00 0E 04 04 00 CF 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 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetFieldsCounters done [14:51:21]requested_item shift.num is exist - process it [14:51:21]requested_item shift.opened is exist - process it [14:51:21]req_shift_opened [14:51:21]FM_GetShiftState [14:51:21]SAM_PROTO_GetShiftState [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 01 00 [14:51:21]Write to MH i2c: E2 08 00 A6 4E 80 13 01 00 00 00 00 00 71 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 A6 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4F [14:51:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetShiftState done [14:51:21]FM_GetShiftState done [14:51:21]req_shift_opened done [14:51:21]requested_item shift.open_date is exist - process it [14:51:21]req_shift_open_date [14:51:21]req_shift_open_date done [14:51:21]produce_requested_data done [14:51:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189187,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:51:21]process_action_free close_receipt [14:51:21]json_value_free [14:51:21]json_value_free done [14:51:21]process_json_proto returns [14:51:21]Send response to host [14:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189187,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:51:21]free response buf [14:51:21]execute_script done [14:51:21]execute_script returns [14:51:21]free content buf [14:51:21]Sock 9.Close socket [14:51:21]Sock 9.Thread stoped [14:51:22]accept exits with 10 [14:51:22]New connection [14:51:22]New thread 3067071844 created [14:51:22]Thread 3067215204 joined [14:51:22]Waiting for new connection... [14:51:22] Sock 10.Parse request [14:51:22]Sock 10.Check first char [14:51:22]Sock 10.First char is OK [14:51:22]request: POST /json_proto HTTP/1.0 [14:51:22]Method: POST [14:51:22]URL: /json_proto [14:51:22]Method is POST - this is cgi request [14:51:22]url: /json_proto [14:51:22]query_string will be loaded in cgi processing [14:51:22]execute_cgi json_proto POST (null) [14:51:22]execute_cgi path=json_proto method=POST [14:51:22]POST find Content-Length [14:51:22]Host: 172.17.42.131:8080 [14:51:22]Content-Length: 682 [14:51:22]Content-Type: application/json [14:51:22] [14:51:22]POST finish read [14:51:22]Found Content-Length = 682 [14:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:22]execute_script... [14:51: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)211253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:22]POST & json_proto [14:51:22]process_json_proto [14:51:22]json parsed OK: [14:51:22]protocol is kg_v1.0 [14:51:22]action value=close_receipt [14:51:22]process_action close_receipt [14:51:22]cmd_close_receipt [14:51:22]MH_GetDate [14:51:22]Write to MH i2c: F0 00 00 A7 4E E4 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 09 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: F0 09 00 A7 4E 00 ED 5E 1A 67 A0 18 CA 66 A1 [14:51:22]GetLastDocTimeStamp 1729781481 [14:51:22]current date 1729781485 [14:51:22]FM_GetShiftState [14:51:22]SAM_PROTO_GetShiftState [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 13 01 00 [14:51:22]Write to MH i2c: E2 08 00 A8 4E 80 13 01 00 00 00 00 00 73 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0E 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0E 00 A8 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 51 [14:51:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:51:22]wFMCommunicate OK [14:51:22]SAM_PROTO_GetShiftState done [14:51:22]FM_GetShiftState done [14:51:22]opened in 1729728961 [14:51:22]opened+sec_in_day 1729815361 [14:51:22]quantity*price = 100015 [14:51:22]sum+1 = 100017 [14:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 261 24.10.2024 14:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189188 ФПД: 27446082901130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189188&fm=27446082901130&tin=02508201610067®Number=0000000000100030&sum=100000 [14:51:22]StoreToDocumentArchive [14:51:22]shift 463 fd 189188 [14:51:22]save to /storage/0463/doc_00189188 [14:51:22]save last doc name /storage/0463/doc_00189188 to /storage/kkm_last_doc_name [14:51:22]save OK [14:51:22]Clear old archive folders... [14:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:22]tlvbuf is 01657FD0 [14:51:22]SAM_PROTO_ClearQueue [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 09 00 00 [14:51:22]Write to MH i2c: E2 08 00 B5 4E 80 09 00 00 00 00 00 00 75 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:23]Read from MH i2c: E2 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 B5 4E 00 90 00 77 [14:51:23]RAPDU: 90 00 [14:51:23]wFMCommunicate OK [14:51:23]SAM_PROTO_ClearQueue done [14:51:23]KKMCreateOFDPacket [14:51:23]OFDProtocolAddRootSTLVToBuf [14:51:23]FM_MakeSignedData [14:51:23]FM_MakeSignedData [14:51:23]SAM_PROTO_SignData [14:51:23]wFMCommunicate request_size=4 [14:51:23]MH_SAM_APDU [14:51:23]CAPDU: 80 0D 01 02 [14:51:23]Write to MH i2c: E2 08 00 B6 4E 80 0D 01 02 00 00 00 00 7D [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:23]Read from MH i2c: E2 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 B6 4E 00 90 00 78 [14:51:23]RAPDU: 90 00 [14:51:23]wFMCommunicate OK [14:51:23]wFMCommunicate request_size=255 [14:51:23]MH_SAM_APDU [14:51: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 ED 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E3 02 00 35 04 06 00 18 [14:51:23]Write to MH i2c: E2 02 01 B7 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 ED 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E3 02 00 35 04 06 00 18 00 00 8D [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:23]Read from MH i2c: E2 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: E2 03 00 B7 4E 00 90 00 79 [14:51:23]RAPDU: 90 00 [14:51:23]wFMCommunicate OK [14:51:23]wFMCommunicate request_size=10 [14:51:23]MH_SAM_APDU [14:51:23]CAPDU: 80 0D 02 02 05 F6 4A 05 94 8A [14:51:23]Write to MH i2c: E2 0D 00 B8 4E 80 0D 02 02 05 00 F6 4A 05 94 8A 00 00 ED [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:24]Read from MH i2c: E2 03 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 03 00 B8 4E 00 90 00 7A [14:51:24]RAPDU: 90 00 [14:51:24]wFMCommunicate OK [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 0D 03 02 [14:51:24]Write to MH i2c: E2 08 00 B9 4E 80 0D 03 02 00 00 00 00 82 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0B 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0B 00 B9 4E 00 8A B7 59 B5 1B D4 1F B5 90 00 95 [14:51:24]RAPDU: 8A B7 59 B5 1B D4 1F B5 90 00 [14:51:24]wFMCommunicate OK [14:51:24]SAM_PROTO_SignData done [14:51:24]FM_MakeSignedData done [14:51:24]CreateOFDProtocolMessage [14:51:24]wFMCommunicate request_size=4 [14:51:24]MH_SAM_APDU [14:51:24]CAPDU: 80 11 00 00 [14:51:24]Write to MH i2c: E2 08 00 BA 4E 80 11 00 00 00 00 00 00 82 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 17 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 17 00 BA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [14:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:51:24]wFMCommunicate OK [14:51:24]CreateOFDProtocolMessage done [14:51:24]OFDSenderStorePacket 189188 [14:51:24]StoreOFDPacket docnum=189188 [14:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 B4 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 ED 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E3 02 00 35 04 06 00 18 F6 4A 05 94 8A 8A B7 59 B5 1B D4 1F B5 [14:51:24]CheckFolder [14:51:24]dirname=/storage/ofd_packets [14:51:24]CheckFolder done [14:51:24]ProducePacketName [14:51:24]name=ofd_packets/00189188 [14:51:24]NVStorageSaveData ofd_packets/00189188 [14:51:24]File name is /storage/ofd_packets/00189188 [14:51:24]Write 301 bytes [14:51:24]NVStorageSaveData done [14:51:24]OFDSenderStorePacket done [14:51:24]KKMCreateOFDPacket done [14:51:24]NVStorageSaveData kkm_last_timestamp [14:51:24]File name is /storage/kkm_last_timestamp [14:51:24]Write 4 bytes [14:51:24]NVStorageSaveData done [14:51:24]ExternCall_PrintAddStr [14:51:24]wPrintStart [14:51:24]Write to MH i2c: 01 00 00 BB 4E 09 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 BB 4E 00 00 00 00 00 FF 0F 1E [14:51:24]RasterBufferAndPrint [14:51:24]line Счет N : (1)211253 [14:51:24]line ИНН: 02508201610067 [14:51:24]line Контрольно-Кассовый Чек [14:51:24]line ПРОДАЖА [14:51:24]line ТРК (МРК, ГНК) : 32 [14:51:24]line Товар: 2710124130 [14:51:24]line Аи-92-К-3 [14:51:24]line 14.950 * 66.90 [14:51:24]line = 1000.16 [14:51:24]line НДС 12% НСП 1% [14:51:24]line > о реализуемом товаре [14:51:24]line ОКРУГЛЕНИЕ: -0.16 [14:51:24]line ИТОГО: 1000.00 [14:51:24]line Внесено: 1000.00 [14:51:24]line СДАЧА: 0.00 [14:51:24]line НСП 1% : 8.85 [14:51:24]line НДС 12% : 106.21 [14:51:24]line Наличными: 1000.00 [14:51:24]line Безнал.: 0.00 [14:51:24]line Место: АЗС № 86 "Партнер Нефть" [14:51:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:51:24]line СНО: Общий режим [14:51:24]line Чек 261 24.10.2024 14:51 [14:51:24]line Смена: 463 ФФД: 1.0 [14:51:24]line ЗНМ: 0300000155 [14:51:24]line РНМ: 0000000000100030 [14:51:24]line Версия ККМ: 001 [14:51:24]line ФМ: 0000000000965340 [14:51:24]line ФД: 189188 [14:51:24]line ФПД: 27446082901130 [14:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189188&fm=27446082901130&tin=02508201610067®Number=0000000000100030&sum=100000 [14:51:24]OFD Sender: Processing packet 189188 [packets to send 1062, broken 1061] [14:51:24]ProducePacketName [14:51:24]name=ofd_packets/00189188 [14:51:24]OFD Sender: To server: pG, [14:51:24]CommunicateWithHost lk.salyk.kg:30040 [14:51:24]ConnectInit lk.salyk.kg [14:51:24]written 0, free lines is 4095 [14:51:24]Connected sock=11 [14:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 B4 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 ED 5E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E3 02 00 35 04 06 00 18 F6 4A 05 94 8A 8A B7 59 B5 1B D4 1F B5 [14:51:24]Write to MH i2c: 01 00 00 E6 4E 34 [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: 01 07 00 E6 4E 00 00 00 00 00 92 0C D9 [14:51:24]RasterBufferAndPrint [14:51:24]line [14:51:24]line [14:51:24]line [14:51:24]line [14:51:24]line [14:51:24]written 0, free lines is 3228 [14:51:24]MH_Cut [14:51:24]Write to MH i2c: D1 01 00 ED 4E 01 0D [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: D1 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: D1 01 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: D1 01 00 ED 4E 00 0C [14:51:24]Write to MH i2c: 01 00 00 EE 4E 3C [14:51:24]Write i2c OK [14:51:24]MH_I2C_Read... [14:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F 5C 47 00 3D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E3 02 00 F4 03 04 00 D6 08 1A 67 B6 04 01 00 00 6F 59 95 60 24 68 2F 84 [14:51:25]CommunicateWithHost err = 0 [14:51:25]CheckOFDResponse [14:51:25]1017 (14) - 77093643461234 [14:51:25]1041 (16) - 0000000000965340 [14:51:25]1040 (4) - 189188 [14:51:25]1012 (4) - 24.10.2024 08:44 [14:51:25]1206 (1) - 0 [14:51:25]OFD Sender: Remove packet 189188 [14:51:25]ProducePacketName [14:51:25]name=ofd_packets/00189188 [14:51:25]NVStorageDeleteData [14:51:25]OFD Sender: No OFD packet to send [14:51:25]*** Cut start [14:51:25]*** Partial cut [14:51:25]*** CUTSNS_PIN = 1 [14:51:25]*** CUTSNS_PIN = 0 [14:51:26]*** Brake cut motor [14:51:26]Read from MH i2c: 01 [14:51:26]MH_I2C_Read... [14:51:26]*** Stop cut motor [14:51:26]*** Cut end [14:51:26]Read from MH i2c: 01 07 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: 01 07 00 EE 4E 00 00 00 00 00 FF 0F 51 [14:51:26]process_action close_receipt done [14:51:26]requested_data is exist [14:51:26]produce_requested_data [14:51:26]requested_item fm.sn is exist - process it [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 11 00 00 [14:51:26]Write to MH i2c: E2 08 00 EF 4E 80 11 00 00 00 00 00 00 B7 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 17 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 17 00 EF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [14:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:51:26]wFMCommunicate OK [14:51:26]requested_item fd.num is exist - process it [14:51:26]SAM_PROTO_GetFieldsCounters [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 13 00 00 [14:51:26]Write to MH i2c: E2 08 00 F0 4E 80 13 00 00 00 00 00 00 BA [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 62 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 62 00 F0 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E3 02 00 0E 04 04 00 CF 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 8C [14:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E3 02 00 0E 04 04 00 CF 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 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_GetFieldsCounters done [14:51:26]requested_item shift.num is exist - process it [14:51:26]requested_item shift.opened is exist - process it [14:51:26]req_shift_opened [14:51:26]FM_GetShiftState [14:51:26]SAM_PROTO_GetShiftState [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 13 01 00 [14:51:26]Write to MH i2c: E2 08 00 F1 4E 80 13 01 00 00 00 00 00 BC [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:26]Read from MH i2c: E2 0E 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 0E 00 F1 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9A [14:51:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_GetShiftState done [14:51:26]FM_GetShiftState done [14:51:26]req_shift_opened done [14:51:26]requested_item shift.open_date is exist - process it [14:51:26]req_shift_open_date [14:51:26]req_shift_open_date done [14:51:26]produce_requested_data done [14:51:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189188,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:51:26]process_action_free close_receipt [14:51:26]json_value_free [14:51:26]json_value_free done [14:51:26]process_json_proto returns [14:51:26]Send response to host [14:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189188,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:51:26]free response buf [14:51:26]execute_script done [14:51:26]execute_script returns [14:51:26]free content buf [14:51:26]Sock 10.Close socket [14:51:26]Sock 10.Thread stoped [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:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:52:59]accept exits with 9 [14:52:59]New connection [14:52:59]New thread 3067215204 created [14:52:59]Thread 3067071844 joined [14:52:59]Waiting for new connection... [14:52:59] Sock 9.Parse request [14:52:59]Sock 9.Check first char [14:52:59]Sock 9.First char is OK [14:52:59]request: POST /json_proto HTTP/1.0 [14:52:59]Method: POST [14:52:59]URL: /json_proto [14:52:59]Method is POST - this is cgi request [14:52:59]url: /json_proto [14:52:59]query_string will be loaded in cgi processing [14:52:59]execute_cgi json_proto POST (null) [14:52:59]execute_cgi path=json_proto method=POST [14:52:59]POST find Content-Length [14:52:59]Host: 172.17.42.131:8080 [14:52:59]Content-Length: 682 [14:52:59]Content-Type: application/json [14:52:59] [14:52:59]POST finish read [14:52:59]Found Content-Length = 682 [14:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]execute_script... [14:52: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)211254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]POST & json_proto [14:52:59]process_json_proto [14:52:59]json parsed OK: [14:52:59]protocol is kg_v1.0 [14:52:59]action value=close_receipt [14:52:59]process_action close_receipt [14:52:59]cmd_close_receipt [14:52:59]MH_GetDate [14:52:59]Write to MH i2c: F0 00 00 F2 4E 2F [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 F2 4E 00 4F 5F 1A 67 A0 18 CA 66 4F [14:52:59]GetLastDocTimeStamp 1729781485 [14:52:59]current date 1729781583 [14:52:59]FM_GetShiftState [14:52:59]SAM_PROTO_GetShiftState [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 13 01 00 [14:52:59]Write to MH i2c: E2 08 00 F3 4E 80 13 01 00 00 00 00 00 BE [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 F3 4E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9C [14:52:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_GetShiftState done [14:52:59]FM_GetShiftState done [14:52:59]opened in 1729728961 [14:52:59]opened+sec_in_day 1729815361 [14:52:59]quantity*price = 100015 [14:52:59]sum+1 = 100017 [14:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 262 24.10.2024 14:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189189 ФПД: 9086522872567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189189&fm=9086522872567&tin=02508201610067®Number=0000000000100030&sum=100000 [14:53:00]StoreToDocumentArchive [14:53:00]shift 463 fd 189189 [14:53:00]save to /storage/0463/doc_00189189 [14:53:00]save last doc name /storage/0463/doc_00189189 to /storage/kkm_last_doc_name [14:53:00]save OK [14:53:00]Clear old archive folders... [14:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:00]tlvbuf is 015EA5A0 [14:53:00]SAM_PROTO_ClearQueue [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 09 00 00 [14:53:00]Write to MH i2c: E2 08 00 00 4F 80 09 00 00 00 00 00 00 C1 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 00 4F 00 90 00 C3 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]SAM_PROTO_ClearQueue done [14:53:00]KKMCreateOFDPacket [14:53:00]OFDProtocolAddRootSTLVToBuf [14:53:00]FM_MakeSignedData [14:53:00]FM_MakeSignedData [14:53:00]SAM_PROTO_SignData [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 01 02 [14:53:00]Write to MH i2c: E2 08 00 01 4F 80 0D 01 02 00 00 00 00 C9 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 01 4F 00 90 00 C4 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=255 [14:53:00]MH_SAM_APDU [14:53: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E3 02 00 35 04 06 00 08 [14:53:00]Write to MH i2c: E2 02 01 02 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E3 02 00 35 04 06 00 08 00 00 2E [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 02 4F 00 90 00 C5 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=10 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 02 02 05 43 9E F7 D2 F7 [14:53:01]Write to MH i2c: E2 0D 00 03 4F 80 0D 02 02 05 00 43 9E F7 D2 F7 00 00 77 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 03 4F 00 90 00 C6 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 03 02 [14:53:01]Write to MH i2c: E2 08 00 04 4F 80 0D 03 02 00 00 00 00 CE [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 04 4F 00 6D C0 5D F4 BC BF 38 3A 90 00 3A [14:53:01]RAPDU: 6D C0 5D F4 BC BF 38 3A 90 00 [14:53:01]wFMCommunicate OK [14:53:01]SAM_PROTO_SignData done [14:53:01]FM_MakeSignedData done [14:53:01]CreateOFDProtocolMessage [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 11 00 00 [14:53:01]Write to MH i2c: E2 08 00 05 4F 80 11 00 00 00 00 00 00 CE [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 05 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [14:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:01]wFMCommunicate OK [14:53:01]CreateOFDProtocolMessage done [14:53:01]OFDSenderStorePacket 189189 [14:53:01]StoreOFDPacket docnum=189189 [14:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 CA 07 01 82 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E3 02 00 35 04 06 00 08 43 9E F7 D2 F7 6D C0 5D F4 BC BF 38 3A [14:53:01]CheckFolder [14:53:01]dirname=/storage/ofd_packets [14:53:01]CheckFolder done [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00189189 [14:53:01]NVStorageSaveData ofd_packets/00189189 [14:53:01]File name is /storage/ofd_packets/00189189 [14:53:01]Write 301 bytes [14:53:01]NVStorageSaveData done [14:53:01]OFDSenderStorePacket done [14:53:01]KKMCreateOFDPacket done [14:53:01]NVStorageSaveData kkm_last_timestamp [14:53:01]File name is /storage/kkm_last_timestamp [14:53:01]Write 4 bytes [14:53:01]NVStorageSaveData done [14:53:01]ExternCall_PrintAddStr [14:53:01]wPrintStart [14:53:01]Write to MH i2c: 01 00 00 06 4F 55 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 06 4F 00 00 00 00 00 FF 0F 6A [14:53:01]RasterBufferAndPrint [14:53:01]line Счет N : (1)211254 [14:53:01]line ИНН: 02508201610067 [14:53:01]line Контрольно-Кассовый Чек [14:53:01]line ПРОДАЖА [14:53:01]line ТРК (МРК, ГНК) : 42 [14:53:01]line Товар: 2710124130 [14:53:01]line Аи-92-К-3 [14:53:01]line 14.950 * 66.90 [14:53:01]line = 1000.16 [14:53:01]line НДС 12% НСП 1% [14:53:01]line > о реализуемом товаре [14:53:01]line ОКРУГЛЕНИЕ: -0.16 [14:53:01]line ИТОГО: 1000.00 [14:53:01]line Внесено: 1000.00 [14:53:01]line СДАЧА: 0.00 [14:53:01]line НСП 1% : 8.85 [14:53:01]line НДС 12% : 106.21 [14:53:01]line Наличными: 1000.00 [14:53:01]line Безнал.: 0.00 [14:53:01]line Место: АЗС № 86 "Партнер Нефть" [14:53:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:53:01]line СНО: Общий режим [14:53:01]line Чек 262 24.10.2024 14:53 [14:53:01]line Смена: 463 ФФД: 1.0 [14:53:01]line ЗНМ: 0300000155 [14:53:01]line РНМ: 0000000000100030 [14:53:01]line Версия ККМ: 001 [14:53:01]line ФМ: 0000000000965340 [14:53:01]line ФД: 189189 [14:53:01]line ФПД: 9086522872567 [14:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145303&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189189&fm=9086522872567&tin=02508201610067®Number=0000000000100030&sum=100000 [14:53:01]written 0, free lines is 4095 [14:53:01]OFD Sender: Processing packet 189189 [packets to send 1062, broken 1061] [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00189189 [14:53:01]OFD Sender: To server: pG, [14:53:01]CommunicateWithHost lk.salyk.kg:30040 [14:53:01]ConnectInit lk.salyk.kg [14:53:01]Connected sock=10 [14:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 CA 07 01 82 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E3 02 00 35 04 06 00 08 43 9E F7 D2 F7 6D C0 5D F4 BC BF 38 3A [14:53:01]Write to MH i2c: 01 00 00 31 4F 80 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 31 4F 00 00 00 00 00 59 0C EC [14:53:01]RasterBufferAndPrint [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]written 0, free lines is 3165 [14:53:01]MH_Cut [14:53:01]Write to MH i2c: D1 01 00 38 4F 01 59 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 38 4F 00 58 [14:53:01]Write to MH i2c: 01 00 00 39 4F 88 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7F 5C 47 00 98 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 39 36 35 33 34 30 10 04 04 00 05 E3 02 00 F4 03 04 00 37 09 1A 67 B6 04 01 00 00 F3 5D A8 9D 13 AE B0 BF [14:53:01]CommunicateWithHost err = 0 [14:53:01]CheckOFDResponse [14:53:01]1017 (14) - 77093643461234 [14:53:01]1041 (16) - 0000000000965340 [14:53:01]1040 (4) - 189189 [14:53:01]1012 (4) - 24.10.2024 08:45 [14:53:01]1206 (1) - 0 [14:53:01]OFD Sender: Remove packet 189189 [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00189189 [14:53:01]NVStorageDeleteData [14:53:02]OFD Sender: No OFD packet to send [14:53:02]*** Cut start [14:53:02]*** Partial cut [14:53:02]*** CUTSNS_PIN = 1 [14:53:02]*** CUTSNS_PIN = 0 [14:53:03]*** Brake cut motor [14:53:03]Read from MH i2c: 01 [14:53:03]MH_I2C_Read... [14:53:03]*** Stop cut motor [14:53:03]*** Cut end [14:53:03]Read from MH i2c: 01 07 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: 01 07 00 39 4F 00 00 00 00 00 FF 0F 9D [14:53:03]process_action close_receipt done [14:53:03]requested_data is exist [14:53:03]produce_requested_data [14:53:03]requested_item fm.sn is exist - process it [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 11 00 00 [14:53:03]Write to MH i2c: E2 08 00 3A 4F 80 11 00 00 00 00 00 00 03 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 3A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [14:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:53:03]wFMCommunicate OK [14:53:03]requested_item fd.num is exist - process it [14:53:03]SAM_PROTO_GetFieldsCounters [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 00 00 [14:53:03]Write to MH i2c: E2 08 00 3B 4F 80 13 00 00 00 00 00 00 06 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 3B 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E3 02 00 0E 04 04 00 CF 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 DC [14:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E3 02 00 0E 04 04 00 CF 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 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetFieldsCounters done [14:53:03]requested_item shift.num is exist - process it [14:53:03]requested_item shift.opened is exist - process it [14:53:03]req_shift_opened [14:53:03]FM_GetShiftState [14:53:03]SAM_PROTO_GetShiftState [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 01 00 [14:53:03]Write to MH i2c: E2 08 00 3C 4F 80 13 01 00 00 00 00 00 08 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 3C 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E6 [14:53:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetShiftState done [14:53:03]FM_GetShiftState done [14:53:03]req_shift_opened done [14:53:03]requested_item shift.open_date is exist - process it [14:53:03]req_shift_open_date [14:53:03]req_shift_open_date done [14:53:03]produce_requested_data done [14:53:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189189,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:53:03]process_action_free close_receipt [14:53:03]json_value_free [14:53:03]json_value_free done [14:53:03]process_json_proto returns [14:53:03]Send response to host [14:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189189,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:53:03]free response buf [14:53:03]execute_script done [14:53:03]execute_script returns [14:53:03]free content buf [14:53:03]Sock 9.Close socket [14:53:03]Sock 9.Thread stoped [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:28]accept exits with 8 [14:54:28]New connection [14:54:28]New thread 3067071844 created [14:54:28]Thread 3067215204 joined [14:54:28]Waiting for new connection... [14:54:28] Sock 8.Parse request [14:54:28]Sock 8.Check first char [14:54:28]Sock 8.First char is OK [14:54:28]request: POST /json_proto HTTP/1.0 [14:54:28]Method: POST [14:54:28]URL: /json_proto [14:54:28]Method is POST - this is cgi request [14:54:28]url: /json_proto [14:54:28]query_string will be loaded in cgi processing [14:54:28]execute_cgi json_proto POST (null) [14:54:28]execute_cgi path=json_proto method=POST [14:54:28]POST find Content-Length [14:54:28]Host: 172.17.42.131:8080 [14:54:28]Content-Length: 688 [14:54:28]Content-Type: application/json [14:54:28] [14:54:28]POST finish read [14:54:28]Found Content-Length = 688 [14:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [14:54:28]execute_script... [14:54:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [14:54:28]POST & json_proto [14:54:28]process_json_proto [14:54:28]json parsed OK: [14:54:28]protocol is kg_v1.0 [14:54:28]action value=close_receipt [14:54:28]process_action close_receipt [14:54:28]cmd_close_receipt [14:54:28]MH_GetDate [14:54:28]Write to MH i2c: F0 00 00 3D 4F 7B [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 09 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 09 00 3D 4F 00 A8 5F 1A 67 A0 18 CA 66 F4 [14:54:28]GetLastDocTimeStamp 1729781583 [14:54:28]current date 1729781672 [14:54:28]FM_GetShiftState [14:54:28]SAM_PROTO_GetShiftState [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 13 01 00 [14:54:28]Write to MH i2c: E2 08 00 3E 4F 80 13 01 00 00 00 00 00 0A [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0E 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0E 00 3E 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E8 [14:54:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:54:28]wFMCommunicate OK [14:54:28]SAM_PROTO_GetShiftState done [14:54:28]FM_GetShiftState done [14:54:28]opened in 1729728961 [14:54:28]opened+sec_in_day 1729815361 [14:54:28]quantity*price = 300076 [14:54:28]sum+1 = 300077 [14:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 263 24.10.2024 14:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189190 ФПД: 57872693469304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189190&fm=57872693469304&tin=02508201610067®Number=0000000000100030&sum=300000 [14:54:29]StoreToDocumentArchive [14:54:29]shift 463 fd 189190 [14:54:29]save to /storage/0463/doc_00189190 [14:54:29]save last doc name /storage/0463/doc_00189190 to /storage/kkm_last_doc_name [14:54:29]save OK [14:54:29]Clear old archive folders... [14:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:54:29]tlvbuf is B6F1AAD0 [14:54:29]SAM_PROTO_ClearQueue [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 09 00 00 [14:54:29]Write to MH i2c: E2 08 00 4B 4F 80 09 00 00 00 00 00 00 0C [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 4B 4F 00 90 00 0E [14:54:29]RAPDU: 90 00 [14:54:29]wFMCommunicate OK [14:54:29]SAM_PROTO_ClearQueue done [14:54:29]KKMCreateOFDPacket [14:54:29]OFDProtocolAddRootSTLVToBuf [14:54:29]FM_MakeSignedData [14:54:29]FM_MakeSignedData [14:54:29]SAM_PROTO_SignData [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 0D 01 02 [14:54:29]Write to MH i2c: E2 08 00 4C 4F 80 0D 01 02 00 00 00 00 14 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 4C 4F 00 90 00 0F [14:54:29]RAPDU: 90 00 [14:54:29]wFMCommunicate OK [14:54:29]wFMCommunicate request_size=255 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 07 01 00 00 F4 03 04 00 A8 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E3 02 [14:54:29]Write to MH i2c: E2 02 01 4D 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 07 01 00 00 F4 03 04 00 A8 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E3 02 00 00 9E [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 4D 4F 00 90 00 10 [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]wFMCommunicate request_size=16 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 34 A2 89 56 20 78 [14:54:30]Write to MH i2c: E2 13 00 4E 4F 80 0D 02 02 0B 00 00 35 04 06 00 34 A2 89 56 20 78 00 00 B9 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 4E 4F 00 90 00 11 [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 0D 03 02 [14:54:30]Write to MH i2c: E2 08 00 4F 4F 80 0D 03 02 00 00 00 00 19 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0B 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0B 00 4F 4F 00 EF 00 B3 DF D6 35 39 F0 90 00 CF [14:54:30]RAPDU: EF 00 B3 DF D6 35 39 F0 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_SignData done [14:54:30]FM_MakeSignedData done [14:54:30]CreateOFDProtocolMessage [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 11 00 00 [14:54:30]Write to MH i2c: E2 08 00 50 4F 80 11 00 00 00 00 00 00 19 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 50 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [14:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:30]wFMCommunicate OK [14:54:30]CreateOFDProtocolMessage done [14:54:30]OFDSenderStorePacket 189190 [14:54:30]StoreOFDPacket docnum=189190 [14:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F1 70 0D 01 60 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 07 01 00 00 F4 03 04 00 A8 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E3 02 00 35 04 06 00 34 A2 89 56 20 78 EF 00 B3 DF D6 35 39 F0 [14:54:30]CheckFolder [14:54:30]dirname=/storage/ofd_packets [14:54:30]CheckFolder done [14:54:30]ProducePacketName [14:54:30]name=ofd_packets/00189190 [14:54:30]NVStorageSaveData ofd_packets/00189190 [14:54:30]File name is /storage/ofd_packets/00189190 [14:54:30]Write 307 bytes [14:54:30]NVStorageSaveData done [14:54:30]OFDSenderStorePacket done [14:54:30]KKMCreateOFDPacket done [14:54:30]NVStorageSaveData kkm_last_timestamp [14:54:30]File name is /storage/kkm_last_timestamp [14:54:30]Write 4 bytes [14:54:30]NVStorageSaveData done [14:54:30]ExternCall_PrintAddStr [14:54:30]wPrintStart [14:54:30]Write to MH i2c: 01 00 00 51 4F A0 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 51 4F 00 00 00 00 00 FF 0F B5 [14:54:30]RasterBufferAndPrint [14:54:30]line Счет N : (1)211255 [14:54:30]line ИНН: 02508201610067 [14:54:30]line Контрольно-Кассовый Чек [14:54:30]line ПРОДАЖА [14:54:30]line ТРК (МРК, ГНК) : 11 [14:54:30]line Товар: 2710194210 [14:54:30]line D-ENERGY ДТ-К-5 [14:54:30]line 38.870 * 77.20 [14:54:30]line = 3000.76 [14:54:30]line НДС 12% НСП 1% [14:54:30]line > о реализуемом товаре [14:54:30]line ОКРУГЛЕНИЕ: -0.76 [14:54:30]line ИТОГО: 3000.00 [14:54:30]line Внесено: 3000.00 [14:54:30]line СДАЧА: 0.00 [14:54:30]line НСП 1% : 26.55 [14:54:30]line НДС 12% : 318.66 [14:54:30]line Наличными: 3000.00 [14:54:30]line Безнал.: 0.00 [14:54:30]line Место: АЗС № 86 "Партнер Нефть" [14:54:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:54:30]line СНО: Общий режим [14:54:30]line Чек 263 24.10.2024 14:54 [14:54:30]line Смена: 463 ФФД: 1.0 [14:54:30]line ЗНМ: 0300000155 [14:54:30]line РНМ: 0000000000100030 [14:54:30]line Версия ККМ: 001 [14:54:30]line ФМ: 0000000000965340 [14:54:30]line ФД: 189190 [14:54:30]line ФПД: 57872693469304 [14:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189190&fm=57872693469304&tin=02508201610067®Number=0000000000100030&sum=300000 [14:54:30]written 0, free lines is 4095 [14:54:30]OFD Sender: Processing packet 189190 [packets to send 1062, broken 1061] [14:54:30]ProducePacketName [14:54:30]name=ofd_packets/00189190 [14:54:30]OFD Sender: To server: pG, [14:54:30]CommunicateWithHost lk.salyk.kg:30040 [14:54:30]ConnectInit lk.salyk.kg [14:54:30]Connected sock=10 [14:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F1 70 0D 01 60 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 07 01 00 00 F4 03 04 00 A8 5F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E3 02 00 35 04 06 00 34 A2 89 56 20 78 EF 00 B3 DF D6 35 39 F0 [14:54:30]Write to MH i2c: 01 00 00 7C 4F CB [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 7C 4F 00 00 00 00 00 5C 0C 3A [14:54:30]RasterBufferAndPrint [14:54:30]line [14:54:30]line [14:54:30]line [14:54:30]line [14:54:30]line [14:54:30]written 0, free lines is 3168 [14:54:30]MH_Cut [14:54:30]Write to MH i2c: D1 01 00 83 4F 01 A4 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: D1 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: D1 01 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: D1 01 00 83 4F 00 A3 [14:54:30]Write to MH i2c: 01 00 00 84 4F D3 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 61 47 00 77 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 39 36 35 33 34 30 10 04 04 00 06 E3 02 00 F4 03 04 00 90 09 1A 67 B6 04 01 00 00 18 47 63 99 AA 25 EA 49 [14:54:30]CommunicateWithHost err = 0 [14:54:30]CheckOFDResponse [14:54:30]1017 (14) - 77093643461234 [14:54:30]1041 (16) - 0000000000965340 [14:54:30]1040 (4) - 189190 [14:54:30]1012 (4) - 24.10.2024 08:47 [14:54:30]1206 (1) - 0 [14:54:30]OFD Sender: Remove packet 189190 [14:54:30]ProducePacketName [14:54:30]name=ofd_packets/00189190 [14:54:30]NVStorageDeleteData [14:54:31]OFD Sender: No OFD packet to send [14:54:31]*** Cut start [14:54:31]*** Partial cut [14:54:31]*** CUTSNS_PIN = 1 [14:54:31]*** CUTSNS_PIN = 0 [14:54:32]*** Brake cut motor [14:54:32]Read from MH i2c: 01 [14:54:32]MH_I2C_Read... [14:54:32]*** Stop cut motor [14:54:32]*** Cut end [14:54:32]Read from MH i2c: 01 07 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: 01 07 00 84 4F 00 00 00 00 00 FF 0F E8 [14:54:32]process_action close_receipt done [14:54:32]requested_data is exist [14:54:32]produce_requested_data [14:54:32]requested_item fm.sn is exist - process it [14:54:32]wFMCommunicate request_size=4 [14:54:32]MH_SAM_APDU [14:54:32]CAPDU: 80 11 00 00 [14:54:32]Write to MH i2c: E2 08 00 85 4F 80 11 00 00 00 00 00 00 4E [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:32]Read from MH i2c: E2 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 17 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 17 00 85 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [14:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:32]wFMCommunicate OK [14:54:32]requested_item fd.num is exist - process it [14:54:32]SAM_PROTO_GetFieldsCounters [14:54:32]wFMCommunicate request_size=4 [14:54:32]MH_SAM_APDU [14:54:32]CAPDU: 80 13 00 00 [14:54:32]Write to MH i2c: E2 08 00 86 4F 80 13 00 00 00 00 00 00 51 [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:32]Read from MH i2c: E2 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 62 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 62 00 86 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E3 02 00 0E 04 04 00 CF 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 2B [14:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E3 02 00 0E 04 04 00 CF 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 [14:54:32]wFMCommunicate OK [14:54:32]SAM_PROTO_GetFieldsCounters done [14:54:32]requested_item shift.num is exist - process it [14:54:32]requested_item shift.opened is exist - process it [14:54:32]req_shift_opened [14:54:32]FM_GetShiftState [14:54:32]SAM_PROTO_GetShiftState [14:54:32]wFMCommunicate request_size=4 [14:54:32]MH_SAM_APDU [14:54:32]CAPDU: 80 13 01 00 [14:54:32]Write to MH i2c: E2 08 00 87 4F 80 13 01 00 00 00 00 00 53 [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:32]Read from MH i2c: E2 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 87 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 31 [14:54:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:54:32]wFMCommunicate OK [14:54:32]SAM_PROTO_GetShiftState done [14:54:32]FM_GetShiftState done [14:54:32]req_shift_opened done [14:54:32]requested_item shift.open_date is exist - process it [14:54:32]req_shift_open_date [14:54:32]req_shift_open_date done [14:54:32]produce_requested_data done [14:54:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189190,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:54:32]process_action_free close_receipt [14:54:32]json_value_free [14:54:32]json_value_free done [14:54:32]process_json_proto returns [14:54:32]Send response to host [14:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189190,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:54:32]free response buf [14:54:32]execute_script done [14:54:32]execute_script returns [14:54:32]free content buf [14:54:32]Sock 8.Close socket [14:54:32]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]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:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:25]accept exits with 9 [14:57:25]New connection [14:57:25]New thread 3067215204 created [14:57:25]Thread 3067071844 joined [14:57:25]Waiting for new connection... [14:57:25] Sock 9.Parse request [14:57:25]Sock 9.Check first char [14:57:25]Sock 9.First char is OK [14:57:25]request: POST /json_proto HTTP/1.0 [14:57:25]Method: POST [14:57:25]URL: /json_proto [14:57:25]Method is POST - this is cgi request [14:57:25]url: /json_proto [14:57:25]query_string will be loaded in cgi processing [14:57:25]execute_cgi json_proto POST (null) [14:57:25]execute_cgi path=json_proto method=POST [14:57:25]POST find Content-Length [14:57:25]Host: 172.17.42.131:8080 [14:57:25]Content-Length: 677 [14:57:25]Content-Type: application/json [14:57:25] [14:57:25]POST finish read [14:57:25]Found Content-Length = 677 [14:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:57:25]execute_script... [14:57: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)211257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:57:25]POST & json_proto [14:57:25]process_json_proto [14:57:25]json parsed OK: [14:57:25]protocol is kg_v1.0 [14:57:25]action value=close_receipt [14:57:25]process_action close_receipt [14:57:25]cmd_close_receipt [14:57:25]MH_GetDate [14:57:25]Write to MH i2c: F0 00 00 88 4F C6 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 09 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: F0 09 00 88 4F 00 58 60 1A 67 A0 18 CA 66 F0 [14:57:25]GetLastDocTimeStamp 1729781672 [14:57:25]current date 1729781848 [14:57:25]FM_GetShiftState [14:57:25]SAM_PROTO_GetShiftState [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 01 00 [14:57:25]Write to MH i2c: E2 08 00 89 4F 80 13 01 00 00 00 00 00 55 [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 89 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 33 [14:57:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetShiftState done [14:57:25]FM_GetShiftState done [14:57:25]opened in 1729728961 [14:57:25]opened+sec_in_day 1729815361 [14:57:25]quantity*price = 50041 [14:57:25]sum+1 = 50042 [14:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 264 24.10.2024 14:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189191 ФПД: 224072135569422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145728&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189191&fm=224072135569422&tin=02508201610067®Number=0000000000100030&sum=50000 [14:57:26]StoreToDocumentArchive [14:57:26]shift 463 fd 189191 [14:57:26]save to /storage/0463/doc_00189191 [14:57:26]save last doc name /storage/0463/doc_00189191 to /storage/kkm_last_doc_name [14:57:26]save OK [14:57:26]Clear old archive folders... [14:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:26]tlvbuf is 015B94C0 [14:57:26]SAM_PROTO_ClearQueue [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 09 00 00 [14:57:26]Write to MH i2c: E2 08 00 96 4F 80 09 00 00 00 00 00 00 57 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 96 4F 00 90 00 59 [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_ClearQueue done [14:57:26]KKMCreateOFDPacket [14:57:26]OFDProtocolAddRootSTLVToBuf [14:57:26]FM_MakeSignedData [14:57:26]FM_MakeSignedData [14:57:26]SAM_PROTO_SignData [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 01 02 [14:57:26]Write to MH i2c: E2 08 00 97 4F 80 0D 01 02 00 00 00 00 5F [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 97 4F 00 90 00 5A [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=255 [14:57:26]MH_SAM_APDU [14:57: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 58 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E3 02 00 35 04 06 00 CB [14:57:26]Write to MH i2c: E2 02 01 98 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 58 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E3 02 00 35 04 06 00 CB 00 00 9B [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 98 4F 00 90 00 5B [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=10 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 02 02 05 CA DC 0B 70 0E [14:57:26]Write to MH i2c: E2 0D 00 99 4F 80 0D 02 02 05 00 CA DC 0B 70 0E 00 00 9B [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 03 00 99 4F 00 90 00 5C [14:57:26]RAPDU: 90 00 [14:57:26]wFMCommunicate OK [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 0D 03 02 [14:57:26]Write to MH i2c: E2 08 00 9A 4F 80 0D 03 02 00 00 00 00 64 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0B 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0B 00 9A 4F 00 40 96 35 88 AA AE 30 24 90 00 A4 [14:57:26]RAPDU: 40 96 35 88 AA AE 30 24 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_SignData done [14:57:26]FM_MakeSignedData done [14:57:26]CreateOFDProtocolMessage [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 11 00 00 [14:57:26]Write to MH i2c: E2 08 00 9B 4F 80 11 00 00 00 00 00 00 64 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 17 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 17 00 9B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [14:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:26]wFMCommunicate OK [14:57:26]CreateOFDProtocolMessage done [14:57:26]OFDSenderStorePacket 189191 [14:57:26]StoreOFDPacket docnum=189191 [14:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E6 41 07 01 E5 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 58 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E3 02 00 35 04 06 00 CB CA DC 0B 70 0E 40 96 35 88 AA AE 30 24 [14:57:26]CheckFolder [14:57:26]dirname=/storage/ofd_packets [14:57:26]CheckFolder done [14:57:26]ProducePacketName [14:57:26]name=ofd_packets/00189191 [14:57:26]NVStorageSaveData ofd_packets/00189191 [14:57:26]File name is /storage/ofd_packets/00189191 [14:57:26]Write 301 bytes [14:57:26]NVStorageSaveData done [14:57:26]OFDSenderStorePacket done [14:57:26]KKMCreateOFDPacket done [14:57:26]NVStorageSaveData kkm_last_timestamp [14:57:26]File name is /storage/kkm_last_timestamp [14:57:26]Write 4 bytes [14:57:26]NVStorageSaveData done [14:57:26]ExternCall_PrintAddStr [14:57:26]wPrintStart [14:57:26]Write to MH i2c: 01 00 00 9C 4F EB [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: 01 07 00 9C 4F 00 00 00 00 00 FF 0F 00 [14:57:26]RasterBufferAndPrint [14:57:26]line Счет N : (1)211257 [14:57:26]line ИНН: 02508201610067 [14:57:26]line Контрольно-Кассовый Чек [14:57:26]line ПРОДАЖА [14:57:26]line ТРК (МРК, ГНК) : 12 [14:57:26]line Товар: 2710124130 [14:57:26]line Аи-92-К-3 [14:57:26]line 7.480 * 66.90 [14:57:26]line = 500.41 [14:57:26]line НДС 12% НСП 1% [14:57:26]line > о реализуемом товаре [14:57:26]line ОКРУГЛЕНИЕ: -0.41 [14:57:26]line ИТОГО: 500.00 [14:57:26]line Внесено: 500.00 [14:57:26]line СДАЧА: 0.00 [14:57:26]line НСП 1% : 4.43 [14:57:26]line НДС 12% : 53.14 [14:57:26]line Наличными: 500.00 [14:57:26]line Безнал.: 0.00 [14:57:26]line Место: АЗС № 86 "Партнер Нефть" [14:57:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:57:26]line СНО: Общий режим [14:57:26]line Чек 264 24.10.2024 14:57 [14:57:26]line Смена: 463 ФФД: 1.0 [14:57:26]line ЗНМ: 0300000155 [14:57:26]line РНМ: 0000000000100030 [14:57:26]line Версия ККМ: 001 [14:57:26]line ФМ: 0000000000965340 [14:57:26]line ФД: 189191 [14:57:26]line ФПД: 224072135569422 [14:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145728&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189191&fm=224072135569422&tin=02508201610067®Number=0000000000100030&sum=50000 [14:57:26]written 0, free lines is 4095 [14:57:26]OFD Sender: Processing packet 189191 [packets to send 1062, broken 1061] [14:57:26]ProducePacketName [14:57:26]name=ofd_packets/00189191 [14:57:26]OFD Sender: To server: pG, [14:57:26]CommunicateWithHost lk.salyk.kg:30040 [14:57:26]ConnectInit lk.salyk.kg [14:57:27]Connected sock=8 [14:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E6 41 07 01 E5 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 58 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E3 02 00 35 04 06 00 CB CA DC 0B 70 0E 40 96 35 88 AA AE 30 24 [14:57:27]Write to MH i2c: 01 00 00 C7 4F 16 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 07 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: 01 07 00 C7 4F 00 00 00 00 00 5E 0C 87 [14:57:27]RasterBufferAndPrint [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]line [14:57:27]written 0, free lines is 3169 [14:57:27]MH_Cut [14:57:27]Write to MH i2c: D1 01 00 CE 4F 01 EF [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 01 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: D1 01 00 CE 4F 00 EE [14:57:27]Write to MH i2c: 01 00 00 CF 4F 1E [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC 6C 47 00 6D 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 39 36 35 33 34 30 10 04 04 00 07 E3 02 00 F4 03 04 00 40 0A 1A 67 B6 04 01 00 00 E9 3D 39 FE CE FE 1B 1B [14:57:27]CommunicateWithHost err = 0 [14:57:27]CheckOFDResponse [14:57:27]1017 (14) - 77093643461234 [14:57:27]1041 (16) - 0000000000965340 [14:57:27]1040 (4) - 189191 [14:57:27]1012 (4) - 24.10.2024 08:50 [14:57:27]1206 (1) - 0 [14:57:27]OFD Sender: Remove packet 189191 [14:57:27]ProducePacketName [14:57:27]name=ofd_packets/00189191 [14:57:27]NVStorageDeleteData [14:57:27]OFD Sender: No OFD packet to send [14:57:28]*** Cut start [14:57:28]*** Partial cut [14:57:28]*** CUTSNS_PIN = 1 [14:57:28]*** CUTSNS_PIN = 0 [14:57:28]*** Brake cut motor [14:57:29]Read from MH i2c: 01 [14:57:29]MH_I2C_Read... [14:57:29]*** Stop cut motor [14:57:29]*** Cut end [14:57:29]Read from MH i2c: 01 07 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: 01 07 00 CF 4F 00 00 00 00 00 FF 0F 33 [14:57:29]process_action close_receipt done [14:57:29]requested_data is exist [14:57:29]produce_requested_data [14:57:29]requested_item fm.sn is exist - process it [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 11 00 00 [14:57:29]Write to MH i2c: E2 08 00 D0 4F 80 11 00 00 00 00 00 00 99 [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 17 00 D0 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [14:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:29]wFMCommunicate OK [14:57:29]requested_item fd.num is exist - process it [14:57:29]SAM_PROTO_GetFieldsCounters [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 13 00 00 [14:57:29]Write to MH i2c: E2 08 00 D1 4F 80 13 00 00 00 00 00 00 9C [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 62 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 62 00 D1 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E3 02 00 0E 04 04 00 CF 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 7A [14:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E3 02 00 0E 04 04 00 CF 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 [14:57:29]wFMCommunicate OK [14:57:29]SAM_PROTO_GetFieldsCounters done [14:57:29]requested_item shift.num is exist - process it [14:57:29]requested_item shift.opened is exist - process it [14:57:29]req_shift_opened [14:57:29]FM_GetShiftState [14:57:29]SAM_PROTO_GetShiftState [14:57:29]wFMCommunicate request_size=4 [14:57:29]MH_SAM_APDU [14:57:29]CAPDU: 80 13 01 00 [14:57:29]Write to MH i2c: E2 08 00 D2 4F 80 13 01 00 00 00 00 00 9E [14:57:29]Write i2c OK [14:57:29]MH_I2C_Read... [14:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:29]Read from MH i2c: E2 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0E 00 [14:57:29]MH_I2C_Read... [14:57:29]Read from MH i2c: E2 0E 00 D2 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7C [14:57:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:57:29]wFMCommunicate OK [14:57:29]SAM_PROTO_GetShiftState done [14:57:29]FM_GetShiftState done [14:57:29]req_shift_opened done [14:57:29]requested_item shift.open_date is exist - process it [14:57:29]req_shift_open_date [14:57:29]req_shift_open_date done [14:57:29]produce_requested_data done [14:57:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189191,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:57:29]process_action_free close_receipt [14:57:29]json_value_free [14:57:29]json_value_free done [14:57:29]process_json_proto returns [14:57:29]Send response to host [14:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189191,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:57:29]free response buf [14:57:29]execute_script done [14:57:29]execute_script returns [14:57:29]free content buf [14:57:29]Sock 9.Close socket [14:57:29]Sock 9.Thread stoped [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:05]accept exits with 10 [14:58:05]New connection [14:58:05]New thread 3067071844 created [14:58:05]Thread 3067215204 joined [14:58:05]Waiting for new connection... [14:58:05] Sock 10.Parse request [14:58:05]Sock 10.Check first char [14:58:05]Sock 10.First char is OK [14:58:05]request: POST /json_proto HTTP/1.0 [14:58:05]Method: POST [14:58:05]URL: /json_proto [14:58:05]Method is POST - this is cgi request [14:58:05]url: /json_proto [14:58:05]query_string will be loaded in cgi processing [14:58:05]execute_cgi json_proto POST (null) [14:58:05]execute_cgi path=json_proto method=POST [14:58:05]POST find Content-Length [14:58:05]Host: 172.17.42.131:8080 [14:58:05]Content-Length: 983 [14:58:05]Content-Type: application/json [14:58:05] [14:58:05]POST finish read [14:58:05]Found Content-Length = 983 [14:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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" ] } } [14:58:05]execute_script... [14:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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" ] } } [14:58:05]POST & json_proto [14:58:05]process_json_proto [14:58:05]json parsed OK: [14:58:05]protocol is kg_v1.0 [14:58:05]action value=close_receipt [14:58:05]process_action close_receipt [14:58:05]cmd_close_receipt [14:58:05]MH_GetDate [14:58:05]Write to MH i2c: F0 00 00 D3 4F 11 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 09 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 09 00 D3 4F 00 81 60 1A 67 A0 18 CA 66 64 [14:58:05]GetLastDocTimeStamp 1729781848 [14:58:05]current date 1729781889 [14:58:05]FM_GetShiftState [14:58:05]SAM_PROTO_GetShiftState [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 13 01 00 [14:58:05]Write to MH i2c: E2 08 00 D4 4F 80 13 01 00 00 00 00 00 A0 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0E 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0E 00 D4 4F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7E [14:58:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_GetShiftState done [14:58:05]FM_GetShiftState done [14:58:05]opened in 1729728961 [14:58:05]opened+sec_in_day 1729815361 [14:58:05]quantity*price = 150054 [14:58:05]sum+1 = 150055 [14:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 265 24.10.2024 14:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 189192 ФПД: 174418290307624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189192&fm=174418290307624&tin=02508201610067®Number=0000000000100030&sum=150000 [14:58:06]StoreToDocumentArchive [14:58:06]shift 463 fd 189192 [14:58:06]save to /storage/0463/doc_00189192 [14:58:06]save last doc name /storage/0463/doc_00189192 to /storage/kkm_last_doc_name [14:58:06]save OK [14:58:06]Clear old archive folders... [14:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:06]tlvbuf is 014D38B0 [14:58:06]SAM_PROTO_ClearQueue [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 09 00 00 [14:58:06]Write to MH i2c: E2 08 00 E1 4F 80 09 00 00 00 00 00 00 A2 [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 E1 4F 00 90 00 A4 [14:58:06]RAPDU: 90 00 [14:58:06]wFMCommunicate OK [14:58:06]SAM_PROTO_ClearQueue done [14:58:06]KKMCreateOFDPacket [14:58:06]OFDProtocolAddRootSTLVToBuf [14:58:06]FM_MakeSignedData [14:58:06]FM_MakeSignedData [14:58:06]SAM_PROTO_SignData [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 0D 01 02 [14:58:06]Write to MH i2c: E2 08 00 E2 4F 80 0D 01 02 00 00 00 00 AA [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 E2 4F 00 90 00 A5 [14:58:06]RAPDU: 90 00 [14:58:06]wFMCommunicate OK [14:58:06]wFMCommunicate request_size=255 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 81 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E3 02 00 35 04 06 00 9E [14:58:06]Write to MH i2c: E2 02 01 E3 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 81 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E3 02 00 35 04 06 00 9E 00 00 1A [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 E3 4F 00 90 00 A6 [14:58:06]RAPDU: 90 00 [14:58:06]wFMCommunicate OK [14:58:06]wFMCommunicate request_size=10 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 0D 02 02 05 A1 EC 3C 72 28 [14:58:06]Write to MH i2c: E2 0D 00 E4 4F 80 0D 02 02 05 00 A1 EC 3C 72 28 00 00 1A [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 03 00 E4 4F 00 90 00 A7 [14:58:06]RAPDU: 90 00 [14:58:06]wFMCommunicate OK [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 0D 03 02 [14:58:06]Write to MH i2c: E2 08 00 E5 4F 80 0D 03 02 00 00 00 00 AF [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0B 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0B 00 E5 4F 00 7B DE F5 A7 43 23 8F 5D 90 00 F7 [14:58:07]RAPDU: 7B DE F5 A7 43 23 8F 5D 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_SignData done [14:58:07]FM_MakeSignedData done [14:58:07]CreateOFDProtocolMessage [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 11 00 00 [14:58:07]Write to MH i2c: E2 08 00 E6 4F 80 11 00 00 00 00 00 00 AF [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 E6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [14:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:58:07]wFMCommunicate OK [14:58:07]CreateOFDProtocolMessage done [14:58:07]OFDSenderStorePacket 189192 [14:58:07]StoreOFDPacket docnum=189192 [14:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 6E 07 01 2B 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 81 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E3 02 00 35 04 06 00 9E A1 EC 3C 72 28 7B DE F5 A7 43 23 8F 5D [14:58:07]CheckFolder [14:58:07]dirname=/storage/ofd_packets [14:58:07]CheckFolder done [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00189192 [14:58:07]NVStorageSaveData ofd_packets/00189192 [14:58:07]File name is /storage/ofd_packets/00189192 [14:58:07]Write 301 bytes [14:58:07]NVStorageSaveData done [14:58:07]OFDSenderStorePacket done [14:58:07]KKMCreateOFDPacket done [14:58:07]NVStorageSaveData kkm_last_timestamp [14:58:07]File name is /storage/kkm_last_timestamp [14:58:07]Write 4 bytes [14:58:07]NVStorageSaveData done [14:58:07]ExternCall_PrintAddStr [14:58:07]wPrintStart [14:58:07]Write to MH i2c: 01 00 00 E7 4F 36 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 E7 4F 00 00 00 00 00 FF 0F 4B [14:58:07]RasterBufferAndPrint [14:58:07]line Счет N : (1)211256 [14:58:07]line ИНН: 02508201610067 [14:58:07]line Контрольно-Кассовый Чек [14:58:07]line ПРОДАЖА [14:58:07]line ТРК (МРК, ГНК) : 32 [14:58:07]line Товар: 2710124130 [14:58:07]line Аи-92-К-3 [14:58:07]line 22.770 * 65.90 [14:58:07]line = 1500.54 [14:58:07]line НДС 12% НСП 1% [14:58:07]line > о реализуемом товаре [14:58:07]line ОКРУГЛЕНИЕ: -0.54 [14:58:07]line ИТОГО: 1500.00 [14:58:07]line Внесено: 1500.00 [14:58:07]line СДАЧА: 0.00 [14:58:07]line НСП 1% : 13.28 [14:58:07]line НДС 12% : 159.35 [14:58:07]line Наличными: 1500.00 [14:58:07]line Безнал.: 0.00 [14:58:07]line Место: АЗС № 86 "Партнер Нефть" [14:58:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:58:07]line СНО: Общий режим [14:58:07]line Чек 265 24.10.2024 14:58 [14:58:07]line Смена: 463 ФФД: 1.0 [14:58:07]line ЗНМ: 0300000155 [14:58:07]line РНМ: 0000000000100030 [14:58:07]line Версия ККМ: 001 [14:58:07]line [14:58:07]line Дисконтная программа [14:58:07]line АИ-92 [14:58:07]line номер 86 [14:58:07]line сэкономлено 22.77 сом [14:58:07]line ФМ: 0000000000965340 [14:58:07]line ФД: 189192 [14:58:07]line ФПД: 174418290307624 [14:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189192&fm=174418290307624&tin=02508201610067®Number=0000000000100030&sum=150000 [14:58:07]written 0, free lines is 4095 [14:58:07]OFD Sender: Processing packet 189192 [packets to send 1062, broken 1061] [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00189192 [14:58:07]OFD Sender: To server: pG, [14:58:07]CommunicateWithHost lk.salyk.kg:30040 [14:58:07]ConnectInit lk.salyk.kg [14:58:07]Connected sock=9 [14:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 6E 07 01 2B 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 81 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E3 02 00 35 04 06 00 9E A1 EC 3C 72 28 7B DE F5 A7 43 23 8F 5D [14:58:07]Write to MH i2c: 01 00 00 17 50 67 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 17 50 00 00 00 00 00 E6 0B 5F [14:58:07]RasterBufferAndPrint [14:58:07]line [14:58:07]line [14:58:07]line [14:58:07]line [14:58:07]line [14:58:07]written 0, free lines is 3049 [14:58:07]MH_Cut [14:58:07]Write to MH i2c: D1 01 00 1E 50 01 40 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: D1 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: D1 01 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: D1 01 00 1E 50 00 3F [14:58:07]Write to MH i2c: 01 00 00 1F 50 6F [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 46 35 47 00 64 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 39 36 35 33 34 30 10 04 04 00 08 E3 02 00 F4 03 04 00 68 0A 1A 67 B6 04 01 00 00 25 61 B5 38 AA DE 6A 07 [14:58:07]CommunicateWithHost err = 0 [14:58:07]CheckOFDResponse [14:58:07]1017 (14) - 77093643461234 [14:58:07]1041 (16) - 0000000000965340 [14:58:07]1040 (4) - 189192 [14:58:07]1012 (4) - 24.10.2024 08:50 [14:58:07]1206 (1) - 0 [14:58:07]OFD Sender: Remove packet 189192 [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00189192 [14:58:07]NVStorageDeleteData [14:58:08]OFD Sender: No OFD packet to send [14:58:08]*** Cut start [14:58:08]*** Partial cut [14:58:08]*** CUTSNS_PIN = 1 [14:58:09]*** CUTSNS_PIN = 0 [14:58:09]*** Brake cut motor [14:58:09]Read from MH i2c: 01 [14:58:09]MH_I2C_Read... [14:58:09]*** Stop cut motor [14:58:09]*** Cut end [14:58:09]Read from MH i2c: 01 07 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 1F 50 00 00 00 00 00 FF 0F 84 [14:58:09]process_action close_receipt done [14:58:09]requested_data is exist [14:58:09]produce_requested_data [14:58:09]requested_item fm.sn is exist - process it [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 11 00 00 [14:58:09]Write to MH i2c: E2 08 00 20 50 80 11 00 00 00 00 00 00 EA [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 17 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 17 00 20 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [14:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:58:09]wFMCommunicate OK [14:58:09]requested_item fd.num is exist - process it [14:58:09]SAM_PROTO_GetFieldsCounters [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 13 00 00 [14:58:09]Write to MH i2c: E2 08 00 21 50 80 13 00 00 00 00 00 00 ED [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 62 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 62 00 21 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E3 02 00 0E 04 04 00 CF 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 CF [14:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E3 02 00 0E 04 04 00 CF 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 [14:58:09]wFMCommunicate OK [14:58:09]SAM_PROTO_GetFieldsCounters done [14:58:09]requested_item shift.num is exist - process it [14:58:09]requested_item shift.opened is exist - process it [14:58:09]req_shift_opened [14:58:09]FM_GetShiftState [14:58:09]SAM_PROTO_GetShiftState [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 13 01 00 [14:58:09]Write to MH i2c: E2 08 00 22 50 80 13 01 00 00 00 00 00 EF [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0E 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0E 00 22 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CD [14:58:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:58:09]wFMCommunicate OK [14:58:09]SAM_PROTO_GetShiftState done [14:58:09]FM_GetShiftState done [14:58:09]req_shift_opened done [14:58:09]requested_item shift.open_date is exist - process it [14:58:09]req_shift_open_date [14:58:09]req_shift_open_date done [14:58:09]produce_requested_data done [14:58:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189192,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:58:09]process_action_free close_receipt [14:58:09]json_value_free [14:58:09]json_value_free done [14:58:09]process_json_proto returns [14:58:09]Send response to host [14:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189192,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:58:09]free response buf [14:58:09]execute_script done [14:58:09]execute_script returns [14:58:09]free content buf [14:58:09]Sock 10.Close socket [14:58:09]Sock 10.Thread stoped [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:33]accept exits with 8 [14:58:33]New connection [14:58:33]New thread 3067215204 created [14:58:33]Thread 3067071844 joined [14:58:33]Waiting for new connection... [14:58:33] Sock 8.Parse request [14:58:33]Sock 8.Check first char [14:58:33]Sock 8.First char is OK [14:58:33]request: POST /json_proto HTTP/1.0 [14:58:33]Method: POST [14:58:33]URL: /json_proto [14:58:33]Method is POST - this is cgi request [14:58:33]url: /json_proto [14:58:33]query_string will be loaded in cgi processing [14:58:33]execute_cgi json_proto POST (null) [14:58:33]execute_cgi path=json_proto method=POST [14:58:33]POST find Content-Length [14:58:33]Host: 172.17.42.131:8080 [14:58:33]Content-Length: 678 [14:58:33]Content-Type: application/json [14:58:33] [14:58:33]POST finish read [14:58:33]Found Content-Length = 678 [14:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]execute_script... [14:58:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]POST & json_proto [14:58:33]process_json_proto [14:58:33]json parsed OK: [14:58:33]protocol is kg_v1.0 [14:58:33]action value=close_receipt [14:58:33]process_action close_receipt [14:58:33]cmd_close_receipt [14:58:33]MH_GetDate [14:58:33]Write to MH i2c: F0 00 00 23 50 62 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 09 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 09 00 23 50 00 9D 60 1A 67 A0 18 CA 66 D1 [14:58:33]GetLastDocTimeStamp 1729781889 [14:58:33]current date 1729781917 [14:58:33]FM_GetShiftState [14:58:33]SAM_PROTO_GetShiftState [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 01 00 [14:58:33]Write to MH i2c: E2 08 00 24 50 80 13 01 00 00 00 00 00 F1 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 24 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CF [14:58:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_GetShiftState done [14:58:33]FM_GetShiftState done [14:58:33]opened in 1729728961 [14:58:33]opened+sec_in_day 1729815361 [14:58:33]quantity*price = 80012 [14:58:33]sum+1 = 80013 [14:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 266 24.10.2024 14:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189193 ФПД: 31775835795712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189193&fm=31775835795712&tin=02508201610067®Number=0000000000100030&sum=80000 [14:58:35]StoreToDocumentArchive [14:58:35]shift 463 fd 189193 [14:58:35]save to /storage/0463/doc_00189193 [14:58:35]save last doc name /storage/0463/doc_00189193 to /storage/kkm_last_doc_name [14:58:35]save OK [14:58:35]Clear old archive folders... [14:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:35]tlvbuf is 0158AC00 [14:58:35]SAM_PROTO_ClearQueue [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 09 00 00 [14:58:35]Write to MH i2c: E2 08 00 31 50 80 09 00 00 00 00 00 00 F3 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]SAM_PROTO_ClearQueue done [14:58:35]KKMCreateOFDPacket [14:58:35]OFDProtocolAddRootSTLVToBuf [14:58:35]FM_MakeSignedData [14:58:35]FM_MakeSignedData [14:58:35]SAM_PROTO_SignData [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 01 02 [14:58:35]Write to MH i2c: E2 08 00 32 50 80 0D 01 02 00 00 00 00 FB [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 32 50 00 90 00 F6 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=255 [14:58:35]MH_SAM_APDU [14:58: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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E3 02 00 35 04 06 00 1C [14:58:35]Write to MH i2c: E2 02 01 33 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E3 02 00 35 04 06 00 1C 00 00 BD [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 33 50 00 90 00 F7 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=10 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 02 02 05 E6 63 67 B1 00 [14:58:35]Write to MH i2c: E2 0D 00 34 50 80 0D 02 02 05 00 E6 63 67 B1 00 00 00 69 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 34 50 00 90 00 F8 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 03 02 [14:58:35]Write to MH i2c: E2 08 00 35 50 80 0D 03 02 00 00 00 00 00 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0B 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0B 00 35 50 00 B1 AB FC B7 B6 C6 53 3A 90 00 19 [14:58:35]RAPDU: B1 AB FC B7 B6 C6 53 3A 90 00 [14:58:35]wFMCommunicate OK [14:58:35]SAM_PROTO_SignData done [14:58:35]FM_MakeSignedData done [14:58:35]CreateOFDProtocolMessage [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 11 00 00 [14:58:35]Write to MH i2c: E2 08 00 36 50 80 11 00 00 00 00 00 00 00 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 17 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 17 00 36 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [14:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:58:35]wFMCommunicate OK [14:58:35]CreateOFDProtocolMessage done [14:58:35]OFDSenderStorePacket 189193 [14:58:35]StoreOFDPacket docnum=189193 [14:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 F7 07 01 D9 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E3 02 00 35 04 06 00 1C E6 63 67 B1 00 B1 AB FC B7 B6 C6 53 3A [14:58:35]CheckFolder [14:58:35]dirname=/storage/ofd_packets [14:58:35]CheckFolder done [14:58:35]ProducePacketName [14:58:35]name=ofd_packets/00189193 [14:58:35]NVStorageSaveData ofd_packets/00189193 [14:58:35]File name is /storage/ofd_packets/00189193 [14:58:35]Write 301 bytes [14:58:35]NVStorageSaveData done [14:58:35]OFDSenderStorePacket done [14:58:35]KKMCreateOFDPacket done [14:58:35]NVStorageSaveData kkm_last_timestamp [14:58:35]File name is /storage/kkm_last_timestamp [14:58:35]Write 4 bytes [14:58:35]NVStorageSaveData done [14:58:35]ExternCall_PrintAddStr [14:58:35]wPrintStart [14:58:35]Write to MH i2c: 01 00 00 37 50 87 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 07 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 07 00 37 50 00 00 00 00 00 FF 0F 9C [14:58:35]RasterBufferAndPrint [14:58:35]line Счет N : (1)211258 [14:58:35]line ИНН: 02508201610067 [14:58:35]line Контрольно-Кассовый Чек [14:58:35]line ПРОДАЖА [14:58:35]line ТРК (МРК, ГНК) : 22 [14:58:35]line Товар: 2710124130 [14:58:35]line Аи-92-К-3 [14:58:35]line 11.960 * 66.90 [14:58:35]line = 800.12 [14:58:35]line НДС 12% НСП 1% [14:58:35]line > о реализуемом товаре [14:58:35]line ОКРУГЛЕНИЕ: -0.12 [14:58:35]line ИТОГО: 800.00 [14:58:35]line Внесено: 800.00 [14:58:35]line СДАЧА: 0.00 [14:58:35]line НСП 1% : 7.08 [14:58:35]line НДС 12% : 84.97 [14:58:35]line Наличными: 800.00 [14:58:35]line Безнал.: 0.00 [14:58:35]line Место: АЗС № 86 "Партнер Нефть" [14:58:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:58:35]line СНО: Общий режим [14:58:35]line Чек 266 24.10.2024 14:58 [14:58:35]line Смена: 463 ФФД: 1.0 [14:58:35]line ЗНМ: 0300000155 [14:58:35]line РНМ: 0000000000100030 [14:58:35]line Версия ККМ: 001 [14:58:35]line ФМ: 0000000000965340 [14:58:35]line ФД: 189193 [14:58:35]line ФПД: 31775835795712 [14:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189193&fm=31775835795712&tin=02508201610067®Number=0000000000100030&sum=80000 [14:58:35]written 0, free lines is 4095 [14:58:35]OFD Sender: Processing packet 189193 [packets to send 1062, broken 1061] [14:58:35]ProducePacketName [14:58:35]name=ofd_packets/00189193 [14:58:35]OFD Sender: To server: pG, [14:58:35]CommunicateWithHost lk.salyk.kg:30040 [14:58:35]ConnectInit lk.salyk.kg [14:58:36]Connected sock=10 [14:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 F7 07 01 D9 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E3 02 00 35 04 06 00 1C E6 63 67 B1 00 B1 AB FC B7 B6 C6 53 3A [14:58:36]Write to MH i2c: 01 00 00 62 50 B2 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 62 50 00 00 00 00 00 62 0C 27 [14:58:36]RasterBufferAndPrint [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]written 0, free lines is 3174 [14:58:36]MH_Cut [14:58:36]Write to MH i2c: D1 01 00 69 50 01 8B [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 01 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 01 00 69 50 00 8A [14:58:36]Write to MH i2c: 01 00 00 6A 50 BA [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E DE 47 00 2E 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 39 36 35 33 34 30 10 04 04 00 09 E3 02 00 F4 03 04 00 85 0A 1A 67 B6 04 01 00 00 BE B3 40 6E E0 7E C6 C4 [14:58:36]CommunicateWithHost err = 0 [14:58:36]CheckOFDResponse [14:58:36]1017 (14) - 77093643461234 [14:58:36]1041 (16) - 0000000000965340 [14:58:36]1040 (4) - 189193 [14:58:36]1012 (4) - 24.10.2024 08:51 [14:58:36]1206 (1) - 0 [14:58:36]OFD Sender: Remove packet 189193 [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00189193 [14:58:36]NVStorageDeleteData [14:58:36]OFD Sender: No OFD packet to send [14:58:37]*** Cut start [14:58:37]*** Partial cut [14:58:37]*** CUTSNS_PIN = 1 [14:58:37]*** CUTSNS_PIN = 0 [14:58:37]*** Brake cut motor [14:58:37]Read from MH i2c: 01 [14:58:37]MH_I2C_Read... [14:58:37]*** Stop cut motor [14:58:37]*** Cut end [14:58:37]Read from MH i2c: 01 07 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 6A 50 00 00 00 00 00 FF 0F CF [14:58:37]process_action close_receipt done [14:58:37]requested_data is exist [14:58:37]produce_requested_data [14:58:37]requested_item fm.sn is exist - process it [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 11 00 00 [14:58:38]Write to MH i2c: E2 08 00 6B 50 80 11 00 00 00 00 00 00 35 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 6B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [14:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:58:38]wFMCommunicate OK [14:58:38]requested_item fd.num is exist - process it [14:58:38]SAM_PROTO_GetFieldsCounters [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 00 00 [14:58:38]Write to MH i2c: E2 08 00 6C 50 80 13 00 00 00 00 00 00 38 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 62 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 62 00 6C 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E3 02 00 0E 04 04 00 CF 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 1E [14:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E3 02 00 0E 04 04 00 CF 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 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetFieldsCounters done [14:58:38]requested_item shift.num is exist - process it [14:58:38]requested_item shift.opened is exist - process it [14:58:38]req_shift_opened [14:58:38]FM_GetShiftState [14:58:38]SAM_PROTO_GetShiftState [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 01 00 [14:58:38]Write to MH i2c: E2 08 00 6D 50 80 13 01 00 00 00 00 00 3A [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 6D 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 18 [14:58:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetShiftState done [14:58:38]FM_GetShiftState done [14:58:38]req_shift_opened done [14:58:38]requested_item shift.open_date is exist - process it [14:58:38]req_shift_open_date [14:58:38]req_shift_open_date done [14:58:38]produce_requested_data done [14:58:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189193,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:58:38]process_action_free close_receipt [14:58:38]json_value_free [14:58:38]json_value_free done [14:58:38]process_json_proto returns [14:58:38]Send response to host [14:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189193,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:58:38]free response buf [14:58:38]execute_script done [14:58:38]execute_script returns [14:58:38]free content buf [14:58:38]Sock 8.Close socket [14:58:38]Sock 8.Thread stoped [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:33]accept exits with 9 [14:59:33]New connection [14:59:33]New thread 3067071844 created [14:59:33]Thread 3067215204 joined [14:59:33]Waiting for new connection... [14:59:33] Sock 9.Parse request [14:59:33]Sock 9.Check first char [14:59:33]Sock 9.First char is OK [14:59:33]request: POST /json_proto HTTP/1.0 [14:59:33]Method: POST [14:59:33]URL: /json_proto [14:59:33]Method is POST - this is cgi request [14:59:33]url: /json_proto [14:59:33]query_string will be loaded in cgi processing [14:59:33]execute_cgi json_proto POST (null) [14:59:33]execute_cgi path=json_proto method=POST [14:59:33]POST find Content-Length [14:59:33]Host: 172.17.42.131:8080 [14:59:33]Content-Length: 674 [14:59:33]Content-Type: application/json [14:59:33] [14:59:33]POST finish read [14:59:33]Found Content-Length = 674 [14:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [14:59:33]execute_script... [14:59: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)211259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [14:59:33]POST & json_proto [14:59:33]process_json_proto [14:59:33]json parsed OK: [14:59:33]protocol is kg_v1.0 [14:59:33]action value=close_receipt [14:59:33]process_action close_receipt [14:59:33]cmd_close_receipt [14:59:33]MH_GetDate [14:59:33]Write to MH i2c: F0 00 00 6E 50 AD [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 09 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: F0 09 00 6E 50 00 D9 60 1A 67 A0 18 CA 66 58 [14:59:33]GetLastDocTimeStamp 1729781917 [14:59:33]current date 1729781977 [14:59:33]FM_GetShiftState [14:59:33]SAM_PROTO_GetShiftState [14:59:33]wFMCommunicate request_size=4 [14:59:33]MH_SAM_APDU [14:59:33]CAPDU: 80 13 01 00 [14:59:33]Write to MH i2c: E2 08 00 6F 50 80 13 01 00 00 00 00 00 3C [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:33]Read from MH i2c: E2 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0E 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: E2 0E 00 6F 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1A [14:59:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:59:33]wFMCommunicate OK [14:59:33]SAM_PROTO_GetShiftState done [14:59:33]FM_GetShiftState done [14:59:33]opened in 1729728961 [14:59:33]opened+sec_in_day 1729815361 [14:59:33]quantity*price = 50063 [14:59:33]sum+1 = 50064 [14:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 267 24.10.2024 14:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189194 ФПД: 192860782239807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189194&fm=192860782239807&tin=02508201610067®Number=0000000000100030&sum=50000 [14:59:35]StoreToDocumentArchive [14:59:35]shift 463 fd 189194 [14:59:35]save to /storage/0463/doc_00189194 [14:59:35]save last doc name /storage/0463/doc_00189194 to /storage/kkm_last_doc_name [14:59:35]save OK [14:59:35]Clear old archive folders... [14:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:35]tlvbuf is 015EE240 [14:59:35]SAM_PROTO_ClearQueue [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 09 00 00 [14:59:35]Write to MH i2c: E2 08 00 7C 50 80 09 00 00 00 00 00 00 3E [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 7C 50 00 90 00 40 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_ClearQueue done [14:59:35]KKMCreateOFDPacket [14:59:35]OFDProtocolAddRootSTLVToBuf [14:59:35]FM_MakeSignedData [14:59:35]FM_MakeSignedData [14:59:35]SAM_PROTO_SignData [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 01 02 [14:59:35]Write to MH i2c: E2 08 00 7D 50 80 0D 01 02 00 00 00 00 46 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 7D 50 00 90 00 41 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=255 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 D9 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E3 02 00 35 04 06 00 AF 67 E6 6A [14:59:35]Write to MH i2c: E2 02 01 7E 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 D9 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E3 02 00 35 04 06 00 AF 67 E6 6A 00 00 24 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 7E 50 00 90 00 42 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=7 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 02 02 02 A0 3F [14:59:35]Write to MH i2c: E2 0A 00 7F 50 80 0D 02 02 02 00 A0 3F 00 00 2C [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 7F 50 00 90 00 43 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 03 02 [14:59:35]Write to MH i2c: E2 08 00 80 50 80 0D 03 02 00 00 00 00 4B [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0B 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0B 00 80 50 00 F4 40 75 32 0E F7 9C 2F 90 00 F7 [14:59:35]RAPDU: F4 40 75 32 0E F7 9C 2F 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_SignData done [14:59:35]FM_MakeSignedData done [14:59:35]CreateOFDProtocolMessage [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 11 00 00 [14:59:35]Write to MH i2c: E2 08 00 81 50 80 11 00 00 00 00 00 00 4B [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 81 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [14:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:35]wFMCommunicate OK [14:59:35]CreateOFDProtocolMessage done [14:59:35]OFDSenderStorePacket 189194 [14:59:35]StoreOFDPacket docnum=189194 [14:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DE E9 04 01 E9 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 D9 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E3 02 00 35 04 06 00 AF 67 E6 6A A0 3F F4 40 75 32 0E F7 9C 2F [14:59:35]CheckFolder [14:59:35]dirname=/storage/ofd_packets [14:59:35]CheckFolder done [14:59:35]ProducePacketName [14:59:35]name=ofd_packets/00189194 [14:59:35]NVStorageSaveData ofd_packets/00189194 [14:59:35]File name is /storage/ofd_packets/00189194 [14:59:35]Write 298 bytes [14:59:35]NVStorageSaveData done [14:59:35]OFDSenderStorePacket done [14:59:35]KKMCreateOFDPacket done [14:59:35]NVStorageSaveData kkm_last_timestamp [14:59:35]File name is /storage/kkm_last_timestamp [14:59:35]Write 4 bytes [14:59:35]NVStorageSaveData done [14:59:35]ExternCall_PrintAddStr [14:59:35]wPrintStart [14:59:35]Write to MH i2c: 01 00 00 82 50 D2 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 82 50 00 00 00 00 00 FF 0F E7 [14:59:35]RasterBufferAndPrint [14:59:35]line Счет N : (1)211259 [14:59:35]line ИНН: 02508201610067 [14:59:35]line Контрольно-Кассовый Чек [14:59:35]line ПРОДАЖА [14:59:35]line ТРК (МРК, ГНК) : 51 [14:59:35]line Товар: 2710194210 [14:59:35]line ДТ-К-5 [14:59:35]line 6.570 * 76.20 [14:59:35]line = 500.63 [14:59:35]line НДС 12% НСП 1% [14:59:35]line > о реализуемом товаре [14:59:35]line ОКРУГЛЕНИЕ: -0.63 [14:59:35]line ИТОГО: 500.00 [14:59:35]line Внесено: 500.00 [14:59:35]line СДАЧА: 0.00 [14:59:35]line НСП 1% : 4.43 [14:59:35]line НДС 12% : 53.16 [14:59:35]line Наличными: 500.00 [14:59:35]line Безнал.: 0.00 [14:59:35]line Место: АЗС № 86 "Партнер Нефть" [14:59:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:59:35]line СНО: Общий режим [14:59:35]line Чек 267 24.10.2024 14:59 [14:59:35]line Смена: 463 ФФД: 1.0 [14:59:35]line ЗНМ: 0300000155 [14:59:35]line РНМ: 0000000000100030 [14:59:35]line Версия ККМ: 001 [14:59:35]line ФМ: 0000000000965340 [14:59:35]line ФД: 189194 [14:59:35]line ФПД: 192860782239807 [14:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189194&fm=192860782239807&tin=02508201610067®Number=0000000000100030&sum=50000 [14:59:35]OFD Sender: Processing packet 189194 [packets to send 1062, broken 1061] [14:59:35]ProducePacketName [14:59:35]name=ofd_packets/00189194 [14:59:35]OFD Sender: To server: pG, [14:59:35]CommunicateWithHost lk.salyk.kg:30040 [14:59:35]ConnectInit lk.salyk.kg [14:59:35]written 0, free lines is 4095 [14:59:36]Connected sock=10 [14:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DE E9 04 01 E9 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 D9 60 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E3 02 00 35 04 06 00 AF 67 E6 6A A0 3F F4 40 75 32 0E F7 9C 2F [14:59:36]Write to MH i2c: 01 00 00 AD 50 FD [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 AD 50 00 00 00 00 00 58 0C 68 [14:59:36]RasterBufferAndPrint [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]written 0, free lines is 3164 [14:59:36]MH_Cut [14:59:36]Write to MH i2c: D1 01 00 B4 50 01 D6 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 B4 50 00 D5 [14:59:36]Write to MH i2c: 01 00 00 B5 50 05 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 27 47 00 6E 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 39 36 35 33 34 30 10 04 04 00 0A E3 02 00 F4 03 04 00 C1 0A 1A 67 B6 04 01 00 00 2E 80 6C A3 58 56 49 19 [14:59:36]CommunicateWithHost err = 0 [14:59:36]CheckOFDResponse [14:59:36]1017 (14) - 77093643461234 [14:59:36]1041 (16) - 0000000000965340 [14:59:36]1040 (4) - 189194 [14:59:36]1012 (4) - 24.10.2024 08:52 [14:59:36]1206 (1) - 0 [14:59:36]OFD Sender: Remove packet 189194 [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00189194 [14:59:36]NVStorageDeleteData [14:59:37]OFD Sender: No OFD packet to send [14:59:37]*** Cut start [14:59:37]*** Partial cut [14:59:37]*** CUTSNS_PIN = 1 [14:59:37]*** CUTSNS_PIN = 0 [14:59:37]*** Brake cut motor [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]*** Stop cut motor [14:59:38]*** Cut end [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 B5 50 00 00 00 00 00 FF 0F 1A [14:59:38]process_action close_receipt done [14:59:38]requested_data is exist [14:59:38]produce_requested_data [14:59:38]requested_item fm.sn is exist - process it [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 11 00 00 [14:59:38]Write to MH i2c: E2 08 00 B6 50 80 11 00 00 00 00 00 00 80 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 B6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [14:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:38]wFMCommunicate OK [14:59:38]requested_item fd.num is exist - process it [14:59:38]SAM_PROTO_GetFieldsCounters [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 00 00 [14:59:38]Write to MH i2c: E2 08 00 B7 50 80 13 00 00 00 00 00 00 83 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 B7 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E3 02 00 0E 04 04 00 CF 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 6D [14:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E3 02 00 0E 04 04 00 CF 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 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetFieldsCounters done [14:59:38]requested_item shift.num is exist - process it [14:59:38]requested_item shift.opened is exist - process it [14:59:38]req_shift_opened [14:59:38]FM_GetShiftState [14:59:38]SAM_PROTO_GetShiftState [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 01 00 [14:59:38]Write to MH i2c: E2 08 00 B8 50 80 13 01 00 00 00 00 00 85 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 B8 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 63 [14:59:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]req_shift_opened done [14:59:38]requested_item shift.open_date is exist - process it [14:59:38]req_shift_open_date [14:59:38]req_shift_open_date done [14:59:38]produce_requested_data done [14:59:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189194,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [14:59:38]process_action_free close_receipt [14:59:38]json_value_free [14:59:38]json_value_free done [14:59:38]process_json_proto returns [14:59:38]Send response to host [14:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189194,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [14:59:38]free response buf [14:59:38]execute_script done [14:59:38]execute_script returns [14:59:38]free content buf [14:59:38]Sock 9.Close socket [14:59:38]Sock 9.Thread stoped [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:55]accept exits with 8 [15:06:55]New connection [15:06:55]New thread 3067215204 created [15:06:55]Thread 3067071844 joined [15:06:55]Waiting for new connection... [15:06:55] Sock 8.Parse request [15:06:55]Sock 8.Check first char [15:06:55]Sock 8.First char is OK [15:06:55]request: POST /json_proto HTTP/1.0 [15:06:55]Method: POST [15:06:55]URL: /json_proto [15:06:55]Method is POST - this is cgi request [15:06:55]url: /json_proto [15:06:55]query_string will be loaded in cgi processing [15:06:55]execute_cgi json_proto POST (null) [15:06:55]execute_cgi path=json_proto method=POST [15:06:55]POST find Content-Length [15:06:55]Host: 172.17.42.131:8080 [15:06:55]Content-Length: 677 [15:06:55]Content-Type: application/json [15:06:55] [15:06:55]POST finish read [15:06:55]Found Content-Length = 677 [15:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:55]execute_script... [15:06: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)211260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:06:55]POST & json_proto [15:06:55]process_json_proto [15:06:55]json parsed OK: [15:06:55]protocol is kg_v1.0 [15:06:55]action value=close_receipt [15:06:55]process_action close_receipt [15:06:55]cmd_close_receipt [15:06:55]MH_GetDate [15:06:55]Write to MH i2c: F0 00 00 B9 50 F8 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 09 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: F0 09 00 B9 50 00 93 62 1A 67 A0 18 CA 66 5F [15:06:55]GetLastDocTimeStamp 1729781977 [15:06:55]current date 1729782419 [15:06:55]FM_GetShiftState [15:06:55]SAM_PROTO_GetShiftState [15:06:55]wFMCommunicate request_size=4 [15:06:55]MH_SAM_APDU [15:06:55]CAPDU: 80 13 01 00 [15:06:55]Write to MH i2c: E2 08 00 BA 50 80 13 01 00 00 00 00 00 87 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:55]Read from MH i2c: E2 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: E2 0E 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: E2 0E 00 BA 50 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 65 [15:06:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:06:55]wFMCommunicate OK [15:06:55]SAM_PROTO_GetShiftState done [15:06:55]FM_GetShiftState done [15:06:55]opened in 1729728961 [15:06:55]opened+sec_in_day 1729815361 [15:06:55]quantity*price = 50041 [15:06:55]sum+1 = 50042 [15:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 268 24.10.2024 15:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189195 ФПД: 243067920640928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189195&fm=243067920640928&tin=02508201610067®Number=0000000000100030&sum=50000 [15:06:57]StoreToDocumentArchive [15:06:57]shift 463 fd 189195 [15:06:57]save to /storage/0463/doc_00189195 [15:06:57]save last doc name /storage/0463/doc_00189195 to /storage/kkm_last_doc_name [15:06:57]save OK [15:06:57]Clear old archive folders... [15:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:57]tlvbuf is 015177A0 [15:06:57]SAM_PROTO_ClearQueue [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 09 00 00 [15:06:57]Write to MH i2c: E2 08 00 C7 50 80 09 00 00 00 00 00 00 89 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 C7 50 00 90 00 8B [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_ClearQueue done [15:06:57]KKMCreateOFDPacket [15:06:57]OFDProtocolAddRootSTLVToBuf [15:06:57]FM_MakeSignedData [15:06:57]FM_MakeSignedData [15:06:57]SAM_PROTO_SignData [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 01 02 [15:06:57]Write to MH i2c: E2 08 00 C8 50 80 0D 01 02 00 00 00 00 91 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 C8 50 00 90 00 8C [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=255 [15:06:57]MH_SAM_APDU [15:06: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 62 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E3 02 00 35 04 06 00 DD [15:06:57]Write to MH i2c: E2 02 01 C9 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 62 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E3 02 00 35 04 06 00 DD 00 00 24 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 C9 50 00 90 00 8D [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=10 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 02 02 05 11 A9 10 EB A0 [15:06:57]Write to MH i2c: E2 0D 00 CA 50 80 0D 02 02 05 00 11 A9 10 EB A0 00 00 F3 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 CA 50 00 90 00 8E [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 03 02 [15:06:57]Write to MH i2c: E2 08 00 CB 50 80 0D 03 02 00 00 00 00 96 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 CB 50 00 0A 68 66 49 63 3B FB A2 90 00 F3 [15:06:57]RAPDU: 0A 68 66 49 63 3B FB A2 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_SignData done [15:06:57]FM_MakeSignedData done [15:06:57]CreateOFDProtocolMessage [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 11 00 00 [15:06:57]Write to MH i2c: E2 08 00 CC 50 80 11 00 00 00 00 00 00 96 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 CC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [15:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:06:57]wFMCommunicate OK [15:06:57]CreateOFDProtocolMessage done [15:06:57]OFDSenderStorePacket 189195 [15:06:57]StoreOFDPacket docnum=189195 [15:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B 2C 07 01 13 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 62 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E3 02 00 35 04 06 00 DD 11 A9 10 EB A0 0A 68 66 49 63 3B FB A2 [15:06:57]CheckFolder [15:06:57]dirname=/storage/ofd_packets [15:06:57]CheckFolder done [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00189195 [15:06:57]NVStorageSaveData ofd_packets/00189195 [15:06:57]File name is /storage/ofd_packets/00189195 [15:06:57]Write 301 bytes [15:06:57]NVStorageSaveData done [15:06:57]OFDSenderStorePacket done [15:06:57]KKMCreateOFDPacket done [15:06:57]NVStorageSaveData kkm_last_timestamp [15:06:57]File name is /storage/kkm_last_timestamp [15:06:57]Write 4 bytes [15:06:57]NVStorageSaveData done [15:06:57]ExternCall_PrintAddStr [15:06:57]wPrintStart [15:06:57]Write to MH i2c: 01 00 00 CD 50 1D [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 CD 50 00 00 00 00 00 FF 0F 32 [15:06:57]RasterBufferAndPrint [15:06:57]line Счет N : (1)211260 [15:06:57]line ИНН: 02508201610067 [15:06:57]line Контрольно-Кассовый Чек [15:06:57]line ПРОДАЖА [15:06:57]line ТРК (МРК, ГНК) : 42 [15:06:57]line Товар: 2710124130 [15:06:57]line Аи-92-К-3 [15:06:57]line 7.480 * 66.90 [15:06:57]line = 500.41 [15:06:57]line НДС 12% НСП 1% [15:06:57]line > о реализуемом товаре [15:06:57]line ОКРУГЛЕНИЕ: -0.41 [15:06:57]line ИТОГО: 500.00 [15:06:57]line Внесено: 500.00 [15:06:57]line СДАЧА: 0.00 [15:06:57]line НСП 1% : 4.43 [15:06:57]line НДС 12% : 53.14 [15:06:57]line Наличными: 500.00 [15:06:57]line Безнал.: 0.00 [15:06:57]line Место: АЗС № 86 "Партнер Нефть" [15:06:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:06:57]line СНО: Общий режим [15:06:57]line Чек 268 24.10.2024 15:06 [15:06:57]line Смена: 463 ФФД: 1.0 [15:06:57]line ЗНМ: 0300000155 [15:06:57]line РНМ: 0000000000100030 [15:06:57]line Версия ККМ: 001 [15:06:57]line ФМ: 0000000000965340 [15:06:57]line ФД: 189195 [15:06:57]line ФПД: 243067920640928 [15:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189195&fm=243067920640928&tin=02508201610067®Number=0000000000100030&sum=50000 [15:06:57]OFD Sender: Processing packet 189195 [packets to send 1062, broken 1061] [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00189195 [15:06:57]OFD Sender: To server: pG, [15:06:57]CommunicateWithHost lk.salyk.kg:30040 [15:06:57]ConnectInit lk.salyk.kg [15:06:57]written 0, free lines is 4095 [15:06:58]Connected sock=10 [15:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B 2C 07 01 13 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 93 62 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E3 02 00 35 04 06 00 DD 11 A9 10 EB A0 0A 68 66 49 63 3B FB A2 [15:06:58]Write to MH i2c: 01 00 00 F8 50 48 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 F8 50 00 00 00 00 00 60 0C BB [15:06:58]RasterBufferAndPrint [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]written 0, free lines is 3172 [15:06:58]MH_Cut [15:06:58]Write to MH i2c: D1 01 00 FF 50 01 21 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 01 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 01 00 FF 50 00 20 [15:06:58]Write to MH i2c: 01 00 00 00 51 51 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7C 17 47 00 0C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E3 02 00 F4 03 04 00 7B 0C 1A 67 B6 04 01 00 00 BF 49 5D 1C 8A 62 AE FA [15:06:58]CommunicateWithHost err = 0 [15:06:58]CheckOFDResponse [15:06:58]1017 (14) - 77093643461234 [15:06:58]1041 (16) - 0000000000965340 [15:06:58]1040 (4) - 189195 [15:06:58]1012 (4) - 24.10.2024 08:59 [15:06:58]1206 (1) - 0 [15:06:58]OFD Sender: Remove packet 189195 [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00189195 [15:06:58]NVStorageDeleteData [15:06:59]OFD Sender: No OFD packet to send [15:06:59]*** Cut start [15:06:59]*** Partial cut [15:06:59]*** CUTSNS_PIN = 1 [15:06:59]*** CUTSNS_PIN = 0 [15:06:59]*** Brake cut motor [15:07:00]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]*** Stop cut motor [15:07:00]*** Cut end [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 00 51 00 00 00 00 00 FF 0F 66 [15:07:00]process_action close_receipt done [15:07:00]requested_data is exist [15:07:00]produce_requested_data [15:07:00]requested_item fm.sn is exist - process it [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 11 00 00 [15:07:00]Write to MH i2c: E2 08 00 01 51 80 11 00 00 00 00 00 00 CC [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 01 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [15:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:00]wFMCommunicate OK [15:07:00]requested_item fd.num is exist - process it [15:07:00]SAM_PROTO_GetFieldsCounters [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 00 00 [15:07:00]Write to MH i2c: E2 08 00 02 51 80 13 00 00 00 00 00 00 CF [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 02 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E3 02 00 0E 04 04 00 CF 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 BD [15:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E3 02 00 0E 04 04 00 CF 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 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetFieldsCounters done [15:07:00]requested_item shift.num is exist - process it [15:07:00]requested_item shift.opened is exist - process it [15:07:00]req_shift_opened [15:07:00]FM_GetShiftState [15:07:00]SAM_PROTO_GetShiftState [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 01 00 [15:07:00]Write to MH i2c: E2 08 00 03 51 80 13 01 00 00 00 00 00 D1 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:00]Read from MH i2c: E2 0E 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 03 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AF [15:07:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetShiftState done [15:07:00]FM_GetShiftState done [15:07:00]req_shift_opened done [15:07:00]requested_item shift.open_date is exist - process it [15:07:00]req_shift_open_date [15:07:00]req_shift_open_date done [15:07:00]produce_requested_data done [15:07:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189195,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:07:00]process_action_free close_receipt [15:07:00]json_value_free [15:07:00]json_value_free done [15:07:00]process_json_proto returns [15:07:00]Send response to host [15:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189195,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:07:00]free response buf [15:07:00]execute_script done [15:07:00]execute_script returns [15:07:00]free content buf [15:07:00]Sock 8.Close socket [15:07:00]Sock 8.Thread stoped [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:45]accept exits with 9 [15:08:45]New connection [15:08:45]New thread 3067071844 created [15:08:45]Thread 3067215204 joined [15:08:45]Waiting for new connection... [15:08:45] Sock 9.Parse request [15:08:45]Sock 9.Check first char [15:08:45]Sock 9.First char is OK [15:08:45]request: POST /json_proto HTTP/1.0 [15:08:45]Method: POST [15:08:45]URL: /json_proto [15:08:45]Method is POST - this is cgi request [15:08:45]url: /json_proto [15:08:45]query_string will be loaded in cgi processing [15:08:45]execute_cgi json_proto POST (null) [15:08:45]execute_cgi path=json_proto method=POST [15:08:45]POST find Content-Length [15:08:45]Host: 172.17.42.131:8080 [15:08:45]Content-Length: 678 [15:08:45]Content-Type: application/json [15:08:45] [15:08:45]POST finish read [15:08:45]Found Content-Length = 678 [15:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.810, "sum" : 790.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:45]execute_script... [15:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.810, "sum" : 790.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:45]POST & json_proto [15:08:45]process_json_proto [15:08:45]json parsed OK: [15:08:45]protocol is kg_v1.0 [15:08:45]action value=close_receipt [15:08:45]process_action close_receipt [15:08:45]cmd_close_receipt [15:08:45]MH_GetDate [15:08:45]Write to MH i2c: F0 00 00 04 51 44 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: F0 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: F0 09 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: F0 09 00 04 51 00 01 63 1A 67 A0 18 CA 66 1A [15:08:45]GetLastDocTimeStamp 1729782419 [15:08:45]current date 1729782529 [15:08:45]FM_GetShiftState [15:08:45]SAM_PROTO_GetShiftState [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 13 01 00 [15:08:45]Write to MH i2c: E2 08 00 05 51 80 13 01 00 00 00 00 00 D3 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 05 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B1 [15:08:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_GetShiftState done [15:08:45]FM_GetShiftState done [15:08:45]opened in 1729728961 [15:08:45]opened+sec_in_day 1729815361 [15:08:45]quantity*price = 79008 [15:08:45]sum+1 = 79010 [15:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 790.00 Внесено: 790.00 СДАЧА: 0.00 НСП 1% : 6.99 НДС 12% : 83.90 Наличными: 790.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 269 24.10.2024 15:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189196 ФПД: 28955040919932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150849&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189196&fm=28955040919932&tin=02508201610067®Number=0000000000100030&sum=79000 [15:08:46]StoreToDocumentArchive [15:08:46]shift 463 fd 189196 [15:08:46]save to /storage/0463/doc_00189196 [15:08:46]save last doc name /storage/0463/doc_00189196 to /storage/kkm_last_doc_name [15:08:46]save OK [15:08:46]Clear old archive folders... [15:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:46]tlvbuf is 01567B80 [15:08:46]SAM_PROTO_ClearQueue [15:08:46]wFMCommunicate request_size=4 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 09 00 00 [15:08:46]Write to MH i2c: E2 08 00 12 51 80 09 00 00 00 00 00 00 D5 [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:46]Read from MH i2c: E2 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 03 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 03 00 12 51 00 90 00 D7 [15:08:46]RAPDU: 90 00 [15:08:46]wFMCommunicate OK [15:08:46]SAM_PROTO_ClearQueue done [15:08:46]KKMCreateOFDPacket [15:08:46]OFDProtocolAddRootSTLVToBuf [15:08:46]FM_MakeSignedData [15:08:46]FM_MakeSignedData [15:08:46]SAM_PROTO_SignData [15:08:46]wFMCommunicate request_size=4 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 0D 01 02 [15:08:46]Write to MH i2c: E2 08 00 13 51 80 0D 01 02 00 00 00 00 DD [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:46]Read from MH i2c: E2 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 03 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 03 00 13 51 00 90 00 D8 [15:08:46]RAPDU: 90 00 [15:08:46]wFMCommunicate OK [15:08:46]wFMCommunicate request_size=255 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 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 01 00 00 F4 03 04 00 01 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E3 02 00 35 04 06 00 1A [15:08:46]Write to MH i2c: E2 02 01 14 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 33 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 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 01 00 00 F4 03 04 00 01 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E3 02 00 35 04 06 00 1A 00 00 38 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 14 51 00 90 00 D9 [15:08:47]RAPDU: 90 00 [15:08:47]wFMCommunicate OK [15:08:47]wFMCommunicate request_size=10 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 0D 02 02 05 55 9E ED B1 7C [15:08:47]Write to MH i2c: E2 0D 00 15 51 80 0D 02 02 05 00 55 9E ED B1 7C 00 00 F7 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 15 51 00 90 00 DA [15:08:47]RAPDU: 90 00 [15:08:47]wFMCommunicate OK [15:08:47]wFMCommunicate request_size=4 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 0D 03 02 [15:08:47]Write to MH i2c: E2 08 00 16 51 80 0D 03 02 00 00 00 00 E2 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 0B 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 0B 00 16 51 00 C7 4F 99 D3 08 D8 9C 77 90 00 58 [15:08:47]RAPDU: C7 4F 99 D3 08 D8 9C 77 90 00 [15:08:47]wFMCommunicate OK [15:08:47]SAM_PROTO_SignData done [15:08:47]FM_MakeSignedData done [15:08:47]CreateOFDProtocolMessage [15:08:47]wFMCommunicate request_size=4 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 11 00 00 [15:08:47]Write to MH i2c: E2 08 00 17 51 80 11 00 00 00 00 00 00 E2 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 17 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 17 00 17 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [15:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:08:47]wFMCommunicate OK [15:08:47]CreateOFDProtocolMessage done [15:08:47]OFDSenderStorePacket 189196 [15:08:47]StoreOFDPacket docnum=189196 [15:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B D7 07 01 9D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 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 01 00 00 F4 03 04 00 01 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E3 02 00 35 04 06 00 1A 55 9E ED B1 7C C7 4F 99 D3 08 D8 9C 77 [15:08:47]CheckFolder [15:08:47]dirname=/storage/ofd_packets [15:08:47]CheckFolder done [15:08:47]ProducePacketName [15:08:47]name=ofd_packets/00189196 [15:08:47]NVStorageSaveData ofd_packets/00189196 [15:08:47]File name is /storage/ofd_packets/00189196 [15:08:47]Write 301 bytes [15:08:47]NVStorageSaveData done [15:08:47]OFDSenderStorePacket done [15:08:47]KKMCreateOFDPacket done [15:08:47]NVStorageSaveData kkm_last_timestamp [15:08:47]File name is /storage/kkm_last_timestamp [15:08:47]Write 4 bytes [15:08:47]NVStorageSaveData done [15:08:47]ExternCall_PrintAddStr [15:08:47]wPrintStart [15:08:47]Write to MH i2c: 01 00 00 18 51 69 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: 01 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: 01 07 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: 01 07 00 18 51 00 00 00 00 00 FF 0F 7E [15:08:47]RasterBufferAndPrint [15:08:47]line Счет N : (1)211261 [15:08:47]line ИНН: 02508201610067 [15:08:47]line Контрольно-Кассовый Чек [15:08:47]line ПРОДАЖА [15:08:47]line ТРК (МРК, ГНК) : 32 [15:08:47]line Товар: 2710124130 [15:08:47]line Аи-92-К-3 [15:08:47]line 11.810 * 66.90 [15:08:47]line = 790.09 [15:08:47]line НДС 12% НСП 1% [15:08:47]line > о реализуемом товаре [15:08:47]line ОКРУГЛЕНИЕ: -0.09 [15:08:47]line ИТОГО: 790.00 [15:08:47]line Внесено: 790.00 [15:08:47]line СДАЧА: 0.00 [15:08:47]line НСП 1% : 6.99 [15:08:47]line НДС 12% : 83.90 [15:08:47]line Наличными: 790.00 [15:08:47]line Безнал.: 0.00 [15:08:47]line Место: АЗС № 86 "Партнер Нефть" [15:08:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:08:47]line СНО: Общий режим [15:08:47]line Чек 269 24.10.2024 15:08 [15:08:47]line Смена: 463 ФФД: 1.0 [15:08:47]line ЗНМ: 0300000155 [15:08:47]line РНМ: 0000000000100030 [15:08:47]line Версия ККМ: 001 [15:08:47]line ФМ: 0000000000965340 [15:08:47]line ФД: 189196 [15:08:47]line ФПД: 28955040919932 [15:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150849&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189196&fm=28955040919932&tin=02508201610067®Number=0000000000100030&sum=79000 [15:08:47]OFD Sender: Processing packet 189196 [packets to send 1062, broken 1061] [15:08:47]ProducePacketName [15:08:47]name=ofd_packets/00189196 [15:08:47]OFD Sender: To server: pG, [15:08:47]CommunicateWithHost lk.salyk.kg:30040 [15:08:47]ConnectInit lk.salyk.kg [15:08:47]written 0, free lines is 4095 [15:08:48]Connected sock=10 [15:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B D7 07 01 9D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 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 01 00 00 F4 03 04 00 01 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E3 02 00 35 04 06 00 1A 55 9E ED B1 7C C7 4F 99 D3 08 D8 9C 77 [15:08:48]Write to MH i2c: 01 00 00 43 51 94 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 43 51 00 00 00 00 00 5C 0C 03 [15:08:48]RasterBufferAndPrint [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]written 0, free lines is 3167 [15:08:48]MH_Cut [15:08:48]Write to MH i2c: D1 01 00 4A 51 01 6D [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: D1 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: D1 01 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: D1 01 00 4A 51 00 6C [15:08:48]Write to MH i2c: 01 00 00 4B 51 9C [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 30 47 00 B4 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 39 36 35 33 34 30 10 04 04 00 0C E3 02 00 F4 03 04 00 E9 0C 1A 67 B6 04 01 00 00 F0 86 51 16 C6 07 27 F4 [15:08:48]CommunicateWithHost err = 0 [15:08:48]CheckOFDResponse [15:08:48]1017 (14) - 77093643461234 [15:08:48]1041 (16) - 0000000000965340 [15:08:48]1040 (4) - 189196 [15:08:48]1012 (4) - 24.10.2024 09:01 [15:08:48]1206 (1) - 0 [15:08:48]OFD Sender: Remove packet 189196 [15:08:48]ProducePacketName [15:08:48]name=ofd_packets/00189196 [15:08:48]NVStorageDeleteData [15:08:48]OFD Sender: No OFD packet to send [15:08:49]*** Cut start [15:08:49]*** Partial cut [15:08:49]*** CUTSNS_PIN = 1 [15:08:49]*** CUTSNS_PIN = 0 [15:08:49]*** Brake cut motor [15:08:50]Read from MH i2c: 01 [15:08:50]MH_I2C_Read... [15:08:50]*** Stop cut motor [15:08:50]*** Cut end [15:08:50]Read from MH i2c: 01 07 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 07 00 4B 51 00 00 00 00 00 FF 0F B1 [15:08:50]process_action close_receipt done [15:08:50]requested_data is exist [15:08:50]produce_requested_data [15:08:50]requested_item fm.sn is exist - process it [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 11 00 00 [15:08:50]Write to MH i2c: E2 08 00 4C 51 80 11 00 00 00 00 00 00 17 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 4C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [15:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:08:50]wFMCommunicate OK [15:08:50]requested_item fd.num is exist - process it [15:08:50]SAM_PROTO_GetFieldsCounters [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 13 00 00 [15:08:50]Write to MH i2c: E2 08 00 4D 51 80 13 00 00 00 00 00 00 1A [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 62 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 62 00 4D 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E3 02 00 0E 04 04 00 CF 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 0C [15:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E3 02 00 0E 04 04 00 CF 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 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_GetFieldsCounters done [15:08:50]requested_item shift.num is exist - process it [15:08:50]requested_item shift.opened is exist - process it [15:08:50]req_shift_opened [15:08:50]FM_GetShiftState [15:08:50]SAM_PROTO_GetShiftState [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 13 01 00 [15:08:50]Write to MH i2c: E2 08 00 4E 51 80 13 01 00 00 00 00 00 1C [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0E 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0E 00 4E 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FA [15:08:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_GetShiftState done [15:08:50]FM_GetShiftState done [15:08:50]req_shift_opened done [15:08:50]requested_item shift.open_date is exist - process it [15:08:50]req_shift_open_date [15:08:50]req_shift_open_date done [15:08:50]produce_requested_data done [15:08:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189196,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:08:50]process_action_free close_receipt [15:08:50]json_value_free [15:08:50]json_value_free done [15:08:50]process_json_proto returns [15:08:50]Send response to host [15:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189196,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:08:50]free response buf [15:08:50]execute_script done [15:08:50]execute_script returns [15:08:50]free content buf [15:08:50]Sock 9.Close socket [15:08:50]Sock 9.Thread stoped [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]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:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:41]accept exits with 8 [15:12:41]New connection [15:12:41]New thread 3067215204 created [15:12:41]Thread 3067071844 joined [15:12:41]Waiting for new connection... [15:12:41] Sock 8.Parse request [15:12:41]Sock 8.Check first char [15:12:41]Sock 8.First char is OK [15:12:41]request: POST /json_proto HTTP/1.0 [15:12:41]Method: POST [15:12:41]URL: /json_proto [15:12:41]Method is POST - this is cgi request [15:12:41]url: /json_proto [15:12:41]query_string will be loaded in cgi processing [15:12:41]execute_cgi json_proto POST (null) [15:12:41]execute_cgi path=json_proto method=POST [15:12:41]POST find Content-Length [15:12:41]Host: 172.17.42.131:8080 [15:12:41]Content-Length: 678 [15:12:41]Content-Type: application/json [15:12:41] [15:12:41]POST finish read [15:12:41]Found Content-Length = 678 [15:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:12:41]execute_script... [15:12: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)211262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:12:41]POST & json_proto [15:12:41]process_json_proto [15:12:41]json parsed OK: [15:12:41]protocol is kg_v1.0 [15:12:41]action value=close_receipt [15:12:41]process_action close_receipt [15:12:41]cmd_close_receipt [15:12:41]MH_GetDate [15:12:41]Write to MH i2c: F0 00 00 4F 51 8F [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: F0 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: F0 09 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: F0 09 00 4F 51 00 ED 63 1A 67 A0 18 CA 66 51 [15:12:41]GetLastDocTimeStamp 1729782529 [15:12:41]current date 1729782765 [15:12:41]FM_GetShiftState [15:12:41]SAM_PROTO_GetShiftState [15:12:41]wFMCommunicate request_size=4 [15:12:41]MH_SAM_APDU [15:12:41]CAPDU: 80 13 01 00 [15:12:41]Write to MH i2c: E2 08 00 50 51 80 13 01 00 00 00 00 00 1E [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:42]Read from MH i2c: E2 [15:12:42]MH_I2C_Read... [15:12:42]Read from MH i2c: E2 0E 00 [15:12:42]MH_I2C_Read... [15:12:42]Read from MH i2c: E2 0E 00 50 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FC [15:12:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:12:42]wFMCommunicate OK [15:12:42]SAM_PROTO_GetShiftState done [15:12:42]FM_GetShiftState done [15:12:42]opened in 1729728961 [15:12:42]opened+sec_in_day 1729815361 [15:12:42]quantity*price = 70044 [15:12:42]sum+1 = 70045 [15:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 270 24.10.2024 15:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189197 ФПД: 28724994506696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151245&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189197&fm=28724994506696&tin=02508201610067®Number=0000000000100030&sum=70000 [15:12:43]StoreToDocumentArchive [15:12:43]shift 463 fd 189197 [15:12:43]save to /storage/0463/doc_00189197 [15:12:43]save last doc name /storage/0463/doc_00189197 to /storage/kkm_last_doc_name [15:12:43]save OK [15:12:43]Clear old archive folders... [15:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:43]tlvbuf is 015673C0 [15:12:43]SAM_PROTO_ClearQueue [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 09 00 00 [15:12:43]Write to MH i2c: E2 08 00 5D 51 80 09 00 00 00 00 00 00 20 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 5D 51 00 90 00 22 [15:12:43]RAPDU: 90 00 [15:12:43]wFMCommunicate OK [15:12:43]SAM_PROTO_ClearQueue done [15:12:43]KKMCreateOFDPacket [15:12:43]OFDProtocolAddRootSTLVToBuf [15:12:43]FM_MakeSignedData [15:12:43]FM_MakeSignedData [15:12:43]SAM_PROTO_SignData [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 0D 01 02 [15:12:43]Write to MH i2c: E2 08 00 5E 51 80 0D 01 02 00 00 00 00 28 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 5E 51 00 90 00 23 [15:12:43]RAPDU: 90 00 [15:12:43]wFMCommunicate OK [15:12:43]wFMCommunicate request_size=255 [15:12:43]MH_SAM_APDU [15: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 ED 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E3 02 00 35 04 06 00 1A [15:12:43]Write to MH i2c: E2 02 01 5F 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 ED 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E3 02 00 35 04 06 00 1A 00 00 67 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 5F 51 00 90 00 24 [15:12:43]RAPDU: 90 00 [15:12:43]wFMCommunicate OK [15:12:43]wFMCommunicate request_size=10 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 0D 02 02 05 20 0F 17 FF C8 [15:12:43]Write to MH i2c: E2 0D 00 60 51 80 0D 02 02 05 00 20 0F 17 FF C8 00 00 42 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 03 00 60 51 00 90 00 25 [15:12:43]RAPDU: 90 00 [15:12:43]wFMCommunicate OK [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 0D 03 02 [15:12:43]Write to MH i2c: E2 08 00 61 51 80 0D 03 02 00 00 00 00 2D [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 0B 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 0B 00 61 51 00 9E 21 D6 19 F3 39 19 40 90 00 61 [15:12:43]RAPDU: 9E 21 D6 19 F3 39 19 40 90 00 [15:12:43]wFMCommunicate OK [15:12:43]SAM_PROTO_SignData done [15:12:43]FM_MakeSignedData done [15:12:43]CreateOFDProtocolMessage [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 11 00 00 [15:12:43]Write to MH i2c: E2 08 00 62 51 80 11 00 00 00 00 00 00 2D [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 17 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 17 00 62 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [15:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:43]wFMCommunicate OK [15:12:43]CreateOFDProtocolMessage done [15:12:43]OFDSenderStorePacket 189197 [15:12:43]StoreOFDPacket docnum=189197 [15:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA BC 07 01 55 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 ED 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E3 02 00 35 04 06 00 1A 20 0F 17 FF C8 9E 21 D6 19 F3 39 19 40 [15:12:43]CheckFolder [15:12:43]dirname=/storage/ofd_packets [15:12:43]CheckFolder done [15:12:43]ProducePacketName [15:12:43]name=ofd_packets/00189197 [15:12:43]NVStorageSaveData ofd_packets/00189197 [15:12:43]File name is /storage/ofd_packets/00189197 [15:12:43]Write 301 bytes [15:12:43]NVStorageSaveData done [15:12:43]OFDSenderStorePacket done [15:12:43]KKMCreateOFDPacket done [15:12:43]NVStorageSaveData kkm_last_timestamp [15:12:43]File name is /storage/kkm_last_timestamp [15:12:43]Write 4 bytes [15:12:43]NVStorageSaveData done [15:12:43]ExternCall_PrintAddStr [15:12:43]wPrintStart [15:12:43]Write to MH i2c: 01 00 00 63 51 B4 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: 01 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: 01 07 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: 01 07 00 63 51 00 00 00 00 00 FF 0F C9 [15:12:43]RasterBufferAndPrint [15:12:43]line Счет N : (1)211262 [15:12:43]line ИНН: 02508201610067 [15:12:43]line Контрольно-Кассовый Чек [15:12:43]line ПРОДАЖА [15:12:43]line ТРК (МРК, ГНК) : 42 [15:12:43]line Товар: 2710124130 [15:12:43]line Аи-92-К-3 [15:12:43]line 10.470 * 66.90 [15:12:43]line = 700.44 [15:12:43]line НДС 12% НСП 1% [15:12:43]line > о реализуемом товаре [15:12:43]line ОКРУГЛЕНИЕ: -0.44 [15:12:43]line ИТОГО: 700.00 [15:12:43]line Внесено: 700.00 [15:12:43]line СДАЧА: 0.00 [15:12:43]line НСП 1% : 6.20 [15:12:43]line НДС 12% : 74.38 [15:12:43]line Наличными: 700.00 [15:12:43]line Безнал.: 0.00 [15:12:43]line Место: АЗС № 86 "Партнер Нефть" [15:12:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:12:43]line СНО: Общий режим [15:12:43]line Чек 270 24.10.2024 15:12 [15:12:43]line Смена: 463 ФФД: 1.0 [15:12:43]line ЗНМ: 0300000155 [15:12:43]line РНМ: 0000000000100030 [15:12:43]line Версия ККМ: 001 [15:12:43]line ФМ: 0000000000965340 [15:12:43]line ФД: 189197 [15:12:43]line ФПД: 28724994506696 [15:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151245&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189197&fm=28724994506696&tin=02508201610067®Number=0000000000100030&sum=70000 [15:12:43]written 0, free lines is 4095 [15:12:43]OFD Sender: Processing packet 189197 [packets to send 1062, broken 1061] [15:12:43]ProducePacketName [15:12:43]name=ofd_packets/00189197 [15:12:43]OFD Sender: To server: pG, [15:12:43]CommunicateWithHost lk.salyk.kg:30040 [15:12:43]ConnectInit lk.salyk.kg [15:12:44]Connected sock=9 [15:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA BC 07 01 55 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 ED 63 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E3 02 00 35 04 06 00 1A 20 0F 17 FF C8 9E 21 D6 19 F3 39 19 40 [15:12:44]Write to MH i2c: 01 00 00 8E 51 DF [15:12:44]Write i2c OK [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: 01 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: 01 07 00 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: 01 07 00 8E 51 00 00 00 00 00 59 0C 4B [15:12:44]RasterBufferAndPrint [15:12:44]line [15:12:44]line [15:12:44]line [15:12:44]line [15:12:44]line [15:12:44]written 0, free lines is 3165 [15:12:44]MH_Cut [15:12:44]Write to MH i2c: D1 01 00 95 51 01 B8 [15:12:44]Write i2c OK [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: D1 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: D1 01 00 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: D1 01 00 95 51 00 B7 [15:12:44]Write to MH i2c: 01 00 00 96 51 E7 [15:12:44]Write i2c OK [15:12:44]MH_I2C_Read... [15:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D 60 47 00 BA 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 39 36 35 33 34 30 10 04 04 00 0D E3 02 00 F4 03 04 00 D5 0D 1A 67 B6 04 01 00 00 94 46 12 AB 71 E9 DA D6 [15:12:44]CommunicateWithHost err = 0 [15:12:44]CheckOFDResponse [15:12:44]1017 (14) - 77093643461234 [15:12:44]1041 (16) - 0000000000965340 [15:12:44]1040 (4) - 189197 [15:12:44]1012 (4) - 24.10.2024 09:05 [15:12:44]1206 (1) - 0 [15:12:44]OFD Sender: Remove packet 189197 [15:12:44]ProducePacketName [15:12:44]name=ofd_packets/00189197 [15:12:44]NVStorageDeleteData [15:12:44]OFD Sender: No OFD packet to send [15:12:45]*** Cut start [15:12:45]*** Partial cut [15:12:45]*** CUTSNS_PIN = 1 [15:12:45]*** CUTSNS_PIN = 0 [15:12:45]*** Brake cut motor [15:12:46]Read from MH i2c: 01 [15:12:46]MH_I2C_Read... [15:12:46]*** Stop cut motor [15:12:46]*** Cut end [15:12:46]Read from MH i2c: 01 07 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 07 00 96 51 00 00 00 00 00 FF 0F FC [15:12:46]process_action close_receipt done [15:12:46]requested_data is exist [15:12:46]produce_requested_data [15:12:46]requested_item fm.sn is exist - process it [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 11 00 00 [15:12:46]Write to MH i2c: E2 08 00 97 51 80 11 00 00 00 00 00 00 62 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 17 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 17 00 97 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [15:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:46]wFMCommunicate OK [15:12:46]requested_item fd.num is exist - process it [15:12:46]SAM_PROTO_GetFieldsCounters [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 13 00 00 [15:12:46]Write to MH i2c: E2 08 00 98 51 80 13 00 00 00 00 00 00 65 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 62 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 62 00 98 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E3 02 00 0E 04 04 00 CF 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 5B [15:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E3 02 00 0E 04 04 00 CF 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 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_GetFieldsCounters done [15:12:46]requested_item shift.num is exist - process it [15:12:46]requested_item shift.opened is exist - process it [15:12:46]req_shift_opened [15:12:46]FM_GetShiftState [15:12:46]SAM_PROTO_GetShiftState [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 13 01 00 [15:12:46]Write to MH i2c: E2 08 00 99 51 80 13 01 00 00 00 00 00 67 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 99 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 45 [15:12:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_GetShiftState done [15:12:46]FM_GetShiftState done [15:12:46]req_shift_opened done [15:12:46]requested_item shift.open_date is exist - process it [15:12:46]req_shift_open_date [15:12:46]req_shift_open_date done [15:12:46]produce_requested_data done [15:12:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189197,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:12:46]process_action_free close_receipt [15:12:46]json_value_free [15:12:46]json_value_free done [15:12:46]process_json_proto returns [15:12:46]Send response to host [15:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189197,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:12:46]free response buf [15:12:46]execute_script done [15:12:46]execute_script returns [15:12:46]free content buf [15:12:46]Sock 8.Close socket [15:12:46]Sock 8.Thread stoped [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:15:57]accept exits with 10 [15:15:57]New connection [15:15:57]New thread 3067071844 created [15:15:57]Thread 3067215204 joined [15:15:57]Waiting for new connection... [15:15:57] Sock 10.Parse request [15:15:57]Sock 10.Check first char [15:15:57]Sock 10.First char is OK [15:15:57]request: POST /json_proto HTTP/1.0 [15:15:57]Method: POST [15:15:57]URL: /json_proto [15:15:57]Method is POST - this is cgi request [15:15:57]url: /json_proto [15:15:57]query_string will be loaded in cgi processing [15:15:57]execute_cgi json_proto POST (null) [15:15:57]execute_cgi path=json_proto method=POST [15:15:57]POST find Content-Length [15:15:57]Host: 172.17.42.131:8080 [15:15:57]Content-Length: 677 [15:15:57]Content-Type: application/json [15:15:57] [15:15:57]POST finish read [15:15:57]Found Content-Length = 677 [15:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:15:57]execute_script... [15:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:15:57]POST & json_proto [15:15:57]process_json_proto [15:15:57]json parsed OK: [15:15:57]protocol is kg_v1.0 [15:15:57]action value=close_receipt [15:15:57]process_action close_receipt [15:15:57]cmd_close_receipt [15:15:57]MH_GetDate [15:15:57]Write to MH i2c: F0 00 00 9A 51 DA [15:15:57]Write i2c OK [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: F0 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: F0 09 00 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: F0 09 00 9A 51 00 B1 64 1A 67 A0 18 CA 66 61 [15:15:57]GetLastDocTimeStamp 1729782765 [15:15:57]current date 1729782961 [15:15:57]FM_GetShiftState [15:15:57]SAM_PROTO_GetShiftState [15:15:57]wFMCommunicate request_size=4 [15:15:57]MH_SAM_APDU [15:15:57]CAPDU: 80 13 01 00 [15:15:57]Write to MH i2c: E2 08 00 9B 51 80 13 01 00 00 00 00 00 69 [15:15:57]Write i2c OK [15:15:57]MH_I2C_Read... [15:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:57]Read from MH i2c: E2 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: E2 0E 00 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: E2 0E 00 9B 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 47 [15:15:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:15:57]wFMCommunicate OK [15:15:57]SAM_PROTO_GetShiftState done [15:15:57]FM_GetShiftState done [15:15:57]opened in 1729728961 [15:15:57]opened+sec_in_day 1729815361 [15:15:57]quantity*price = 30038 [15:15:57]sum+1 = 30039 [15:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 271 24.10.2024 15:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189198 ФПД: 193707755140037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151601&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189198&fm=193707755140037&tin=02508201610067®Number=0000000000100030&sum=30000 [15:15:58]StoreToDocumentArchive [15:15:58]shift 463 fd 189198 [15:15:58]save to /storage/0463/doc_00189198 [15:15:58]save last doc name /storage/0463/doc_00189198 to /storage/kkm_last_doc_name [15:15:58]save OK [15:15:58]Clear old archive folders... [15:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:58]tlvbuf is 01537E20 [15:15:58]SAM_PROTO_ClearQueue [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 09 00 00 [15:15:58]Write to MH i2c: E2 08 00 A8 51 80 09 00 00 00 00 00 00 6B [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 A8 51 00 90 00 6D [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]SAM_PROTO_ClearQueue done [15:15:58]KKMCreateOFDPacket [15:15:58]OFDProtocolAddRootSTLVToBuf [15:15:58]FM_MakeSignedData [15:15:58]FM_MakeSignedData [15:15:58]SAM_PROTO_SignData [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 0D 01 02 [15:15:58]Write to MH i2c: E2 08 00 A9 51 80 0D 01 02 00 00 00 00 73 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 03 00 A9 51 00 90 00 6E [15:15:58]RAPDU: 90 00 [15:15:58]wFMCommunicate OK [15:15:58]wFMCommunicate request_size=255 [15:15:58]MH_SAM_APDU [15:15: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0F 01 00 00 F4 03 04 00 B1 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E3 02 00 35 04 06 00 B0 [15:15:58]Write to MH i2c: E2 02 01 AA 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0F 01 00 00 F4 03 04 00 B1 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E3 02 00 35 04 06 00 B0 00 00 F3 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:59]Read from MH i2c: E2 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 03 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 03 00 AA 51 00 90 00 6F [15:15:59]RAPDU: 90 00 [15:15:59]wFMCommunicate OK [15:15:59]wFMCommunicate request_size=10 [15:15:59]MH_SAM_APDU [15:15:59]CAPDU: 80 0D 02 02 05 2D 19 EF 73 C5 [15:15:59]Write to MH i2c: E2 0D 00 AB 51 80 0D 02 02 05 00 2D 19 EF 73 C5 00 00 ED [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:59]Read from MH i2c: E2 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 03 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 03 00 AB 51 00 90 00 70 [15:15:59]RAPDU: 90 00 [15:15:59]wFMCommunicate OK [15:15:59]wFMCommunicate request_size=4 [15:15:59]MH_SAM_APDU [15:15:59]CAPDU: 80 0D 03 02 [15:15:59]Write to MH i2c: E2 08 00 AC 51 80 0D 03 02 00 00 00 00 78 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:59]Read from MH i2c: E2 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 0B 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 0B 00 AC 51 00 54 58 D0 04 53 90 77 F9 90 00 4C [15:15:59]RAPDU: 54 58 D0 04 53 90 77 F9 90 00 [15:15:59]wFMCommunicate OK [15:15:59]SAM_PROTO_SignData done [15:15:59]FM_MakeSignedData done [15:15:59]CreateOFDProtocolMessage [15:15:59]wFMCommunicate request_size=4 [15:15:59]MH_SAM_APDU [15:15:59]CAPDU: 80 11 00 00 [15:15:59]Write to MH i2c: E2 08 00 AD 51 80 11 00 00 00 00 00 00 78 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:59]Read from MH i2c: E2 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 17 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: E2 17 00 AD 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [15:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:59]wFMCommunicate OK [15:15:59]CreateOFDProtocolMessage done [15:15:59]OFDSenderStorePacket 189198 [15:15:59]StoreOFDPacket docnum=189198 [15:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 57 07 01 45 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0F 01 00 00 F4 03 04 00 B1 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E3 02 00 35 04 06 00 B0 2D 19 EF 73 C5 54 58 D0 04 53 90 77 F9 [15:15:59]CheckFolder [15:15:59]dirname=/storage/ofd_packets [15:15:59]CheckFolder done [15:15:59]ProducePacketName [15:15:59]name=ofd_packets/00189198 [15:15:59]NVStorageSaveData ofd_packets/00189198 [15:15:59]File name is /storage/ofd_packets/00189198 [15:15:59]Write 301 bytes [15:15:59]NVStorageSaveData done [15:15:59]OFDSenderStorePacket done [15:15:59]KKMCreateOFDPacket done [15:15:59]NVStorageSaveData kkm_last_timestamp [15:15:59]File name is /storage/kkm_last_timestamp [15:15:59]Write 4 bytes [15:15:59]NVStorageSaveData done [15:15:59]ExternCall_PrintAddStr [15:15:59]wPrintStart [15:15:59]Write to MH i2c: 01 00 00 AE 51 FF [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 AE 51 00 00 00 00 00 FF 0F 14 [15:15:59]RasterBufferAndPrint [15:15:59]line Счет N : (1)211263 [15:15:59]line ИНН: 02508201610067 [15:15:59]line Контрольно-Кассовый Чек [15:15:59]line ПРОДАЖА [15:15:59]line ТРК (МРК, ГНК) : 42 [15:15:59]line Товар: 2710124130 [15:15:59]line Аи-92-К-3 [15:15:59]line 4.490 * 66.90 [15:15:59]line = 300.38 [15:15:59]line НДС 12% НСП 1% [15:15:59]line > о реализуемом товаре [15:15:59]line ОКРУГЛЕНИЕ: -0.38 [15:15:59]line ИТОГО: 300.00 [15:15:59]line Внесено: 300.00 [15:15:59]line СДАЧА: 0.00 [15:15:59]line НСП 1% : 2.66 [15:15:59]line НДС 12% : 31.90 [15:15:59]line Наличными: 300.00 [15:15:59]line Безнал.: 0.00 [15:15:59]line Место: АЗС № 86 "Партнер Нефть" [15:15:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:15:59]line СНО: Общий режим [15:15:59]line Чек 271 24.10.2024 15:16 [15:15:59]line Смена: 463 ФФД: 1.0 [15:15:59]line ЗНМ: 0300000155 [15:15:59]line РНМ: 0000000000100030 [15:15:59]line Версия ККМ: 001 [15:15:59]line ФМ: 0000000000965340 [15:15:59]line ФД: 189198 [15:15:59]line ФПД: 193707755140037 [15:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151601&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189198&fm=193707755140037&tin=02508201610067®Number=0000000000100030&sum=30000 [15:15:59]written 0, free lines is 4095 [15:15:59]OFD Sender: Processing packet 189198 [packets to send 1062, broken 1061] [15:15:59]ProducePacketName [15:15:59]name=ofd_packets/00189198 [15:15:59]OFD Sender: To server: pG, [15:15:59]CommunicateWithHost lk.salyk.kg:30040 [15:15:59]ConnectInit lk.salyk.kg [15:15:59]Connected sock=9 [15:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 57 07 01 45 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0F 01 00 00 F4 03 04 00 B1 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E3 02 00 35 04 06 00 B0 2D 19 EF 73 C5 54 58 D0 04 53 90 77 F9 [15:15:59]Write to MH i2c: 01 00 00 D9 51 2A [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: 01 07 00 D9 51 00 00 00 00 00 5C 0C 99 [15:15:59]RasterBufferAndPrint [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]line [15:15:59]written 0, free lines is 3167 [15:15:59]MH_Cut [15:15:59]Write to MH i2c: D1 01 00 E0 51 01 03 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 01 00 [15:15:59]MH_I2C_Read... [15:15:59]Read from MH i2c: D1 01 00 E0 51 00 02 [15:15:59]Write to MH i2c: 01 00 00 E1 51 32 [15:15:59]Write i2c OK [15:15:59]MH_I2C_Read... [15:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 50 47 00 9A 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 39 36 35 33 34 30 10 04 04 00 0E E3 02 00 F4 03 04 00 99 0E 1A 67 B6 04 01 00 00 FA 28 8C 13 B2 50 56 1B [15:16:00]CommunicateWithHost err = 0 [15:16:00]CheckOFDResponse [15:16:00]1017 (14) - 77093643461234 [15:16:00]1041 (16) - 0000000000965340 [15:16:00]1040 (4) - 189198 [15:16:00]1012 (4) - 24.10.2024 09:08 [15:16:00]1206 (1) - 0 [15:16:00]OFD Sender: Remove packet 189198 [15:16:00]ProducePacketName [15:16:00]name=ofd_packets/00189198 [15:16:00]NVStorageDeleteData [15:16:00]OFD Sender: No OFD packet to send [15:16:01]*** Cut start [15:16:01]*** Partial cut [15:16:01]*** CUTSNS_PIN = 1 [15:16:01]*** CUTSNS_PIN = 0 [15:16:01]*** Brake cut motor [15:16:01]Read from MH i2c: 01 [15:16:01]MH_I2C_Read... [15:16:01]*** Stop cut motor [15:16:01]*** Cut end [15:16:01]Read from MH i2c: 01 07 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: 01 07 00 E1 51 00 00 00 00 00 FF 0F 47 [15:16:01]process_action close_receipt done [15:16:01]requested_data is exist [15:16:01]produce_requested_data [15:16:01]requested_item fm.sn is exist - process it [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 11 00 00 [15:16:01]Write to MH i2c: E2 08 00 E2 51 80 11 00 00 00 00 00 00 AD [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 17 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 17 00 E2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [15:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:16:01]wFMCommunicate OK [15:16:01]requested_item fd.num is exist - process it [15:16:01]SAM_PROTO_GetFieldsCounters [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 13 00 00 [15:16:01]Write to MH i2c: E2 08 00 E3 51 80 13 00 00 00 00 00 00 B0 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 62 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 62 00 E3 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E3 02 00 0E 04 04 00 CF 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 AA [15:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E3 02 00 0E 04 04 00 CF 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 [15:16:02]wFMCommunicate OK [15:16:02]SAM_PROTO_GetFieldsCounters done [15:16:02]requested_item shift.num is exist - process it [15:16:02]requested_item shift.opened is exist - process it [15:16:02]req_shift_opened [15:16:02]FM_GetShiftState [15:16:02]SAM_PROTO_GetShiftState [15:16:02]wFMCommunicate request_size=4 [15:16:02]MH_SAM_APDU [15:16:02]CAPDU: 80 13 01 00 [15:16:02]Write to MH i2c: E2 08 00 E4 51 80 13 01 00 00 00 00 00 B2 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:02]Read from MH i2c: E2 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 0E 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 0E 00 E4 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 90 [15:16:02]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:16:02]wFMCommunicate OK [15:16:02]SAM_PROTO_GetShiftState done [15:16:02]FM_GetShiftState done [15:16:02]req_shift_opened done [15:16:02]requested_item shift.open_date is exist - process it [15:16:02]req_shift_open_date [15:16:02]req_shift_open_date done [15:16:02]produce_requested_data done [15:16:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189198,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:16:02]process_action_free close_receipt [15:16:02]json_value_free [15:16:02]json_value_free done [15:16:02]process_json_proto returns [15:16:02]Send response to host [15:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189198,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:16:02]free response buf [15:16:02]execute_script done [15:16:02]execute_script returns [15:16:02]free content buf [15:16:02]Sock 10.Close socket [15:16:02]Sock 10.Thread stoped [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:35]accept exits with 8 [15:16:35]New connection [15:16:35]New thread 3067215204 created [15:16:35]Thread 3067071844 joined [15:16:35]Waiting for new connection... [15:16:35] Sock 8.Parse request [15:16:35]Sock 8.Check first char [15:16:35]Sock 8.First char is OK [15:16:35]request: POST /json_proto HTTP/1.0 [15:16:35]Method: POST [15:16:35]URL: /json_proto [15:16:35]Method is POST - this is cgi request [15:16:35]url: /json_proto [15:16:35]query_string will be loaded in cgi processing [15:16:35]execute_cgi json_proto POST (null) [15:16:35]execute_cgi path=json_proto method=POST [15:16:35]POST find Content-Length [15:16:35]Host: 172.17.42.131:8080 [15:16:35]Content-Length: 675 [15:16:35]Content-Type: application/json [15:16:35] [15:16:35]POST finish read [15:16:35]Found Content-Length = 675 [15:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:16:35]execute_script... [15: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)211264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:16:35]POST & json_proto [15:16:35]process_json_proto [15:16:35]json parsed OK: [15:16:35]protocol is kg_v1.0 [15:16:35]action value=close_receipt [15:16:35]process_action close_receipt [15:16:35]cmd_close_receipt [15:16:35]MH_GetDate [15:16:35]Write to MH i2c: F0 00 00 E5 51 25 [15:16:35]Write i2c OK [15:16:35]MH_I2C_Read... [15:16:35]Read from MH i2c: F0 [15:16:35]MH_I2C_Read... [15:16:35]Read from MH i2c: F0 09 00 [15:16:35]MH_I2C_Read... [15:16:35]Read from MH i2c: F0 09 00 E5 51 00 D7 64 1A 67 A0 18 CA 66 D2 [15:16:35]GetLastDocTimeStamp 1729782961 [15:16:35]current date 1729782999 [15:16:35]FM_GetShiftState [15:16:35]SAM_PROTO_GetShiftState [15:16:35]wFMCommunicate request_size=4 [15:16:35]MH_SAM_APDU [15:16:35]CAPDU: 80 13 01 00 [15:16:35]Write to MH i2c: E2 08 00 E6 51 80 13 01 00 00 00 00 00 B4 [15:16:35]Write i2c OK [15:16:35]MH_I2C_Read... [15:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:35]Read from MH i2c: E2 [15:16:35]MH_I2C_Read... [15:16:35]Read from MH i2c: E2 0E 00 [15:16:35]MH_I2C_Read... [15:16:35]Read from MH i2c: E2 0E 00 E6 51 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 92 [15:16:35]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:16:35]wFMCommunicate OK [15:16:35]SAM_PROTO_GetShiftState done [15:16:35]FM_GetShiftState done [15:16:35]opened in 1729728961 [15:16:35]opened+sec_in_day 1729815361 [15:16:35]quantity*price = 80010 [15:16:35]sum+1 = 80011 [15:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 272 24.10.2024 15:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189199 ФПД: 103675130941245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189199&fm=103675130941245&tin=02508201610067®Number=0000000000100030&sum=80000 [15:16:37]StoreToDocumentArchive [15:16:37]shift 463 fd 189199 [15:16:37]save to /storage/0463/doc_00189199 [15:16:37]save last doc name /storage/0463/doc_00189199 to /storage/kkm_last_doc_name [15:16:37]save OK [15:16:37]Clear old archive folders... [15:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:37]tlvbuf is 01676400 [15:16:37]SAM_PROTO_ClearQueue [15:16:37]wFMCommunicate request_size=4 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 09 00 00 [15:16:37]Write to MH i2c: E2 08 00 F3 51 80 09 00 00 00 00 00 00 B6 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 F3 51 00 90 00 B8 [15:16:37]RAPDU: 90 00 [15:16:37]wFMCommunicate OK [15:16:37]SAM_PROTO_ClearQueue done [15:16:37]KKMCreateOFDPacket [15:16:37]OFDProtocolAddRootSTLVToBuf [15:16:37]FM_MakeSignedData [15:16:37]FM_MakeSignedData [15:16:37]SAM_PROTO_SignData [15:16:37]wFMCommunicate request_size=4 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 0D 01 02 [15:16:37]Write to MH i2c: E2 08 00 F4 51 80 0D 01 02 00 00 00 00 BE [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 F4 51 00 90 00 B9 [15:16:37]RAPDU: 90 00 [15:16:37]wFMCommunicate OK [15:16:37]wFMCommunicate request_size=255 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 D7 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E3 02 00 35 04 06 00 5E 4A BF 5A [15:16:37]Write to MH i2c: E2 02 01 F5 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 D7 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E3 02 00 35 04 06 00 5E 4A BF 5A 00 00 AE [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 F5 51 00 90 00 BA [15:16:37]RAPDU: 90 00 [15:16:37]wFMCommunicate OK [15:16:37]wFMCommunicate request_size=7 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 0D 02 02 02 0F 3D [15:16:37]Write to MH i2c: E2 0A 00 F6 51 80 0D 02 02 02 00 0F 3D 00 00 11 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 03 00 F6 51 00 90 00 BB [15:16:37]RAPDU: 90 00 [15:16:37]wFMCommunicate OK [15:16:37]wFMCommunicate request_size=4 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 0D 03 02 [15:16:37]Write to MH i2c: E2 08 00 F7 51 80 0D 03 02 00 00 00 00 C3 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 0B 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 0B 00 F7 51 00 98 9A D8 63 47 0E 65 F6 90 00 E1 [15:16:37]RAPDU: 98 9A D8 63 47 0E 65 F6 90 00 [15:16:37]wFMCommunicate OK [15:16:37]SAM_PROTO_SignData done [15:16:37]FM_MakeSignedData done [15:16:37]CreateOFDProtocolMessage [15:16:37]wFMCommunicate request_size=4 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 11 00 00 [15:16:37]Write to MH i2c: E2 08 00 F8 51 80 11 00 00 00 00 00 00 C3 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 17 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 17 00 F8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [15:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:16:37]wFMCommunicate OK [15:16:37]CreateOFDProtocolMessage done [15:16:37]OFDSenderStorePacket 189199 [15:16:37]StoreOFDPacket docnum=189199 [15:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A2 18 04 01 06 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 D7 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E3 02 00 35 04 06 00 5E 4A BF 5A 0F 3D 98 9A D8 63 47 0E 65 F6 [15:16:37]CheckFolder [15:16:37]dirname=/storage/ofd_packets [15:16:37]CheckFolder done [15:16:37]ProducePacketName [15:16:37]name=ofd_packets/00189199 [15:16:37]NVStorageSaveData ofd_packets/00189199 [15:16:37]File name is /storage/ofd_packets/00189199 [15:16:37]Write 298 bytes [15:16:37]NVStorageSaveData done [15:16:37]OFDSenderStorePacket done [15:16:37]KKMCreateOFDPacket done [15:16:37]NVStorageSaveData kkm_last_timestamp [15:16:37]File name is /storage/kkm_last_timestamp [15:16:37]Write 4 bytes [15:16:37]NVStorageSaveData done [15:16:37]ExternCall_PrintAddStr [15:16:37]wPrintStart [15:16:37]Write to MH i2c: 01 00 00 F9 51 4A [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: 01 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: 01 07 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: 01 07 00 F9 51 00 00 00 00 00 FF 0F 5F [15:16:37]RasterBufferAndPrint [15:16:37]line Счет N : (1)211264 [15:16:37]line ИНН: 02508201610067 [15:16:37]line Контрольно-Кассовый Чек [15:16:37]line ПРОДАЖА [15:16:37]line ТРК (МРК, ГНК) : 51 [15:16:37]line Товар: 2710194210 [15:16:37]line ДТ-К-5 [15:16:37]line 10.500 * 76.20 [15:16:37]line = 800.10 [15:16:37]line НДС 12% НСП 1% [15:16:37]line > о реализуемом товаре [15:16:37]line ОКРУГЛЕНИЕ: -0.10 [15:16:37]line ИТОГО: 800.00 [15:16:37]line Внесено: 800.00 [15:16:37]line СДАЧА: 0.00 [15:16:37]line НСП 1% : 7.08 [15:16:37]line НДС 12% : 84.97 [15:16:37]line Наличными: 800.00 [15:16:37]line Безнал.: 0.00 [15:16:37]line Место: АЗС № 86 "Партнер Нефть" [15:16:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:16:37]line СНО: Общий режим [15:16:37]line Чек 272 24.10.2024 15:16 [15:16:37]line Смена: 463 ФФД: 1.0 [15:16:37]line ЗНМ: 0300000155 [15:16:37]line РНМ: 0000000000100030 [15:16:37]line Версия ККМ: 001 [15:16:37]line ФМ: 0000000000965340 [15:16:37]line ФД: 189199 [15:16:37]line ФПД: 103675130941245 [15:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189199&fm=103675130941245&tin=02508201610067®Number=0000000000100030&sum=80000 [15:16:37]written 0, free lines is 4095 [15:16:37]OFD Sender: Processing packet 189199 [packets to send 1062, broken 1061] [15:16:37]ProducePacketName [15:16:37]name=ofd_packets/00189199 [15:16:37]OFD Sender: To server: pG, [15:16:37]CommunicateWithHost lk.salyk.kg:30040 [15:16:37]ConnectInit lk.salyk.kg [15:16:37]Connected sock=10 [15:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A2 18 04 01 06 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 D7 64 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E3 02 00 35 04 06 00 5E 4A BF 5A 0F 3D 98 9A D8 63 47 0E 65 F6 [15:16:38]Write to MH i2c: 01 00 00 24 52 76 [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 07 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 07 00 24 52 00 00 00 00 00 57 0C E0 [15:16:38]RasterBufferAndPrint [15:16:38]line [15:16:38]line [15:16:38]line [15:16:38]line [15:16:38]line [15:16:38]written 0, free lines is 3162 [15:16:38]MH_Cut [15:16:38]Write to MH i2c: D1 01 00 2B 52 01 4F [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: D1 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: D1 01 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: D1 01 00 2B 52 00 4E [15:16:38]Write to MH i2c: 01 00 00 2C 52 7E [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 44 47 00 06 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E3 02 00 F4 03 04 00 BF 0E 1A 67 B6 04 01 00 00 36 08 54 E7 2C 95 4F CF [15:16:38]CommunicateWithHost err = 0 [15:16:38]CheckOFDResponse [15:16:38]1017 (14) - 77093643461234 [15:16:38]1041 (16) - 0000000000965340 [15:16:38]1040 (4) - 189199 [15:16:38]1012 (4) - 24.10.2024 09:09 [15:16:38]1206 (1) - 0 [15:16:38]OFD Sender: Remove packet 189199 [15:16:38]ProducePacketName [15:16:38]name=ofd_packets/00189199 [15:16:38]NVStorageDeleteData [15:16:38]OFD Sender: No OFD packet to send [15:16:39]*** Cut start [15:16:39]*** Partial cut [15:16:39]*** CUTSNS_PIN = 1 [15:16:39]*** CUTSNS_PIN = 0 [15:16:39]*** Brake cut motor [15:16:39]Read from MH i2c: 01 [15:16:39]MH_I2C_Read... [15:16:39]*** Stop cut motor [15:16:39]*** Cut end [15:16:39]Read from MH i2c: 01 07 00 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: 01 07 00 2C 52 00 00 00 00 00 FF 0F 93 [15:16:39]process_action close_receipt done [15:16:39]requested_data is exist [15:16:39]produce_requested_data [15:16:39]requested_item fm.sn is exist - process it [15:16:39]wFMCommunicate request_size=4 [15:16:39]MH_SAM_APDU [15:16:39]CAPDU: 80 11 00 00 [15:16:39]Write to MH i2c: E2 08 00 2D 52 80 11 00 00 00 00 00 00 F9 [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:39]Read from MH i2c: E2 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: E2 17 00 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: E2 17 00 2D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [15:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:16:39]wFMCommunicate OK [15:16:39]requested_item fd.num is exist - process it [15:16:39]SAM_PROTO_GetFieldsCounters [15:16:39]wFMCommunicate request_size=4 [15:16:39]MH_SAM_APDU [15:16:39]CAPDU: 80 13 00 00 [15:16:39]Write to MH i2c: E2 08 00 2E 52 80 13 00 00 00 00 00 00 FC [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 62 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 62 00 2E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E3 02 00 0E 04 04 00 CF 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 FA [15:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E3 02 00 0E 04 04 00 CF 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 [15:16:40]wFMCommunicate OK [15:16:40]SAM_PROTO_GetFieldsCounters done [15:16:40]requested_item shift.num is exist - process it [15:16:40]requested_item shift.opened is exist - process it [15:16:40]req_shift_opened [15:16:40]FM_GetShiftState [15:16:40]SAM_PROTO_GetShiftState [15:16:40]wFMCommunicate request_size=4 [15:16:40]MH_SAM_APDU [15:16:40]CAPDU: 80 13 01 00 [15:16:40]Write to MH i2c: E2 08 00 2F 52 80 13 01 00 00 00 00 00 FE [15:16:40]Write i2c OK [15:16:40]MH_I2C_Read... [15:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:40]Read from MH i2c: E2 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 0E 00 [15:16:40]MH_I2C_Read... [15:16:40]Read from MH i2c: E2 0E 00 2F 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DC [15:16:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:16:40]wFMCommunicate OK [15:16:40]SAM_PROTO_GetShiftState done [15:16:40]FM_GetShiftState done [15:16:40]req_shift_opened done [15:16:40]requested_item shift.open_date is exist - process it [15:16:40]req_shift_open_date [15:16:40]req_shift_open_date done [15:16:40]produce_requested_data done [15:16:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189199,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:16:40]process_action_free close_receipt [15:16:40]json_value_free [15:16:40]json_value_free done [15:16:40]process_json_proto returns [15:16:40]Send response to host [15:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189199,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:16:40]free response buf [15:16:40]execute_script done [15:16:40]execute_script returns [15:16:40]free content buf [15:16:40]Sock 8.Close socket [15:16:40]Sock 8.Thread stoped [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]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:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:16]accept exits with 9 [15:18:16]New connection [15:18:16]New thread 3067071844 created [15:18:16]Thread 3067215204 joined [15:18:16]Waiting for new connection... [15:18:16] Sock 9.Parse request [15:18:16]Sock 9.Check first char [15:18:16]Sock 9.First char is OK [15:18:16]request: POST /json_proto HTTP/1.0 [15:18:16]Method: POST [15:18:16]URL: /json_proto [15:18:16]Method is POST - this is cgi request [15:18:16]url: /json_proto [15:18:16]query_string will be loaded in cgi processing [15:18:16]execute_cgi json_proto POST (null) [15:18:16]execute_cgi path=json_proto method=POST [15:18:16]POST find Content-Length [15:18:16]Host: 172.17.42.131:8080 [15:18:16]Content-Length: 754 [15:18:16]Content-Type: application/json [15:18:16] [15:18:16]POST finish read [15:18:16]Found Content-Length = 754 [15:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:16]execute_script... [15: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)211265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:16]POST & json_proto [15:18:16]process_json_proto [15:18:16]json parsed OK: [15:18:16]protocol is kg_v1.0 [15:18:16]action value=close_receipt [15:18:16]process_action close_receipt [15:18:16]cmd_close_receipt [15:18:16]MH_GetDate [15:18:16]Write to MH i2c: F0 00 00 30 52 71 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: F0 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: F0 09 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: F0 09 00 30 52 00 3B 65 1A 67 A0 18 CA 66 83 [15:18:16]GetLastDocTimeStamp 1729782999 [15:18:16]current date 1729783099 [15:18:16]FM_GetShiftState [15:18:16]SAM_PROTO_GetShiftState [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 13 01 00 [15:18:16]Write to MH i2c: E2 08 00 31 52 80 13 01 00 00 00 00 00 00 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0E 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0E 00 31 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DE [15:18:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_GetShiftState done [15:18:16]FM_GetShiftState done [15:18:16]opened in 1729728961 [15:18:16]opened+sec_in_day 1729815361 [15:18:16]quantity*price = 0 [15:18:16]sum+1 = 1 [15:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 273 24.10.2024 15:18 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097846 ФМ: 0000000000965340 ФД: 189200 ФПД: 202386215455078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189200&fm=202386215455078&tin=02508201610067®Number=0000000000100030&sum=0 [15:18:17]StoreToDocumentArchive [15:18:17]shift 463 fd 189200 [15:18:17]save to /storage/0463/doc_00189200 [15:18:17]save last doc name /storage/0463/doc_00189200 to /storage/kkm_last_doc_name [15:18:17]save OK [15:18:17]Clear old archive folders... [15:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:17]tlvbuf is 014B40E0 [15:18:17]SAM_PROTO_ClearQueue [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 09 00 00 [15:18:17]Write to MH i2c: E2 08 00 3E 52 80 09 00 00 00 00 00 00 02 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 3E 52 00 90 00 04 [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]SAM_PROTO_ClearQueue done [15:18:17]KKMCreateOFDPacket [15:18:17]OFDProtocolAddRootSTLVToBuf [15:18:17]FM_MakeSignedData [15:18:17]FM_MakeSignedData [15:18:17]SAM_PROTO_SignData [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 0D 01 02 [15:18:17]Write to MH i2c: E2 08 00 3F 52 80 0D 01 02 00 00 00 00 0A [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 3F 52 00 90 00 05 [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]wFMCommunicate request_size=255 [15:18:17]MH_SAM_APDU [15:18: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 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 3B 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E3 02 00 35 04 06 00 B8 [15:18:17]Write to MH i2c: E2 02 01 40 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 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 3B 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E3 02 00 35 04 06 00 B8 00 00 B1 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 40 52 00 90 00 06 [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]wFMCommunicate request_size=10 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 0D 02 02 05 11 B6 7A C9 66 [15:18:17]Write to MH i2c: E2 0D 00 41 52 80 0D 02 02 05 00 11 B6 7A C9 66 00 00 87 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 41 52 00 90 00 07 [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 0D 03 02 [15:18:17]Write to MH i2c: E2 08 00 42 52 80 0D 03 02 00 00 00 00 0F [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0B 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0B 00 42 52 00 8F 44 80 CC F0 7D FF FC 90 00 97 [15:18:17]RAPDU: 8F 44 80 CC F0 7D FF FC 90 00 [15:18:17]wFMCommunicate OK [15:18:17]SAM_PROTO_SignData done [15:18:17]FM_MakeSignedData done [15:18:17]CreateOFDProtocolMessage [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 11 00 00 [15:18:17]Write to MH i2c: E2 08 00 43 52 80 11 00 00 00 00 00 00 0F [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 43 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [15:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:17]wFMCommunicate OK [15:18:17]CreateOFDProtocolMessage done [15:18:17]OFDSenderStorePacket 189200 [15:18:17]StoreOFDPacket docnum=189200 [15:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 40 66 07 01 71 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 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 3B 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E3 02 00 35 04 06 00 B8 11 B6 7A C9 66 8F 44 80 CC F0 7D FF FC [15:18:17]CheckFolder [15:18:17]dirname=/storage/ofd_packets [15:18:17]CheckFolder done [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00189200 [15:18:17]NVStorageSaveData ofd_packets/00189200 [15:18:17]File name is /storage/ofd_packets/00189200 [15:18:17]Write 301 bytes [15:18:17]NVStorageSaveData done [15:18:17]OFDSenderStorePacket done [15:18:17]KKMCreateOFDPacket done [15:18:17]NVStorageSaveData kkm_last_timestamp [15:18:17]File name is /storage/kkm_last_timestamp [15:18:17]Write 4 bytes [15:18:17]NVStorageSaveData done [15:18:17]ExternCall_PrintAddStr [15:18:17]wPrintStart [15:18:17]Write to MH i2c: 01 00 00 44 52 96 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 44 52 00 00 00 00 00 FF 0F AB [15:18:17]RasterBufferAndPrint [15:18:17]line Счет N : (1)211265 [15:18:17]line ИНН: 02508201610067 [15:18:17]line Контрольно-Кассовый Чек [15:18:17]line ПРОДАЖА [15:18:17]line ТРК (МРК, ГНК) : 22 [15:18:17]line Товар: 2710124130 [15:18:17]line Аи-92-К-3 [15:18:17]line 25.000 * 0.00 [15:18:17]line = 0.00 [15:18:17]line НДС 12% НСП 1% [15:18:17]line > о реализуемом товаре [15:18:17]line ИТОГО: 0.00 [15:18:17]line НСП 1% : 0.00 [15:18:17]line НДС 12% : 0.00 [15:18:17]line Наличными: 0.00 [15:18:17]line Безнал.: 0.00 [15:18:17]line Место: АЗС № 86 "Партнер Нефть" [15:18:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:18:17]line СНО: Общий режим [15:18:17]line Чек 273 24.10.2024 15:18 [15:18:17]line Смена: 463 ФФД: 1.0 [15:18:17]line ЗНМ: 0300000155 [15:18:17]line РНМ: 0000000000100030 [15:18:17]line Версия ККМ: 001 [15:18:17]line Талоны: ТК ГПНА Online [15:18:17]line 30097846 [15:18:17]line ФМ: 0000000000965340 [15:18:17]line ФД: 189200 [15:18:17]line ФПД: 202386215455078 [15:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189200&fm=202386215455078&tin=02508201610067®Number=0000000000100030&sum=0 [15:18:17]written 0, free lines is 4095 [15:18:17]OFD Sender: Processing packet 189200 [packets to send 1062, broken 1061] [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00189200 [15:18:17]OFD Sender: To server: pG, [15:18:17]CommunicateWithHost lk.salyk.kg:30040 [15:18:17]ConnectInit lk.salyk.kg [15:18:18]Connected sock=10 [15:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 40 66 07 01 71 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 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 3B 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E3 02 00 35 04 06 00 B8 11 B6 7A C9 66 8F 44 80 CC F0 7D FF FC [15:18:18]Write to MH i2c: 01 00 00 6E 52 C0 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: 01 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: 01 07 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: 01 07 00 6E 52 00 00 00 00 00 72 0C 45 [15:18:18]RasterBufferAndPrint [15:18:18]line [15:18:18]line [15:18:18]line [15:18:18]line [15:18:18]line [15:18:18]written 0, free lines is 3192 [15:18:18]MH_Cut [15:18:18]Write to MH i2c: D1 01 00 75 52 01 99 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: D1 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: D1 01 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: D1 01 00 75 52 00 98 [15:18:18]Write to MH i2c: 01 00 00 76 52 C8 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F 86 47 00 48 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 39 36 35 33 34 30 10 04 04 00 10 E3 02 00 F4 03 04 00 23 0F 1A 67 B6 04 01 00 00 3E 69 B2 9E 09 E3 16 FA [15:18:18]CommunicateWithHost err = 0 [15:18:18]CheckOFDResponse [15:18:18]1017 (14) - 77093643461234 [15:18:18]1041 (16) - 0000000000965340 [15:18:18]1040 (4) - 189200 [15:18:18]1012 (4) - 24.10.2024 09:10 [15:18:18]1206 (1) - 0 [15:18:18]OFD Sender: Remove packet 189200 [15:18:18]ProducePacketName [15:18:18]name=ofd_packets/00189200 [15:18:18]NVStorageDeleteData [15:18:18]OFD Sender: No OFD packet to send [15:18:19]*** Cut start [15:18:19]*** Partial cut [15:18:19]*** CUTSNS_PIN = 1 [15:18:19]*** CUTSNS_PIN = 0 [15:18:19]*** Brake cut motor [15:18:20]Read from MH i2c: 01 [15:18:20]MH_I2C_Read... [15:18:20]*** Stop cut motor [15:18:20]*** Cut end [15:18:20]Read from MH i2c: 01 07 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: 01 07 00 76 52 00 00 00 00 00 FF 0F DD [15:18:20]process_action close_receipt done [15:18:20]requested_data is exist [15:18:20]produce_requested_data [15:18:20]requested_item fm.sn is exist - process it [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 11 00 00 [15:18:20]Write to MH i2c: E2 08 00 77 52 80 11 00 00 00 00 00 00 43 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 17 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 17 00 77 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [15:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:20]wFMCommunicate OK [15:18:20]requested_item fd.num is exist - process it [15:18:20]SAM_PROTO_GetFieldsCounters [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 13 00 00 [15:18:20]Write to MH i2c: E2 08 00 78 52 80 13 00 00 00 00 00 00 46 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 62 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 62 00 78 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E3 02 00 0E 04 04 00 CF 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 48 [15:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E3 02 00 0E 04 04 00 CF 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 [15:18:20]wFMCommunicate OK [15:18:20]SAM_PROTO_GetFieldsCounters done [15:18:20]requested_item shift.num is exist - process it [15:18:20]requested_item shift.opened is exist - process it [15:18:20]req_shift_opened [15:18:20]FM_GetShiftState [15:18:20]SAM_PROTO_GetShiftState [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 13 01 00 [15:18:20]Write to MH i2c: E2 08 00 79 52 80 13 01 00 00 00 00 00 48 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 0E 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 0E 00 79 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 26 [15:18:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:18:20]wFMCommunicate OK [15:18:20]SAM_PROTO_GetShiftState done [15:18:20]FM_GetShiftState done [15:18:20]req_shift_opened done [15:18:20]requested_item shift.open_date is exist - process it [15:18:20]req_shift_open_date [15:18:20]req_shift_open_date done [15:18:20]produce_requested_data done [15:18:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189200,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:18:20]process_action_free close_receipt [15:18:20]json_value_free [15:18:20]json_value_free done [15:18:20]process_json_proto returns [15:18:20]Send response to host [15:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189200,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:18:20]free response buf [15:18:20]execute_script done [15:18:20]execute_script returns [15:18:20]free content buf [15:18:20]Sock 9.Close socket [15:18:20]Sock 9.Thread stoped [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:25]accept exits with 8 [15:20:25]New connection [15:20:25]New thread 3067215204 created [15:20:25]Thread 3067071844 joined [15:20:25]Waiting for new connection... [15:20:25] Sock 8.Parse request [15:20:25]Sock 8.Check first char [15:20:25]Sock 8.First char is OK [15:20:25]request: POST /json_proto HTTP/1.0 [15:20:25]Method: POST [15:20:25]URL: /json_proto [15:20:25]Method is POST - this is cgi request [15:20:25]url: /json_proto [15:20:25]query_string will be loaded in cgi processing [15:20:25]execute_cgi json_proto POST (null) [15:20:25]execute_cgi path=json_proto method=POST [15:20:25]POST find Content-Length [15:20:25]Host: 172.17.42.131:8080 [15:20:25]Content-Length: 751 [15:20:25]Content-Type: application/json [15:20:25] [15:20:25]POST finish read [15:20:25]Found Content-Length = 751 [15:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:25]execute_script... [15:20: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)211266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:25]POST & json_proto [15:20:25]process_json_proto [15:20:25]json parsed OK: [15:20:25]protocol is kg_v1.0 [15:20:25]action value=close_receipt [15:20:25]process_action close_receipt [15:20:25]cmd_close_receipt [15:20:25]MH_GetDate [15:20:25]Write to MH i2c: F0 00 00 7A 52 BB [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: F0 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: F0 09 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: F0 09 00 7A 52 00 BD 65 1A 67 A0 18 CA 66 4F [15:20:25]GetLastDocTimeStamp 1729783099 [15:20:25]current date 1729783229 [15:20:25]FM_GetShiftState [15:20:25]SAM_PROTO_GetShiftState [15:20:25]wFMCommunicate request_size=4 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 13 01 00 [15:20:25]Write to MH i2c: E2 08 00 7B 52 80 13 01 00 00 00 00 00 4A [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 0E 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 0E 00 7B 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 28 [15:20:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:20:25]wFMCommunicate OK [15:20:25]SAM_PROTO_GetShiftState done [15:20:25]FM_GetShiftState done [15:20:25]opened in 1729728961 [15:20:25]opened+sec_in_day 1729815361 [15:20:25]quantity*price = 0 [15:20:25]sum+1 = 1 [15:20:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 274 24.10.2024 15:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118667 ФМ: 0000000000965340 ФД: 189201 ФПД: 36278876925199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189201&fm=36278876925199&tin=02508201610067®Number=0000000000100030&sum=0 [15:20:26]StoreToDocumentArchive [15:20:26]shift 463 fd 189201 [15:20:26]save to /storage/0463/doc_00189201 [15:20:26]save last doc name /storage/0463/doc_00189201 to /storage/kkm_last_doc_name [15:20:26]save OK [15:20:26]Clear old archive folders... [15:20:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:20:26]tlvbuf is 01648B80 [15:20:26]SAM_PROTO_ClearQueue [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 09 00 00 [15:20:26]Write to MH i2c: E2 08 00 88 52 80 09 00 00 00 00 00 00 4C [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 88 52 00 90 00 4E [15:20:26]RAPDU: 90 00 [15:20:26]wFMCommunicate OK [15:20:26]SAM_PROTO_ClearQueue done [15:20:26]KKMCreateOFDPacket [15:20:26]OFDProtocolAddRootSTLVToBuf [15:20:26]FM_MakeSignedData [15:20:26]FM_MakeSignedData [15:20:26]SAM_PROTO_SignData [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 0D 01 02 [15:20:26]Write to MH i2c: E2 08 00 89 52 80 0D 01 02 00 00 00 00 54 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 89 52 00 90 00 4F [15:20:26]RAPDU: 90 00 [15:20:26]wFMCommunicate OK [15:20:26]wFMCommunicate request_size=255 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BD 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E3 02 00 35 04 06 00 20 FE D5 92 [15:20:26]Write to MH i2c: E2 02 01 8A 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BD 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E3 02 00 35 04 06 00 20 FE D5 92 00 00 88 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 8A 52 00 90 00 50 [15:20:26]RAPDU: 90 00 [15:20:26]wFMCommunicate OK [15:20:26]wFMCommunicate request_size=7 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 0D 02 02 02 6D 0F [15:20:26]Write to MH i2c: E2 0A 00 8B 52 80 0D 02 02 02 00 6D 0F 00 00 D7 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 03 00 8B 52 00 90 00 51 [15:20:26]RAPDU: 90 00 [15:20:26]wFMCommunicate OK [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 0D 03 02 [15:20:26]Write to MH i2c: E2 08 00 8C 52 80 0D 03 02 00 00 00 00 59 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 0B 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 0B 00 8C 52 00 50 9E 04 B4 CE 9F B4 4C 90 00 6D [15:20:26]RAPDU: 50 9E 04 B4 CE 9F B4 4C 90 00 [15:20:26]wFMCommunicate OK [15:20:26]SAM_PROTO_SignData done [15:20:26]FM_MakeSignedData done [15:20:26]CreateOFDProtocolMessage [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 11 00 00 [15:20:26]Write to MH i2c: E2 08 00 8D 52 80 11 00 00 00 00 00 00 59 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 17 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 17 00 8D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [15:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:26]wFMCommunicate OK [15:20:26]CreateOFDProtocolMessage done [15:20:26]OFDSenderStorePacket 189201 [15:20:26]StoreOFDPacket docnum=189201 [15:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 58 87 04 01 BA D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BD 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E3 02 00 35 04 06 00 20 FE D5 92 6D 0F 50 9E 04 B4 CE 9F B4 4C [15:20:26]CheckFolder [15:20:26]dirname=/storage/ofd_packets [15:20:26]CheckFolder done [15:20:26]ProducePacketName [15:20:26]name=ofd_packets/00189201 [15:20:26]NVStorageSaveData ofd_packets/00189201 [15:20:26]File name is /storage/ofd_packets/00189201 [15:20:26]Write 298 bytes [15:20:26]NVStorageSaveData done [15:20:26]OFDSenderStorePacket done [15:20:26]KKMCreateOFDPacket done [15:20:26]NVStorageSaveData kkm_last_timestamp [15:20:26]File name is /storage/kkm_last_timestamp [15:20:26]Write 4 bytes [15:20:26]NVStorageSaveData done [15:20:26]ExternCall_PrintAddStr [15:20:26]wPrintStart [15:20:26]Write to MH i2c: 01 00 00 8E 52 E0 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 07 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 07 00 8E 52 00 00 00 00 00 FF 0F F5 [15:20:26]RasterBufferAndPrint [15:20:26]line Счет N : (1)211266 [15:20:26]line ИНН: 02508201610067 [15:20:26]line Контрольно-Кассовый Чек [15:20:26]line ПРОДАЖА [15:20:26]line ТРК (МРК, ГНК) : 51 [15:20:26]line Товар: 2710194210 [15:20:26]line ДТ-К-5 [15:20:26]line 26.250 * 0.00 [15:20:26]line = 0.00 [15:20:26]line НДС 12% НСП 1% [15:20:26]line > о реализуемом товаре [15:20:26]line ИТОГО: 0.00 [15:20:26]line НСП 1% : 0.00 [15:20:26]line НДС 12% : 0.00 [15:20:26]line Наличными: 0.00 [15:20:26]line Безнал.: 0.00 [15:20:26]line Место: АЗС № 86 "Партнер Нефть" [15:20:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:20:26]line СНО: Общий режим [15:20:26]line Чек 274 24.10.2024 15:20 [15:20:26]line Смена: 463 ФФД: 1.0 [15:20:26]line ЗНМ: 0300000155 [15:20:26]line РНМ: 0000000000100030 [15:20:26]line Версия ККМ: 001 [15:20:26]line Талоны: ТК ГПНА Online [15:20:26]line 30118667 [15:20:26]line ФМ: 0000000000965340 [15:20:26]line ФД: 189201 [15:20:26]line ФПД: 36278876925199 [15:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189201&fm=36278876925199&tin=02508201610067®Number=0000000000100030&sum=0 [15:20:26]written 0, free lines is 4095 [15:20:26]OFD Sender: Processing packet 189201 [packets to send 1062, broken 1061] [15:20:26]ProducePacketName [15:20:26]name=ofd_packets/00189201 [15:20:26]OFD Sender: To server: pG, [15:20:26]CommunicateWithHost lk.salyk.kg:30040 [15:20:26]ConnectInit lk.salyk.kg [15:20:27]Connected sock=10 [15:20:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 58 87 04 01 BA D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BD 65 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E3 02 00 35 04 06 00 20 FE D5 92 6D 0F 50 9E 04 B4 CE 9F B4 4C [15:20:27]Write to MH i2c: 01 00 00 B8 52 0A [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: 01 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: 01 07 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: 01 07 00 B8 52 00 00 00 00 00 76 0C 93 [15:20:27]RasterBufferAndPrint [15:20:27]line [15:20:27]line [15:20:27]line [15:20:27]line [15:20:27]line [15:20:27]written 0, free lines is 3195 [15:20:27]MH_Cut [15:20:27]Write to MH i2c: D1 01 00 BF 52 01 E3 [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: D1 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: D1 01 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: D1 01 00 BF 52 00 E2 [15:20:27]Write to MH i2c: 01 00 00 C0 52 12 [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 B1 47 00 C4 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 39 36 35 33 34 30 10 04 04 00 11 E3 02 00 F4 03 04 00 A4 0F 1A 67 B6 04 01 00 00 AC FB 2D A1 CE EB F3 24 [15:20:27]CommunicateWithHost err = 0 [15:20:27]CheckOFDResponse [15:20:27]1017 (14) - 77093643461234 [15:20:27]1041 (16) - 0000000000965340 [15:20:27]1040 (4) - 189201 [15:20:27]1012 (4) - 24.10.2024 09:13 [15:20:27]1206 (1) - 0 [15:20:27]OFD Sender: Remove packet 189201 [15:20:27]ProducePacketName [15:20:27]name=ofd_packets/00189201 [15:20:27]NVStorageDeleteData [15:20:28]OFD Sender: No OFD packet to send [15:20:28]*** Cut start [15:20:28]*** Partial cut [15:20:28]*** CUTSNS_PIN = 1 [15:20:28]*** CUTSNS_PIN = 0 [15:20:28]*** Brake cut motor [15:20:29]Read from MH i2c: 01 [15:20:29]MH_I2C_Read... [15:20:29]*** Stop cut motor [15:20:29]*** Cut end [15:20:29]Read from MH i2c: 01 07 00 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: 01 07 00 C0 52 00 00 00 00 00 FF 0F 27 [15:20:29]process_action close_receipt done [15:20:29]requested_data is exist [15:20:29]produce_requested_data [15:20:29]requested_item fm.sn is exist - process it [15:20:29]wFMCommunicate request_size=4 [15:20:29]MH_SAM_APDU [15:20:29]CAPDU: 80 11 00 00 [15:20:29]Write to MH i2c: E2 08 00 C1 52 80 11 00 00 00 00 00 00 8D [15:20:29]Write i2c OK [15:20:29]MH_I2C_Read... [15:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:29]Read from MH i2c: E2 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 17 00 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 17 00 C1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [15:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:29]wFMCommunicate OK [15:20:29]requested_item fd.num is exist - process it [15:20:29]SAM_PROTO_GetFieldsCounters [15:20:29]wFMCommunicate request_size=4 [15:20:29]MH_SAM_APDU [15:20:29]CAPDU: 80 13 00 00 [15:20:29]Write to MH i2c: E2 08 00 C2 52 80 13 00 00 00 00 00 00 90 [15:20:29]Write i2c OK [15:20:29]MH_I2C_Read... [15:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:29]Read from MH i2c: E2 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 62 00 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 62 00 C2 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E3 02 00 0E 04 04 00 CF 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 96 [15:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E3 02 00 0E 04 04 00 CF 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 [15:20:29]wFMCommunicate OK [15:20:29]SAM_PROTO_GetFieldsCounters done [15:20:29]requested_item shift.num is exist - process it [15:20:29]requested_item shift.opened is exist - process it [15:20:29]req_shift_opened [15:20:29]FM_GetShiftState [15:20:29]SAM_PROTO_GetShiftState [15:20:29]wFMCommunicate request_size=4 [15:20:29]MH_SAM_APDU [15:20:29]CAPDU: 80 13 01 00 [15:20:29]Write to MH i2c: E2 08 00 C3 52 80 13 01 00 00 00 00 00 92 [15:20:29]Write i2c OK [15:20:29]MH_I2C_Read... [15:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:29]Read from MH i2c: E2 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 0E 00 [15:20:29]MH_I2C_Read... [15:20:29]Read from MH i2c: E2 0E 00 C3 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 70 [15:20:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:20:29]wFMCommunicate OK [15:20:29]SAM_PROTO_GetShiftState done [15:20:29]FM_GetShiftState done [15:20:29]req_shift_opened done [15:20:29]requested_item shift.open_date is exist - process it [15:20:29]req_shift_open_date [15:20:29]req_shift_open_date done [15:20:29]produce_requested_data done [15:20:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189201,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:20:29]process_action_free close_receipt [15:20:29]json_value_free [15:20:29]json_value_free done [15:20:29]process_json_proto returns [15:20:29]Send response to host [15:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189201,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:20:29]free response buf [15:20:29]execute_script done [15:20:29]execute_script returns [15:20:29]free content buf [15:20:29]Sock 8.Close socket [15:20:29]Sock 8.Thread stoped [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:47]accept exits with 9 [15:21:47]New connection [15:21:47]New thread 3067071844 created [15:21:47]Thread 3067215204 joined [15:21:47]Waiting for new connection... [15:21:47] Sock 9.Parse request [15:21:47]Sock 9.Check first char [15:21:47]Sock 9.First char is OK [15:21:47]request: POST /json_proto HTTP/1.0 [15:21:47]Method: POST [15:21:47]URL: /json_proto [15:21:47]Method is POST - this is cgi request [15:21:47]url: /json_proto [15:21:47]query_string will be loaded in cgi processing [15:21:47]execute_cgi json_proto POST (null) [15:21:47]execute_cgi path=json_proto method=POST [15:21:47]POST find Content-Length [15:21:47]Host: 172.17.42.131:8080 [15:21:47]Content-Length: 753 [15:21:47]Content-Type: application/json [15:21:47] [15:21:47]POST finish read [15:21:47]Found Content-Length = 753 [15:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:47]execute_script... [15:21: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)211267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:47]POST & json_proto [15:21:47]process_json_proto [15:21:47]json parsed OK: [15:21:47]protocol is kg_v1.0 [15:21:47]action value=close_receipt [15:21:47]process_action close_receipt [15:21:47]cmd_close_receipt [15:21:47]MH_GetDate [15:21:47]Write to MH i2c: F0 00 00 C4 52 05 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: F0 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: F0 09 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: F0 09 00 C4 52 00 0F 66 1A 67 A0 18 CA 66 EC [15:21:47]GetLastDocTimeStamp 1729783229 [15:21:47]current date 1729783311 [15:21:47]FM_GetShiftState [15:21:47]SAM_PROTO_GetShiftState [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 13 01 00 [15:21:47]Write to MH i2c: E2 08 00 C5 52 80 13 01 00 00 00 00 00 94 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0E 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0E 00 C5 52 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 72 [15:21:47]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_GetShiftState done [15:21:47]FM_GetShiftState done [15:21:47]opened in 1729728961 [15:21:47]opened+sec_in_day 1729815361 [15:21:47]quantity*price = 0 [15:21:47]sum+1 = 1 [15:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 275 24.10.2024 15:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097846 ФМ: 0000000000965340 ФД: 189202 ФПД: 224768666834538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189202&fm=224768666834538&tin=02508201610067®Number=0000000000100030&sum=0 [15:21:48]StoreToDocumentArchive [15:21:48]shift 463 fd 189202 [15:21:48]save to /storage/0463/doc_00189202 [15:21:48]save last doc name /storage/0463/doc_00189202 to /storage/kkm_last_doc_name [15:21:48]save OK [15:21:48]Clear old archive folders... [15:21:48]OFD Sender: No OFD packet to send [15:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:48]tlvbuf is 015E7BC0 [15:21:48]SAM_PROTO_ClearQueue [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 09 00 00 [15:21:48]Write to MH i2c: E2 08 00 D2 52 80 09 00 00 00 00 00 00 96 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 D2 52 00 90 00 98 [15:21:48]RAPDU: 90 00 [15:21:48]wFMCommunicate OK [15:21:48]SAM_PROTO_ClearQueue done [15:21:48]KKMCreateOFDPacket [15:21:48]OFDProtocolAddRootSTLVToBuf [15:21:48]FM_MakeSignedData [15:21:48]FM_MakeSignedData [15:21:48]SAM_PROTO_SignData [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 0D 01 02 [15:21:48]Write to MH i2c: E2 08 00 D3 52 80 0D 01 02 00 00 00 00 9E [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 D3 52 00 90 00 99 [15:21:48]RAPDU: 90 00 [15:21:48]wFMCommunicate OK [15:21:48]wFMCommunicate request_size=255 [15:21:48]MH_SAM_APDU [15:21: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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 0F 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E3 02 00 35 04 06 00 CC [15:21:48]Write to MH i2c: E2 02 01 D4 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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 0F 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E3 02 00 35 04 06 00 CC 00 00 C4 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 D4 52 00 90 00 9A [15:21:48]RAPDU: 90 00 [15:21:48]wFMCommunicate OK [15:21:48]wFMCommunicate request_size=10 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 0D 02 02 05 6D 08 8B 16 6A [15:21:48]Write to MH i2c: E2 0D 00 D5 52 80 0D 02 02 05 00 6D 08 8B 16 6A 00 00 2B [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 03 00 D5 52 00 90 00 9B [15:21:48]RAPDU: 90 00 [15:21:48]wFMCommunicate OK [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 0D 03 02 [15:21:48]Write to MH i2c: E2 08 00 D6 52 80 0D 03 02 00 00 00 00 A3 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 0B 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 0B 00 D6 52 00 49 5D 19 4D 0C BD 04 04 90 00 81 [15:21:48]RAPDU: 49 5D 19 4D 0C BD 04 04 90 00 [15:21:48]wFMCommunicate OK [15:21:48]SAM_PROTO_SignData done [15:21:48]FM_MakeSignedData done [15:21:48]CreateOFDProtocolMessage [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 11 00 00 [15:21:48]Write to MH i2c: E2 08 00 D7 52 80 11 00 00 00 00 00 00 A3 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 D7 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [15:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:48]wFMCommunicate OK [15:21:48]CreateOFDProtocolMessage done [15:21:48]OFDSenderStorePacket 189202 [15:21:48]StoreOFDPacket docnum=189202 [15:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 05 07 01 8D 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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 0F 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E3 02 00 35 04 06 00 CC 6D 08 8B 16 6A 49 5D 19 4D 0C BD 04 04 [15:21:48]CheckFolder [15:21:48]dirname=/storage/ofd_packets [15:21:48]CheckFolder done [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00189202 [15:21:48]NVStorageSaveData ofd_packets/00189202 [15:21:48]File name is /storage/ofd_packets/00189202 [15:21:48]Write 301 bytes [15:21:48]NVStorageSaveData done [15:21:48]OFDSenderStorePacket done [15:21:48]KKMCreateOFDPacket done [15:21:48]NVStorageSaveData kkm_last_timestamp [15:21:48]File name is /storage/kkm_last_timestamp [15:21:48]Write 4 bytes [15:21:48]NVStorageSaveData done [15:21:48]ExternCall_PrintAddStr [15:21:48]wPrintStart [15:21:48]Write to MH i2c: 01 00 00 D8 52 2A [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 D8 52 00 00 00 00 00 FF 0F 3F [15:21:48]RasterBufferAndPrint [15:21:48]line Счет N : (1)211267 [15:21:48]line ИНН: 02508201610067 [15:21:48]line Контрольно-Кассовый Чек [15:21:48]line ПРОДАЖА [15:21:48]line ТРК (МРК, ГНК) : 22 [15:21:48]line Товар: 2710124130 [15:21:48]line Аи-92-К-3 [15:21:48]line 5.000 * 0.00 [15:21:48]line = 0.00 [15:21:48]line НДС 12% НСП 1% [15:21:48]line > о реализуемом товаре [15:21:48]line ИТОГО: 0.00 [15:21:48]line НСП 1% : 0.00 [15:21:48]line НДС 12% : 0.00 [15:21:48]line Наличными: 0.00 [15:21:48]line Безнал.: 0.00 [15:21:48]line Место: АЗС № 86 "Партнер Нефть" [15:21:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:21:48]line СНО: Общий режим [15:21:48]line Чек 275 24.10.2024 15:21 [15:21:48]line Смена: 463 ФФД: 1.0 [15:21:48]line ЗНМ: 0300000155 [15:21:48]line РНМ: 0000000000100030 [15:21:48]line Версия ККМ: 001 [15:21:48]line Талоны: ТК ГПНА Online [15:21:48]line 30097846 [15:21:48]line ФМ: 0000000000965340 [15:21:48]line ФД: 189202 [15:21:48]line ФПД: 224768666834538 [15:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189202&fm=224768666834538&tin=02508201610067®Number=0000000000100030&sum=0 [15:21:48]written 0, free lines is 4095 [15:21:49]OFD Sender: Processing packet 189202 [packets to send 1062, broken 1061] [15:21:49]ProducePacketName [15:21:49]name=ofd_packets/00189202 [15:21:49]OFD Sender: To server: pG, [15:21:49]CommunicateWithHost lk.salyk.kg:30040 [15:21:49]ConnectInit lk.salyk.kg [15:21:49]Connected sock=10 [15:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 05 07 01 8D 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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 0F 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E3 02 00 35 04 06 00 CC 6D 08 8B 16 6A 49 5D 19 4D 0C BD 04 04 [15:21:49]Write to MH i2c: 01 00 00 02 53 55 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 07 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 07 00 02 53 00 00 00 00 00 75 0C DD [15:21:49]RasterBufferAndPrint [15:21:49]line [15:21:49]line [15:21:49]line [15:21:49]line [15:21:49]line [15:21:49]written 0, free lines is 3194 [15:21:49]MH_Cut [15:21:49]Write to MH i2c: D1 01 00 09 53 01 2E [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: D1 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: D1 01 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: D1 01 00 09 53 00 2D [15:21:49]Write to MH i2c: 01 00 00 0A 53 5D [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 C2 47 00 A5 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 39 36 35 33 34 30 10 04 04 00 12 E3 02 00 F4 03 04 00 F6 0F 1A 67 B6 04 01 00 00 95 C5 F1 A7 F7 58 C1 97 [15:21:49]CommunicateWithHost err = 0 [15:21:49]CheckOFDResponse [15:21:49]1017 (14) - 77093643461234 [15:21:49]1041 (16) - 0000000000965340 [15:21:49]1040 (4) - 189202 [15:21:49]1012 (4) - 24.10.2024 09:14 [15:21:49]1206 (1) - 0 [15:21:49]OFD Sender: Remove packet 189202 [15:21:49]ProducePacketName [15:21:49]name=ofd_packets/00189202 [15:21:49]NVStorageDeleteData [15:21:50]OFD Sender: No OFD packet to send [15:21:50]*** Cut start [15:21:50]*** Partial cut [15:21:50]*** CUTSNS_PIN = 1 [15:21:50]*** CUTSNS_PIN = 0 [15:21:50]*** Brake cut motor [15:21:51]Read from MH i2c: 01 [15:21:51]MH_I2C_Read... [15:21:51]*** Stop cut motor [15:21:51]*** Cut end [15:21:51]Read from MH i2c: 01 07 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 0A 53 00 00 00 00 00 FF 0F 72 [15:21:51]process_action close_receipt done [15:21:51]requested_data is exist [15:21:51]produce_requested_data [15:21:51]requested_item fm.sn is exist - process it [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 11 00 00 [15:21:51]Write to MH i2c: E2 08 00 0B 53 80 11 00 00 00 00 00 00 D8 [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 17 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 17 00 0B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [15:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:51]wFMCommunicate OK [15:21:51]requested_item fd.num is exist - process it [15:21:51]SAM_PROTO_GetFieldsCounters [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 13 00 00 [15:21:51]Write to MH i2c: E2 08 00 0C 53 80 13 00 00 00 00 00 00 DB [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 62 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 62 00 0C 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E3 02 00 0E 04 04 00 CF 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 E5 [15:21:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E3 02 00 0E 04 04 00 CF 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 [15:21:51]wFMCommunicate OK [15:21:51]SAM_PROTO_GetFieldsCounters done [15:21:51]requested_item shift.num is exist - process it [15:21:51]requested_item shift.opened is exist - process it [15:21:51]req_shift_opened [15:21:51]FM_GetShiftState [15:21:51]SAM_PROTO_GetShiftState [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 13 01 00 [15:21:51]Write to MH i2c: E2 08 00 0D 53 80 13 01 00 00 00 00 00 DD [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 0E 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 0E 00 0D 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BB [15:21:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:21:51]wFMCommunicate OK [15:21:51]SAM_PROTO_GetShiftState done [15:21:51]FM_GetShiftState done [15:21:51]req_shift_opened done [15:21:51]requested_item shift.open_date is exist - process it [15:21:51]req_shift_open_date [15:21:51]req_shift_open_date done [15:21:51]produce_requested_data done [15:21:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189202,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:21:51]process_action_free close_receipt [15:21:51]json_value_free [15:21:51]json_value_free done [15:21:51]process_json_proto returns [15:21:51]Send response to host [15:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189202,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:21:51]free response buf [15:21:51]execute_script done [15:21:51]execute_script returns [15:21:51]free content buf [15:21:51]Sock 9.Close socket [15:21:51]Sock 9.Thread stoped [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:41]accept exits with 8 [15:22:41]New connection [15:22:41]New thread 3067215204 created [15:22:41]Thread 3067071844 joined [15:22:41]Waiting for new connection... [15:22:41] Sock 8.Parse request [15:22:41]Sock 8.Check first char [15:22:41]Sock 8.First char is OK [15:22:41]request: POST /json_proto HTTP/1.0 [15:22:41]Method: POST [15:22:41]URL: /json_proto [15:22:41]Method is POST - this is cgi request [15:22:41]url: /json_proto [15:22:41]query_string will be loaded in cgi processing [15:22:41]execute_cgi json_proto POST (null) [15:22:41]execute_cgi path=json_proto method=POST [15:22:41]POST find Content-Length [15:22:41]Host: 172.17.42.131:8080 [15:22:41]Content-Length: 688 [15:22:41]Content-Type: application/json [15:22:41] [15:22:41]POST finish read [15:22:41]Found Content-Length = 688 [15:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:22:41]execute_script... [15:22: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)211268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:22:41]POST & json_proto [15:22:41]process_json_proto [15:22:41]json parsed OK: [15:22:41]protocol is kg_v1.0 [15:22:41]action value=close_receipt [15:22:41]process_action close_receipt [15:22:41]cmd_close_receipt [15:22:41]MH_GetDate [15:22:41]Write to MH i2c: F0 00 00 0E 53 50 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 0E 53 00 44 66 1A 67 A0 18 CA 66 6C [15:22:41]GetLastDocTimeStamp 1729783311 [15:22:41]current date 1729783364 [15:22:41]FM_GetShiftState [15:22:41]SAM_PROTO_GetShiftState [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 13 01 00 [15:22:41]Write to MH i2c: E2 08 00 0F 53 80 13 01 00 00 00 00 00 DF [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 0F 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BD [15:22:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_GetShiftState done [15:22:41]FM_GetShiftState done [15:22:41]opened in 1729728961 [15:22:41]opened+sec_in_day 1729815361 [15:22:41]quantity*price = 100051 [15:22:41]sum+1 = 100052 [15:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 276 24.10.2024 15:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189203 ФПД: 92507568832767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189203&fm=92507568832767&tin=02508201610067®Number=0000000000100030&sum=100000 [15:22:42]StoreToDocumentArchive [15:22:42]shift 463 fd 189203 [15:22:42]save to /storage/0463/doc_00189203 [15:22:42]save last doc name /storage/0463/doc_00189203 to /storage/kkm_last_doc_name [15:22:42]save OK [15:22:42]Clear old archive folders... [15:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:22:42]tlvbuf is 01614E00 [15:22:42]SAM_PROTO_ClearQueue [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 09 00 00 [15:22:42]Write to MH i2c: E2 08 00 1C 53 80 09 00 00 00 00 00 00 E1 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 1C 53 00 90 00 E3 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]SAM_PROTO_ClearQueue done [15:22:42]KKMCreateOFDPacket [15:22:42]OFDProtocolAddRootSTLVToBuf [15:22:42]FM_MakeSignedData [15:22:42]FM_MakeSignedData [15:22:42]SAM_PROTO_SignData [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 01 02 [15:22:42]Write to MH i2c: E2 08 00 1D 53 80 0D 01 02 00 00 00 00 E9 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 1D 53 00 90 00 E4 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=255 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 14 01 00 00 F4 03 04 00 44 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E3 02 [15:22:42]Write to MH i2c: E2 02 01 1E 53 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 14 01 00 00 F4 03 04 00 44 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E3 02 00 00 4E [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 1E 53 00 90 00 E5 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=16 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 22 98 C7 80 FF [15:22:42]Write to MH i2c: E2 13 00 1F 53 80 0D 02 02 0B 00 00 35 04 06 00 54 22 98 C7 80 FF 00 00 95 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 1F 53 00 90 00 E6 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 03 02 [15:22:42]Write to MH i2c: E2 08 00 20 53 80 0D 03 02 00 00 00 00 EE [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 0B 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 0B 00 20 53 00 73 2F EE 1D D2 AB 8E 24 90 00 CB [15:22:42]RAPDU: 73 2F EE 1D D2 AB 8E 24 90 00 [15:22:42]wFMCommunicate OK [15:22:42]SAM_PROTO_SignData done [15:22:42]FM_MakeSignedData done [15:22:42]CreateOFDProtocolMessage [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 11 00 00 [15:22:42]Write to MH i2c: E2 08 00 21 53 80 11 00 00 00 00 00 00 EE [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 17 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 17 00 21 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [15:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:22:42]wFMCommunicate OK [15:22:42]CreateOFDProtocolMessage done [15:22:42]OFDSenderStorePacket 189203 [15:22:42]StoreOFDPacket docnum=189203 [15:22:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7E 7B 0D 01 87 F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 14 01 00 00 F4 03 04 00 44 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E3 02 00 35 04 06 00 54 22 98 C7 80 FF 73 2F EE 1D D2 AB 8E 24 [15:22:42]CheckFolder [15:22:42]dirname=/storage/ofd_packets [15:22:42]CheckFolder done [15:22:42]ProducePacketName [15:22:42]name=ofd_packets/00189203 [15:22:42]NVStorageSaveData ofd_packets/00189203 [15:22:42]File name is /storage/ofd_packets/00189203 [15:22:42]Write 307 bytes [15:22:42]NVStorageSaveData done [15:22:42]OFDSenderStorePacket done [15:22:42]KKMCreateOFDPacket done [15:22:42]NVStorageSaveData kkm_last_timestamp [15:22:42]File name is /storage/kkm_last_timestamp [15:22:42]Write 4 bytes [15:22:42]NVStorageSaveData done [15:22:42]ExternCall_PrintAddStr [15:22:42]wPrintStart [15:22:42]Write to MH i2c: 01 00 00 22 53 75 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 07 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: 01 07 00 22 53 00 00 00 00 00 FF 0F 8A [15:22:42]RasterBufferAndPrint [15:22:42]line Счет N : (1)211268 [15:22:42]line ИНН: 02508201610067 [15:22:42]line Контрольно-Кассовый Чек [15:22:42]line ПРОДАЖА [15:22:42]line ТРК (МРК, ГНК) : 31 [15:22:42]line Товар: 2710194210 [15:22:42]line D-ENERGY ДТ-К-5 [15:22:42]line 12.960 * 77.20 [15:22:42]line = 1000.51 [15:22:42]line НДС 12% НСП 1% [15:22:42]line > о реализуемом товаре [15:22:42]line ОКРУГЛЕНИЕ: -0.51 [15:22:42]line ИТОГО: 1000.00 [15:22:42]line Внесено: 1000.00 [15:22:42]line СДАЧА: 0.00 [15:22:42]line НСП 1% : 8.85 [15:22:42]line НДС 12% : 106.25 [15:22:42]line Наличными: 1000.00 [15:22:42]line Безнал.: 0.00 [15:22:42]line Место: АЗС № 86 "Партнер Нефть" [15:22:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:22:42]line СНО: Общий режим [15:22:42]line Чек 276 24.10.2024 15:22 [15:22:42]line Смена: 463 ФФД: 1.0 [15:22:42]line ЗНМ: 0300000155 [15:22:42]line РНМ: 0000000000100030 [15:22:42]line Версия ККМ: 001 [15:22:42]line ФМ: 0000000000965340 [15:22:42]line ФД: 189203 [15:22:42]line ФПД: 92507568832767 [15:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189203&fm=92507568832767&tin=02508201610067®Number=0000000000100030&sum=100000 [15:22:43]OFD Sender: Processing packet 189203 [packets to send 1062, broken 1061] [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00189203 [15:22:43]OFD Sender: To server: pG, [15:22:43]CommunicateWithHost lk.salyk.kg:30040 [15:22:43]ConnectInit lk.salyk.kg [15:22:43]written 0, free lines is 4095 [15:22:43]Connected sock=10 [15:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7E 7B 0D 01 87 F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 14 01 00 00 F4 03 04 00 44 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E3 02 00 35 04 06 00 54 22 98 C7 80 FF 73 2F EE 1D D2 AB 8E 24 [15:22:43]Write to MH i2c: 01 00 00 4D 53 A0 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 4D 53 00 00 00 00 00 5E 0C 11 [15:22:43]RasterBufferAndPrint [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]written 0, free lines is 3169 [15:22:43]MH_Cut [15:22:43]Write to MH i2c: D1 01 00 54 53 01 79 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 01 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 01 00 54 53 00 78 [15:22:43]Write to MH i2c: 01 00 00 55 53 A8 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 66 46 47 00 C5 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 39 36 35 33 34 30 10 04 04 00 13 E3 02 00 F4 03 04 00 2C 10 1A 67 B6 04 01 00 00 91 E7 6B 9E 27 59 4D E7 [15:22:43]CommunicateWithHost err = 0 [15:22:43]CheckOFDResponse [15:22:43]1017 (14) - 77093643461234 [15:22:43]1041 (16) - 0000000000965340 [15:22:43]1040 (4) - 189203 [15:22:43]1012 (4) - 24.10.2024 09:15 [15:22:43]1206 (1) - 0 [15:22:43]OFD Sender: Remove packet 189203 [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00189203 [15:22:43]NVStorageDeleteData [15:22:44]OFD Sender: No OFD packet to send [15:22:44]*** Cut start [15:22:44]*** Partial cut [15:22:44]*** CUTSNS_PIN = 1 [15:22:44]*** CUTSNS_PIN = 0 [15:22:45]*** Brake cut motor [15:22:45]Read from MH i2c: 01 [15:22:45]MH_I2C_Read... [15:22:45]*** Stop cut motor [15:22:45]*** Cut end [15:22:45]Read from MH i2c: 01 07 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: 01 07 00 55 53 00 00 00 00 00 FF 0F BD [15:22:45]process_action close_receipt done [15:22:45]requested_data is exist [15:22:45]produce_requested_data [15:22:45]requested_item fm.sn is exist - process it [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 11 00 00 [15:22:45]Write to MH i2c: E2 08 00 56 53 80 11 00 00 00 00 00 00 23 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 56 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [15:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:22:45]wFMCommunicate OK [15:22:45]requested_item fd.num is exist - process it [15:22:45]SAM_PROTO_GetFieldsCounters [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 13 00 00 [15:22:45]Write to MH i2c: E2 08 00 57 53 80 13 00 00 00 00 00 00 26 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 62 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 62 00 57 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E3 02 00 0E 04 04 00 CF 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 34 [15:22:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E3 02 00 0E 04 04 00 CF 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 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_GetFieldsCounters done [15:22:45]requested_item shift.num is exist - process it [15:22:45]requested_item shift.opened is exist - process it [15:22:45]req_shift_opened [15:22:45]FM_GetShiftState [15:22:45]SAM_PROTO_GetShiftState [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 13 01 00 [15:22:45]Write to MH i2c: E2 08 00 58 53 80 13 01 00 00 00 00 00 28 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0E 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0E 00 58 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 06 [15:22:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_GetShiftState done [15:22:45]FM_GetShiftState done [15:22:45]req_shift_opened done [15:22:45]requested_item shift.open_date is exist - process it [15:22:45]req_shift_open_date [15:22:45]req_shift_open_date done [15:22:45]produce_requested_data done [15:22:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189203,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:22:45]process_action_free close_receipt [15:22:45]json_value_free [15:22:45]json_value_free done [15:22:45]process_json_proto returns [15:22:45]Send response to host [15:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189203,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:22:45]free response buf [15:22:45]execute_script done [15:22:45]execute_script returns [15:22:45]free content buf [15:22:45]Sock 8.Close socket [15:22:45]Sock 8.Thread stoped [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:37]accept exits with 9 [15:23:37]New connection [15:23:37]New thread 3067071844 created [15:23:37]Thread 3067215204 joined [15:23:37]Waiting for new connection... [15:23:37] Sock 9.Parse request [15:23:37]Sock 9.Check first char [15:23:37]Sock 9.First char is OK [15:23:37]request: POST /json_proto HTTP/1.0 [15:23:37]Method: POST [15:23:37]URL: /json_proto [15:23:37]Method is POST - this is cgi request [15:23:37]url: /json_proto [15:23:37]query_string will be loaded in cgi processing [15:23:37]execute_cgi json_proto POST (null) [15:23:37]execute_cgi path=json_proto method=POST [15:23:37]POST find Content-Length [15:23:37]Host: 172.17.42.131:8080 [15:23:37]Content-Length: 677 [15:23:37]Content-Type: application/json [15:23:37] [15:23:37]POST finish read [15:23:37]Found Content-Length = 677 [15:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:23:37]execute_script... [15: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)211270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:23:37]POST & json_proto [15:23:37]process_json_proto [15:23:37]json parsed OK: [15:23:37]protocol is kg_v1.0 [15:23:37]action value=close_receipt [15:23:37]process_action close_receipt [15:23:37]cmd_close_receipt [15:23:37]MH_GetDate [15:23:37]Write to MH i2c: F0 00 00 59 53 9B [15:23:37]Write i2c OK [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: F0 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: F0 09 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: F0 09 00 59 53 00 7D 66 1A 67 A0 18 CA 66 F0 [15:23:37]GetLastDocTimeStamp 1729783364 [15:23:37]current date 1729783421 [15:23:37]FM_GetShiftState [15:23:37]SAM_PROTO_GetShiftState [15:23:37]wFMCommunicate request_size=4 [15:23:37]MH_SAM_APDU [15:23:37]CAPDU: 80 13 01 00 [15:23:37]Write to MH i2c: E2 08 00 5A 53 80 13 01 00 00 00 00 00 2A [15:23:37]Write i2c OK [15:23:37]MH_I2C_Read... [15:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:37]Read from MH i2c: E2 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 0E 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 0E 00 5A 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 08 [15:23:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:23:37]wFMCommunicate OK [15:23:37]SAM_PROTO_GetShiftState done [15:23:37]FM_GetShiftState done [15:23:37]opened in 1729728961 [15:23:37]opened+sec_in_day 1729815361 [15:23:37]quantity*price = 50010 [15:23:37]sum+1 = 50012 [15:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 277 24.10.2024 15:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189204 ФПД: 177988072712596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189204&fm=177988072712596&tin=02508201610067®Number=0000000000100030&sum=50000 [15:23:38]StoreToDocumentArchive [15:23:38]shift 463 fd 189204 [15:23:38]save to /storage/0463/doc_00189204 [15:23:38]save last doc name /storage/0463/doc_00189204 to /storage/kkm_last_doc_name [15:23:38]save OK [15:23:38]Clear old archive folders... [15:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:38]tlvbuf is 01626DB0 [15:23:38]SAM_PROTO_ClearQueue [15:23:38]wFMCommunicate request_size=4 [15:23:38]MH_SAM_APDU [15:23:38]CAPDU: 80 09 00 00 [15:23:38]Write to MH i2c: E2 08 00 67 53 80 09 00 00 00 00 00 00 2C [15:23:38]Write i2c OK [15:23:38]MH_I2C_Read... [15:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:38]Read from MH i2c: E2 [15:23:38]MH_I2C_Read... [15:23:38]Read from MH i2c: E2 03 00 [15:23:38]MH_I2C_Read... [15:23:38]Read from MH i2c: E2 03 00 67 53 00 90 00 2E [15:23:38]RAPDU: 90 00 [15:23:38]wFMCommunicate OK [15:23:38]SAM_PROTO_ClearQueue done [15:23:38]KKMCreateOFDPacket [15:23:38]OFDProtocolAddRootSTLVToBuf [15:23:38]FM_MakeSignedData [15:23:38]FM_MakeSignedData [15:23:38]SAM_PROTO_SignData [15:23:38]wFMCommunicate request_size=4 [15:23:38]MH_SAM_APDU [15:23:38]CAPDU: 80 0D 01 02 [15:23:38]Write to MH i2c: E2 08 00 68 53 80 0D 01 02 00 00 00 00 34 [15:23:38]Write i2c OK [15:23:38]MH_I2C_Read... [15:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:38]Read from MH i2c: E2 [15:23:38]MH_I2C_Read... [15:23:38]Read from MH i2c: E2 03 00 [15:23:38]MH_I2C_Read... [15:23:38]Read from MH i2c: E2 03 00 68 53 00 90 00 2F [15:23:38]RAPDU: 90 00 [15:23:38]wFMCommunicate OK [15:23:38]wFMCommunicate request_size=255 [15:23:38]MH_SAM_APDU [15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 15 01 00 00 F4 03 04 00 7D 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E3 02 00 35 04 06 00 A1 [15:23:38]Write to MH i2c: E2 02 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 15 01 00 00 F4 03 04 00 7D 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E3 02 00 35 04 06 00 A1 00 00 63 [15:23:38]Write i2c OK [15:23:38]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 03 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 03 00 69 53 00 90 00 30 [15:23:39]RAPDU: 90 00 [15:23:39]wFMCommunicate OK [15:23:39]wFMCommunicate request_size=10 [15:23:39]MH_SAM_APDU [15:23:39]CAPDU: 80 0D 02 02 05 E1 13 D9 29 94 [15:23:39]Write to MH i2c: E2 0D 00 6A 53 80 0D 02 02 05 00 E1 13 D9 29 94 00 00 CB [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 03 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 03 00 6A 53 00 90 00 31 [15:23:39]RAPDU: 90 00 [15:23:39]wFMCommunicate OK [15:23:39]wFMCommunicate request_size=4 [15:23:39]MH_SAM_APDU [15:23:39]CAPDU: 80 0D 03 02 [15:23:39]Write to MH i2c: E2 08 00 6B 53 80 0D 03 02 00 00 00 00 39 [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0B 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0B 00 6B 53 00 35 22 DF BA 6C 15 DF C1 90 00 4B [15:23:39]RAPDU: 35 22 DF BA 6C 15 DF C1 90 00 [15:23:39]wFMCommunicate OK [15:23:39]SAM_PROTO_SignData done [15:23:39]FM_MakeSignedData done [15:23:39]CreateOFDProtocolMessage [15:23:39]wFMCommunicate request_size=4 [15:23:39]MH_SAM_APDU [15:23:39]CAPDU: 80 11 00 00 [15:23:39]Write to MH i2c: E2 08 00 6C 53 80 11 00 00 00 00 00 00 39 [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 17 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 17 00 6C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [15:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:39]wFMCommunicate OK [15:23:39]CreateOFDProtocolMessage done [15:23:39]OFDSenderStorePacket 189204 [15:23:39]StoreOFDPacket docnum=189204 [15:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 40 07 01 AE E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 15 01 00 00 F4 03 04 00 7D 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E3 02 00 35 04 06 00 A1 E1 13 D9 29 94 35 22 DF BA 6C 15 DF C1 [15:23:39]CheckFolder [15:23:39]dirname=/storage/ofd_packets [15:23:39]CheckFolder done [15:23:39]ProducePacketName [15:23:39]name=ofd_packets/00189204 [15:23:39]NVStorageSaveData ofd_packets/00189204 [15:23:39]File name is /storage/ofd_packets/00189204 [15:23:39]Write 301 bytes [15:23:39]NVStorageSaveData done [15:23:39]OFDSenderStorePacket done [15:23:39]KKMCreateOFDPacket done [15:23:39]NVStorageSaveData kkm_last_timestamp [15:23:39]File name is /storage/kkm_last_timestamp [15:23:39]Write 4 bytes [15:23:39]NVStorageSaveData done [15:23:39]ExternCall_PrintAddStr [15:23:39]wPrintStart [15:23:39]Write to MH i2c: 01 00 00 6D 53 C0 [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 6D 53 00 00 00 00 00 FF 0F D5 [15:23:39]RasterBufferAndPrint [15:23:39]line Счет N : (1)211270 [15:23:39]line ИНН: 02508201610067 [15:23:39]line Контрольно-Кассовый Чек [15:23:39]line ПРОДАЖА [15:23:39]line ТРК (МРК, ГНК) : 13 [15:23:39]line Товар: 2710124500 [15:23:39]line Аи-95-К-3 [15:23:39]line 6.740 * 74.20 [15:23:39]line = 500.11 [15:23:39]line НДС 12% НСП 1% [15:23:39]line > о реализуемом товаре [15:23:39]line ОКРУГЛЕНИЕ: -0.11 [15:23:39]line ИТОГО: 500.00 [15:23:39]line Внесено: 500.00 [15:23:39]line СДАЧА: 0.00 [15:23:39]line НСП 1% : 4.43 [15:23:39]line НДС 12% : 53.11 [15:23:39]line Наличными: 500.00 [15:23:39]line Безнал.: 0.00 [15:23:39]line Место: АЗС № 86 "Партнер Нефть" [15:23:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:23:39]line СНО: Общий режим [15:23:39]line Чек 277 24.10.2024 15:23 [15:23:39]line Смена: 463 ФФД: 1.0 [15:23:39]line ЗНМ: 0300000155 [15:23:39]line РНМ: 0000000000100030 [15:23:39]line Версия ККМ: 001 [15:23:39]line ФМ: 0000000000965340 [15:23:39]line ФД: 189204 [15:23:39]line ФПД: 177988072712596 [15:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189204&fm=177988072712596&tin=02508201610067®Number=0000000000100030&sum=50000 [15:23:39]OFD Sender: Processing packet 189204 [packets to send 1062, broken 1061] [15:23:39]ProducePacketName [15:23:39]name=ofd_packets/00189204 [15:23:39]OFD Sender: To server: pG, [15:23:39]CommunicateWithHost lk.salyk.kg:30040 [15:23:39]ConnectInit lk.salyk.kg [15:23:39]written 0, free lines is 4095 [15:23:39]Connected sock=10 [15:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 40 07 01 AE E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 15 01 00 00 F4 03 04 00 7D 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E3 02 00 35 04 06 00 A1 E1 13 D9 29 94 35 22 DF BA 6C 15 DF C1 [15:23:39]Write to MH i2c: 01 00 00 98 53 EB [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 98 53 00 00 00 00 00 5F 0C 5D [15:23:39]RasterBufferAndPrint [15:23:39]line [15:23:39]line [15:23:39]line [15:23:39]line [15:23:39]line [15:23:39]written 0, free lines is 3170 [15:23:39]MH_Cut [15:23:39]Write to MH i2c: D1 01 00 9F 53 01 C4 [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: D1 [15:23:39]MH_I2C_Read... [15:23:40]Read from MH i2c: D1 01 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: D1 01 00 9F 53 00 C3 [15:23:40]Write to MH i2c: 01 00 00 A0 53 F3 [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 22 47 00 98 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 39 36 35 33 34 30 10 04 04 00 14 E3 02 00 F4 03 04 00 65 10 1A 67 B6 04 01 00 00 62 80 60 5C F4 50 97 9B [15:23:40]CommunicateWithHost err = 0 [15:23:40]CheckOFDResponse [15:23:40]1017 (14) - 77093643461234 [15:23:40]1041 (16) - 0000000000965340 [15:23:40]1040 (4) - 189204 [15:23:40]1012 (4) - 24.10.2024 09:16 [15:23:40]1206 (1) - 0 [15:23:40]OFD Sender: Remove packet 189204 [15:23:40]ProducePacketName [15:23:40]name=ofd_packets/00189204 [15:23:40]NVStorageDeleteData [15:23:40]OFD Sender: No OFD packet to send [15:23:41]*** Cut start [15:23:41]*** Partial cut [15:23:41]*** CUTSNS_PIN = 1 [15:23:41]*** CUTSNS_PIN = 0 [15:23:41]*** Brake cut motor [15:23:41]Read from MH i2c: 01 [15:23:41]MH_I2C_Read... [15:23:41]*** Stop cut motor [15:23:41]Read from MH i2c: 01 07 00 [15:23:41]MH_I2C_Read... [15:23:41]*** Cut end [15:23:41]Read from MH i2c: 01 07 00 A0 53 00 00 00 00 00 FF 0F 08 [15:23:41]process_action close_receipt done [15:23:41]requested_data is exist [15:23:41]produce_requested_data [15:23:41]requested_item fm.sn is exist - process it [15:23:41]wFMCommunicate request_size=4 [15:23:41]MH_SAM_APDU [15:23:41]CAPDU: 80 11 00 00 [15:23:41]Write to MH i2c: E2 08 00 A1 53 80 11 00 00 00 00 00 00 6E [15:23:41]Write i2c OK [15:23:41]MH_I2C_Read... [15:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:41]Read from MH i2c: E2 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 17 00 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 17 00 A1 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [15:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:41]wFMCommunicate OK [15:23:41]requested_item fd.num is exist - process it [15:23:41]SAM_PROTO_GetFieldsCounters [15:23:41]wFMCommunicate request_size=4 [15:23:41]MH_SAM_APDU [15:23:41]CAPDU: 80 13 00 00 [15:23:41]Write to MH i2c: E2 08 00 A2 53 80 13 00 00 00 00 00 00 71 [15:23:41]Write i2c OK [15:23:41]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 62 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 62 00 A2 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E3 02 00 0E 04 04 00 CF 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 83 [15:23:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E3 02 00 0E 04 04 00 CF 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 [15:23:42]wFMCommunicate OK [15:23:42]SAM_PROTO_GetFieldsCounters done [15:23:42]requested_item shift.num is exist - process it [15:23:42]requested_item shift.opened is exist - process it [15:23:42]req_shift_opened [15:23:42]FM_GetShiftState [15:23:42]SAM_PROTO_GetShiftState [15:23:42]wFMCommunicate request_size=4 [15:23:42]MH_SAM_APDU [15:23:42]CAPDU: 80 13 01 00 [15:23:42]Write to MH i2c: E2 08 00 A3 53 80 13 01 00 00 00 00 00 73 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0E 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0E 00 A3 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 51 [15:23:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:23:42]wFMCommunicate OK [15:23:42]SAM_PROTO_GetShiftState done [15:23:42]FM_GetShiftState done [15:23:42]req_shift_opened done [15:23:42]requested_item shift.open_date is exist - process it [15:23:42]req_shift_open_date [15:23:42]req_shift_open_date done [15:23:42]produce_requested_data done [15:23:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189204,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:23:42]process_action_free close_receipt [15:23:42]json_value_free [15:23:42]json_value_free done [15:23:42]process_json_proto returns [15:23:42]Send response to host [15:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189204,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:23:42]free response buf [15:23:42]execute_script done [15:23:42]execute_script returns [15:23:42]free content buf [15:23:42]Sock 9.Close socket [15:23:42]Sock 9.Thread stoped [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:23:57]accept exits with 8 [15:23:57]New connection [15:23:57]New thread 3067215204 created [15:23:57]Thread 3067071844 joined [15:23:57]Waiting for new connection... [15:23:57] Sock 8.Parse request [15:23:57]Sock 8.Check first char [15:23:57]Sock 8.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.42.131:8080 [15:23:57]Content-Length: 677 [15:23:57]Content-Type: application/json [15:23:57] [15:23:57]POST finish read [15:23:57]Found Content-Length = 677 [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)211269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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: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)211269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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: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 A4 53 E6 [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 A4 53 00 91 66 1A 67 A0 18 CA 66 4F [15:23:57]GetLastDocTimeStamp 1729783421 [15:23:57]current date 1729783441 [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 A5 53 80 13 01 00 00 00 00 00 75 [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 A5 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 53 [15:23:57]RAPDU: 09 00 01 C1 91 19 67 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 1729728961 [15:23:57]opened+sec_in_day 1729815361 [15:23:57]quantity*price = 30038 [15:23:57]sum+1 = 30039 [15:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 278 24.10.2024 15:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189205 ФПД: 224146751074837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152401&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189205&fm=224146751074837&tin=02508201610067®Number=0000000000100030&sum=30000 [15:23:58]StoreToDocumentArchive [15:23:58]shift 463 fd 189205 [15:23:58]save to /storage/0463/doc_00189205 [15:23:58]save last doc name /storage/0463/doc_00189205 to /storage/kkm_last_doc_name [15:23:58]save OK [15:23:58]Clear old archive folders... [15:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:58]tlvbuf is 014B4B90 [15:23:58]SAM_PROTO_ClearQueue [15:23:58]wFMCommunicate request_size=4 [15:23:58]MH_SAM_APDU [15:23:58]CAPDU: 80 09 00 00 [15:23:58]Write to MH i2c: E2 08 00 B2 53 80 09 00 00 00 00 00 00 77 [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:58]Read from MH i2c: E2 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 B2 53 00 90 00 79 [15:23:58]RAPDU: 90 00 [15:23:58]wFMCommunicate OK [15:23:58]SAM_PROTO_ClearQueue done [15:23:58]KKMCreateOFDPacket [15:23:58]OFDProtocolAddRootSTLVToBuf [15:23:58]FM_MakeSignedData [15:23:58]FM_MakeSignedData [15:23:58]SAM_PROTO_SignData [15:23:58]wFMCommunicate request_size=4 [15:23:58]MH_SAM_APDU [15:23:58]CAPDU: 80 0D 01 02 [15:23:58]Write to MH i2c: E2 08 00 B3 53 80 0D 01 02 00 00 00 00 7F [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:58]Read from MH i2c: E2 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 B3 53 00 90 00 7A [15:23:58]RAPDU: 90 00 [15:23:58]wFMCommunicate OK [15:23:58]wFMCommunicate request_size=255 [15:23:58]MH_SAM_APDU [15:23: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 01 00 00 F4 03 04 00 91 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E3 02 00 35 04 06 00 CB [15:23:58]Write to MH i2c: E2 02 01 B4 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 01 00 00 F4 03 04 00 91 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E3 02 00 35 04 06 00 CB 00 00 0A [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:58]Read from MH i2c: E2 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 03 00 B4 53 00 90 00 7B [15:23:58]RAPDU: 90 00 [15:23:58]wFMCommunicate OK [15:23:58]wFMCommunicate request_size=10 [15:23:58]MH_SAM_APDU [15:23:58]CAPDU: 80 0D 02 02 05 DC 3B 79 B2 15 [15:23:58]Write to MH i2c: E2 0D 00 B5 53 80 0D 02 02 05 00 DC 3B 79 B2 15 00 00 E3 [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 B5 53 00 90 00 7C [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 B6 53 80 0D 03 02 00 00 00 00 84 [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 B6 53 00 D7 DD BC 64 5A 3F 05 7F 90 00 76 [15:23:59]RAPDU: D7 DD BC 64 5A 3F 05 7F 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 B7 53 80 11 00 00 00 00 00 00 84 [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 B7 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [15:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:59]wFMCommunicate OK [15:23:59]CreateOFDProtocolMessage done [15:23:59]OFDSenderStorePacket 189205 [15:23:59]StoreOFDPacket docnum=189205 [15:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 30 07 01 42 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 01 00 00 F4 03 04 00 91 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E3 02 00 35 04 06 00 CB DC 3B 79 B2 15 D7 DD BC 64 5A 3F 05 7F [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/00189205 [15:23:59]NVStorageSaveData ofd_packets/00189205 [15:23:59]File name is /storage/ofd_packets/00189205 [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]ExternCall_PrintAddStr [15:23:59]wPrintStart [15:23:59]Write to MH i2c: 01 00 00 B8 53 0B [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 B8 53 00 00 00 00 00 FF 0F 20 [15:23:59]RasterBufferAndPrint [15:23:59]line Счет N : (1)211269 [15:23:59]line ИНН: 02508201610067 [15:23:59]line Контрольно-Кассовый Чек [15:23:59]line ПРОДАЖА [15:23:59]line ТРК (МРК, ГНК) : 42 [15:23:59]line Товар: 2710124130 [15:23:59]line Аи-92-К-3 [15:23:59]line 4.490 * 66.90 [15:23:59]line = 300.38 [15:23:59]line НДС 12% НСП 1% [15:23:59]line > о реализуемом товаре [15:23:59]line ОКРУГЛЕНИЕ: -0.38 [15:23:59]line ИТОГО: 300.00 [15:23:59]line Внесено: 300.00 [15:23:59]line СДАЧА: 0.00 [15:23:59]line НСП 1% : 2.66 [15:23:59]line НДС 12% : 31.90 [15:23:59]line Наличными: 300.00 [15:23:59]line Безнал.: 0.00 [15:23:59]line Место: АЗС № 86 "Партнер Нефть" [15:23:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:23:59]line СНО: Общий режим [15:23:59]line Чек 278 24.10.2024 15:24 [15:23:59]line Смена: 463 ФФД: 1.0 [15:23:59]line ЗНМ: 0300000155 [15:23:59]line РНМ: 0000000000100030 [15:23:59]line Версия ККМ: 001 [15:23:59]line ФМ: 0000000000965340 [15:23:59]line ФД: 189205 [15:23:59]line ФПД: 224146751074837 [15:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152401&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189205&fm=224146751074837&tin=02508201610067®Number=0000000000100030&sum=30000 [15:23:59]written 0, free lines is 4095 [15:23:59]OFD Sender: Processing packet 189205 [packets to send 1062, broken 1061] [15:23:59]ProducePacketName [15:23:59]name=ofd_packets/00189205 [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]Connected sock=10 [15:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 30 07 01 42 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 01 00 00 F4 03 04 00 91 66 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E3 02 00 35 04 06 00 CB DC 3B 79 B2 15 D7 DD BC 64 5A 3F 05 7F [15:23:59]Write to MH i2c: 01 00 00 E3 53 36 [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 E3 53 00 00 00 00 00 60 0C A9 [15:23:59]RasterBufferAndPrint [15:23:59]line [15:23:59]line [15:23:59]line [15:23:59]line [15:23:59]line [15:23:59]written 0, free lines is 3172 [15:23:59]MH_Cut [15:23:59]Write to MH i2c: D1 01 00 EA 53 01 0F [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: D1 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: D1 01 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: D1 01 00 EA 53 00 0E [15:23:59]Write to MH i2c: 01 00 00 EB 53 3E [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 65 47 00 11 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 39 36 35 33 34 30 10 04 04 00 15 E3 02 00 F4 03 04 00 79 10 1A 67 B6 04 01 00 00 B3 87 C4 11 96 E9 76 C4 [15:23:59]CommunicateWithHost err = 0 [15:23:59]CheckOFDResponse [15:23:59]1017 (14) - 77093643461234 [15:23:59]1041 (16) - 0000000000965340 [15:23:59]1040 (4) - 189205 [15:23:59]1012 (4) - 24.10.2024 09:16 [15:23:59]1206 (1) - 0 [15:23:59]OFD Sender: Remove packet 189205 [15:23:59]ProducePacketName [15:23:59]name=ofd_packets/00189205 [15:23:59]NVStorageDeleteData [15:24:00]OFD Sender: No OFD packet to send [15:24:00]*** Cut start [15:24:00]*** Partial cut [15:24:00]*** CUTSNS_PIN = 1 [15:24:00]*** CUTSNS_PIN = 0 [15:24:01]*** Brake cut motor [15:24:01]Read from MH i2c: 01 [15:24:01]MH_I2C_Read... [15:24:01]*** Stop cut motor [15:24:01]*** Cut end [15:24:01]Read from MH i2c: 01 07 00 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: 01 07 00 EB 53 00 00 00 00 00 FF 0F 53 [15:24:01]process_action close_receipt done [15:24:01]requested_data is exist [15:24:01]produce_requested_data [15:24:01]requested_item fm.sn is exist - process it [15:24:01]wFMCommunicate request_size=4 [15:24:01]MH_SAM_APDU [15:24:01]CAPDU: 80 11 00 00 [15:24:01]Write to MH i2c: E2 08 00 EC 53 80 11 00 00 00 00 00 00 B9 [15:24:01]Write i2c OK [15:24:01]MH_I2C_Read... [15:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:01]Read from MH i2c: E2 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 17 00 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 17 00 EC 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [15:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:24:01]wFMCommunicate OK [15:24:01]requested_item fd.num is exist - process it [15:24:01]SAM_PROTO_GetFieldsCounters [15:24:01]wFMCommunicate request_size=4 [15:24:01]MH_SAM_APDU [15:24:01]CAPDU: 80 13 00 00 [15:24:01]Write to MH i2c: E2 08 00 ED 53 80 13 00 00 00 00 00 00 BC [15:24:01]Write i2c OK [15:24:01]MH_I2C_Read... [15:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:01]Read from MH i2c: E2 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 62 00 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 62 00 ED 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E3 02 00 0E 04 04 00 CF 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 D2 [15:24:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E3 02 00 0E 04 04 00 CF 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 [15:24:01]wFMCommunicate OK [15:24:01]SAM_PROTO_GetFieldsCounters done [15:24:01]requested_item shift.num is exist - process it [15:24:01]requested_item shift.opened is exist - process it [15:24:01]req_shift_opened [15:24:01]FM_GetShiftState [15:24:01]SAM_PROTO_GetShiftState [15:24:01]wFMCommunicate request_size=4 [15:24:01]MH_SAM_APDU [15:24:01]CAPDU: 80 13 01 00 [15:24:01]Write to MH i2c: E2 08 00 EE 53 80 13 01 00 00 00 00 00 BE [15:24:01]Write i2c OK [15:24:01]MH_I2C_Read... [15:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:01]Read from MH i2c: E2 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 0E 00 [15:24:01]MH_I2C_Read... [15:24:01]Read from MH i2c: E2 0E 00 EE 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9C [15:24:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:24:01]wFMCommunicate OK [15:24:01]SAM_PROTO_GetShiftState done [15:24:01]FM_GetShiftState done [15:24:01]req_shift_opened done [15:24:01]requested_item shift.open_date is exist - process it [15:24:01]req_shift_open_date [15:24:01]req_shift_open_date done [15:24:01]produce_requested_data done [15:24:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189205,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:24:01]process_action_free close_receipt [15:24:01]json_value_free [15:24:01]json_value_free done [15:24:01]process_json_proto returns [15:24:01]Send response to host [15:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189205,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:24:01]free response buf [15:24:01]execute_script done [15:24:01]execute_script returns [15:24:01]free content buf [15:24:01]Sock 8.Close socket [15:24:01]Sock 8.Thread stoped [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:24]accept exits with 9 [15:26:24]New connection [15:26:24]New thread 3067071844 created [15:26:24]Thread 3067215204 joined [15:26:24]Waiting for new connection... [15:26:24] Sock 9.Parse request [15:26:24]Sock 9.Check first char [15:26:24]Sock 9.First char is OK [15:26:24]request: POST /json_proto HTTP/1.0 [15:26:24]Method: POST [15:26:24]URL: /json_proto [15:26:24]Method is POST - this is cgi request [15:26:24]url: /json_proto [15:26:24]query_string will be loaded in cgi processing [15:26:24]execute_cgi json_proto POST (null) [15:26:24]execute_cgi path=json_proto method=POST [15:26:24]POST find Content-Length [15:26:24]Host: 172.17.42.131:8080 [15:26:24]Content-Length: 677 [15:26:24]Content-Type: application/json [15:26:24] [15:26:24]POST finish read [15:26:24]Found Content-Length = 677 [15:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [15:26:24]execute_script... [15:26: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)211271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [15:26:24]POST & json_proto [15:26:24]process_json_proto [15:26:24]json parsed OK: [15:26:24]protocol is kg_v1.0 [15:26:24]action value=close_receipt [15:26:24]process_action close_receipt [15:26:24]cmd_close_receipt [15:26:24]MH_GetDate [15:26:24]Write to MH i2c: F0 00 00 EF 53 31 [15:26:24]Write i2c OK [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 09 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 09 00 EF 53 00 24 67 1A 67 A0 18 CA 66 2E [15:26:24]GetLastDocTimeStamp 1729783441 [15:26:24]current date 1729783588 [15:26:24]FM_GetShiftState [15:26:24]SAM_PROTO_GetShiftState [15:26:24]wFMCommunicate request_size=4 [15:26:24]MH_SAM_APDU [15:26:24]CAPDU: 80 13 01 00 [15:26:24]Write to MH i2c: E2 08 00 F0 53 80 13 01 00 00 00 00 00 C0 [15:26:24]Write i2c OK [15:26:24]MH_I2C_Read... [15:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:24]Read from MH i2c: E2 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 F0 53 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9E [15:26:24]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:26:24]wFMCommunicate OK [15:26:24]SAM_PROTO_GetShiftState done [15:26:24]FM_GetShiftState done [15:26:24]opened in 1729728961 [15:26:24]opened+sec_in_day 1729815361 [15:26:24]quantity*price = 40006 [15:26:24]sum+1 = 40007 [15:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 279 24.10.2024 15:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189206 ФПД: 183989226538558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189206&fm=183989226538558&tin=02508201610067®Number=0000000000100030&sum=40000 [15:26:26]StoreToDocumentArchive [15:26:26]shift 463 fd 189206 [15:26:26]save to /storage/0463/doc_00189206 [15:26:26]save last doc name /storage/0463/doc_00189206 to /storage/kkm_last_doc_name [15:26:26]save OK [15:26:26]Clear old archive folders... [15:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:26]tlvbuf is 014B4520 [15:26:26]SAM_PROTO_ClearQueue [15:26:26]wFMCommunicate request_size=4 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 09 00 00 [15:26:26]Write to MH i2c: E2 08 00 FD 53 80 09 00 00 00 00 00 00 C2 [15:26:26]OFD Sender: No OFD packet to send [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 FD 53 00 90 00 C4 [15:26:26]RAPDU: 90 00 [15:26:26]wFMCommunicate OK [15:26:26]SAM_PROTO_ClearQueue done [15:26:26]KKMCreateOFDPacket [15:26:26]OFDProtocolAddRootSTLVToBuf [15:26:26]FM_MakeSignedData [15:26:26]FM_MakeSignedData [15:26:26]SAM_PROTO_SignData [15:26:26]wFMCommunicate request_size=4 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 0D 01 02 [15:26:26]Write to MH i2c: E2 08 00 FE 53 80 0D 01 02 00 00 00 00 CA [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 FE 53 00 90 00 C5 [15:26:26]RAPDU: 90 00 [15:26:26]wFMCommunicate OK [15:26:26]wFMCommunicate request_size=255 [15:26:26]MH_SAM_APDU [15:26: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 01 00 00 F4 03 04 00 24 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E3 02 00 35 04 06 00 A7 [15:26:26]Write to MH i2c: E2 02 01 FF 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 01 00 00 F4 03 04 00 24 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E3 02 00 35 04 06 00 A7 00 00 A2 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 FF 53 00 90 00 C6 [15:26:26]RAPDU: 90 00 [15:26:26]wFMCommunicate OK [15:26:26]wFMCommunicate request_size=10 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 0D 02 02 05 56 54 7D 86 3E [15:26:26]Write to MH i2c: E2 0D 00 00 54 80 0D 02 02 05 00 56 54 7D 86 3E 00 00 C3 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 03 00 00 54 00 90 00 C8 [15:26:26]RAPDU: 90 00 [15:26:26]wFMCommunicate OK [15:26:26]wFMCommunicate request_size=4 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 0D 03 02 [15:26:26]Write to MH i2c: E2 08 00 01 54 80 0D 03 02 00 00 00 00 D0 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 0B 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 0B 00 01 54 00 72 05 EE D6 E3 D4 1B 0F 90 00 ED [15:26:26]RAPDU: 72 05 EE D6 E3 D4 1B 0F 90 00 [15:26:26]wFMCommunicate OK [15:26:26]SAM_PROTO_SignData done [15:26:26]FM_MakeSignedData done [15:26:26]CreateOFDProtocolMessage [15:26:26]wFMCommunicate request_size=4 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 11 00 00 [15:26:26]Write to MH i2c: E2 08 00 02 54 80 11 00 00 00 00 00 00 D0 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 17 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 17 00 02 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [15:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:26]wFMCommunicate OK [15:26:26]CreateOFDProtocolMessage done [15:26:26]OFDSenderStorePacket 189206 [15:26:26]StoreOFDPacket docnum=189206 [15:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A DE 07 01 22 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 01 00 00 F4 03 04 00 24 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E3 02 00 35 04 06 00 A7 56 54 7D 86 3E 72 05 EE D6 E3 D4 1B 0F [15:26:26]CheckFolder [15:26:26]dirname=/storage/ofd_packets [15:26:26]CheckFolder done [15:26:26]ProducePacketName [15:26:26]name=ofd_packets/00189206 [15:26:26]NVStorageSaveData ofd_packets/00189206 [15:26:26]File name is /storage/ofd_packets/00189206 [15:26:26]Write 301 bytes [15:26:26]NVStorageSaveData done [15:26:26]OFDSenderStorePacket done [15:26:26]KKMCreateOFDPacket done [15:26:26]NVStorageSaveData kkm_last_timestamp [15:26:26]File name is /storage/kkm_last_timestamp [15:26:26]Write 4 bytes [15:26:26]NVStorageSaveData done [15:26:26]ExternCall_PrintAddStr [15:26:26]wPrintStart [15:26:26]Write to MH i2c: 01 00 00 03 54 57 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 07 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 07 00 03 54 00 00 00 00 00 FF 0F 6C [15:26:26]RasterBufferAndPrint [15:26:26]line Счет N : (1)211271 [15:26:26]line ИНН: 02508201610067 [15:26:26]line Контрольно-Кассовый Чек [15:26:26]line ПРОДАЖА [15:26:26]line ТРК (МРК, ГНК) : 32 [15:26:26]line Товар: 2710124130 [15:26:26]line Аи-92-К-3 [15:26:26]line 5.980 * 66.90 [15:26:26]line = 400.06 [15:26:26]line НДС 12% НСП 1% [15:26:26]line > о реализуемом товаре [15:26:26]line ОКРУГЛЕНИЕ: -0.06 [15:26:26]line ИТОГО: 400.00 [15:26:26]line Внесено: 400.00 [15:26:26]line СДАЧА: 0.00 [15:26:26]line НСП 1% : 3.54 [15:26:26]line НДС 12% : 42.48 [15:26:26]line Наличными: 400.00 [15:26:26]line Безнал.: 0.00 [15:26:26]line Место: АЗС № 86 "Партнер Нефть" [15:26:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:26:26]line СНО: Общий режим [15:26:26]line Чек 279 24.10.2024 15:26 [15:26:26]line Смена: 463 ФФД: 1.0 [15:26:26]line ЗНМ: 0300000155 [15:26:26]line РНМ: 0000000000100030 [15:26:26]line Версия ККМ: 001 [15:26:26]line ФМ: 0000000000965340 [15:26:26]line ФД: 189206 [15:26:26]line ФПД: 183989226538558 [15:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189206&fm=183989226538558&tin=02508201610067®Number=0000000000100030&sum=40000 [15:26:26]written 0, free lines is 4095 [15:26:26]OFD Sender: Processing packet 189206 [packets to send 1062, broken 1061] [15:26:26]ProducePacketName [15:26:26]name=ofd_packets/00189206 [15:26:26]OFD Sender: To server: pG, [15:26:26]CommunicateWithHost lk.salyk.kg:30040 [15:26:26]ConnectInit lk.salyk.kg [15:26:26]Connected sock=10 [15:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A DE 07 01 22 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 01 00 00 F4 03 04 00 24 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E3 02 00 35 04 06 00 A7 56 54 7D 86 3E 72 05 EE D6 E3 D4 1B 0F [15:26:27]Write to MH i2c: 01 00 00 2E 54 82 [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: 01 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: 01 07 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: 01 07 00 2E 54 00 00 00 00 00 65 0C FA [15:26:27]RasterBufferAndPrint [15:26:27]line [15:26:27]line [15:26:27]line [15:26:27]line [15:26:27]line [15:26:27]written 0, free lines is 3176 [15:26:27]MH_Cut [15:26:27]Write to MH i2c: D1 01 00 35 54 01 5B [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: D1 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: D1 01 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: D1 01 00 35 54 00 5A [15:26:27]Write to MH i2c: 01 00 00 36 54 8A [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 77 47 00 B7 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E3 02 00 F4 03 04 00 0C 11 1A 67 B6 04 01 00 00 2A 93 E3 02 3A 7A D8 07 [15:26:27]CommunicateWithHost err = 0 [15:26:27]CheckOFDResponse [15:26:27]1017 (14) - 77093643461234 [15:26:27]1041 (16) - 0000000000965340 [15:26:27]1040 (4) - 189206 [15:26:27]1012 (4) - 24.10.2024 09:19 [15:26:27]1206 (1) - 0 [15:26:27]OFD Sender: Remove packet 189206 [15:26:27]ProducePacketName [15:26:27]name=ofd_packets/00189206 [15:26:27]NVStorageDeleteData [15:26:27]OFD Sender: No OFD packet to send [15:26:28]*** Cut start [15:26:28]*** Partial cut [15:26:28]*** CUTSNS_PIN = 1 [15:26:28]*** CUTSNS_PIN = 0 [15:26:28]*** Brake cut motor [15:26:28]Read from MH i2c: 01 [15:26:28]MH_I2C_Read... [15:26:28]*** Stop cut motor [15:26:28]*** Cut end [15:26:28]Read from MH i2c: 01 07 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 36 54 00 00 00 00 00 FF 0F 9F [15:26:28]process_action close_receipt done [15:26:28]requested_data is exist [15:26:28]produce_requested_data [15:26:28]requested_item fm.sn is exist - process it [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 11 00 00 [15:26:28]Write to MH i2c: E2 08 00 37 54 80 11 00 00 00 00 00 00 05 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:29]Read from MH i2c: E2 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 17 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 17 00 37 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [15:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:29]wFMCommunicate OK [15:26:29]requested_item fd.num is exist - process it [15:26:29]SAM_PROTO_GetFieldsCounters [15:26:29]wFMCommunicate request_size=4 [15:26:29]MH_SAM_APDU [15:26:29]CAPDU: 80 13 00 00 [15:26:29]Write to MH i2c: E2 08 00 38 54 80 13 00 00 00 00 00 00 08 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:29]Read from MH i2c: E2 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 62 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 62 00 38 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E3 02 00 0E 04 04 00 CF 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 22 [15:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E3 02 00 0E 04 04 00 CF 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 [15:26:29]wFMCommunicate OK [15:26:29]SAM_PROTO_GetFieldsCounters done [15:26:29]requested_item shift.num is exist - process it [15:26:29]requested_item shift.opened is exist - process it [15:26:29]req_shift_opened [15:26:29]FM_GetShiftState [15:26:29]SAM_PROTO_GetShiftState [15:26:29]wFMCommunicate request_size=4 [15:26:29]MH_SAM_APDU [15:26:29]CAPDU: 80 13 01 00 [15:26:29]Write to MH i2c: E2 08 00 39 54 80 13 01 00 00 00 00 00 0A [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:29]Read from MH i2c: E2 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 39 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E8 [15:26:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:26:29]wFMCommunicate OK [15:26:29]SAM_PROTO_GetShiftState done [15:26:29]FM_GetShiftState done [15:26:29]req_shift_opened done [15:26:29]requested_item shift.open_date is exist - process it [15:26:29]req_shift_open_date [15:26:29]req_shift_open_date done [15:26:29]produce_requested_data done [15:26:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189206,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:26:29]process_action_free close_receipt [15:26:29]json_value_free [15:26:29]json_value_free done [15:26:29]process_json_proto returns [15:26:29]Send response to host [15:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189206,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:26:29]free response buf [15:26:29]execute_script done [15:26:29]execute_script returns [15:26:29]free content buf [15:26:29]Sock 9.Close socket [15:26:29]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:16]accept exits with 8 [15:28:16]New connection [15:28:16]New thread 3067215204 created [15:28:16]Thread 3067071844 joined [15:28:16]Waiting for new connection... [15:28:16] Sock 8.Parse request [15:28:16]Sock 8.Check first char [15:28:16]Sock 8.First char is OK [15:28:16]request: POST /json_proto HTTP/1.0 [15:28:16]Method: POST [15:28:16]URL: /json_proto [15:28:16]Method is POST - this is cgi request [15:28:16]url: /json_proto [15:28:16]query_string will be loaded in cgi processing [15:28:16]execute_cgi json_proto POST (null) [15:28:16]execute_cgi path=json_proto method=POST [15:28:16]POST find Content-Length [15:28:16]Host: 172.17.42.131:8080 [15:28:16]Content-Length: 677 [15:28:16]Content-Type: application/json [15:28:16] [15:28:16]POST finish read [15:28:16]Found Content-Length = 677 [15:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:16]execute_script... [15: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)211272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:28:16]POST & json_proto [15:28:16]process_json_proto [15:28:16]json parsed OK: [15:28:16]protocol is kg_v1.0 [15:28:16]action value=close_receipt [15:28:16]process_action close_receipt [15:28:16]cmd_close_receipt [15:28:16]MH_GetDate [15:28:16]Write to MH i2c: F0 00 00 3A 54 7D [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: F0 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: F0 09 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: F0 09 00 3A 54 00 94 67 1A 67 A0 18 CA 66 EA [15:28:16]GetLastDocTimeStamp 1729783588 [15:28:16]current date 1729783700 [15:28:16]FM_GetShiftState [15:28:16]SAM_PROTO_GetShiftState [15:28:16]wFMCommunicate request_size=4 [15:28:16]MH_SAM_APDU [15:28:16]CAPDU: 80 13 01 00 [15:28:16]Write to MH i2c: E2 08 00 3B 54 80 13 01 00 00 00 00 00 0C [15:28:16]Write i2c OK [15:28:16]MH_I2C_Read... [15:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:16]Read from MH i2c: E2 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: E2 0E 00 [15:28:16]MH_I2C_Read... [15:28:16]Read from MH i2c: E2 0E 00 3B 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EA [15:28:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:28:16]wFMCommunicate OK [15:28:16]SAM_PROTO_GetShiftState done [15:28:16]FM_GetShiftState done [15:28:16]opened in 1729728961 [15:28:16]opened+sec_in_day 1729815361 [15:28:16]quantity*price = 50041 [15:28:16]sum+1 = 50042 [15:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 280 24.10.2024 15:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189207 ФПД: 156771534217686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189207&fm=156771534217686&tin=02508201610067®Number=0000000000100030&sum=50000 [15:28:17]StoreToDocumentArchive [15:28:17]shift 463 fd 189207 [15:28:17]save to /storage/0463/doc_00189207 [15:28:17]save last doc name /storage/0463/doc_00189207 to /storage/kkm_last_doc_name [15:28:17]save OK [15:28:17]Clear old archive folders... [15:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:17]tlvbuf is 01641AF0 [15:28:17]SAM_PROTO_ClearQueue [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 09 00 00 [15:28:17]Write to MH i2c: E2 08 00 48 54 80 09 00 00 00 00 00 00 0E [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 03 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 03 00 48 54 00 90 00 10 [15:28:17]RAPDU: 90 00 [15:28:17]wFMCommunicate OK [15:28:17]SAM_PROTO_ClearQueue done [15:28:17]KKMCreateOFDPacket [15:28:17]OFDProtocolAddRootSTLVToBuf [15:28:17]FM_MakeSignedData [15:28:17]FM_MakeSignedData [15:28:17]SAM_PROTO_SignData [15:28:17]wFMCommunicate request_size=4 [15:28:17]MH_SAM_APDU [15:28:17]CAPDU: 80 0D 01 02 [15:28:17]Write to MH i2c: E2 08 00 49 54 80 0D 01 02 00 00 00 00 16 [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:17]Read from MH i2c: E2 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 03 00 [15:28:17]MH_I2C_Read... [15:28:17]Read from MH i2c: E2 03 00 49 54 00 90 00 11 [15:28:17]RAPDU: 90 00 [15:28:17]wFMCommunicate OK [15:28:17]wFMCommunicate request_size=255 [15:28:17]MH_SAM_APDU [15: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 94 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E3 02 00 35 04 06 00 8E [15:28:17]Write to MH i2c: E2 02 01 4A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 94 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E3 02 00 35 04 06 00 8E 00 00 78 [15:28:17]Write i2c OK [15:28:17]MH_I2C_Read... [15:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:18]Read from MH i2c: E2 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 03 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 03 00 4A 54 00 90 00 12 [15:28:18]RAPDU: 90 00 [15:28:18]wFMCommunicate OK [15:28:18]wFMCommunicate request_size=10 [15:28:18]MH_SAM_APDU [15:28:18]CAPDU: 80 0D 02 02 05 95 37 9B A1 D6 [15:28:18]Write to MH i2c: E2 0D 00 4B 54 80 0D 02 02 05 00 95 37 9B A1 D6 00 00 01 [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:18]Read from MH i2c: E2 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 03 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 03 00 4B 54 00 90 00 13 [15:28:18]RAPDU: 90 00 [15:28:18]wFMCommunicate OK [15:28:18]wFMCommunicate request_size=4 [15:28:18]MH_SAM_APDU [15:28:18]CAPDU: 80 0D 03 02 [15:28:18]Write to MH i2c: E2 08 00 4C 54 80 0D 03 02 00 00 00 00 1B [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:18]Read from MH i2c: E2 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 0B 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 0B 00 4C 54 00 BD D2 8D 43 D6 D5 39 2A 90 00 89 [15:28:18]RAPDU: BD D2 8D 43 D6 D5 39 2A 90 00 [15:28:18]wFMCommunicate OK [15:28:18]SAM_PROTO_SignData done [15:28:18]FM_MakeSignedData done [15:28:18]CreateOFDProtocolMessage [15:28:18]wFMCommunicate request_size=4 [15:28:18]MH_SAM_APDU [15:28:18]CAPDU: 80 11 00 00 [15:28:18]Write to MH i2c: E2 08 00 4D 54 80 11 00 00 00 00 00 00 1B [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:18]Read from MH i2c: E2 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 17 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: E2 17 00 4D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [15:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:18]wFMCommunicate OK [15:28:18]CreateOFDProtocolMessage done [15:28:18]OFDSenderStorePacket 189207 [15:28:18]StoreOFDPacket docnum=189207 [15:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E3 F0 07 01 42 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 94 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E3 02 00 35 04 06 00 8E 95 37 9B A1 D6 BD D2 8D 43 D6 D5 39 2A [15:28:18]CheckFolder [15:28:18]dirname=/storage/ofd_packets [15:28:18]CheckFolder done [15:28:18]ProducePacketName [15:28:18]name=ofd_packets/00189207 [15:28:18]NVStorageSaveData ofd_packets/00189207 [15:28:18]File name is /storage/ofd_packets/00189207 [15:28:18]Write 301 bytes [15:28:18]NVStorageSaveData done [15:28:18]OFDSenderStorePacket done [15:28:18]KKMCreateOFDPacket done [15:28:18]NVStorageSaveData kkm_last_timestamp [15:28:18]File name is /storage/kkm_last_timestamp [15:28:18]Write 4 bytes [15:28:18]NVStorageSaveData done [15:28:18]ExternCall_PrintAddStr [15:28:18]wPrintStart [15:28:18]Write to MH i2c: 01 00 00 4E 54 A2 [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 07 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 07 00 4E 54 00 00 00 00 00 FF 0F B7 [15:28:18]RasterBufferAndPrint [15:28:18]line Счет N : (1)211272 [15:28:18]line ИНН: 02508201610067 [15:28:18]line Контрольно-Кассовый Чек [15:28:18]line ПРОДАЖА [15:28:18]line ТРК (МРК, ГНК) : 42 [15:28:18]line Товар: 2710124130 [15:28:18]line Аи-92-К-3 [15:28:18]line 7.480 * 66.90 [15:28:18]line = 500.41 [15:28:18]line НДС 12% НСП 1% [15:28:18]line > о реализуемом товаре [15:28:18]line ОКРУГЛЕНИЕ: -0.41 [15:28:18]line ИТОГО: 500.00 [15:28:18]line Внесено: 500.00 [15:28:18]line СДАЧА: 0.00 [15:28:18]line НСП 1% : 4.43 [15:28:18]line НДС 12% : 53.14 [15:28:18]line Наличными: 500.00 [15:28:18]line Безнал.: 0.00 [15:28:18]line Место: АЗС № 86 "Партнер Нефть" [15:28:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:28:18]line СНО: Общий режим [15:28:18]line Чек 280 24.10.2024 15:28 [15:28:18]line Смена: 463 ФФД: 1.0 [15:28:18]line ЗНМ: 0300000155 [15:28:18]line РНМ: 0000000000100030 [15:28:18]line Версия ККМ: 001 [15:28:18]line ФМ: 0000000000965340 [15:28:18]line ФД: 189207 [15:28:18]line ФПД: 156771534217686 [15:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189207&fm=156771534217686&tin=02508201610067®Number=0000000000100030&sum=50000 [15:28:18]written 0, free lines is 4095 [15:28:18]OFD Sender: Processing packet 189207 [packets to send 1062, broken 1061] [15:28:18]ProducePacketName [15:28:18]name=ofd_packets/00189207 [15:28:18]OFD Sender: To server: pG, [15:28:18]CommunicateWithHost lk.salyk.kg:30040 [15:28:18]ConnectInit lk.salyk.kg [15:28:18]Connected sock=9 [15:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E3 F0 07 01 42 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 94 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E3 02 00 35 04 06 00 8E 95 37 9B A1 D6 BD D2 8D 43 D6 D5 39 2A [15:28:18]Write to MH i2c: 01 00 00 79 54 CD [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 07 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: 01 07 00 79 54 00 00 00 00 00 5A 0C 3A [15:28:18]RasterBufferAndPrint [15:28:18]line [15:28:18]line [15:28:18]line [15:28:18]line [15:28:18]line [15:28:18]written 0, free lines is 3166 [15:28:18]MH_Cut [15:28:18]Write to MH i2c: D1 01 00 80 54 01 A6 [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: D1 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: D1 01 00 [15:28:18]MH_I2C_Read... [15:28:18]Read from MH i2c: D1 01 00 80 54 00 A5 [15:28:18]Write to MH i2c: 01 00 00 81 54 D5 [15:28:18]Write i2c OK [15:28:18]MH_I2C_Read... [15:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 22 D5 47 00 AE 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 39 36 35 33 34 30 10 04 04 00 17 E3 02 00 F4 03 04 00 7C 11 1A 67 B6 04 01 00 00 2E 15 9F B4 2D 46 4A 1E [15:28:18]CommunicateWithHost err = 0 [15:28:18]CheckOFDResponse [15:28:18]1017 (14) - 77093643461234 [15:28:18]1041 (16) - 0000000000965340 [15:28:18]1040 (4) - 189207 [15:28:18]1012 (4) - 24.10.2024 09:21 [15:28:18]1206 (1) - 0 [15:28:18]OFD Sender: Remove packet 189207 [15:28:18]ProducePacketName [15:28:18]name=ofd_packets/00189207 [15:28:18]NVStorageDeleteData [15:28:19]OFD Sender: No OFD packet to send [15:28:19]*** Cut start [15:28:19]*** Partial cut [15:28:19]*** CUTSNS_PIN = 1 [15:28:20]*** CUTSNS_PIN = 0 [15:28:20]*** Brake cut motor [15:28:20]Read from MH i2c: 01 [15:28:20]MH_I2C_Read... [15:28:20]*** Stop cut motor [15:28:20]*** Cut end [15:28:20]Read from MH i2c: 01 07 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: 01 07 00 81 54 00 00 00 00 00 FF 0F EA [15:28:20]process_action close_receipt done [15:28:20]requested_data is exist [15:28:20]produce_requested_data [15:28:20]requested_item fm.sn is exist - process it [15:28:20]wFMCommunicate request_size=4 [15:28:20]MH_SAM_APDU [15:28:20]CAPDU: 80 11 00 00 [15:28:20]Write to MH i2c: E2 08 00 82 54 80 11 00 00 00 00 00 00 50 [15:28:20]Write i2c OK [15:28:20]MH_I2C_Read... [15:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:20]Read from MH i2c: E2 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 17 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 17 00 82 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [15:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:20]wFMCommunicate OK [15:28:20]requested_item fd.num is exist - process it [15:28:20]SAM_PROTO_GetFieldsCounters [15:28:20]wFMCommunicate request_size=4 [15:28:20]MH_SAM_APDU [15:28:20]CAPDU: 80 13 00 00 [15:28:20]Write to MH i2c: E2 08 00 83 54 80 13 00 00 00 00 00 00 53 [15:28:20]Write i2c OK [15:28:20]MH_I2C_Read... [15:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:20]Read from MH i2c: E2 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 62 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 62 00 83 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E3 02 00 0E 04 04 00 CF 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 71 [15:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E3 02 00 0E 04 04 00 CF 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 [15:28:20]wFMCommunicate OK [15:28:20]SAM_PROTO_GetFieldsCounters done [15:28:20]requested_item shift.num is exist - process it [15:28:20]requested_item shift.opened is exist - process it [15:28:20]req_shift_opened [15:28:20]FM_GetShiftState [15:28:20]SAM_PROTO_GetShiftState [15:28:20]wFMCommunicate request_size=4 [15:28:20]MH_SAM_APDU [15:28:20]CAPDU: 80 13 01 00 [15:28:20]Write to MH i2c: E2 08 00 84 54 80 13 01 00 00 00 00 00 55 [15:28:20]Write i2c OK [15:28:20]MH_I2C_Read... [15:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:20]Read from MH i2c: E2 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 0E 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 0E 00 84 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 33 [15:28:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:28:20]wFMCommunicate OK [15:28:20]SAM_PROTO_GetShiftState done [15:28:20]FM_GetShiftState done [15:28:20]req_shift_opened done [15:28:20]requested_item shift.open_date is exist - process it [15:28:20]req_shift_open_date [15:28:20]req_shift_open_date done [15:28:20]produce_requested_data done [15:28:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189207,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:28:20]process_action_free close_receipt [15:28:20]json_value_free [15:28:20]json_value_free done [15:28:20]process_json_proto returns [15:28:20]Send response to host [15:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189207,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:28:20]free response buf [15:28:20]execute_script done [15:28:20]execute_script returns [15:28:20]free content buf [15:28:20]Sock 8.Close socket [15:28:20]Sock 8.Thread stoped [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:08]accept exits with 10 [15:29:08]New connection [15:29:08]New thread 3067071844 created [15:29:08]Thread 3067215204 joined [15:29:08]Waiting for new connection... [15:29:08] Sock 10.Parse request [15:29:08]Sock 10.Check first char [15:29:08]Sock 10.First char is OK [15:29:08]request: POST /json_proto HTTP/1.0 [15:29:08]Method: POST [15:29:08]URL: /json_proto [15:29:08]Method is POST - this is cgi request [15:29:08]url: /json_proto [15:29:08]query_string will be loaded in cgi processing [15:29:08]execute_cgi json_proto POST (null) [15:29:08]execute_cgi path=json_proto method=POST [15:29:08]POST find Content-Length [15:29:08]Host: 172.17.42.131:8080 [15:29:08]Content-Length: 751 [15:29:08]Content-Type: application/json [15:29:08] [15:29:08]POST finish read [15:29:08]Found Content-Length = 751 [15:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:08]execute_script... [15:29: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)211273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:08]POST & json_proto [15:29:08]process_json_proto [15:29:08]json parsed OK: [15:29:08]protocol is kg_v1.0 [15:29:08]action value=close_receipt [15:29:08]process_action close_receipt [15:29:08]cmd_close_receipt [15:29:08]MH_GetDate [15:29:08]Write to MH i2c: F0 00 00 85 54 C8 [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 09 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 09 00 85 54 00 C8 67 1A 67 A0 18 CA 66 69 [15:29:08]GetLastDocTimeStamp 1729783700 [15:29:08]current date 1729783752 [15:29:08]FM_GetShiftState [15:29:08]SAM_PROTO_GetShiftState [15:29:08]wFMCommunicate request_size=4 [15:29:08]MH_SAM_APDU [15:29:08]CAPDU: 80 13 01 00 [15:29:08]Write to MH i2c: E2 08 00 86 54 80 13 01 00 00 00 00 00 57 [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:08]Read from MH i2c: E2 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: E2 0E 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: E2 0E 00 86 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 35 [15:29:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:29:08]wFMCommunicate OK [15:29:08]SAM_PROTO_GetShiftState done [15:29:08]FM_GetShiftState done [15:29:08]opened in 1729728961 [15:29:08]opened+sec_in_day 1729815361 [15:29:08]quantity*price = 0 [15:29:08]sum+1 = 1 [15:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 281 24.10.2024 15:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118667 ФМ: 0000000000965340 ФД: 189208 ФПД: 38078352308160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189208&fm=38078352308160&tin=02508201610067®Number=0000000000100030&sum=0 [15:29:09]StoreToDocumentArchive [15:29:09]shift 463 fd 189208 [15:29:09]save to /storage/0463/doc_00189208 [15:29:09]save last doc name /storage/0463/doc_00189208 to /storage/kkm_last_doc_name [15:29:09]save OK [15:29:09]Clear old archive folders... [15:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:29:09]tlvbuf is 016A21C0 [15:29:09]SAM_PROTO_ClearQueue [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 09 00 00 [15:29:09]Write to MH i2c: E2 08 00 93 54 80 09 00 00 00 00 00 00 59 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 93 54 00 90 00 5B [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]SAM_PROTO_ClearQueue done [15:29:10]KKMCreateOFDPacket [15:29:10]OFDProtocolAddRootSTLVToBuf [15:29:10]FM_MakeSignedData [15:29:10]FM_MakeSignedData [15:29:10]SAM_PROTO_SignData [15:29:10]wFMCommunicate request_size=4 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 01 02 [15:29:10]Write to MH i2c: E2 08 00 94 54 80 0D 01 02 00 00 00 00 61 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 94 54 00 90 00 5C [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]wFMCommunicate request_size=255 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 C8 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E3 02 00 35 04 06 00 22 A1 CE A9 [15:29:10]Write to MH i2c: E2 02 01 95 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 C8 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E3 02 00 35 04 06 00 22 A1 CE A9 00 00 60 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 95 54 00 90 00 5D [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]wFMCommunicate request_size=7 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 02 02 02 B7 C0 [15:29:10]Write to MH i2c: E2 0A 00 96 54 80 0D 02 02 02 00 B7 C0 00 00 DF [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 03 00 96 54 00 90 00 5E [15:29:10]RAPDU: 90 00 [15:29:10]wFMCommunicate OK [15:29:10]wFMCommunicate request_size=4 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 0D 03 02 [15:29:10]Write to MH i2c: E2 08 00 97 54 80 0D 03 02 00 00 00 00 66 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 0B 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 0B 00 97 54 00 AB 1F EC 7A D1 AB 6A 0B 90 00 88 [15:29:10]RAPDU: AB 1F EC 7A D1 AB 6A 0B 90 00 [15:29:10]wFMCommunicate OK [15:29:10]SAM_PROTO_SignData done [15:29:10]FM_MakeSignedData done [15:29:10]CreateOFDProtocolMessage [15:29:10]wFMCommunicate request_size=4 [15:29:10]MH_SAM_APDU [15:29:10]CAPDU: 80 11 00 00 [15:29:10]Write to MH i2c: E2 08 00 98 54 80 11 00 00 00 00 00 00 66 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:10]Read from MH i2c: E2 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 17 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: E2 17 00 98 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [15:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:10]wFMCommunicate OK [15:29:10]CreateOFDProtocolMessage done [15:29:10]OFDSenderStorePacket 189208 [15:29:10]StoreOFDPacket docnum=189208 [15:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F3 58 04 01 F4 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 C8 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E3 02 00 35 04 06 00 22 A1 CE A9 B7 C0 AB 1F EC 7A D1 AB 6A 0B [15:29:10]CheckFolder [15:29:10]dirname=/storage/ofd_packets [15:29:10]CheckFolder done [15:29:10]ProducePacketName [15:29:10]name=ofd_packets/00189208 [15:29:10]NVStorageSaveData ofd_packets/00189208 [15:29:10]File name is /storage/ofd_packets/00189208 [15:29:10]Write 298 bytes [15:29:10]NVStorageSaveData done [15:29:10]OFDSenderStorePacket done [15:29:10]KKMCreateOFDPacket done [15:29:10]NVStorageSaveData kkm_last_timestamp [15:29:10]File name is /storage/kkm_last_timestamp [15:29:10]Write 4 bytes [15:29:10]NVStorageSaveData done [15:29:10]ExternCall_PrintAddStr [15:29:10]wPrintStart [15:29:10]Write to MH i2c: 01 00 00 99 54 ED [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 99 54 00 00 00 00 00 FF 0F 02 [15:29:10]RasterBufferAndPrint [15:29:10]line Счет N : (1)211273 [15:29:10]line ИНН: 02508201610067 [15:29:10]line Контрольно-Кассовый Чек [15:29:10]line ПРОДАЖА [15:29:10]line ТРК (МРК, ГНК) : 51 [15:29:10]line Товар: 2710194210 [15:29:10]line ДТ-К-5 [15:29:10]line 13.750 * 0.00 [15:29:10]line = 0.00 [15:29:10]line НДС 12% НСП 1% [15:29:10]line > о реализуемом товаре [15:29:10]line ИТОГО: 0.00 [15:29:10]line НСП 1% : 0.00 [15:29:10]line НДС 12% : 0.00 [15:29:10]line Наличными: 0.00 [15:29:10]line Безнал.: 0.00 [15:29:10]line Место: АЗС № 86 "Партнер Нефть" [15:29:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:29:10]line СНО: Общий режим [15:29:10]line Чек 281 24.10.2024 15:29 [15:29:10]line Смена: 463 ФФД: 1.0 [15:29:10]line ЗНМ: 0300000155 [15:29:10]line РНМ: 0000000000100030 [15:29:10]line Версия ККМ: 001 [15:29:10]line Талоны: ТК ГПНА Online [15:29:10]line 30118667 [15:29:10]line ФМ: 0000000000965340 [15:29:10]line ФД: 189208 [15:29:10]line ФПД: 38078352308160 [15:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152912&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189208&fm=38078352308160&tin=02508201610067®Number=0000000000100030&sum=0 [15:29:10]written 0, free lines is 4095 [15:29:10]OFD Sender: Processing packet 189208 [packets to send 1062, broken 1061] [15:29:10]ProducePacketName [15:29:10]name=ofd_packets/00189208 [15:29:10]OFD Sender: To server: pG, [15:29:10]CommunicateWithHost lk.salyk.kg:30040 [15:29:10]ConnectInit lk.salyk.kg [15:29:10]Write to MH i2c: 01 00 00 C3 54 17 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 C3 54 00 00 00 00 00 6F 0C 99 [15:29:10]RasterBufferAndPrint [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]written 0, free lines is 3188 [15:29:10]MH_Cut [15:29:10]Write to MH i2c: D1 01 00 CA 54 01 F0 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 01 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 01 00 CA 54 00 EF [15:29:10]Write to MH i2c: 01 00 00 CB 54 1F [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:11]Connected sock=9 [15:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F3 58 04 01 F4 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 C8 67 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E3 02 00 35 04 06 00 22 A1 CE A9 B7 C0 AB 1F EC 7A D1 AB 6A 0B [15:29:12]*** Cut start [15:29:12]*** Partial cut [15:29:12]*** CUTSNS_PIN = 1 [15:29:12]*** CUTSNS_PIN = 0 [15:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 17 47 00 F7 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 39 36 35 33 34 30 10 04 04 00 18 E3 02 00 F4 03 04 00 B1 11 1A 67 B6 04 01 00 00 20 32 0D 8C 45 7A ED 43 [15:29:12]CommunicateWithHost err = 0 [15:29:12]CheckOFDResponse [15:29:12]1017 (14) - 77093643461234 [15:29:12]1041 (16) - 0000000000965340 [15:29:12]1040 (4) - 189208 [15:29:12]1012 (4) - 24.10.2024 09:21 [15:29:12]1206 (1) - 0 [15:29:12]OFD Sender: Remove packet 189208 [15:29:12]ProducePacketName [15:29:12]name=ofd_packets/00189208 [15:29:12]NVStorageDeleteData [15:29:12]*** Brake cut motor [15:29:12]OFD Sender: No OFD packet to send [15:29:12]Read from MH i2c: 01 [15:29:12]MH_I2C_Read... [15:29:12]*** Stop cut motor [15:29:12]*** Cut end [15:29:12]Read from MH i2c: 01 07 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: 01 07 00 CB 54 00 00 00 00 00 FF 0F 34 [15:29:12]process_action close_receipt done [15:29:12]requested_data is exist [15:29:12]produce_requested_data [15:29:12]requested_item fm.sn is exist - process it [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 11 00 00 [15:29:12]Write to MH i2c: E2 08 00 CC 54 80 11 00 00 00 00 00 00 9A [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 17 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 17 00 CC 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [15:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:12]wFMCommunicate OK [15:29:12]requested_item fd.num is exist - process it [15:29:12]SAM_PROTO_GetFieldsCounters [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 13 00 00 [15:29:12]Write to MH i2c: E2 08 00 CD 54 80 13 00 00 00 00 00 00 9D [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 CD 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E3 02 00 0E 04 04 00 CF 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 BF [15:29:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E3 02 00 0E 04 04 00 CF 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 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetFieldsCounters done [15:29:13]requested_item shift.num is exist - process it [15:29:13]requested_item shift.opened is exist - process it [15:29:13]req_shift_opened [15:29:13]FM_GetShiftState [15:29:13]SAM_PROTO_GetShiftState [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 13 01 00 [15:29:13]Write to MH i2c: E2 08 00 CE 54 80 13 01 00 00 00 00 00 9F [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 CE 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7D [15:29:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetShiftState done [15:29:13]FM_GetShiftState done [15:29:13]req_shift_opened done [15:29:13]requested_item shift.open_date is exist - process it [15:29:13]req_shift_open_date [15:29:13]req_shift_open_date done [15:29:13]produce_requested_data done [15:29:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189208,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:29:13]process_action_free close_receipt [15:29:13]json_value_free [15:29:13]json_value_free done [15:29:13]process_json_proto returns [15:29:13]Send response to host [15:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189208,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:29:13]free response buf [15:29:13]execute_script done [15:29:13]execute_script returns [15:29:13]free content buf [15:29:13]Sock 10.Close socket [15:29:13]Sock 10.Thread stoped [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:25]accept exits with 8 [15:34:25]New connection [15:34:25]New thread 3067215204 created [15:34:25]Thread 3067071844 joined [15:34:25]Waiting for new connection... [15:34:25] Sock 8.Parse request [15:34:25]Sock 8.Check first char [15:34:25]Sock 8.First char is OK [15:34:25]request: POST /json_proto HTTP/1.0 [15:34:25]Method: POST [15:34:25]URL: /json_proto [15:34:25]Method is POST - this is cgi request [15:34:25]url: /json_proto [15:34:25]query_string will be loaded in cgi processing [15:34:25]execute_cgi json_proto POST (null) [15:34:25]execute_cgi path=json_proto method=POST [15:34:25]POST find Content-Length [15:34:25]Host: 172.17.42.131:8080 [15:34:25]Content-Length: 678 [15:34:25]Content-Type: application/json [15:34:25] [15:34:25]POST finish read [15:34:25]Found Content-Length = 678 [15:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:34:25]execute_script... [15:34: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)211275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:34:25]POST & json_proto [15:34:25]process_json_proto [15:34:25]json parsed OK: [15:34:25]protocol is kg_v1.0 [15:34:25]action value=close_receipt [15:34:25]process_action close_receipt [15:34:25]cmd_close_receipt [15:34:25]MH_GetDate [15:34:25]Write to MH i2c: F0 00 00 CF 54 12 [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 CF 54 00 05 69 1A 67 A0 18 CA 66 F2 [15:34:25]GetLastDocTimeStamp 1729783752 [15:34:25]current date 1729784069 [15:34:25]FM_GetShiftState [15:34:25]SAM_PROTO_GetShiftState [15:34:25]wFMCommunicate request_size=4 [15:34:25]MH_SAM_APDU [15:34:25]CAPDU: 80 13 01 00 [15:34:25]Write to MH i2c: E2 08 00 D0 54 80 13 01 00 00 00 00 00 A1 [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:25]Read from MH i2c: E2 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 D0 54 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7F [15:34:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:34:25]wFMCommunicate OK [15:34:25]SAM_PROTO_GetShiftState done [15:34:25]FM_GetShiftState done [15:34:25]opened in 1729728961 [15:34:25]opened+sec_in_day 1729815361 [15:34:25]quantity*price = 70044 [15:34:25]sum+1 = 70045 [15:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 282 24.10.2024 15:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189209 ФПД: 229586699714801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189209&fm=229586699714801&tin=02508201610067®Number=0000000000100030&sum=70000 [15:34:26]StoreToDocumentArchive [15:34:26]shift 463 fd 189209 [15:34:26]save to /storage/0463/doc_00189209 [15:34:26]save last doc name /storage/0463/doc_00189209 to /storage/kkm_last_doc_name [15:34:26]save OK [15:34:26]Clear old archive folders... [15:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:26]tlvbuf is 016414B0 [15:34:26]SAM_PROTO_ClearQueue [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 09 00 00 [15:34:26]Write to MH i2c: E2 08 00 DD 54 80 09 00 00 00 00 00 00 A3 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 DD 54 00 90 00 A5 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_ClearQueue done [15:34:26]KKMCreateOFDPacket [15:34:26]OFDProtocolAddRootSTLVToBuf [15:34:26]FM_MakeSignedData [15:34:26]FM_MakeSignedData [15:34:26]SAM_PROTO_SignData [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 01 02 [15:34:26]Write to MH i2c: E2 08 00 DE 54 80 0D 01 02 00 00 00 00 AB [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 DE 54 00 90 00 A6 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=255 [15:34:26]MH_SAM_APDU [15:34: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 01 00 00 F4 03 04 00 05 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E3 02 00 35 04 06 00 D0 [15:34:26]Write to MH i2c: E2 02 01 DF 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 01 00 00 F4 03 04 00 05 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E3 02 00 35 04 06 00 D0 00 00 D6 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 DF 54 00 90 00 A7 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=10 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 02 02 05 CE D1 AE 80 F1 [15:34:27]Write to MH i2c: E2 0D 00 E0 54 80 0D 02 02 05 00 CE D1 AE 80 F1 00 00 76 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 E0 54 00 90 00 A8 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 03 02 [15:34:27]Write to MH i2c: E2 08 00 E1 54 80 0D 03 02 00 00 00 00 B0 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 E1 54 00 54 D5 60 60 B0 46 89 E8 90 00 01 [15:34:27]RAPDU: 54 D5 60 60 B0 46 89 E8 90 00 [15:34:27]wFMCommunicate OK [15:34:27]SAM_PROTO_SignData done [15:34:27]FM_MakeSignedData done [15:34:27]CreateOFDProtocolMessage [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 11 00 00 [15:34:27]Write to MH i2c: E2 08 00 E2 54 80 11 00 00 00 00 00 00 B0 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 17 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 17 00 E2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [15:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:27]wFMCommunicate OK [15:34:27]CreateOFDProtocolMessage done [15:34:27]OFDSenderStorePacket 189209 [15:34:27]StoreOFDPacket docnum=189209 [15:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 79 07 01 75 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 01 00 00 F4 03 04 00 05 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E3 02 00 35 04 06 00 D0 CE D1 AE 80 F1 54 D5 60 60 B0 46 89 E8 [15:34:27]CheckFolder [15:34:27]dirname=/storage/ofd_packets [15:34:27]CheckFolder done [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00189209 [15:34:27]NVStorageSaveData ofd_packets/00189209 [15:34:27]File name is /storage/ofd_packets/00189209 [15:34:27]Write 301 bytes [15:34:27]NVStorageSaveData done [15:34:27]OFDSenderStorePacket done [15:34:27]KKMCreateOFDPacket done [15:34:27]NVStorageSaveData kkm_last_timestamp [15:34:27]File name is /storage/kkm_last_timestamp [15:34:27]Write 4 bytes [15:34:27]NVStorageSaveData done [15:34:27]ExternCall_PrintAddStr [15:34:27]wPrintStart [15:34:27]Write to MH i2c: 01 00 00 E3 54 37 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 E3 54 00 00 00 00 00 FF 0F 4C [15:34:27]RasterBufferAndPrint [15:34:27]line Счет N : (1)211275 [15:34:27]line ИНН: 02508201610067 [15:34:27]line Контрольно-Кассовый Чек [15:34:27]line ПРОДАЖА [15:34:27]line ТРК (МРК, ГНК) : 42 [15:34:27]line Товар: 2710124130 [15:34:27]line Аи-92-К-3 [15:34:27]line 10.470 * 66.90 [15:34:27]line = 700.44 [15:34:27]line НДС 12% НСП 1% [15:34:27]line > о реализуемом товаре [15:34:27]line ОКРУГЛЕНИЕ: -0.44 [15:34:27]line ИТОГО: 700.00 [15:34:27]line Внесено: 700.00 [15:34:27]line СДАЧА: 0.00 [15:34:27]line НСП 1% : 6.20 [15:34:27]line НДС 12% : 74.38 [15:34:27]line Наличными: 700.00 [15:34:27]line Безнал.: 0.00 [15:34:27]line Место: АЗС № 86 "Партнер Нефть" [15:34:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:34:27]line СНО: Общий режим [15:34:27]line Чек 282 24.10.2024 15:34 [15:34:27]line Смена: 463 ФФД: 1.0 [15:34:27]line ЗНМ: 0300000155 [15:34:27]line РНМ: 0000000000100030 [15:34:27]line Версия ККМ: 001 [15:34:27]line ФМ: 0000000000965340 [15:34:27]line ФД: 189209 [15:34:27]line ФПД: 229586699714801 [15:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189209&fm=229586699714801&tin=02508201610067®Number=0000000000100030&sum=70000 [15:34:27]written 0, free lines is 4095 [15:34:27]OFD Sender: Processing packet 189209 [packets to send 1062, broken 1061] [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00189209 [15:34:27]OFD Sender: To server: pG, [15:34:27]CommunicateWithHost lk.salyk.kg:30040 [15:34:27]ConnectInit lk.salyk.kg [15:34:27]Connected sock=10 [15:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 79 07 01 75 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 01 00 00 F4 03 04 00 05 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E3 02 00 35 04 06 00 D0 CE D1 AE 80 F1 54 D5 60 60 B0 46 89 E8 [15:34:27]Write to MH i2c: 01 00 00 0E 55 63 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 0E 55 00 00 00 00 00 62 0C D8 [15:34:27]RasterBufferAndPrint [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]written 0, free lines is 3174 [15:34:27]MH_Cut [15:34:27]Write to MH i2c: D1 01 00 15 55 01 3C [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 01 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 01 00 15 55 00 3B [15:34:27]Write to MH i2c: 01 00 00 16 55 6B [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 40 47 00 C9 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E3 02 00 F4 03 04 00 ED 12 1A 67 B6 04 01 00 00 A1 28 F2 16 31 13 24 DE [15:34:27]CommunicateWithHost err = 0 [15:34:27]CheckOFDResponse [15:34:27]1017 (14) - 77093643461234 [15:34:27]1041 (16) - 0000000000965340 [15:34:27]1040 (4) - 189209 [15:34:27]1012 (4) - 24.10.2024 09:27 [15:34:27]1206 (1) - 0 [15:34:27]OFD Sender: Remove packet 189209 [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00189209 [15:34:27]NVStorageDeleteData [15:34:28]OFD Sender: No OFD packet to send [15:34:28]*** Cut start [15:34:28]*** Partial cut [15:34:28]*** CUTSNS_PIN = 1 [15:34:28]*** CUTSNS_PIN = 0 [15:34:29]*** Brake cut motor [15:34:29]Read from MH i2c: 01 [15:34:29]MH_I2C_Read... [15:34:29]*** Stop cut motor [15:34:29]*** Cut end [15:34:29]Read from MH i2c: 01 07 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: 01 07 00 16 55 00 00 00 00 00 FF 0F 80 [15:34:29]process_action close_receipt done [15:34:29]requested_data is exist [15:34:29]produce_requested_data [15:34:29]requested_item fm.sn is exist - process it [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 11 00 00 [15:34:29]Write to MH i2c: E2 08 00 17 55 80 11 00 00 00 00 00 00 E6 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 17 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [15:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:29]wFMCommunicate OK [15:34:29]requested_item fd.num is exist - process it [15:34:29]SAM_PROTO_GetFieldsCounters [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 13 00 00 [15:34:29]Write to MH i2c: E2 08 00 18 55 80 13 00 00 00 00 00 00 E9 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 62 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 62 00 18 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E3 02 00 0E 04 04 00 CF 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 0F [15:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E3 02 00 0E 04 04 00 CF 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 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_GetFieldsCounters done [15:34:29]requested_item shift.num is exist - process it [15:34:29]requested_item shift.opened is exist - process it [15:34:29]req_shift_opened [15:34:29]FM_GetShiftState [15:34:29]SAM_PROTO_GetShiftState [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 13 01 00 [15:34:29]Write to MH i2c: E2 08 00 19 55 80 13 01 00 00 00 00 00 EB [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 19 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C9 [15:34:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_GetShiftState done [15:34:29]FM_GetShiftState done [15:34:29]req_shift_opened done [15:34:29]requested_item shift.open_date is exist - process it [15:34:29]req_shift_open_date [15:34:29]req_shift_open_date done [15:34:29]produce_requested_data done [15:34:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189209,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:34:29]process_action_free close_receipt [15:34:29]json_value_free [15:34:29]json_value_free done [15:34:29]process_json_proto returns [15:34:29]Send response to host [15:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189209,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:34:29]free response buf [15:34:29]execute_script done [15:34:29]execute_script returns [15:34:29]free content buf [15:34:29]Sock 8.Close socket [15:34:29]Sock 8.Thread stoped [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:39]accept exits with 9 [15:34:39]New connection [15:34:39]New thread 3067071844 created [15:34:39]Thread 3067215204 joined [15:34:39]Waiting for new connection... [15:34:39] Sock 9.Parse request [15:34:39]Sock 9.Check first char [15:34:39]Sock 9.First char is OK [15:34:39]request: POST /json_proto HTTP/1.0 [15:34:39]Method: POST [15:34:39]URL: /json_proto [15:34:39]Method is POST - this is cgi request [15:34:39]url: /json_proto [15:34:39]query_string will be loaded in cgi processing [15:34:39]execute_cgi json_proto POST (null) [15:34:39]execute_cgi path=json_proto method=POST [15:34:39]POST find Content-Length [15:34:39]Host: 172.17.42.131:8080 [15:34:39]Content-Length: 809 [15:34:39]Content-Type: application/json [15:34:39] [15:34:39]POST finish read [15:34:39]Found Content-Length = 809 [15:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:39]execute_script... [15:34: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)211274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:39]POST & json_proto [15:34:39]process_json_proto [15:34:39]json parsed OK: [15:34:39]protocol is kg_v1.0 [15:34:39]action value=close_receipt [15:34:39]process_action close_receipt [15:34:39]cmd_close_receipt [15:34:39]MH_GetDate [15:34:39]Write to MH i2c: F0 00 00 1A 55 5E [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 09 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 09 00 1A 55 00 13 69 1A 67 A0 18 CA 66 4C [15:34:39]GetLastDocTimeStamp 1729784069 [15:34:39]current date 1729784083 [15:34:39]FM_GetShiftState [15:34:39]SAM_PROTO_GetShiftState [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 13 01 00 [15:34:39]Write to MH i2c: E2 08 00 1B 55 80 13 01 00 00 00 00 00 ED [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 1B 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CB [15:34:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_GetShiftState done [15:34:39]FM_GetShiftState done [15:34:39]opened in 1729728961 [15:34:39]opened+sec_in_day 1729815361 [15:34:39]quantity*price = 400050 [15:34:39]sum+1 = 400051 [15:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 283 24.10.2024 15:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 189210 ФПД: 92886196019915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153443&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189210&fm=92886196019915&tin=02508201610067®Number=0000000000100030&sum=400050 [15:34:41]StoreToDocumentArchive [15:34:41]shift 463 fd 189210 [15:34:41]save to /storage/0463/doc_00189210 [15:34:41]save last doc name /storage/0463/doc_00189210 to /storage/kkm_last_doc_name [15:34:41]save OK [15:34:41]Clear old archive folders... [15:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:34:41]tlvbuf is 015385E0 [15:34:41]SAM_PROTO_ClearQueue [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 09 00 00 [15:34:41]Write to MH i2c: E2 08 00 28 55 80 09 00 00 00 00 00 00 EF [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 28 55 00 90 00 F1 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]SAM_PROTO_ClearQueue done [15:34:41]KKMCreateOFDPacket [15:34:41]OFDProtocolAddRootSTLVToBuf [15:34:41]FM_MakeSignedData [15:34:41]FM_MakeSignedData [15:34:41]SAM_PROTO_SignData [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 01 02 [15:34:41]Write to MH i2c: E2 08 00 29 55 80 0D 01 02 00 00 00 00 F7 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 29 55 00 90 00 F2 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=255 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 13 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E3 02 [15:34:41]Write to MH i2c: E2 02 01 2A 55 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 13 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E3 02 00 00 C5 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 2A 55 00 90 00 F3 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=16 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 7A C0 B7 E2 CB [15:34:41]Write to MH i2c: E2 13 00 2B 55 80 0D 02 02 0B 00 00 35 04 06 00 54 7A C0 B7 E2 CB 00 00 41 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 2B 55 00 90 00 F4 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 03 02 [15:34:41]Write to MH i2c: E2 08 00 2C 55 80 0D 03 02 00 00 00 00 FC [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 0B 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 0B 00 2C 55 00 A7 0B 36 E4 64 05 D3 27 90 00 2C [15:34:41]RAPDU: A7 0B 36 E4 64 05 D3 27 90 00 [15:34:41]wFMCommunicate OK [15:34:41]SAM_PROTO_SignData done [15:34:41]FM_MakeSignedData done [15:34:41]CreateOFDProtocolMessage [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 11 00 00 [15:34:41]Write to MH i2c: E2 08 00 2D 55 80 11 00 00 00 00 00 00 FC [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 2D 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [15:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:41]wFMCommunicate OK [15:34:41]CreateOFDProtocolMessage done [15:34:41]OFDSenderStorePacket 189210 [15:34:41]StoreOFDPacket docnum=189210 [15:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 43 6E 0D 01 F9 F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 13 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E3 02 00 35 04 06 00 54 7A C0 B7 E2 CB A7 0B 36 E4 64 05 D3 27 [15:34:41]CheckFolder [15:34:41]dirname=/storage/ofd_packets [15:34:41]CheckFolder done [15:34:41]ProducePacketName [15:34:41]name=ofd_packets/00189210 [15:34:41]NVStorageSaveData ofd_packets/00189210 [15:34:41]File name is /storage/ofd_packets/00189210 [15:34:41]Write 307 bytes [15:34:41]NVStorageSaveData done [15:34:41]OFDSenderStorePacket done [15:34:41]KKMCreateOFDPacket done [15:34:41]NVStorageSaveData kkm_last_timestamp [15:34:41]File name is /storage/kkm_last_timestamp [15:34:41]Write 4 bytes [15:34:41]NVStorageSaveData done [15:34:41]ExternCall_PrintAddStr [15:34:41]wPrintStart [15:34:41]Write to MH i2c: 01 00 00 2E 55 83 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 07 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 07 00 2E 55 00 00 00 00 00 FF 0F 98 [15:34:41]RasterBufferAndPrint [15:34:41]line Счет N : (1)211274 [15:34:41]line ИНН: 02508201610067 [15:34:41]line Контрольно-Кассовый Чек [15:34:41]line ПРОДАЖА [15:34:41]line ТРК (МРК, ГНК) : 21 [15:34:41]line Товар: 2710194210 [15:34:41]line D-ENERGY ДТ-К-5 [15:34:41]line 51.820 * 77.20 [15:34:41]line = 4000.50 [15:34:41]line НДС 12% НСП 1% [15:34:41]line > о реализуемом товаре [15:34:41]line ИТОГО: 4000.50 [15:34:41]line НСП 1% : 35.40 [15:34:41]line НДС 12% : 424.83 [15:34:41]line Наличными: 0.00 [15:34:41]line Безнал.: 4000.50 [15:34:41]line Место: АЗС № 86 "Партнер Нефть" [15:34:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:34:41]line СНО: Общий режим [15:34:41]line Чек 283 24.10.2024 15:34 [15:34:41]line Смена: 463 ФФД: 1.0 [15:34:41]line ЗНМ: 0300000155 [15:34:41]line РНМ: 0000000000100030 [15:34:41]line Версия ККМ: 001 [15:34:41]line Платежная система: O! деньги [15:34:41]line ФМ: 0000000000965340 [15:34:41]line ФД: 189210 [15:34:41]line ФПД: 92886196019915 [15:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153443&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189210&fm=92886196019915&tin=02508201610067®Number=0000000000100030&sum=400050 [15:34:41]written 0, free lines is 4095 [15:34:41]OFD Sender: Processing packet 189210 [packets to send 1062, broken 1061] [15:34:41]ProducePacketName [15:34:41]name=ofd_packets/00189210 [15:34:41]OFD Sender: To server: pG, [15:34:41]CommunicateWithHost lk.salyk.kg:30040 [15:34:41]ConnectInit lk.salyk.kg [15:34:42]Write to MH i2c: 01 00 00 58 55 AD [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 58 55 00 00 00 00 00 70 0C 30 [15:34:42]RasterBufferAndPrint [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]written 0, free lines is 3189 [15:34:42]MH_Cut [15:34:42]Write to MH i2c: D1 01 00 5F 55 01 86 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 01 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 01 00 5F 55 00 85 [15:34:42]Write to MH i2c: 01 00 00 60 55 B5 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Connected sock=11 [15:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 43 6E 0D 01 F9 F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 13 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E3 02 00 35 04 06 00 54 7A C0 B7 E2 CB A7 0B 36 E4 64 05 D3 27 [15:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6C 75 47 00 84 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E3 02 00 F4 03 04 00 FB 12 1A 67 B6 04 01 00 00 B6 F6 16 83 EC EE 4D FA [15:34:42]CommunicateWithHost err = 0 [15:34:42]CheckOFDResponse [15:34:42]1017 (14) - 77093643461234 [15:34:42]1041 (16) - 0000000000965340 [15:34:42]1040 (4) - 189210 [15:34:42]1012 (4) - 24.10.2024 09:27 [15:34:42]1206 (1) - 0 [15:34:42]OFD Sender: Remove packet 189210 [15:34:42]ProducePacketName [15:34:42]name=ofd_packets/00189210 [15:34:42]NVStorageDeleteData [15:34:43]OFD Sender: No OFD packet to send [15:34:43]*** Cut start [15:34:43]*** Partial cut [15:34:43]*** CUTSNS_PIN = 1 [15:34:43]*** CUTSNS_PIN = 0 [15:34:43]*** Brake cut motor [15:34:44]Read from MH i2c: 01 [15:34:44]MH_I2C_Read... [15:34:44]*** Stop cut motor [15:34:44]*** Cut end [15:34:44]Read from MH i2c: 01 07 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: 01 07 00 60 55 00 00 00 00 00 FF 0F CA [15:34:44]process_action close_receipt done [15:34:44]requested_data is exist [15:34:44]produce_requested_data [15:34:44]requested_item fm.sn is exist - process it [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 11 00 00 [15:34:44]Write to MH i2c: E2 08 00 61 55 80 11 00 00 00 00 00 00 30 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 17 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 17 00 61 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [15:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:44]wFMCommunicate OK [15:34:44]requested_item fd.num is exist - process it [15:34:44]SAM_PROTO_GetFieldsCounters [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 13 00 00 [15:34:44]Write to MH i2c: E2 08 00 62 55 80 13 00 00 00 00 00 00 33 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 62 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 62 00 62 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E3 02 00 0E 04 04 00 CF 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 5D [15:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E3 02 00 0E 04 04 00 CF 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 [15:34:44]wFMCommunicate OK [15:34:44]SAM_PROTO_GetFieldsCounters done [15:34:44]requested_item shift.num is exist - process it [15:34:44]requested_item shift.opened is exist - process it [15:34:44]req_shift_opened [15:34:44]FM_GetShiftState [15:34:44]SAM_PROTO_GetShiftState [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 13 01 00 [15:34:44]Write to MH i2c: E2 08 00 63 55 80 13 01 00 00 00 00 00 35 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 63 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 13 [15:34:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:34:44]wFMCommunicate OK [15:34:44]SAM_PROTO_GetShiftState done [15:34:44]FM_GetShiftState done [15:34:44]req_shift_opened done [15:34:44]requested_item shift.open_date is exist - process it [15:34:44]req_shift_open_date [15:34:44]req_shift_open_date done [15:34:44]produce_requested_data done [15:34:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189210,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:34:44]process_action_free close_receipt [15:34:44]json_value_free [15:34:44]json_value_free done [15:34:44]process_json_proto returns [15:34:44]Send response to host [15:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189210,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:34:44]free response buf [15:34:44]execute_script done [15:34:44]execute_script returns [15:34:44]free content buf [15:34:44]Sock 9.Close socket [15:34:44]Sock 9.Thread stoped [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:36]accept exits with 8 [15:35:36]New connection [15:35:36]New thread 3067215204 created [15:35:36]Thread 3067071844 joined [15:35:36]Waiting for new connection... [15:35:36] Sock 8.Parse request [15:35:36]Sock 8.Check first char [15:35:36]Sock 8.First char is OK [15:35:36]request: POST /json_proto HTTP/1.0 [15:35:36]Method: POST [15:35:36]URL: /json_proto [15:35:36]Method is POST - this is cgi request [15:35:36]url: /json_proto [15:35:36]query_string will be loaded in cgi processing [15:35:36]execute_cgi json_proto POST (null) [15:35:36]execute_cgi path=json_proto method=POST [15:35:36]POST find Content-Length [15:35:36]Host: 172.17.42.131:8080 [15:35:36]Content-Length: 682 [15:35:36]Content-Type: application/json [15:35:36] [15:35:36]POST finish read [15:35:36]Found Content-Length = 682 [15:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.760, "sum" : 2208.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2208.00, "payments": [ { "type": 0, "sum" : 2208.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:36]execute_script... [15:35: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)211276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.760, "sum" : 2208.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2208.00, "payments": [ { "type": 0, "sum" : 2208.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:36]POST & json_proto [15:35:36]process_json_proto [15:35:36]json parsed OK: [15:35:36]protocol is kg_v1.0 [15:35:36]action value=close_receipt [15:35:36]process_action close_receipt [15:35:36]cmd_close_receipt [15:35:36]MH_GetDate [15:35:36]Write to MH i2c: F0 00 00 64 55 A8 [15:35:36]Write i2c OK [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: F0 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: F0 09 00 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: F0 09 00 64 55 00 4C 69 1A 67 A0 18 CA 66 CF [15:35:36]GetLastDocTimeStamp 1729784083 [15:35:36]current date 1729784140 [15:35:36]FM_GetShiftState [15:35:36]SAM_PROTO_GetShiftState [15:35:36]wFMCommunicate request_size=4 [15:35:36]MH_SAM_APDU [15:35:36]CAPDU: 80 13 01 00 [15:35:36]Write to MH i2c: E2 08 00 65 55 80 13 01 00 00 00 00 00 37 [15:35:36]Write i2c OK [15:35:36]MH_I2C_Read... [15:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:36]Read from MH i2c: E2 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 0E 00 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 0E 00 65 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [15:35:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:35:36]wFMCommunicate OK [15:35:36]SAM_PROTO_GetShiftState done [15:35:36]FM_GetShiftState done [15:35:36]opened in 1729728961 [15:35:36]opened+sec_in_day 1729815361 [15:35:36]quantity*price = 220819 [15:35:36]sum+1 = 220820 [15:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 2208.00 Внесено: 5000.00 СДАЧА: 2792.00 НСП 1% : 19.54 НДС 12% : 234.50 Наличными: 2208.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 284 24.10.2024 15:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189211 ФПД: 175165081162684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189211&fm=175165081162684&tin=02508201610067®Number=0000000000100030&sum=220800 [15:35:37]StoreToDocumentArchive [15:35:37]shift 463 fd 189211 [15:35:37]save to /storage/0463/doc_00189211 [15:35:37]save last doc name /storage/0463/doc_00189211 to /storage/kkm_last_doc_name [15:35:37]save OK [15:35:37]Clear old archive folders... [15:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:37]tlvbuf is 01641330 [15:35:37]SAM_PROTO_ClearQueue [15:35:37]wFMCommunicate request_size=4 [15:35:37]MH_SAM_APDU [15:35:37]CAPDU: 80 09 00 00 [15:35:37]Write to MH i2c: E2 08 00 72 55 80 09 00 00 00 00 00 00 39 [15:35:37]Write i2c OK [15:35:37]MH_I2C_Read... [15:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:37]Read from MH i2c: E2 [15:35:37]MH_I2C_Read... [15:35:37]Read from MH i2c: E2 03 00 [15:35:37]MH_I2C_Read... [15:35:37]Read from MH i2c: E2 03 00 72 55 00 90 00 3B [15:35:37]RAPDU: 90 00 [15:35:37]wFMCommunicate OK [15:35:37]SAM_PROTO_ClearQueue done [15:35:37]KKMCreateOFDPacket [15:35:37]OFDProtocolAddRootSTLVToBuf [15:35:37]FM_MakeSignedData [15:35:37]FM_MakeSignedData [15:35:37]SAM_PROTO_SignData [15:35:37]wFMCommunicate request_size=4 [15:35:37]MH_SAM_APDU [15:35:37]CAPDU: 80 0D 01 02 [15:35:37]Write to MH i2c: E2 08 00 73 55 80 0D 01 02 00 00 00 00 41 [15:35:37]Write i2c OK [15:35:37]MH_I2C_Read... [15:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:37]Read from MH i2c: E2 [15:35:37]MH_I2C_Read... [15:35:37]Read from MH i2c: E2 03 00 [15:35:37]MH_I2C_Read... [15:35:37]Read from MH i2c: E2 03 00 73 55 00 90 00 3C [15:35:37]RAPDU: 90 00 [15:35:37]wFMCommunicate OK [15:35:37]wFMCommunicate request_size=255 [15:35:37]MH_SAM_APDU [15:35: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 33 FF 03 08 00 03 40 74 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 93 5E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 5B 00 00 00 00 07 04 06 00 80 5E 03 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 4C 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E3 02 00 35 04 06 00 9F [15:35:37]Write to MH i2c: E2 02 01 74 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 33 FF 03 08 00 03 40 74 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 93 5E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 5B 00 00 00 00 07 04 06 00 80 5E 03 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 4C 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E3 02 00 35 04 06 00 9F 00 00 15 [15:35:37]Write i2c OK [15:35:37]MH_I2C_Read... [15:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:38]Read from MH i2c: E2 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 03 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 03 00 74 55 00 90 00 3D [15:35:38]RAPDU: 90 00 [15:35:38]wFMCommunicate OK [15:35:38]wFMCommunicate request_size=10 [15:35:38]MH_SAM_APDU [15:35:38]CAPDU: 80 0D 02 02 05 4F CC 70 93 BC [15:35:38]Write to MH i2c: E2 0D 00 75 55 80 0D 02 02 05 00 4F CC 70 93 BC 00 00 28 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:38]Read from MH i2c: E2 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 03 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 03 00 75 55 00 90 00 3E [15:35:38]RAPDU: 90 00 [15:35:38]wFMCommunicate OK [15:35:38]wFMCommunicate request_size=4 [15:35:38]MH_SAM_APDU [15:35:38]CAPDU: 80 0D 03 02 [15:35:38]Write to MH i2c: E2 08 00 76 55 80 0D 03 02 00 00 00 00 46 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:38]Read from MH i2c: E2 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 0B 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 0B 00 76 55 00 E5 46 14 0C F4 CD 24 32 90 00 A9 [15:35:38]RAPDU: E5 46 14 0C F4 CD 24 32 90 00 [15:35:38]wFMCommunicate OK [15:35:38]SAM_PROTO_SignData done [15:35:38]FM_MakeSignedData done [15:35:38]CreateOFDProtocolMessage [15:35:38]wFMCommunicate request_size=4 [15:35:38]MH_SAM_APDU [15:35:38]CAPDU: 80 11 00 00 [15:35:38]Write to MH i2c: E2 08 00 77 55 80 11 00 00 00 00 00 00 46 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:38]Read from MH i2c: E2 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 17 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: E2 17 00 77 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [15:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:35:38]wFMCommunicate OK [15:35:38]CreateOFDProtocolMessage done [15:35:38]OFDSenderStorePacket 189211 [15:35:38]StoreOFDPacket docnum=189211 [15:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 2F 07 01 66 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 74 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 93 5E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 5B 00 00 00 00 07 04 06 00 80 5E 03 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 4C 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E3 02 00 35 04 06 00 9F 4F CC 70 93 BC E5 46 14 0C F4 CD 24 32 [15:35:38]CheckFolder [15:35:38]dirname=/storage/ofd_packets [15:35:38]CheckFolder done [15:35:38]ProducePacketName [15:35:38]name=ofd_packets/00189211 [15:35:38]NVStorageSaveData ofd_packets/00189211 [15:35:38]File name is /storage/ofd_packets/00189211 [15:35:38]Write 301 bytes [15:35:38]NVStorageSaveData done [15:35:38]OFDSenderStorePacket done [15:35:38]KKMCreateOFDPacket done [15:35:38]NVStorageSaveData kkm_last_timestamp [15:35:38]File name is /storage/kkm_last_timestamp [15:35:38]Write 4 bytes [15:35:38]NVStorageSaveData done [15:35:38]ExternCall_PrintAddStr [15:35:38]wPrintStart [15:35:38]Write to MH i2c: 01 00 00 78 55 CD [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 07 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 07 00 78 55 00 00 00 00 00 FF 0F E2 [15:35:38]RasterBufferAndPrint [15:35:38]line Счет N : (1)211276 [15:35:38]line ИНН: 02508201610067 [15:35:38]line Контрольно-Кассовый Чек [15:35:38]line ПРОДАЖА [15:35:38]line ТРК (МРК, ГНК) : 33 [15:35:38]line Товар: 2710124500 [15:35:38]line Аи-95-К-3 [15:35:38]line 29.760 * 74.20 [15:35:38]line = 2208.19 [15:35:38]line НДС 12% НСП 1% [15:35:38]line > о реализуемом товаре [15:35:38]line ОКРУГЛЕНИЕ: -0.19 [15:35:38]line ИТОГО: 2208.00 [15:35:38]line Внесено: 5000.00 [15:35:38]line СДАЧА: 2792.00 [15:35:38]line НСП 1% : 19.54 [15:35:38]line НДС 12% : 234.50 [15:35:38]line Наличными: 2208.00 [15:35:38]line Безнал.: 0.00 [15:35:38]line Место: АЗС № 86 "Партнер Нефть" [15:35:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:35:38]line СНО: Общий режим [15:35:38]line Чек 284 24.10.2024 15:35 [15:35:38]line Смена: 463 ФФД: 1.0 [15:35:38]line ЗНМ: 0300000155 [15:35:38]line РНМ: 0000000000100030 [15:35:38]line Версия ККМ: 001 [15:35:38]line ФМ: 0000000000965340 [15:35:38]line ФД: 189211 [15:35:38]line ФПД: 175165081162684 [15:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153540&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189211&fm=175165081162684&tin=02508201610067®Number=0000000000100030&sum=220800 [15:35:38]written 0, free lines is 4095 [15:35:38]OFD Sender: Processing packet 189211 [packets to send 1062, broken 1061] [15:35:38]ProducePacketName [15:35:38]name=ofd_packets/00189211 [15:35:38]OFD Sender: To server: pG, [15:35:38]CommunicateWithHost lk.salyk.kg:30040 [15:35:38]ConnectInit lk.salyk.kg [15:35:38]Connected sock=9 [15:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 2F 07 01 66 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 74 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 93 5E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 5E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 5B 00 00 00 00 07 04 06 00 80 5E 03 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 4C 69 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E3 02 00 35 04 06 00 9F 4F CC 70 93 BC E5 46 14 0C F4 CD 24 32 [15:35:38]Write to MH i2c: 01 00 00 A3 55 F8 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 07 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: 01 07 00 A3 55 00 00 00 00 00 60 0C 6B [15:35:38]RasterBufferAndPrint [15:35:38]line [15:35:38]line [15:35:38]line [15:35:38]line [15:35:38]line [15:35:38]written 0, free lines is 3172 [15:35:38]MH_Cut [15:35:38]Write to MH i2c: D1 01 00 AA 55 01 D1 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: D1 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: D1 01 00 [15:35:38]MH_I2C_Read... [15:35:38]Read from MH i2c: D1 01 00 AA 55 00 D0 [15:35:38]Write to MH i2c: 01 00 00 AB 55 00 [15:35:38]Write i2c OK [15:35:38]MH_I2C_Read... [15:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C0 B3 47 00 8B 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 39 36 35 33 34 30 10 04 04 00 1B E3 02 00 F4 03 04 00 34 13 1A 67 B6 04 01 00 00 5D 29 6D 2F 37 61 92 BD [15:35:39]CommunicateWithHost err = 0 [15:35:39]CheckOFDResponse [15:35:39]1017 (14) - 77093643461234 [15:35:39]1041 (16) - 0000000000965340 [15:35:39]1040 (4) - 189211 [15:35:39]1012 (4) - 24.10.2024 09:28 [15:35:39]1206 (1) - 0 [15:35:39]OFD Sender: Remove packet 189211 [15:35:39]ProducePacketName [15:35:39]name=ofd_packets/00189211 [15:35:39]NVStorageDeleteData [15:35:39]OFD Sender: No OFD packet to send [15:35:40]*** Cut start [15:35:40]*** Partial cut [15:35:40]*** CUTSNS_PIN = 1 [15:35:40]*** CUTSNS_PIN = 0 [15:35:40]*** Brake cut motor [15:35:40]Read from MH i2c: 01 [15:35:40]MH_I2C_Read... [15:35:40]*** Stop cut motor [15:35:40]*** Cut end [15:35:40]Read from MH i2c: 01 07 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: 01 07 00 AB 55 00 00 00 00 00 FF 0F 15 [15:35:40]process_action close_receipt done [15:35:40]requested_data is exist [15:35:40]produce_requested_data [15:35:40]requested_item fm.sn is exist - process it [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 11 00 00 [15:35:40]Write to MH i2c: E2 08 00 AC 55 80 11 00 00 00 00 00 00 7B [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 17 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 17 00 AC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [15:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:35:40]wFMCommunicate OK [15:35:40]requested_item fd.num is exist - process it [15:35:40]SAM_PROTO_GetFieldsCounters [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 13 00 00 [15:35:40]Write to MH i2c: E2 08 00 AD 55 80 13 00 00 00 00 00 00 7E [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 62 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 62 00 AD 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E3 02 00 0E 04 04 00 CF 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 AC [15:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E3 02 00 0E 04 04 00 CF 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 [15:35:40]wFMCommunicate OK [15:35:40]SAM_PROTO_GetFieldsCounters done [15:35:40]requested_item shift.num is exist - process it [15:35:40]requested_item shift.opened is exist - process it [15:35:40]req_shift_opened [15:35:40]FM_GetShiftState [15:35:40]SAM_PROTO_GetShiftState [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 13 01 00 [15:35:40]Write to MH i2c: E2 08 00 AE 55 80 13 01 00 00 00 00 00 80 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:41]Read from MH i2c: E2 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 0E 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 0E 00 AE 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [15:35:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:35:41]wFMCommunicate OK [15:35:41]SAM_PROTO_GetShiftState done [15:35:41]FM_GetShiftState done [15:35:41]req_shift_opened done [15:35:41]requested_item shift.open_date is exist - process it [15:35:41]req_shift_open_date [15:35:41]req_shift_open_date done [15:35:41]produce_requested_data done [15:35:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189211,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:35:41]process_action_free close_receipt [15:35:41]json_value_free [15:35:41]json_value_free done [15:35:41]process_json_proto returns [15:35:41]Send response to host [15:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189211,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:35:41]free response buf [15:35:41]execute_script done [15:35:41]execute_script returns [15:35:41]free content buf [15:35:41]Sock 8.Close socket [15:35:41]Sock 8.Thread stoped [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]accept exits with 10 [15:39:30]New connection [15:39:30]New thread 3067071844 created [15:39:30]Thread 3067215204 joined [15:39:30]Waiting for new connection... [15:39:30] Sock 10.Parse request [15:39:30]Sock 10.Check first char [15:39:30]Sock 10.First char is OK [15:39:30]request: POST /json_proto HTTP/1.0 [15:39:30]Method: POST [15:39:30]URL: /json_proto [15:39:30]Method is POST - this is cgi request [15:39:30]url: /json_proto [15:39:30]query_string will be loaded in cgi processing [15:39:30]execute_cgi json_proto POST (null) [15:39:30]execute_cgi path=json_proto method=POST [15:39:30]POST find Content-Length [15:39:30]Host: 172.17.42.131:8080 [15:39:30]Content-Length: 688 [15:39:30]Content-Type: application/json [15:39:30] [15:39:30]POST finish read [15:39:30]Found Content-Length = 688 [15:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:39:30]execute_script... [15:39: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)211277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:39:30]POST & json_proto [15:39:30]process_json_proto [15:39:30]json parsed OK: [15:39:30]protocol is kg_v1.0 [15:39:30]action value=close_receipt [15:39:30]process_action close_receipt [15:39:30]cmd_close_receipt [15:39:30]MH_GetDate [15:39:30]Write to MH i2c: F0 00 00 AF 55 F3 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: F0 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: F0 09 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: F0 09 00 AF 55 00 36 6A 1A 67 A0 18 CA 66 05 [15:39:30]GetLastDocTimeStamp 1729784140 [15:39:30]current date 1729784374 [15:39:30]FM_GetShiftState [15:39:30]SAM_PROTO_GetShiftState [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 13 01 00 [15:39:30]Write to MH i2c: E2 08 00 B0 55 80 13 01 00 00 00 00 00 82 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 B0 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [15:39:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:39:30]wFMCommunicate OK [15:39:30]SAM_PROTO_GetShiftState done [15:39:30]FM_GetShiftState done [15:39:30]opened in 1729728961 [15:39:30]opened+sec_in_day 1729815361 [15:39:30]quantity*price = 100051 [15:39:30]sum+1 = 100052 [15:39:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 285 24.10.2024 15:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189212 ФПД: 204564832050259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189212&fm=204564832050259&tin=02508201610067®Number=0000000000100030&sum=100000 [15:39:31]StoreToDocumentArchive [15:39:31]shift 463 fd 189212 [15:39:31]save to /storage/0463/doc_00189212 [15:39:31]save last doc name /storage/0463/doc_00189212 to /storage/kkm_last_doc_name [15:39:31]save OK [15:39:31]Clear old archive folders... [15:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:39:31]tlvbuf is 01641850 [15:39:31]SAM_PROTO_ClearQueue [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 09 00 00 [15:39:31]Write to MH i2c: E2 08 00 BD 55 80 09 00 00 00 00 00 00 84 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 BD 55 00 90 00 86 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]SAM_PROTO_ClearQueue done [15:39:31]KKMCreateOFDPacket [15:39:31]OFDProtocolAddRootSTLVToBuf [15:39:31]FM_MakeSignedData [15:39:31]FM_MakeSignedData [15:39:31]SAM_PROTO_SignData [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 01 02 [15:39:31]Write to MH i2c: E2 08 00 BE 55 80 0D 01 02 00 00 00 00 8C [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 BE 55 00 90 00 87 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]wFMCommunicate request_size=255 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1D 01 00 00 F4 03 04 00 36 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E3 02 [15:39:31]Write to MH i2c: E2 02 01 BF 55 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1D 01 00 00 F4 03 04 00 36 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E3 02 00 00 F9 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 BF 55 00 90 00 88 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]wFMCommunicate request_size=16 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA 0C F6 25 DC 53 [15:39:31]Write to MH i2c: E2 13 00 C0 55 80 0D 02 02 0B 00 00 35 04 06 00 BA 0C F6 25 DC 53 00 00 F4 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 03 00 C0 55 00 90 00 89 [15:39:31]RAPDU: 90 00 [15:39:31]wFMCommunicate OK [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 0D 03 02 [15:39:31]Write to MH i2c: E2 08 00 C1 55 80 0D 03 02 00 00 00 00 91 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 0B 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 0B 00 C1 55 00 61 45 FA E3 4F 3D A1 F2 90 00 34 [15:39:31]RAPDU: 61 45 FA E3 4F 3D A1 F2 90 00 [15:39:31]wFMCommunicate OK [15:39:31]SAM_PROTO_SignData done [15:39:31]FM_MakeSignedData done [15:39:31]CreateOFDProtocolMessage [15:39:31]wFMCommunicate request_size=4 [15:39:31]MH_SAM_APDU [15:39:31]CAPDU: 80 11 00 00 [15:39:31]Write to MH i2c: E2 08 00 C2 55 80 11 00 00 00 00 00 00 91 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:31]Read from MH i2c: E2 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 17 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: E2 17 00 C2 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [15:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:39:31]wFMCommunicate OK [15:39:31]CreateOFDProtocolMessage done [15:39:31]OFDSenderStorePacket 189212 [15:39:31]StoreOFDPacket docnum=189212 [15:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0D 68 0D 01 91 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1D 01 00 00 F4 03 04 00 36 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E3 02 00 35 04 06 00 BA 0C F6 25 DC 53 61 45 FA E3 4F 3D A1 F2 [15:39:31]CheckFolder [15:39:31]dirname=/storage/ofd_packets [15:39:31]CheckFolder done [15:39:31]ProducePacketName [15:39:31]name=ofd_packets/00189212 [15:39:31]NVStorageSaveData ofd_packets/00189212 [15:39:31]File name is /storage/ofd_packets/00189212 [15:39:31]Write 307 bytes [15:39:31]NVStorageSaveData done [15:39:31]OFDSenderStorePacket done [15:39:31]KKMCreateOFDPacket done [15:39:31]NVStorageSaveData kkm_last_timestamp [15:39:31]File name is /storage/kkm_last_timestamp [15:39:31]Write 4 bytes [15:39:31]NVStorageSaveData done [15:39:31]ExternCall_PrintAddStr [15:39:31]wPrintStart [15:39:31]Write to MH i2c: 01 00 00 C3 55 18 [15:39:31]Write i2c OK [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 07 00 [15:39:31]MH_I2C_Read... [15:39:31]Read from MH i2c: 01 07 00 C3 55 00 00 00 00 00 FF 0F 2D [15:39:31]RasterBufferAndPrint [15:39:31]line Счет N : (1)211277 [15:39:31]line ИНН: 02508201610067 [15:39:31]line Контрольно-Кассовый Чек [15:39:31]line ПРОДАЖА [15:39:31]line ТРК (МРК, ГНК) : 11 [15:39:31]line Товар: 2710194210 [15:39:31]line D-ENERGY ДТ-К-5 [15:39:31]line 12.960 * 77.20 [15:39:31]line = 1000.51 [15:39:31]line НДС 12% НСП 1% [15:39:31]line > о реализуемом товаре [15:39:31]line ОКРУГЛЕНИЕ: -0.51 [15:39:31]line ИТОГО: 1000.00 [15:39:31]line Внесено: 1000.00 [15:39:31]line СДАЧА: 0.00 [15:39:31]line НСП 1% : 8.85 [15:39:31]line НДС 12% : 106.25 [15:39:31]line Наличными: 1000.00 [15:39:31]line Безнал.: 0.00 [15:39:31]line Место: АЗС № 86 "Партнер Нефть" [15:39:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:39:31]line СНО: Общий режим [15:39:31]line Чек 285 24.10.2024 15:39 [15:39:31]line Смена: 463 ФФД: 1.0 [15:39:31]line ЗНМ: 0300000155 [15:39:31]line РНМ: 0000000000100030 [15:39:31]line Версия ККМ: 001 [15:39:31]line ФМ: 0000000000965340 [15:39:31]line ФД: 189212 [15:39:31]line ФПД: 204564832050259 [15:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189212&fm=204564832050259&tin=02508201610067®Number=0000000000100030&sum=100000 [15:39:31]written 0, free lines is 4095 [15:39:31]OFD Sender: Processing packet 189212 [packets to send 1062, broken 1061] [15:39:31]ProducePacketName [15:39:31]name=ofd_packets/00189212 [15:39:31]OFD Sender: To server: pG, [15:39:31]CommunicateWithHost lk.salyk.kg:30040 [15:39:31]ConnectInit lk.salyk.kg [15:39:32]Connected sock=9 [15:39:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0D 68 0D 01 91 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 1D 01 00 00 F4 03 04 00 36 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E3 02 00 35 04 06 00 BA 0C F6 25 DC 53 61 45 FA E3 4F 3D A1 F2 [15:39:32]Write to MH i2c: 01 00 00 EE 55 43 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 07 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: 01 07 00 EE 55 00 00 00 00 00 5D 0C B3 [15:39:32]RasterBufferAndPrint [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]line [15:39:32]written 0, free lines is 3168 [15:39:32]MH_Cut [15:39:32]Write to MH i2c: D1 01 00 F5 55 01 1C [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 01 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: D1 01 00 F5 55 00 1B [15:39:32]Write to MH i2c: 01 00 00 F6 55 4B [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CC 67 47 00 87 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 39 36 35 33 34 30 10 04 04 00 1C E3 02 00 F4 03 04 00 1D 14 1A 67 B6 04 01 00 00 00 05 21 77 75 E6 C0 E4 [15:39:32]CommunicateWithHost err = 0 [15:39:32]CheckOFDResponse [15:39:32]1017 (14) - 77093643461234 [15:39:32]1041 (16) - 0000000000965340 [15:39:32]1040 (4) - 189212 [15:39:32]1012 (4) - 24.10.2024 09:32 [15:39:32]1206 (1) - 0 [15:39:32]OFD Sender: Remove packet 189212 [15:39:32]ProducePacketName [15:39:32]name=ofd_packets/00189212 [15:39:32]NVStorageDeleteData [15:39:33]OFD Sender: No OFD packet to send [15:39:33]*** Cut start [15:39:33]*** Partial cut [15:39:33]*** CUTSNS_PIN = 1 [15:39:33]*** CUTSNS_PIN = 0 [15:39:33]*** Brake cut motor [15:39:34]Read from MH i2c: 01 [15:39:34]MH_I2C_Read... [15:39:34]*** Stop cut motor [15:39:34]*** Cut end [15:39:34]Read from MH i2c: 01 07 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: 01 07 00 F6 55 00 00 00 00 00 FF 0F 60 [15:39:34]process_action close_receipt done [15:39:34]requested_data is exist [15:39:34]produce_requested_data [15:39:34]requested_item fm.sn is exist - process it [15:39:34]wFMCommunicate request_size=4 [15:39:34]MH_SAM_APDU [15:39:34]CAPDU: 80 11 00 00 [15:39:34]Write to MH i2c: E2 08 00 F7 55 80 11 00 00 00 00 00 00 C6 [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:34]Read from MH i2c: E2 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 17 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 17 00 F7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [15:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:39:34]wFMCommunicate OK [15:39:34]requested_item fd.num is exist - process it [15:39:34]SAM_PROTO_GetFieldsCounters [15:39:34]wFMCommunicate request_size=4 [15:39:34]MH_SAM_APDU [15:39:34]CAPDU: 80 13 00 00 [15:39:34]Write to MH i2c: E2 08 00 F8 55 80 13 00 00 00 00 00 00 C9 [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:34]Read from MH i2c: E2 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 62 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 62 00 F8 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E3 02 00 0E 04 04 00 CF 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 FB [15:39:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E3 02 00 0E 04 04 00 CF 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 [15:39:34]wFMCommunicate OK [15:39:34]SAM_PROTO_GetFieldsCounters done [15:39:34]requested_item shift.num is exist - process it [15:39:34]requested_item shift.opened is exist - process it [15:39:34]req_shift_opened [15:39:34]FM_GetShiftState [15:39:34]SAM_PROTO_GetShiftState [15:39:34]wFMCommunicate request_size=4 [15:39:34]MH_SAM_APDU [15:39:34]CAPDU: 80 13 01 00 [15:39:34]Write to MH i2c: E2 08 00 F9 55 80 13 01 00 00 00 00 00 CB [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:34]Read from MH i2c: E2 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 0E 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: E2 0E 00 F9 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A9 [15:39:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:39:34]wFMCommunicate OK [15:39:34]SAM_PROTO_GetShiftState done [15:39:34]FM_GetShiftState done [15:39:34]req_shift_opened done [15:39:34]requested_item shift.open_date is exist - process it [15:39:34]req_shift_open_date [15:39:34]req_shift_open_date done [15:39:34]produce_requested_data done [15:39:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189212,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:39:34]process_action_free close_receipt [15:39:34]json_value_free [15:39:34]json_value_free done [15:39:34]process_json_proto returns [15:39:34]Send response to host [15:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189212,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:39:34]free response buf [15:39:34]execute_script done [15:39:34]execute_script returns [15:39:34]free content buf [15:39:34]Sock 10.Close socket [15:39:34]Sock 10.Thread stoped [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:30]accept exits with 8 [15:42:30]New connection [15:42:30]New thread 3067215204 created [15:42:30]Thread 3067071844 joined [15:42:30]Waiting for new connection... [15:42:30] Sock 8.Parse request [15:42:30]Sock 8.Check first char [15:42:30]Sock 8.First char is OK [15:42:30]request: POST /json_proto HTTP/1.0 [15:42:30]Method: POST [15:42:30]URL: /json_proto [15:42:30]Method is POST - this is cgi request [15:42:30]url: /json_proto [15:42:30]query_string will be loaded in cgi processing [15:42:30]execute_cgi json_proto POST (null) [15:42:30]execute_cgi path=json_proto method=POST [15:42:30]POST find Content-Length [15:42:30]Host: 172.17.42.131:8080 [15:42:30]Content-Length: 769 [15:42:30]Content-Type: application/json [15:42:30] [15:42:30]POST finish read [15:42:30]Found Content-Length = 769 [15:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 43.990, "sum" : 2942.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2942.93 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:30]execute_script... [15:42: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)211278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 43.990, "sum" : 2942.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2942.93 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:30]POST & json_proto [15:42:30]process_json_proto [15:42:30]json parsed OK: [15:42:30]protocol is kg_v1.0 [15:42:30]action value=close_receipt [15:42:30]process_action close_receipt [15:42:30]cmd_close_receipt [15:42:30]MH_GetDate [15:42:30]Write to MH i2c: F0 00 00 FA 55 3E [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 09 00 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 09 00 FA 55 00 EA 6A 1A 67 A0 18 CA 66 04 [15:42:30]GetLastDocTimeStamp 1729784374 [15:42:30]current date 1729784554 [15:42:30]FM_GetShiftState [15:42:30]SAM_PROTO_GetShiftState [15:42:30]wFMCommunicate request_size=4 [15:42:30]MH_SAM_APDU [15:42:30]CAPDU: 80 13 01 00 [15:42:30]Write to MH i2c: E2 08 00 FB 55 80 13 01 00 00 00 00 00 CD [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:30]Read from MH i2c: E2 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: E2 0E 00 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: E2 0E 00 FB 55 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AB [15:42:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:42:30]wFMCommunicate OK [15:42:30]SAM_PROTO_GetShiftState done [15:42:30]FM_GetShiftState done [15:42:30]opened in 1729728961 [15:42:30]opened+sec_in_day 1729815361 [15:42:30]quantity*price = 294293 [15:42:30]sum+1 = 294294 [15:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2942.93 НСП 1% : 26.04 НДС 12% : 312.52 Наличными: 0.00 Безнал.: 2942.93 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 286 24.10.2024 15:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189213 ФПД: 118069393200859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189213&fm=118069393200859&tin=02508201610067®Number=0000000000100030&sum=294293 [15:42:32]StoreToDocumentArchive [15:42:32]shift 463 fd 189213 [15:42:32]save to /storage/0463/doc_00189213 [15:42:32]save last doc name /storage/0463/doc_00189213 to /storage/kkm_last_doc_name [15:42:32]save OK [15:42:32]Clear old archive folders... [15:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:32]tlvbuf is 015DB8D0 [15:42:32]SAM_PROTO_ClearQueue [15:42:32]wFMCommunicate request_size=4 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 09 00 00 [15:42:32]Write to MH i2c: E2 08 00 08 56 80 09 00 00 00 00 00 00 D0 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 08 56 00 90 00 D2 [15:42:32]RAPDU: 90 00 [15:42:32]wFMCommunicate OK [15:42:32]SAM_PROTO_ClearQueue done [15:42:32]KKMCreateOFDPacket [15:42:32]OFDProtocolAddRootSTLVToBuf [15:42:32]FM_MakeSignedData [15:42:32]FM_MakeSignedData [15:42:32]SAM_PROTO_SignData [15:42:32]wFMCommunicate request_size=4 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 0D 01 02 [15:42:32]Write to MH i2c: E2 08 00 09 56 80 0D 01 02 00 00 00 00 D8 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 09 56 00 90 00 D3 [15:42:32]RAPDU: 90 00 [15:42:32]wFMCommunicate OK [15:42:32]wFMCommunicate request_size=255 [15:42:32]MH_SAM_APDU [15:42: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 33 FF 03 08 00 03 D6 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 7D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 7D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 7D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EA 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E3 02 00 35 04 06 00 6B [15:42:32]Write to MH i2c: E2 02 01 0A 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 33 FF 03 08 00 03 D6 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 7D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 7D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 7D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EA 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E3 02 00 35 04 06 00 6B 00 00 BA [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 0A 56 00 90 00 D4 [15:42:32]RAPDU: 90 00 [15:42:32]wFMCommunicate OK [15:42:32]wFMCommunicate request_size=10 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 0D 02 02 05 62 2C 3D 96 DB [15:42:32]Write to MH i2c: E2 0D 00 0B 56 80 0D 02 02 05 00 62 2C 3D 96 DB 00 00 21 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 03 00 0B 56 00 90 00 D5 [15:42:32]RAPDU: 90 00 [15:42:32]wFMCommunicate OK [15:42:32]wFMCommunicate request_size=4 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 0D 03 02 [15:42:32]Write to MH i2c: E2 08 00 0C 56 80 0D 03 02 00 00 00 00 DD [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 0B 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 0B 00 0C 56 00 72 8C 38 5B E5 D5 BE 23 90 00 0A [15:42:32]RAPDU: 72 8C 38 5B E5 D5 BE 23 90 00 [15:42:32]wFMCommunicate OK [15:42:32]SAM_PROTO_SignData done [15:42:32]FM_MakeSignedData done [15:42:32]CreateOFDProtocolMessage [15:42:32]wFMCommunicate request_size=4 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 11 00 00 [15:42:32]Write to MH i2c: E2 08 00 0D 56 80 11 00 00 00 00 00 00 DD [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 17 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 17 00 0D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [15:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:32]wFMCommunicate OK [15:42:32]CreateOFDProtocolMessage done [15:42:32]OFDSenderStorePacket 189213 [15:42:32]StoreOFDPacket docnum=189213 [15:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 99 07 01 53 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D6 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 7D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 7D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 7D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EA 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E3 02 00 35 04 06 00 6B 62 2C 3D 96 DB 72 8C 38 5B E5 D5 BE 23 [15:42:32]CheckFolder [15:42:32]dirname=/storage/ofd_packets [15:42:32]CheckFolder done [15:42:32]ProducePacketName [15:42:32]name=ofd_packets/00189213 [15:42:32]NVStorageSaveData ofd_packets/00189213 [15:42:32]File name is /storage/ofd_packets/00189213 [15:42:32]Write 301 bytes [15:42:32]NVStorageSaveData done [15:42:32]OFDSenderStorePacket done [15:42:32]KKMCreateOFDPacket done [15:42:32]NVStorageSaveData kkm_last_timestamp [15:42:32]File name is /storage/kkm_last_timestamp [15:42:32]Write 4 bytes [15:42:32]NVStorageSaveData done [15:42:32]ExternCall_PrintAddStr [15:42:32]wPrintStart [15:42:32]Write to MH i2c: 01 00 00 0E 56 64 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 07 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: 01 07 00 0E 56 00 00 00 00 00 FF 0F 79 [15:42:32]RasterBufferAndPrint [15:42:32]line Счет N : (1)211278 [15:42:32]line ИНН: 02508201610067 [15:42:32]line Контрольно-Кассовый Чек [15:42:32]line ПРОДАЖА [15:42:32]line ТРК (МРК, ГНК) : 12 [15:42:32]line Товар: 2710124130 [15:42:32]line Аи-92-К-3 [15:42:32]line 43.990 * 66.90 [15:42:32]line = 2942.93 [15:42:32]line НДС 12% НСП 1% [15:42:32]line > о реализуемом товаре [15:42:32]line ИТОГО: 2942.93 [15:42:32]line НСП 1% : 26.04 [15:42:32]line НДС 12% : 312.52 [15:42:32]line Наличными: 0.00 [15:42:32]line Безнал.: 2942.93 [15:42:32]line Место: АЗС № 86 "Партнер Нефть" [15:42:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:42:32]line СНО: Общий режим [15:42:32]line Чек 286 24.10.2024 15:42 [15:42:32]line Смена: 463 ФФД: 1.0 [15:42:32]line ЗНМ: 0300000155 [15:42:32]line РНМ: 0000000000100030 [15:42:32]line Версия ККМ: 001 [15:42:32]line Платежная система: Mbank [15:42:32]line ФМ: 0000000000965340 [15:42:32]line ФД: 189213 [15:42:32]line ФПД: 118069393200859 [15:42:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189213&fm=118069393200859&tin=02508201610067®Number=0000000000100030&sum=294293 [15:42:32]written 0, free lines is 4095 [15:42:32]OFD Sender: Processing packet 189213 [packets to send 1062, broken 1061] [15:42:32]ProducePacketName [15:42:32]name=ofd_packets/00189213 [15:42:32]OFD Sender: To server: pG, [15:42:32]CommunicateWithHost lk.salyk.kg:30040 [15:42:32]ConnectInit lk.salyk.kg [15:42:32]Connected sock=10 [15:42:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 99 07 01 53 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D6 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 7D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 7D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 7A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 7D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EA 6A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E3 02 00 35 04 06 00 6B 62 2C 3D 96 DB 72 8C 38 5B E5 D5 BE 23 [15:42:33]Write to MH i2c: 01 00 00 37 56 8D [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: 01 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: 01 07 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: 01 07 00 37 56 00 00 00 00 00 90 0C 30 [15:42:33]RasterBufferAndPrint [15:42:33]line [15:42:33]line [15:42:33]line [15:42:33]line [15:42:33]line [15:42:33]written 0, free lines is 3220 [15:42:33]MH_Cut [15:42:33]Write to MH i2c: D1 01 00 3E 56 01 66 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: D1 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: D1 01 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: D1 01 00 3E 56 00 65 [15:42:33]Write to MH i2c: 01 00 00 3F 56 95 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 53 47 00 65 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 39 36 35 33 34 30 10 04 04 00 1D E3 02 00 F4 03 04 00 D2 14 1A 67 B6 04 01 00 00 8C C3 D4 B8 59 5C FF F2 [15:42:33]CommunicateWithHost err = 0 [15:42:33]CheckOFDResponse [15:42:33]1017 (14) - 77093643461234 [15:42:33]1041 (16) - 0000000000965340 [15:42:33]1040 (4) - 189213 [15:42:33]1012 (4) - 24.10.2024 09:35 [15:42:33]1206 (1) - 0 [15:42:33]OFD Sender: Remove packet 189213 [15:42:33]ProducePacketName [15:42:33]name=ofd_packets/00189213 [15:42:33]NVStorageDeleteData [15:42:33]OFD Sender: No OFD packet to send [15:42:34]*** Cut start [15:42:34]*** Partial cut [15:42:34]*** CUTSNS_PIN = 1 [15:42:34]*** CUTSNS_PIN = 0 [15:42:34]*** Brake cut motor [15:42:34]Read from MH i2c: 01 [15:42:34]MH_I2C_Read... [15:42:34]*** Stop cut motor [15:42:34]*** Cut end [15:42:34]Read from MH i2c: 01 07 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 07 00 3F 56 00 00 00 00 00 FF 0F AA [15:42:34]process_action close_receipt done [15:42:34]requested_data is exist [15:42:34]produce_requested_data [15:42:34]requested_item fm.sn is exist - process it [15:42:34]wFMCommunicate request_size=4 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 11 00 00 [15:42:34]Write to MH i2c: E2 08 00 40 56 80 11 00 00 00 00 00 00 10 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 17 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 17 00 40 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [15:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:34]wFMCommunicate OK [15:42:34]requested_item fd.num is exist - process it [15:42:34]SAM_PROTO_GetFieldsCounters [15:42:34]wFMCommunicate request_size=4 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 13 00 00 [15:42:34]Write to MH i2c: E2 08 00 41 56 80 13 00 00 00 00 00 00 13 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 62 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 62 00 41 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E3 02 00 0E 04 04 00 CF 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 49 [15:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E3 02 00 0E 04 04 00 CF 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 [15:42:35]wFMCommunicate OK [15:42:35]SAM_PROTO_GetFieldsCounters done [15:42:35]requested_item shift.num is exist - process it [15:42:35]requested_item shift.opened is exist - process it [15:42:35]req_shift_opened [15:42:35]FM_GetShiftState [15:42:35]SAM_PROTO_GetShiftState [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 13 01 00 [15:42:35]Write to MH i2c: E2 08 00 42 56 80 13 01 00 00 00 00 00 15 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0E 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0E 00 42 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F3 [15:42:35]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:42:35]wFMCommunicate OK [15:42:35]SAM_PROTO_GetShiftState done [15:42:35]FM_GetShiftState done [15:42:35]req_shift_opened done [15:42:35]requested_item shift.open_date is exist - process it [15:42:35]req_shift_open_date [15:42:35]req_shift_open_date done [15:42:35]produce_requested_data done [15:42:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189213,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:42:35]process_action_free close_receipt [15:42:35]json_value_free [15:42:35]json_value_free done [15:42:35]process_json_proto returns [15:42:35]Send response to host [15:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189213,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:42:35]free response buf [15:42:35]execute_script done [15:42:35]execute_script returns [15:42:35]free content buf [15:42:35]Sock 8.Close socket [15:42:35]Sock 8.Thread stoped [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:01]accept exits with 9 [15:44:01]New connection [15:44:01]New thread 3067071844 created [15:44:01]Thread 3067215204 joined [15:44:01]Waiting for new connection... [15:44:01] Sock 9.Parse request [15:44:01]Sock 9.Check first char [15:44:01]Sock 9.First char is OK [15:44:01]request: POST /json_proto HTTP/1.0 [15:44:01]Method: POST [15:44:01]URL: /json_proto [15:44:01]Method is POST - this is cgi request [15:44:01]url: /json_proto [15:44:01]query_string will be loaded in cgi processing [15:44:01]execute_cgi json_proto POST (null) [15:44:01]execute_cgi path=json_proto method=POST [15:44:01]POST find Content-Length [15:44:01]Host: 172.17.42.131:8080 [15:44:01]Content-Length: 688 [15:44:01]Content-Type: application/json [15:44:01] [15:44:01]POST finish read [15:44:01]Found Content-Length = 688 [15:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:44:01]execute_script... [15:44: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)211279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:44:01]POST & json_proto [15:44:01]process_json_proto [15:44:01]json parsed OK: [15:44:01]protocol is kg_v1.0 [15:44:01]action value=close_receipt [15:44:01]process_action close_receipt [15:44:01]cmd_close_receipt [15:44:01]MH_GetDate [15:44:01]Write to MH i2c: F0 00 00 43 56 88 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: F0 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: F0 09 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: F0 09 00 43 56 00 46 6B 1A 67 A0 18 CA 66 AB [15:44:01]GetLastDocTimeStamp 1729784554 [15:44:01]current date 1729784646 [15:44:01]FM_GetShiftState [15:44:01]SAM_PROTO_GetShiftState [15:44:01]wFMCommunicate request_size=4 [15:44:01]MH_SAM_APDU [15:44:01]CAPDU: 80 13 01 00 [15:44:01]Write to MH i2c: E2 08 00 44 56 80 13 01 00 00 00 00 00 17 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:02]Read from MH i2c: E2 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: E2 0E 00 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: E2 0E 00 44 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F5 [15:44:02]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:44:02]wFMCommunicate OK [15:44:02]SAM_PROTO_GetShiftState done [15:44:02]FM_GetShiftState done [15:44:02]opened in 1729728961 [15:44:02]opened+sec_in_day 1729815361 [15:44:02]quantity*price = 150076 [15:44:02]sum+1 = 150078 [15:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 287 24.10.2024 15:44 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189214 ФПД: 119739767278059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189214&fm=119739767278059&tin=02508201610067®Number=0000000000100030&sum=150000 [15:44:03]StoreToDocumentArchive [15:44:03]shift 463 fd 189214 [15:44:03]save to /storage/0463/doc_00189214 [15:44:03]save last doc name /storage/0463/doc_00189214 to /storage/kkm_last_doc_name [15:44:03]save OK [15:44:03]Clear old archive folders... [15:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:44:03]tlvbuf is 01641330 [15:44:03]SAM_PROTO_ClearQueue [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 09 00 00 [15:44:03]Write to MH i2c: E2 08 00 51 56 80 09 00 00 00 00 00 00 19 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 51 56 00 90 00 1B [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_ClearQueue done [15:44:03]KKMCreateOFDPacket [15:44:03]OFDProtocolAddRootSTLVToBuf [15:44:03]FM_MakeSignedData [15:44:03]FM_MakeSignedData [15:44:03]SAM_PROTO_SignData [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 0D 01 02 [15:44:03]Write to MH i2c: E2 08 00 52 56 80 0D 01 02 00 00 00 00 21 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 52 56 00 90 00 1C [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]wFMCommunicate request_size=255 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 1F 01 00 00 F4 03 04 00 46 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E3 02 [15:44:03]Write to MH i2c: E2 02 01 53 56 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 1F 01 00 00 F4 03 04 00 46 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E3 02 00 00 F5 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 53 56 00 90 00 1D [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]wFMCommunicate request_size=16 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6C E7 16 4B 49 EB [15:44:03]Write to MH i2c: E2 13 00 54 56 80 0D 02 02 0B 00 00 35 04 06 00 6C E7 16 4B 49 EB 00 00 61 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 54 56 00 90 00 1E [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 0D 03 02 [15:44:03]Write to MH i2c: E2 08 00 55 56 80 0D 03 02 00 00 00 00 26 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0B 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0B 00 55 56 00 04 AC 7E 29 90 6E B4 7F 90 00 AF [15:44:03]RAPDU: 04 AC 7E 29 90 6E B4 7F 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_SignData done [15:44:03]FM_MakeSignedData done [15:44:03]CreateOFDProtocolMessage [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 11 00 00 [15:44:03]Write to MH i2c: E2 08 00 56 56 80 11 00 00 00 00 00 00 26 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 17 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 17 00 56 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [15:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:03]wFMCommunicate OK [15:44:03]CreateOFDProtocolMessage done [15:44:03]OFDSenderStorePacket 189214 [15:44:03]StoreOFDPacket docnum=189214 [15:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6D 5E 0D 01 A2 E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 1F 01 00 00 F4 03 04 00 46 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E3 02 00 35 04 06 00 6C E7 16 4B 49 EB 04 AC 7E 29 90 6E B4 7F [15:44:03]CheckFolder [15:44:03]dirname=/storage/ofd_packets [15:44:03]CheckFolder done [15:44:03]ProducePacketName [15:44:03]name=ofd_packets/00189214 [15:44:03]NVStorageSaveData ofd_packets/00189214 [15:44:03]File name is /storage/ofd_packets/00189214 [15:44:03]Write 307 bytes [15:44:03]NVStorageSaveData done [15:44:03]OFDSenderStorePacket done [15:44:03]KKMCreateOFDPacket done [15:44:03]NVStorageSaveData kkm_last_timestamp [15:44:03]File name is /storage/kkm_last_timestamp [15:44:03]Write 4 bytes [15:44:03]NVStorageSaveData done [15:44:03]ExternCall_PrintAddStr [15:44:03]wPrintStart [15:44:03]Write to MH i2c: 01 00 00 57 56 AD [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: 01 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: 01 07 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: 01 07 00 57 56 00 00 00 00 00 FF 0F C2 [15:44:03]RasterBufferAndPrint [15:44:03]line Счет N : (1)211279 [15:44:03]line ИНН: 02508201610067 [15:44:03]line Контрольно-Кассовый Чек [15:44:03]line ПРОДАЖА [15:44:03]line ТРК (МРК, ГНК) : 31 [15:44:03]line Товар: 2710194210 [15:44:03]line D-ENERGY ДТ-К-5 [15:44:03]line 19.440 * 77.20 [15:44:03]line = 1500.77 [15:44:03]line НДС 12% НСП 1% [15:44:03]line > о реализуемом товаре [15:44:03]line ОКРУГЛЕНИЕ: -0.77 [15:44:03]line ИТОГО: 1500.00 [15:44:03]line Внесено: 1500.00 [15:44:03]line СДАЧА: 0.00 [15:44:03]line НСП 1% : 13.28 [15:44:03]line НДС 12% : 159.37 [15:44:03]line Наличными: 1500.00 [15:44:03]line Безнал.: 0.00 [15:44:03]line Место: АЗС № 86 "Партнер Нефть" [15:44:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:44:03]line СНО: Общий режим [15:44:03]line Чек 287 24.10.2024 15:44 [15:44:03]line Смена: 463 ФФД: 1.0 [15:44:03]line ЗНМ: 0300000155 [15:44:03]line РНМ: 0000000000100030 [15:44:03]line Версия ККМ: 001 [15:44:03]line ФМ: 0000000000965340 [15:44:03]line ФД: 189214 [15:44:03]line ФПД: 119739767278059 [15:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189214&fm=119739767278059&tin=02508201610067®Number=0000000000100030&sum=150000 [15:44:03]written 0, free lines is 4095 [15:44:03]OFD Sender: Processing packet 189214 [packets to send 1062, broken 1061] [15:44:03]ProducePacketName [15:44:03]name=ofd_packets/00189214 [15:44:03]OFD Sender: To server: pG, [15:44:03]CommunicateWithHost lk.salyk.kg:30040 [15:44:03]ConnectInit lk.salyk.kg [15:44:04]Write to MH i2c: 01 00 00 82 56 D8 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 82 56 00 00 00 00 00 59 0C 44 [15:44:04]RasterBufferAndPrint [15:44:04]line [15:44:04]line [15:44:04]line [15:44:04]line [15:44:04]line [15:44:04]written 0, free lines is 3165 [15:44:04]MH_Cut [15:44:04]Write to MH i2c: D1 01 00 89 56 01 B1 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: D1 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: D1 01 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: D1 01 00 89 56 00 B0 [15:44:04]Write to MH i2c: 01 00 00 8A 56 E0 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Connected sock=10 [15:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6D 5E 0D 01 A2 E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 1F 01 00 00 F4 03 04 00 46 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E3 02 00 35 04 06 00 6C E7 16 4B 49 EB 04 AC 7E 29 90 6E B4 7F [15:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 65 47 00 37 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 39 36 35 33 34 30 10 04 04 00 1E E3 02 00 F4 03 04 00 2D 15 1A 67 B6 04 01 00 00 19 69 61 E5 39 55 85 B3 [15:44:04]CommunicateWithHost err = 0 [15:44:04]CheckOFDResponse [15:44:04]1017 (14) - 77093643461234 [15:44:04]1041 (16) - 0000000000965340 [15:44:04]1040 (4) - 189214 [15:44:04]1012 (4) - 24.10.2024 09:36 [15:44:04]1206 (1) - 0 [15:44:04]OFD Sender: Remove packet 189214 [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00189214 [15:44:04]NVStorageDeleteData [15:44:05]OFD Sender: No OFD packet to send [15:44:05]*** Cut start [15:44:05]*** Partial cut [15:44:05]*** CUTSNS_PIN = 1 [15:44:05]*** CUTSNS_PIN = 0 [15:44:05]*** Brake cut motor [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [15:44:06]*** Stop cut motor [15:44:06]*** Cut end [15:44:06]Read from MH i2c: 01 07 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 8A 56 00 00 00 00 00 FF 0F F5 [15:44:06]process_action close_receipt done [15:44:06]requested_data is exist [15:44:06]produce_requested_data [15:44:06]requested_item fm.sn is exist - process it [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 11 00 00 [15:44:06]Write to MH i2c: E2 08 00 8B 56 80 11 00 00 00 00 00 00 5B [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 17 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 17 00 8B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [15:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:06]wFMCommunicate OK [15:44:06]requested_item fd.num is exist - process it [15:44:06]SAM_PROTO_GetFieldsCounters [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 13 00 00 [15:44:06]Write to MH i2c: E2 08 00 8C 56 80 13 00 00 00 00 00 00 5E [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 62 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 62 00 8C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E3 02 00 0E 04 04 00 CF 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 98 [15:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E3 02 00 0E 04 04 00 CF 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 [15:44:06]wFMCommunicate OK [15:44:06]SAM_PROTO_GetFieldsCounters done [15:44:06]requested_item shift.num is exist - process it [15:44:06]requested_item shift.opened is exist - process it [15:44:06]req_shift_opened [15:44:06]FM_GetShiftState [15:44:06]SAM_PROTO_GetShiftState [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 13 01 00 [15:44:06]Write to MH i2c: E2 08 00 8D 56 80 13 01 00 00 00 00 00 60 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 0E 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 0E 00 8D 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3E [15:44:06]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:44:06]wFMCommunicate OK [15:44:06]SAM_PROTO_GetShiftState done [15:44:06]FM_GetShiftState done [15:44:06]req_shift_opened done [15:44:06]requested_item shift.open_date is exist - process it [15:44:06]req_shift_open_date [15:44:06]req_shift_open_date done [15:44:06]produce_requested_data done [15:44:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189214,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:44:06]process_action_free close_receipt [15:44:06]json_value_free [15:44:06]json_value_free done [15:44:06]process_json_proto returns [15:44:06]Send response to host [15:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189214,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:44:06]free response buf [15:44:06]execute_script done [15:44:06]execute_script returns [15:44:06]free content buf [15:44:06]Sock 9.Close socket [15:44:06]Sock 9.Thread stoped [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [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:07]accept exits with 8 [15:46:07]New connection [15:46:07]New thread 3067215204 created [15:46:07]Thread 3067071844 joined [15:46:07]Waiting for new connection... [15:46:07] Sock 8.Parse request [15:46:07]Sock 8.Check first char [15:46:07]Sock 8.First char is OK [15:46:07]request: POST /json_proto HTTP/1.0 [15:46:07]Method: POST [15:46:07]URL: /json_proto [15:46:07]Method is POST - this is cgi request [15:46:07]url: /json_proto [15:46:07]query_string will be loaded in cgi processing [15:46:07]execute_cgi json_proto POST (null) [15:46:07]execute_cgi path=json_proto method=POST [15:46:07]POST find Content-Length [15:46:07]Host: 172.17.42.131:8080 [15:46:07]Content-Length: 683 [15:46:07]Content-Type: application/json [15:46:07] [15:46:07]POST finish read [15:46:07]Found Content-Length = 683 [15:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:46:07]execute_script... [15:46: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)211281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:46:07]POST & json_proto [15:46:07]process_json_proto [15:46:07]json parsed OK: [15:46:07]protocol is kg_v1.0 [15:46:07]action value=close_receipt [15:46:07]process_action close_receipt [15:46:07]cmd_close_receipt [15:46:07]MH_GetDate [15:46:07]Write to MH i2c: F0 00 00 8E 56 D3 [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 09 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: F0 09 00 8E 56 00 C3 6B 1A 67 A0 18 CA 66 73 [15:46:07]GetLastDocTimeStamp 1729784646 [15:46:07]current date 1729784771 [15:46:07]FM_GetShiftState [15:46:07]SAM_PROTO_GetShiftState [15:46:07]wFMCommunicate request_size=4 [15:46:07]MH_SAM_APDU [15:46:07]CAPDU: 80 13 01 00 [15:46:07]Write to MH i2c: E2 08 00 8F 56 80 13 01 00 00 00 00 00 62 [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:07]Read from MH i2c: E2 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: E2 0E 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: E2 0E 00 8F 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 40 [15:46:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:46:07]wFMCommunicate OK [15:46:07]SAM_PROTO_GetShiftState done [15:46:07]FM_GetShiftState done [15:46:07]opened in 1729728961 [15:46:07]opened+sec_in_day 1729815361 [15:46:07]quantity*price = 50025 [15:46:07]sum+1 = 50027 [15:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 288 24.10.2024 15:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189215 ФПД: 265866117047596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189215&fm=265866117047596&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:08]StoreToDocumentArchive [15:46:08]shift 463 fd 189215 [15:46:08]save to /storage/0463/doc_00189215 [15:46:08]save last doc name /storage/0463/doc_00189215 to /storage/kkm_last_doc_name [15:46:08]save OK [15:46:08]Clear old archive folders... [15:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:46:08]tlvbuf is 0155E770 [15:46:08]SAM_PROTO_ClearQueue [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 09 00 00 [15:46:08]Write to MH i2c: E2 08 00 9C 56 80 09 00 00 00 00 00 00 64 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 03 00 9C 56 00 90 00 66 [15:46:08]RAPDU: 90 00 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_ClearQueue done [15:46:08]KKMCreateOFDPacket [15:46:08]OFDProtocolAddRootSTLVToBuf [15:46:08]FM_MakeSignedData [15:46:08]FM_MakeSignedData [15:46:08]SAM_PROTO_SignData [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 0D 01 02 [15:46:08]Write to MH i2c: E2 08 00 9D 56 80 0D 01 02 00 00 00 00 6C [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 9D 56 00 90 00 67 [15:46:09]RAPDU: 90 00 [15:46:09]wFMCommunicate OK [15:46:09]wFMCommunicate request_size=255 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C3 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E3 02 [15:46:09]Write to MH i2c: E2 02 01 9E 56 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C3 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E3 02 00 00 1D [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 9E 56 00 90 00 68 [15:46:09]RAPDU: 90 00 [15:46:09]wFMCommunicate OK [15:46:09]wFMCommunicate request_size=16 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 CD C7 76 E5 2C [15:46:09]Write to MH i2c: E2 13 00 9F 56 80 0D 02 02 0B 00 00 35 04 06 00 F1 CD C7 76 E5 2C 00 00 D0 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 03 00 9F 56 00 90 00 69 [15:46:09]RAPDU: 90 00 [15:46:09]wFMCommunicate OK [15:46:09]wFMCommunicate request_size=4 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 0D 03 02 [15:46:09]Write to MH i2c: E2 08 00 A0 56 80 0D 03 02 00 00 00 00 71 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0B 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0B 00 A0 56 00 1A 5C D7 A5 E2 E3 50 D2 90 00 4B [15:46:09]RAPDU: 1A 5C D7 A5 E2 E3 50 D2 90 00 [15:46:09]wFMCommunicate OK [15:46:09]SAM_PROTO_SignData done [15:46:09]FM_MakeSignedData done [15:46:09]CreateOFDProtocolMessage [15:46:09]wFMCommunicate request_size=4 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 11 00 00 [15:46:09]Write to MH i2c: E2 08 00 A1 56 80 11 00 00 00 00 00 00 71 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 17 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 17 00 A1 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [15:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:09]wFMCommunicate OK [15:46:09]CreateOFDProtocolMessage done [15:46:09]OFDSenderStorePacket 189215 [15:46:09]StoreOFDPacket docnum=189215 [15:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D1 78 0D 01 7C FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C3 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E3 02 00 35 04 06 00 F1 CD C7 76 E5 2C 1A 5C D7 A5 E2 E3 50 D2 [15:46:09]CheckFolder [15:46:09]dirname=/storage/ofd_packets [15:46:09]CheckFolder done [15:46:09]ProducePacketName [15:46:09]name=ofd_packets/00189215 [15:46:09]NVStorageSaveData ofd_packets/00189215 [15:46:09]File name is /storage/ofd_packets/00189215 [15:46:09]Write 307 bytes [15:46:09]NVStorageSaveData done [15:46:09]OFDSenderStorePacket done [15:46:09]KKMCreateOFDPacket done [15:46:09]NVStorageSaveData kkm_last_timestamp [15:46:09]File name is /storage/kkm_last_timestamp [15:46:09]Write 4 bytes [15:46:09]NVStorageSaveData done [15:46:09]ExternCall_PrintAddStr [15:46:09]wPrintStart [15:46:09]Write to MH i2c: 01 00 00 A2 56 F8 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 A2 56 00 00 00 00 00 FF 0F 0D [15:46:09]RasterBufferAndPrint [15:46:09]line Счет N : (1)211281 [15:46:09]line ИНН: 02508201610067 [15:46:09]line Контрольно-Кассовый Чек [15:46:09]line ПРОДАЖА [15:46:09]line ТРК (МРК, ГНК) : 31 [15:46:09]line Товар: 2710194210 [15:46:09]line D-ENERGY ДТ-К-5 [15:46:09]line 6.480 * 77.20 [15:46:09]line = 500.26 [15:46:09]line НДС 12% НСП 1% [15:46:09]line > о реализуемом товаре [15:46:09]line ОКРУГЛЕНИЕ: -0.26 [15:46:09]line ИТОГО: 500.00 [15:46:09]line Внесено: 500.00 [15:46:09]line СДАЧА: 0.00 [15:46:09]line НСП 1% : 4.43 [15:46:09]line НДС 12% : 53.12 [15:46:09]line Наличными: 500.00 [15:46:09]line Безнал.: 0.00 [15:46:09]line Место: АЗС № 86 "Партнер Нефть" [15:46:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:46:09]line СНО: Общий режим [15:46:09]line Чек 288 24.10.2024 15:46 [15:46:09]line Смена: 463 ФФД: 1.0 [15:46:09]line ЗНМ: 0300000155 [15:46:09]line РНМ: 0000000000100030 [15:46:09]line Версия ККМ: 001 [15:46:09]line ФМ: 0000000000965340 [15:46:09]line ФД: 189215 [15:46:09]line ФПД: 265866117047596 [15:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189215&fm=265866117047596&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:09]written 0, free lines is 4095 [15:46:09]OFD Sender: Processing packet 189215 [packets to send 1062, broken 1061] [15:46:09]ProducePacketName [15:46:09]name=ofd_packets/00189215 [15:46:09]OFD Sender: To server: pG, [15:46:09]CommunicateWithHost lk.salyk.kg:30040 [15:46:09]ConnectInit lk.salyk.kg [15:46:09]Connected sock=9 [15:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D1 78 0D 01 7C FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C3 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E3 02 00 35 04 06 00 F1 CD C7 76 E5 2C 1A 5C D7 A5 E2 E3 50 D2 [15:46:09]Write to MH i2c: 01 00 00 CD 56 23 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: 01 07 00 CD 56 00 00 00 00 00 5D 0C 93 [15:46:09]RasterBufferAndPrint [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]line [15:46:09]written 0, free lines is 3169 [15:46:09]MH_Cut [15:46:09]Write to MH i2c: D1 01 00 D4 56 01 FC [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 01 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: D1 01 00 D4 56 00 FB [15:46:09]Write to MH i2c: 01 00 00 D5 56 2B [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F EB 47 00 77 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 39 36 35 33 34 30 10 04 04 00 1F E3 02 00 F4 03 04 00 AB 15 1A 67 B6 04 01 00 00 DF B9 49 43 3E 9C 1A E7 [15:46:10]CommunicateWithHost err = 0 [15:46:10]CheckOFDResponse [15:46:10]1017 (14) - 77093643461234 [15:46:10]1041 (16) - 0000000000965340 [15:46:10]1040 (4) - 189215 [15:46:10]1012 (4) - 24.10.2024 09:38 [15:46:10]1206 (1) - 0 [15:46:10]OFD Sender: Remove packet 189215 [15:46:10]ProducePacketName [15:46:10]name=ofd_packets/00189215 [15:46:10]NVStorageDeleteData [15:46:10]OFD Sender: No OFD packet to send [15:46:11]*** Cut start [15:46:11]*** Partial cut [15:46:11]*** CUTSNS_PIN = 1 [15:46:11]*** CUTSNS_PIN = 0 [15:46:11]*** Brake cut motor [15:46:11]Read from MH i2c: 01 [15:46:11]MH_I2C_Read... [15:46:11]*** Stop cut motor [15:46:11]*** Cut end [15:46:11]Read from MH i2c: 01 07 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: 01 07 00 D5 56 00 00 00 00 00 FF 0F 40 [15:46:11]process_action close_receipt done [15:46:11]requested_data is exist [15:46:11]produce_requested_data [15:46:11]requested_item fm.sn is exist - process it [15:46:11]wFMCommunicate request_size=4 [15:46:11]MH_SAM_APDU [15:46:11]CAPDU: 80 11 00 00 [15:46:11]Write to MH i2c: E2 08 00 D6 56 80 11 00 00 00 00 00 00 A6 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:11]Read from MH i2c: E2 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 17 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: E2 17 00 D6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [15:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:11]wFMCommunicate OK [15:46:11]requested_item fd.num is exist - process it [15:46:11]SAM_PROTO_GetFieldsCounters [15:46:11]wFMCommunicate request_size=4 [15:46:11]MH_SAM_APDU [15:46:11]CAPDU: 80 13 00 00 [15:46:11]Write to MH i2c: E2 08 00 D7 56 80 13 00 00 00 00 00 00 A9 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:12]Read from MH i2c: E2 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 62 00 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 62 00 D7 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E3 02 00 0E 04 04 00 CF 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 E7 [15:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E3 02 00 0E 04 04 00 CF 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 [15:46:12]wFMCommunicate OK [15:46:12]SAM_PROTO_GetFieldsCounters done [15:46:12]requested_item shift.num is exist - process it [15:46:12]requested_item shift.opened is exist - process it [15:46:12]req_shift_opened [15:46:12]FM_GetShiftState [15:46:12]SAM_PROTO_GetShiftState [15:46:12]wFMCommunicate request_size=4 [15:46:12]MH_SAM_APDU [15:46:12]CAPDU: 80 13 01 00 [15:46:12]Write to MH i2c: E2 08 00 D8 56 80 13 01 00 00 00 00 00 AB [15:46:12]Write i2c OK [15:46:12]MH_I2C_Read... [15:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:12]Read from MH i2c: E2 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 0E 00 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: E2 0E 00 D8 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 89 [15:46:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:46:12]wFMCommunicate OK [15:46:12]SAM_PROTO_GetShiftState done [15:46:12]FM_GetShiftState done [15:46:12]req_shift_opened done [15:46:12]requested_item shift.open_date is exist - process it [15:46:12]req_shift_open_date [15:46:12]req_shift_open_date done [15:46:12]produce_requested_data done [15:46:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189215,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:46:12]process_action_free close_receipt [15:46:12]json_value_free [15:46:12]json_value_free done [15:46:12]process_json_proto returns [15:46:12]Send response to host [15:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189215,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:46:12]free response buf [15:46:12]execute_script done [15:46:12]execute_script returns [15:46:12]free content buf [15:46:12]Sock 8.Close socket [15:46:12]Sock 8.Thread stoped [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:28]accept exits with 10 [15:46:28]New connection [15:46:28]New thread 3067071844 created [15:46:28]Thread 3067215204 joined [15:46:28]Waiting for new connection... [15:46:28] Sock 10.Parse request [15:46:28]Sock 10.Check first char [15:46:28]Sock 10.First char is OK [15:46:28]request: POST /json_proto HTTP/1.0 [15:46:28]Method: POST [15:46:28]URL: /json_proto [15:46:28]Method is POST - this is cgi request [15:46:28]url: /json_proto [15:46:28]query_string will be loaded in cgi processing [15:46:28]execute_cgi json_proto POST (null) [15:46:28]execute_cgi path=json_proto method=POST [15:46:28]POST find Content-Length [15:46:28]Host: 172.17.42.131:8080 [15:46:28]Content-Length: 819 [15:46:28]Content-Type: application/json [15:46:28] [15:46:28]POST finish read [15:46:28]Found Content-Length = 819 [15:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:28]execute_script... [15:46: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)211280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:28]POST & json_proto [15:46:28]process_json_proto [15:46:28]json parsed OK: [15:46:28]protocol is kg_v1.0 [15:46:28]action value=close_receipt [15:46:28]process_action close_receipt [15:46:28]cmd_close_receipt [15:46:28]MH_GetDate [15:46:28]Write to MH i2c: F0 00 00 D9 56 1E [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: F0 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: F0 09 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: F0 09 00 D9 56 00 D8 6B 1A 67 A0 18 CA 66 D3 [15:46:28]GetLastDocTimeStamp 1729784771 [15:46:28]current date 1729784792 [15:46:28]FM_GetShiftState [15:46:28]SAM_PROTO_GetShiftState [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 13 01 00 [15:46:28]Write to MH i2c: E2 08 00 DA 56 80 13 01 00 00 00 00 00 AD [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0E 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0E 00 DA 56 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8B [15:46:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_GetShiftState done [15:46:28]FM_GetShiftState done [15:46:28]opened in 1729728961 [15:46:28]opened+sec_in_day 1729815361 [15:46:28]quantity*price = 200043 [15:46:28]sum+1 = 200044 [15:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 289 24.10.2024 15:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189216 ФПД: 51371976191773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189216&fm=51371976191773&tin=02508201610067®Number=0000000000100030&sum=200043 [15:46:29]StoreToDocumentArchive [15:46:29]shift 463 fd 189216 [15:46:29]save to /storage/0463/doc_00189216 [15:46:29]save last doc name /storage/0463/doc_00189216 to /storage/kkm_last_doc_name [15:46:29]save OK [15:46:29]Clear old archive folders... [15:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:29]tlvbuf is 014ADBF0 [15:46:29]SAM_PROTO_ClearQueue [15:46:29]wFMCommunicate request_size=4 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 09 00 00 [15:46:29]Write to MH i2c: E2 08 00 E7 56 80 09 00 00 00 00 00 00 AF [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 03 00 E7 56 00 90 00 B1 [15:46:29]RAPDU: 90 00 [15:46:29]wFMCommunicate OK [15:46:29]SAM_PROTO_ClearQueue done [15:46:29]KKMCreateOFDPacket [15:46:29]OFDProtocolAddRootSTLVToBuf [15:46:29]FM_MakeSignedData [15:46:29]FM_MakeSignedData [15:46:29]SAM_PROTO_SignData [15:46:29]wFMCommunicate request_size=4 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 0D 01 02 [15:46:29]Write to MH i2c: E2 08 00 E8 56 80 0D 01 02 00 00 00 00 B7 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 E8 56 00 90 00 B2 [15:46:30]RAPDU: 90 00 [15:46:30]wFMCommunicate OK [15:46:30]wFMCommunicate request_size=255 [15:46:30]MH_SAM_APDU [15:46: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 33 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 21 01 00 00 F4 03 04 00 D8 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E3 02 00 35 04 06 00 2E [15:46:30]Write to MH i2c: E2 02 01 E9 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 33 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 21 01 00 00 F4 03 04 00 D8 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E3 02 00 35 04 06 00 2E 00 00 11 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 E9 56 00 90 00 B3 [15:46:30]RAPDU: 90 00 [15:46:30]wFMCommunicate OK [15:46:30]wFMCommunicate request_size=10 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 0D 02 02 05 B8 F8 64 6F 1D [15:46:30]Write to MH i2c: E2 0D 00 EA 56 80 0D 02 02 05 00 B8 F8 64 6F 1D 00 00 64 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 EA 56 00 90 00 B4 [15:46:30]RAPDU: 90 00 [15:46:30]wFMCommunicate OK [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 0D 03 02 [15:46:30]Write to MH i2c: E2 08 00 EB 56 80 0D 03 02 00 00 00 00 BC [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0B 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0B 00 EB 56 00 74 0F 5C 01 CB 5D C1 DE 90 00 64 [15:46:30]RAPDU: 74 0F 5C 01 CB 5D C1 DE 90 00 [15:46:30]wFMCommunicate OK [15:46:30]SAM_PROTO_SignData done [15:46:30]FM_MakeSignedData done [15:46:30]CreateOFDProtocolMessage [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 11 00 00 [15:46:30]Write to MH i2c: E2 08 00 EC 56 80 11 00 00 00 00 00 00 BC [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 17 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 17 00 EC 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [15:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:30]wFMCommunicate OK [15:46:30]CreateOFDProtocolMessage done [15:46:30]OFDSenderStorePacket 189216 [15:46:30]StoreOFDPacket docnum=189216 [15:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA AA 07 01 AB 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 33 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 21 01 00 00 F4 03 04 00 D8 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E3 02 00 35 04 06 00 2E B8 F8 64 6F 1D 74 0F 5C 01 CB 5D C1 DE [15:46:30]CheckFolder [15:46:30]dirname=/storage/ofd_packets [15:46:30]CheckFolder done [15:46:30]ProducePacketName [15:46:30]name=ofd_packets/00189216 [15:46:30]NVStorageSaveData ofd_packets/00189216 [15:46:30]File name is /storage/ofd_packets/00189216 [15:46:30]Write 301 bytes [15:46:30]NVStorageSaveData done [15:46:30]OFDSenderStorePacket done [15:46:30]KKMCreateOFDPacket done [15:46:30]NVStorageSaveData kkm_last_timestamp [15:46:30]File name is /storage/kkm_last_timestamp [15:46:30]Write 4 bytes [15:46:30]NVStorageSaveData done [15:46:30]ExternCall_PrintAddStr [15:46:30]wPrintStart [15:46:30]Write to MH i2c: 01 00 00 ED 56 43 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 07 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 07 00 ED 56 00 00 00 00 00 FF 0F 58 [15:46:30]RasterBufferAndPrint [15:46:30]line Счет N : (1)211280 [15:46:30]line ИНН: 02508201610067 [15:46:30]line Контрольно-Кассовый Чек [15:46:30]line ПРОДАЖА [15:46:30]line ТРК (МРК, ГНК) : 23 [15:46:30]line Товар: 2710124500 [15:46:30]line Аи-95-К-3 [15:46:30]line 26.960 * 74.20 [15:46:30]line = 2000.43 [15:46:30]line НДС 12% НСП 1% [15:46:30]line > о реализуемом товаре [15:46:30]line ИТОГО: 2000.43 [15:46:30]line НСП 1% : 17.70 [15:46:30]line НДС 12% : 212.43 [15:46:30]line Наличными: 0.00 [15:46:30]line Безнал.: 2000.43 [15:46:30]line Место: АЗС № 86 "Партнер Нефть" [15:46:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:46:30]line СНО: Общий режим [15:46:30]line Чек 289 24.10.2024 15:46 [15:46:30]line Смена: 463 ФФД: 1.0 [15:46:30]line ЗНМ: 0300000155 [15:46:30]line РНМ: 0000000000100030 [15:46:30]line Версия ККМ: 001 [15:46:30]line Платежная система: Бакай Банк [15:46:30]line ФМ: 0000000000965340 [15:46:30]line ФД: 189216 [15:46:30]line ФПД: 51371976191773 [15:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154632&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189216&fm=51371976191773&tin=02508201610067®Number=0000000000100030&sum=200043 [15:46:30]OFD Sender: Processing packet 189216 [packets to send 1062, broken 1061] [15:46:30]ProducePacketName [15:46:30]name=ofd_packets/00189216 [15:46:30]OFD Sender: To server: pG, [15:46:30]CommunicateWithHost lk.salyk.kg:30040 [15:46:30]ConnectInit lk.salyk.kg [15:46:30]written 0, free lines is 4095 [15:46:30]Connected sock=9 [15:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA AA 07 01 AB 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 33 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 21 01 00 00 F4 03 04 00 D8 6B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E3 02 00 35 04 06 00 2E B8 F8 64 6F 1D 74 0F 5C 01 CB 5D C1 DE [15:46:31]Write to MH i2c: 01 00 00 17 57 6E [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 17 57 00 00 00 00 00 6D 0C EE [15:46:31]RasterBufferAndPrint [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]written 0, free lines is 3185 [15:46:31]MH_Cut [15:46:31]Write to MH i2c: D1 01 00 1E 57 01 47 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: D1 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: D1 01 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: D1 01 00 1E 57 00 46 [15:46:31]Write to MH i2c: 01 00 00 1F 57 76 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C D7 47 00 22 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 39 36 35 33 34 30 10 04 04 00 20 E3 02 00 F4 03 04 00 C0 15 1A 67 B6 04 01 00 00 70 2A 44 51 29 D6 10 DE [15:46:31]CommunicateWithHost err = 0 [15:46:31]CheckOFDResponse [15:46:31]1017 (14) - 77093643461234 [15:46:31]1041 (16) - 0000000000965340 [15:46:31]1040 (4) - 189216 [15:46:31]1012 (4) - 24.10.2024 09:39 [15:46:31]1206 (1) - 0 [15:46:31]OFD Sender: Remove packet 189216 [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00189216 [15:46:31]NVStorageDeleteData [15:46:31]OFD Sender: No OFD packet to send [15:46:32]*** Cut start [15:46:32]*** Partial cut [15:46:32]*** CUTSNS_PIN = 1 [15:46:32]*** CUTSNS_PIN = 0 [15:46:32]*** Brake cut motor [15:46:33]Read from MH i2c: 01 [15:46:33]MH_I2C_Read... [15:46:33]*** Stop cut motor [15:46:33]*** Cut end [15:46:33]Read from MH i2c: 01 07 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: 01 07 00 1F 57 00 00 00 00 00 FF 0F 8B [15:46:33]process_action close_receipt done [15:46:33]requested_data is exist [15:46:33]produce_requested_data [15:46:33]requested_item fm.sn is exist - process it [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 11 00 00 [15:46:33]Write to MH i2c: E2 08 00 20 57 80 11 00 00 00 00 00 00 F1 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 17 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 17 00 20 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [15:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:33]wFMCommunicate OK [15:46:33]requested_item fd.num is exist - process it [15:46:33]SAM_PROTO_GetFieldsCounters [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 13 00 00 [15:46:33]Write to MH i2c: E2 08 00 21 57 80 13 00 00 00 00 00 00 F4 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 62 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 62 00 21 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E3 02 00 0E 04 04 00 CF 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 36 [15:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E3 02 00 0E 04 04 00 CF 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 [15:46:33]wFMCommunicate OK [15:46:33]SAM_PROTO_GetFieldsCounters done [15:46:33]requested_item shift.num is exist - process it [15:46:33]requested_item shift.opened is exist - process it [15:46:33]req_shift_opened [15:46:33]FM_GetShiftState [15:46:33]SAM_PROTO_GetShiftState [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 13 01 00 [15:46:33]Write to MH i2c: E2 08 00 22 57 80 13 01 00 00 00 00 00 F6 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 22 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D4 [15:46:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:46:33]wFMCommunicate OK [15:46:33]SAM_PROTO_GetShiftState done [15:46:33]FM_GetShiftState done [15:46:33]req_shift_opened done [15:46:33]requested_item shift.open_date is exist - process it [15:46:33]req_shift_open_date [15:46:33]req_shift_open_date done [15:46:33]produce_requested_data done [15:46:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189216,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:46:33]process_action_free close_receipt [15:46:33]json_value_free [15:46:33]json_value_free done [15:46:33]process_json_proto returns [15:46:33]Send response to host [15:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189216,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:46:33]free response buf [15:46:33]execute_script done [15:46:33]execute_script returns [15:46:33]free content buf [15:46:33]Sock 10.Close socket [15:46:33]Sock 10.Thread stoped [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:09]accept exits with 8 [15:55:09]New connection [15:55:09]New thread 3067215204 created [15:55:09]Thread 3067071844 joined [15:55:09]Waiting for new connection... [15:55:09] Sock 8.Parse request [15:55:09]Sock 8.Check first char [15:55:09]Sock 8.First char is OK [15:55:09]request: POST /json_proto HTTP/1.0 [15:55:09]Method: POST [15:55:09]URL: /json_proto [15:55:09]Method is POST - this is cgi request [15:55:09]url: /json_proto [15:55:09]query_string will be loaded in cgi processing [15:55:09]execute_cgi json_proto POST (null) [15:55:09]execute_cgi path=json_proto method=POST [15:55:09]POST find Content-Length [15:55:09]Host: 172.17.42.131:8080 [15:55:09]Content-Length: 677 [15:55:09]Content-Type: application/json [15:55:09] [15:55:09]POST finish read [15:55:09]Found Content-Length = 677 [15:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:55:09]execute_script... [15:55: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)211282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:55:09]POST & json_proto [15:55:09]process_json_proto [15:55:09]json parsed OK: [15:55:09]protocol is kg_v1.0 [15:55:09]action value=close_receipt [15:55:09]process_action close_receipt [15:55:09]cmd_close_receipt [15:55:09]MH_GetDate [15:55:09]Write to MH i2c: F0 00 00 23 57 69 [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 23 57 00 E1 6D 1A 67 A0 18 CA 66 29 [15:55:09]GetLastDocTimeStamp 1729784792 [15:55:09]current date 1729785313 [15:55:09]FM_GetShiftState [15:55:09]SAM_PROTO_GetShiftState [15:55:09]wFMCommunicate request_size=4 [15:55:09]MH_SAM_APDU [15:55:09]CAPDU: 80 13 01 00 [15:55:09]Write to MH i2c: E2 08 00 24 57 80 13 01 00 00 00 00 00 F8 [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:09]Read from MH i2c: E2 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 24 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D6 [15:55:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:55:09]wFMCommunicate OK [15:55:09]SAM_PROTO_GetShiftState done [15:55:09]FM_GetShiftState done [15:55:09]opened in 1729728961 [15:55:09]opened+sec_in_day 1729815361 [15:55:09]quantity*price = 50041 [15:55:09]sum+1 = 50042 [15:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 290 24.10.2024 15:55 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189217 ФПД: 112061426086744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189217&fm=112061426086744&tin=02508201610067®Number=0000000000100030&sum=50000 [15:55:10]StoreToDocumentArchive [15:55:10]shift 463 fd 189217 [15:55:10]save to /storage/0463/doc_00189217 [15:55:10]save last doc name /storage/0463/doc_00189217 to /storage/kkm_last_doc_name [15:55:10]save OK [15:55:10]Clear old archive folders... [15:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:10]tlvbuf is 014B4A20 [15:55:10]SAM_PROTO_ClearQueue [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 09 00 00 [15:55:10]Write to MH i2c: E2 08 00 31 57 80 09 00 00 00 00 00 00 FA [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 31 57 00 90 00 FC [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]SAM_PROTO_ClearQueue done [15:55:10]KKMCreateOFDPacket [15:55:10]OFDProtocolAddRootSTLVToBuf [15:55:10]FM_MakeSignedData [15:55:10]FM_MakeSignedData [15:55:10]SAM_PROTO_SignData [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 0D 01 02 [15:55:10]Write to MH i2c: E2 08 00 32 57 80 0D 01 02 00 00 00 00 02 [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 32 57 00 90 00 FD [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]wFMCommunicate request_size=255 [15:55:10]MH_SAM_APDU [15:55: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 E1 6D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E3 02 00 35 04 06 00 65 [15:55:10]Write to MH i2c: E2 02 01 33 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 E1 6D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E3 02 00 35 04 06 00 65 00 00 A2 [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 33 57 00 90 00 FE [15:55:11]RAPDU: 90 00 [15:55:11]wFMCommunicate OK [15:55:11]wFMCommunicate request_size=10 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 0D 02 02 05 EB 55 7E B3 58 [15:55:11]Write to MH i2c: E2 0D 00 34 57 80 0D 02 02 05 00 EB 55 7E B3 58 00 00 D8 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 34 57 00 90 00 FF [15:55:11]RAPDU: 90 00 [15:55:11]wFMCommunicate OK [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 0D 03 02 [15:55:11]Write to MH i2c: E2 08 00 35 57 80 0D 03 02 00 00 00 00 07 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 35 57 00 1A 4E 66 F1 45 04 0A BD 90 00 D7 [15:55:11]RAPDU: 1A 4E 66 F1 45 04 0A BD 90 00 [15:55:11]wFMCommunicate OK [15:55:11]SAM_PROTO_SignData done [15:55:11]FM_MakeSignedData done [15:55:11]CreateOFDProtocolMessage [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 11 00 00 [15:55:11]Write to MH i2c: E2 08 00 36 57 80 11 00 00 00 00 00 00 07 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 36 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [15:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:11]wFMCommunicate OK [15:55:11]CreateOFDProtocolMessage done [15:55:11]OFDSenderStorePacket 189217 [15:55:11]StoreOFDPacket docnum=189217 [15:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 95 07 01 09 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 E1 6D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E3 02 00 35 04 06 00 65 EB 55 7E B3 58 1A 4E 66 F1 45 04 0A BD [15:55:11]CheckFolder [15:55:11]dirname=/storage/ofd_packets [15:55:11]CheckFolder done [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00189217 [15:55:11]NVStorageSaveData ofd_packets/00189217 [15:55:11]File name is /storage/ofd_packets/00189217 [15:55:11]Write 301 bytes [15:55:11]NVStorageSaveData done [15:55:11]OFDSenderStorePacket done [15:55:11]KKMCreateOFDPacket done [15:55:11]NVStorageSaveData kkm_last_timestamp [15:55:11]File name is /storage/kkm_last_timestamp [15:55:11]Write 4 bytes [15:55:11]NVStorageSaveData done [15:55:11]ExternCall_PrintAddStr [15:55:11]wPrintStart [15:55:11]Write to MH i2c: 01 00 00 37 57 8E [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 37 57 00 00 00 00 00 FF 0F A3 [15:55:11]RasterBufferAndPrint [15:55:11]line Счет N : (1)211282 [15:55:11]line ИНН: 02508201610067 [15:55:11]line Контрольно-Кассовый Чек [15:55:11]line ПРОДАЖА [15:55:11]line ТРК (МРК, ГНК) : 12 [15:55:11]line Товар: 2710124130 [15:55:11]line Аи-92-К-3 [15:55:11]line 7.480 * 66.90 [15:55:11]line = 500.41 [15:55:11]line НДС 12% НСП 1% [15:55:11]line > о реализуемом товаре [15:55:11]line ОКРУГЛЕНИЕ: -0.41 [15:55:11]line ИТОГО: 500.00 [15:55:11]line Внесено: 500.00 [15:55:11]line СДАЧА: 0.00 [15:55:11]line НСП 1% : 4.43 [15:55:11]line НДС 12% : 53.14 [15:55:11]line Наличными: 500.00 [15:55:11]line Безнал.: 0.00 [15:55:11]line Место: АЗС № 86 "Партнер Нефть" [15:55:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:55:11]line СНО: Общий режим [15:55:11]line Чек 290 24.10.2024 15:55 [15:55:11]line Смена: 463 ФФД: 1.0 [15:55:11]line ЗНМ: 0300000155 [15:55:11]line РНМ: 0000000000100030 [15:55:11]line Версия ККМ: 001 [15:55:11]line ФМ: 0000000000965340 [15:55:11]line ФД: 189217 [15:55:11]line ФПД: 112061426086744 [15:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189217&fm=112061426086744&tin=02508201610067®Number=0000000000100030&sum=50000 [15:55:11]written 0, free lines is 4095 [15:55:11]OFD Sender: Processing packet 189217 [packets to send 1062, broken 1061] [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00189217 [15:55:11]OFD Sender: To server: pG, [15:55:11]CommunicateWithHost lk.salyk.kg:30040 [15:55:11]ConnectInit lk.salyk.kg [15:55:11]Connected sock=9 [15:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 95 07 01 09 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 E1 6D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E3 02 00 35 04 06 00 65 EB 55 7E B3 58 1A 4E 66 F1 45 04 0A BD [15:55:11]Write to MH i2c: 01 00 00 62 57 B9 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 62 57 00 00 00 00 00 51 0C 1D [15:55:11]RasterBufferAndPrint [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]written 0, free lines is 3158 [15:55:11]MH_Cut [15:55:11]Write to MH i2c: D1 01 00 69 57 01 92 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 69 57 00 91 [15:55:11]Write to MH i2c: 01 00 00 6A 57 C1 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F2 87 47 00 54 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 39 36 35 33 34 30 10 04 04 00 21 E3 02 00 F4 03 04 00 C9 17 1A 67 B6 04 01 00 00 65 F5 48 D7 37 42 AC 14 [15:55:12]CommunicateWithHost err = 0 [15:55:12]CheckOFDResponse [15:55:12]1017 (14) - 77093643461234 [15:55:12]1041 (16) - 0000000000965340 [15:55:12]1040 (4) - 189217 [15:55:12]1012 (4) - 24.10.2024 09:47 [15:55:12]1206 (1) - 0 [15:55:12]OFD Sender: Remove packet 189217 [15:55:12]ProducePacketName [15:55:12]name=ofd_packets/00189217 [15:55:12]NVStorageDeleteData [15:55:12]OFD Sender: No OFD packet to send [15:55:13]*** Cut start [15:55:13]*** Partial cut [15:55:13]*** CUTSNS_PIN = 1 [15:55:13]*** CUTSNS_PIN = 0 [15:55:13]*** Brake cut motor [15:55:13]Read from MH i2c: 01 [15:55:13]MH_I2C_Read... [15:55:13]*** Stop cut motor [15:55:13]*** Cut end [15:55:13]Read from MH i2c: 01 07 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: 01 07 00 6A 57 00 00 00 00 00 FF 0F D6 [15:55:13]process_action close_receipt done [15:55:13]requested_data is exist [15:55:13]produce_requested_data [15:55:13]requested_item fm.sn is exist - process it [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 11 00 00 [15:55:13]Write to MH i2c: E2 08 00 6B 57 80 11 00 00 00 00 00 00 3C [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:13]Read from MH i2c: E2 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 17 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 17 00 6B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [15:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:13]wFMCommunicate OK [15:55:13]requested_item fd.num is exist - process it [15:55:13]SAM_PROTO_GetFieldsCounters [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 13 00 00 [15:55:13]Write to MH i2c: E2 08 00 6C 57 80 13 00 00 00 00 00 00 3F [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:13]Read from MH i2c: E2 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 62 00 [15:55:13]MH_I2C_Read... [15:55:13]Read from MH i2c: E2 62 00 6C 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E3 02 00 0E 04 04 00 CF 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 85 [15:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E3 02 00 0E 04 04 00 CF 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 [15:55:13]wFMCommunicate OK [15:55:13]SAM_PROTO_GetFieldsCounters done [15:55:13]requested_item shift.num is exist - process it [15:55:13]requested_item shift.opened is exist - process it [15:55:13]req_shift_opened [15:55:13]FM_GetShiftState [15:55:13]SAM_PROTO_GetShiftState [15:55:13]wFMCommunicate request_size=4 [15:55:13]MH_SAM_APDU [15:55:13]CAPDU: 80 13 01 00 [15:55:13]Write to MH i2c: E2 08 00 6D 57 80 13 01 00 00 00 00 00 41 [15:55:13]Write i2c OK [15:55:13]MH_I2C_Read... [15:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:14]Read from MH i2c: E2 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 0E 00 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 0E 00 6D 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1F [15:55:14]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:55:14]wFMCommunicate OK [15:55:14]SAM_PROTO_GetShiftState done [15:55:14]FM_GetShiftState done [15:55:14]req_shift_opened done [15:55:14]requested_item shift.open_date is exist - process it [15:55:14]req_shift_open_date [15:55:14]req_shift_open_date done [15:55:14]produce_requested_data done [15:55:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189217,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:55:14]process_action_free close_receipt [15:55:14]json_value_free [15:55:14]json_value_free done [15:55:14]process_json_proto returns [15:55:14]Send response to host [15:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189217,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:55:14]free response buf [15:55:14]execute_script done [15:55:14]execute_script returns [15:55:14]free content buf [15:55:14]Sock 8.Close socket [15:55:14]Sock 8.Thread stoped [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:54]accept exits with 10 [15:58:54]New connection [15:58:54]New thread 3067071844 created [15:58:54]Thread 3067215204 joined [15:58:54]Waiting for new connection... [15:58:54] Sock 10.Parse request [15:58:54]Sock 10.Check first char [15:58:54]Sock 10.First char is OK [15:58:54]request: POST /json_proto HTTP/1.0 [15:58:54]Method: POST [15:58:54]URL: /json_proto [15:58:54]Method is POST - this is cgi request [15:58:54]url: /json_proto [15:58:54]query_string will be loaded in cgi processing [15:58:54]execute_cgi json_proto POST (null) [15:58:54]execute_cgi path=json_proto method=POST [15:58:54]POST find Content-Length [15:58:54]Host: 172.17.42.131:8080 [15:58:54]Content-Length: 754 [15:58:54]Content-Type: application/json [15:58:54] [15:58:54]POST finish read [15:58:54]Found Content-Length = 754 [15:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30086153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:54]execute_script... [15:58: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)211283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30086153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:54]POST & json_proto [15:58:54]process_json_proto [15:58:54]json parsed OK: [15:58:54]protocol is kg_v1.0 [15:58:54]action value=close_receipt [15:58:54]process_action close_receipt [15:58:54]cmd_close_receipt [15:58:54]MH_GetDate [15:58:54]Write to MH i2c: F0 00 00 6E 57 B4 [15:58:54]Write i2c OK [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 09 00 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: F0 09 00 6E 57 00 C3 6E 1A 67 A0 18 CA 66 57 [15:58:54]GetLastDocTimeStamp 1729785313 [15:58:54]current date 1729785539 [15:58:54]FM_GetShiftState [15:58:54]SAM_PROTO_GetShiftState [15:58:54]wFMCommunicate request_size=4 [15:58:54]MH_SAM_APDU [15:58:54]CAPDU: 80 13 01 00 [15:58:54]Write to MH i2c: E2 08 00 6F 57 80 13 01 00 00 00 00 00 43 [15:58:54]Write i2c OK [15:58:54]MH_I2C_Read... [15:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 6F 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 21 [15:58:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_GetShiftState done [15:58:55]FM_GetShiftState done [15:58:55]opened in 1729728961 [15:58:55]opened+sec_in_day 1729815361 [15:58:55]quantity*price = 0 [15:58:55]sum+1 = 1 [15:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 291 24.10.2024 15:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086153 ФМ: 0000000000965340 ФД: 189218 ФПД: 179328123635436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189218&fm=179328123635436&tin=02508201610067®Number=0000000000100030&sum=0 [15:58:56]StoreToDocumentArchive [15:58:56]shift 463 fd 189218 [15:58:56]save to /storage/0463/doc_00189218 [15:58:56]save last doc name /storage/0463/doc_00189218 to /storage/kkm_last_doc_name [15:58:56]save OK [15:58:56]Clear old archive folders... [15:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:56]tlvbuf is 01537D70 [15:58:56]SAM_PROTO_ClearQueue [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 09 00 00 [15:58:56]Write to MH i2c: E2 08 00 7C 57 80 09 00 00 00 00 00 00 45 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 7C 57 00 90 00 47 [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]SAM_PROTO_ClearQueue done [15:58:56]KKMCreateOFDPacket [15:58:56]OFDProtocolAddRootSTLVToBuf [15:58:56]FM_MakeSignedData [15:58:56]FM_MakeSignedData [15:58:56]SAM_PROTO_SignData [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 01 02 [15:58:56]Write to MH i2c: E2 08 00 7D 57 80 0D 01 02 00 00 00 00 4D [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 7D 57 00 90 00 48 [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]wFMCommunicate request_size=255 [15:58:56]MH_SAM_APDU [15:58: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 33 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 23 01 00 00 F4 03 04 00 C3 6E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E3 02 00 35 04 06 00 A3 [15:58:56]Write to MH i2c: E2 02 01 7E 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 33 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 23 01 00 00 F4 03 04 00 C3 6E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E3 02 00 35 04 06 00 A3 00 00 F9 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 7E 57 00 90 00 49 [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]wFMCommunicate request_size=10 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 02 02 05 19 15 1B 86 EC [15:58:56]Write to MH i2c: E2 0D 00 7F 57 80 0D 02 02 05 00 19 15 1B 86 EC 00 00 15 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 7F 57 00 90 00 4A [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 03 02 [15:58:56]Write to MH i2c: E2 08 00 80 57 80 0D 03 02 00 00 00 00 52 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 0B 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 0B 00 80 57 00 CA 52 65 BD 99 F5 67 CE 90 00 54 [15:58:56]RAPDU: CA 52 65 BD 99 F5 67 CE 90 00 [15:58:56]wFMCommunicate OK [15:58:56]SAM_PROTO_SignData done [15:58:56]FM_MakeSignedData done [15:58:56]CreateOFDProtocolMessage [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 11 00 00 [15:58:56]Write to MH i2c: E2 08 00 81 57 80 11 00 00 00 00 00 00 52 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 17 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 17 00 81 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [15:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:58:56]wFMCommunicate OK [15:58:56]CreateOFDProtocolMessage done [15:58:56]OFDSenderStorePacket 189218 [15:58:56]StoreOFDPacket docnum=189218 [15:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 DA 07 01 69 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 33 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 23 01 00 00 F4 03 04 00 C3 6E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E3 02 00 35 04 06 00 A3 19 15 1B 86 EC CA 52 65 BD 99 F5 67 CE [15:58:56]CheckFolder [15:58:56]dirname=/storage/ofd_packets [15:58:56]CheckFolder done [15:58:56]ProducePacketName [15:58:56]name=ofd_packets/00189218 [15:58:56]NVStorageSaveData ofd_packets/00189218 [15:58:56]File name is /storage/ofd_packets/00189218 [15:58:56]Write 301 bytes [15:58:56]NVStorageSaveData done [15:58:56]OFDSenderStorePacket done [15:58:56]KKMCreateOFDPacket done [15:58:56]NVStorageSaveData kkm_last_timestamp [15:58:56]File name is /storage/kkm_last_timestamp [15:58:56]Write 4 bytes [15:58:56]NVStorageSaveData done [15:58:56]ExternCall_PrintAddStr [15:58:56]wPrintStart [15:58:56]Write to MH i2c: 01 00 00 82 57 D9 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 82 57 00 00 00 00 00 FF 0F EE [15:58:56]RasterBufferAndPrint [15:58:56]line Счет N : (1)211283 [15:58:56]line ИНН: 02508201610067 [15:58:56]line Контрольно-Кассовый Чек [15:58:56]line ПРОДАЖА [15:58:56]line ТРК (МРК, ГНК) : 12 [15:58:56]line Товар: 2710124130 [15:58:56]line Аи-92-К-3 [15:58:56]line 20.000 * 0.00 [15:58:56]line = 0.00 [15:58:56]line НДС 12% НСП 1% [15:58:56]line > о реализуемом товаре [15:58:56]line ИТОГО: 0.00 [15:58:56]line НСП 1% : 0.00 [15:58:56]line НДС 12% : 0.00 [15:58:56]line Наличными: 0.00 [15:58:56]line Безнал.: 0.00 [15:58:56]line Место: АЗС № 86 "Партнер Нефть" [15:58:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:58:56]line СНО: Общий режим [15:58:56]line Чек 291 24.10.2024 15:58 [15:58:56]line Смена: 463 ФФД: 1.0 [15:58:56]line ЗНМ: 0300000155 [15:58:56]line РНМ: 0000000000100030 [15:58:56]line Версия ККМ: 001 [15:58:56]line Талоны: ТК ГПНА Online [15:58:56]line 30086153 [15:58:56]line ФМ: 0000000000965340 [15:58:56]line ФД: 189218 [15:58:56]line ФПД: 179328123635436 [15:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189218&fm=179328123635436&tin=02508201610067®Number=0000000000100030&sum=0 [15:58:56]OFD Sender: Processing packet 189218 [packets to send 1062, broken 1061] [15:58:56]ProducePacketName [15:58:56]name=ofd_packets/00189218 [15:58:56]OFD Sender: To server: pG, [15:58:56]CommunicateWithHost lk.salyk.kg:30040 [15:58:56]ConnectInit lk.salyk.kg [15:58:56]written 0, free lines is 4095 [15:58:56]Connected sock=9 [15:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 DA 07 01 69 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 33 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 23 01 00 00 F4 03 04 00 C3 6E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E3 02 00 35 04 06 00 A3 19 15 1B 86 EC CA 52 65 BD 99 F5 67 CE [15:58:57]Write to MH i2c: 01 00 00 AC 57 03 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 AC 57 00 00 00 00 00 74 0C 8A [15:58:57]RasterBufferAndPrint [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]written 0, free lines is 3194 [15:58:57]MH_Cut [15:58:57]Write to MH i2c: D1 01 00 B3 57 01 DC [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 B3 57 00 DB [15:58:57]Write to MH i2c: 01 00 00 B4 57 0B [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 13 47 00 A6 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 39 36 35 33 34 30 10 04 04 00 22 E3 02 00 F4 03 04 00 AA 18 1A 67 B6 04 01 00 00 CB 87 52 DD 05 C0 A0 8D [15:58:57]CommunicateWithHost err = 0 [15:58:57]CheckOFDResponse [15:58:57]1017 (14) - 77093643461234 [15:58:57]1041 (16) - 0000000000965340 [15:58:57]1040 (4) - 189218 [15:58:57]1012 (4) - 24.10.2024 09:51 [15:58:57]1206 (1) - 0 [15:58:57]OFD Sender: Remove packet 189218 [15:58:57]ProducePacketName [15:58:57]name=ofd_packets/00189218 [15:58:57]NVStorageDeleteData [15:58:57]OFD Sender: No OFD packet to send [15:58:58]*** Cut start [15:58:58]*** Partial cut [15:58:58]*** CUTSNS_PIN = 1 [15:58:58]*** CUTSNS_PIN = 0 [15:58:58]*** Brake cut motor [15:58:59]Read from MH i2c: 01 [15:58:59]MH_I2C_Read... [15:58:59]*** Stop cut motor [15:58:59]*** Cut end [15:58:59]Read from MH i2c: 01 07 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: 01 07 00 B4 57 00 00 00 00 00 FF 0F 20 [15:58:59]process_action close_receipt done [15:58:59]requested_data is exist [15:58:59]produce_requested_data [15:58:59]requested_item fm.sn is exist - process it [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 11 00 00 [15:58:59]Write to MH i2c: E2 08 00 B5 57 80 11 00 00 00 00 00 00 86 [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 B5 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [15:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:58:59]wFMCommunicate OK [15:58:59]requested_item fd.num is exist - process it [15:58:59]SAM_PROTO_GetFieldsCounters [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 00 00 [15:58:59]Write to MH i2c: E2 08 00 B6 57 80 13 00 00 00 00 00 00 89 [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 B6 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E3 02 00 0E 04 04 00 CF 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 D3 [15:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E3 02 00 0E 04 04 00 CF 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 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetFieldsCounters done [15:58:59]requested_item shift.num is exist - process it [15:58:59]requested_item shift.opened is exist - process it [15:58:59]req_shift_opened [15:58:59]FM_GetShiftState [15:58:59]SAM_PROTO_GetShiftState [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 01 00 [15:58:59]Write to MH i2c: E2 08 00 B7 57 80 13 01 00 00 00 00 00 8B [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 B7 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 69 [15:58:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetShiftState done [15:58:59]FM_GetShiftState done [15:58:59]req_shift_opened done [15:58:59]requested_item shift.open_date is exist - process it [15:58:59]req_shift_open_date [15:58:59]req_shift_open_date done [15:58:59]produce_requested_data done [15:58:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189218,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [15:58:59]process_action_free close_receipt [15:58:59]json_value_free [15:58:59]json_value_free done [15:58:59]process_json_proto returns [15:58:59]Send response to host [15:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189218,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [15:58:59]free response buf [15:58:59]execute_script done [15:58:59]execute_script returns [15:58:59]free content buf [15:58:59]Sock 10.Close socket [15:58:59]Sock 10.Thread stoped [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:32]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:25]accept exits with 8 [16:01:25]New connection [16:01:25]New thread 3067215204 created [16:01:25]Thread 3067071844 joined [16:01:25]Waiting for new connection... [16:01:25] Sock 8.Parse request [16:01:25]Sock 8.Check first char [16:01:25]Sock 8.First char is OK [16:01:25]request: POST /json_proto HTTP/1.0 [16:01:25]Method: POST [16:01:25]URL: /json_proto [16:01:25]Method is POST - this is cgi request [16:01:25]url: /json_proto [16:01:25]query_string will be loaded in cgi processing [16:01:25]execute_cgi json_proto POST (null) [16:01:25]execute_cgi path=json_proto method=POST [16:01:25]POST find Content-Length [16:01:25]Host: 172.17.42.131:8080 [16:01:25]Content-Length: 679 [16:01:25]Content-Type: application/json [16:01:25] [16:01:25]POST finish read [16:01:25]Found Content-Length = 679 [16:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:25]execute_script... [16:01: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)211284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:25]POST & json_proto [16:01:25]process_json_proto [16:01:25]json parsed OK: [16:01:25]protocol is kg_v1.0 [16:01:25]action value=close_receipt [16:01:25]process_action close_receipt [16:01:25]cmd_close_receipt [16:01:25]MH_GetDate [16:01:25]Write to MH i2c: F0 00 00 B8 57 FE [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: F0 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: F0 09 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: F0 09 00 B8 57 00 59 6F 1A 67 A0 18 CA 66 38 [16:01:25]GetLastDocTimeStamp 1729785539 [16:01:25]current date 1729785689 [16:01:25]FM_GetShiftState [16:01:25]SAM_PROTO_GetShiftState [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 01 00 [16:01:25]Write to MH i2c: E2 08 00 B9 57 80 13 01 00 00 00 00 00 8D [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 B9 57 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6B [16:01:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetShiftState done [16:01:25]FM_GetShiftState done [16:01:25]opened in 1729728961 [16:01:25]opened+sec_in_day 1729815361 [16:01:25]quantity*price = 150037 [16:01:25]sum+1 = 150039 [16:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 292 24.10.2024 16:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189219 ФПД: 91181297820384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189219&fm=91181297820384&tin=02508201610067®Number=0000000000100030&sum=150000 [16:01:26]StoreToDocumentArchive [16:01:26]shift 463 fd 189219 [16:01:26]save to /storage/0463/doc_00189219 [16:01:26]save last doc name /storage/0463/doc_00189219 to /storage/kkm_last_doc_name [16:01:26]save OK [16:01:26]Clear old archive folders... [16:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:26]tlvbuf is B6F95010 [16:01:26]SAM_PROTO_ClearQueue [16:01:26]wFMCommunicate request_size=4 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 09 00 00 [16:01:26]Write to MH i2c: E2 08 00 C6 57 80 09 00 00 00 00 00 00 8F [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 C6 57 00 90 00 91 [16:01:26]RAPDU: 90 00 [16:01:26]wFMCommunicate OK [16:01:26]SAM_PROTO_ClearQueue done [16:01:26]KKMCreateOFDPacket [16:01:26]OFDProtocolAddRootSTLVToBuf [16:01:26]FM_MakeSignedData [16:01:26]FM_MakeSignedData [16:01:26]SAM_PROTO_SignData [16:01:26]wFMCommunicate request_size=4 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 0D 01 02 [16:01:26]Write to MH i2c: E2 08 00 C7 57 80 0D 01 02 00 00 00 00 97 [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 C7 57 00 90 00 92 [16:01:26]RAPDU: 90 00 [16:01:26]wFMCommunicate OK [16:01:26]wFMCommunicate request_size=255 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 59 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E3 02 00 35 04 06 00 52 ED CC DD [16:01:26]Write to MH i2c: E2 02 01 C8 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 59 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E3 02 00 35 04 06 00 52 ED CC DD 00 00 A7 [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 C8 57 00 90 00 93 [16:01:26]RAPDU: 90 00 [16:01:26]wFMCommunicate OK [16:01:26]wFMCommunicate request_size=7 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 0D 02 02 02 E2 E0 [16:01:26]Write to MH i2c: E2 0A 00 C9 57 80 0D 02 02 02 00 E2 E0 00 00 60 [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 03 00 C9 57 00 90 00 94 [16:01:26]RAPDU: 90 00 [16:01:26]wFMCommunicate OK [16:01:26]wFMCommunicate request_size=4 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 0D 03 02 [16:01:26]Write to MH i2c: E2 08 00 CA 57 80 0D 03 02 00 00 00 00 9C [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 0B 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 0B 00 CA 57 00 24 26 C9 B0 E1 E5 B4 91 90 00 6B [16:01:26]RAPDU: 24 26 C9 B0 E1 E5 B4 91 90 00 [16:01:26]wFMCommunicate OK [16:01:26]SAM_PROTO_SignData done [16:01:26]FM_MakeSignedData done [16:01:26]CreateOFDProtocolMessage [16:01:26]wFMCommunicate request_size=4 [16:01:26]MH_SAM_APDU [16:01:26]CAPDU: 80 11 00 00 [16:01:26]Write to MH i2c: E2 08 00 CB 57 80 11 00 00 00 00 00 00 9C [16:01:26]Write i2c OK [16:01:26]MH_I2C_Read... [16:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:26]Read from MH i2c: E2 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 17 00 [16:01:26]MH_I2C_Read... [16:01:26]Read from MH i2c: E2 17 00 CB 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [16:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:01:26]wFMCommunicate OK [16:01:26]CreateOFDProtocolMessage done [16:01:26]OFDSenderStorePacket 189219 [16:01:26]StoreOFDPacket docnum=189219 [16:01:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C3 BA 04 01 3F B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 59 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E3 02 00 35 04 06 00 52 ED CC DD E2 E0 24 26 C9 B0 E1 E5 B4 91 [16:01:26]CheckFolder [16:01:26]dirname=/storage/ofd_packets [16:01:26]CheckFolder done [16:01:26]ProducePacketName [16:01:26]name=ofd_packets/00189219 [16:01:26]NVStorageSaveData ofd_packets/00189219 [16:01:26]File name is /storage/ofd_packets/00189219 [16:01:26]Write 298 bytes [16:01:26]NVStorageSaveData done [16:01:26]OFDSenderStorePacket done [16:01:26]KKMCreateOFDPacket done [16:01:26]NVStorageSaveData kkm_last_timestamp [16:01:26]File name is /storage/kkm_last_timestamp [16:01:26]Write 4 bytes [16:01:26]NVStorageSaveData done [16:01:27]ExternCall_PrintAddStr [16:01:27]wPrintStart [16:01:27]Write to MH i2c: 01 00 00 CC 57 23 [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 CC 57 00 00 00 00 00 FF 0F 38 [16:01:27]RasterBufferAndPrint [16:01:27]line Счет N : (1)211284 [16:01:27]line ИНН: 02508201610067 [16:01:27]line Контрольно-Кассовый Чек [16:01:27]line ПРОДАЖА [16:01:27]line ТРК (МРК, ГНК) : 51 [16:01:27]line Товар: 2710194210 [16:01:27]line ДТ-К-5 [16:01:27]line 19.690 * 76.20 [16:01:27]line = 1500.38 [16:01:27]line НДС 12% НСП 1% [16:01:27]line > о реализуемом товаре [16:01:27]line ОКРУГЛЕНИЕ: -0.38 [16:01:27]line ИТОГО: 1500.00 [16:01:27]line Внесено: 1500.00 [16:01:27]line СДАЧА: 0.00 [16:01:27]line НСП 1% : 13.28 [16:01:27]line НДС 12% : 159.33 [16:01:27]line Наличными: 1500.00 [16:01:27]line Безнал.: 0.00 [16:01:27]line Место: АЗС № 86 "Партнер Нефть" [16:01:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:01:27]line СНО: Общий режим [16:01:27]line Чек 292 24.10.2024 16:01 [16:01:27]line Смена: 463 ФФД: 1.0 [16:01:27]line ЗНМ: 0300000155 [16:01:27]line РНМ: 0000000000100030 [16:01:27]line Версия ККМ: 001 [16:01:27]line ФМ: 0000000000965340 [16:01:27]line ФД: 189219 [16:01:27]line ФПД: 91181297820384 [16:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189219&fm=91181297820384&tin=02508201610067®Number=0000000000100030&sum=150000 [16:01:27]written 0, free lines is 4095 [16:01:27]OFD Sender: Processing packet 189219 [packets to send 1062, broken 1061] [16:01:27]ProducePacketName [16:01:27]name=ofd_packets/00189219 [16:01:27]OFD Sender: To server: pG, [16:01:27]CommunicateWithHost lk.salyk.kg:30040 [16:01:27]ConnectInit lk.salyk.kg [16:01:27]Connected sock=10 [16:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C3 BA 04 01 3F B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 59 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E3 02 00 35 04 06 00 52 ED CC DD E2 E0 24 26 C9 B0 E1 E5 B4 91 [16:01:27]Write to MH i2c: 01 00 00 F7 57 4E [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: 01 07 00 F7 57 00 00 00 00 00 55 0C B6 [16:01:27]RasterBufferAndPrint [16:01:27]line [16:01:27]line [16:01:27]line [16:01:27]line [16:01:27]line [16:01:27]written 0, free lines is 3161 [16:01:27]MH_Cut [16:01:27]Write to MH i2c: D1 01 00 FE 57 01 27 [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: D1 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: D1 01 00 [16:01:27]MH_I2C_Read... [16:01:27]Read from MH i2c: D1 01 00 FE 57 00 26 [16:01:27]Write to MH i2c: 01 00 00 FF 57 56 [16:01:27]Write i2c OK [16:01:27]MH_I2C_Read... [16:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA 95 47 00 26 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 39 36 35 33 34 30 10 04 04 00 23 E3 02 00 F4 03 04 00 41 19 1A 67 B6 04 01 00 00 A8 B9 26 DB A4 ED E9 F3 [16:01:27]CommunicateWithHost err = 0 [16:01:27]CheckOFDResponse [16:01:27]1017 (14) - 77093643461234 [16:01:27]1041 (16) - 0000000000965340 [16:01:27]1040 (4) - 189219 [16:01:27]1012 (4) - 24.10.2024 09:54 [16:01:27]1206 (1) - 0 [16:01:27]OFD Sender: Remove packet 189219 [16:01:27]ProducePacketName [16:01:27]name=ofd_packets/00189219 [16:01:27]NVStorageDeleteData [16:01:28]OFD Sender: No OFD packet to send [16:01:28]*** Cut start [16:01:28]*** Partial cut [16:01:28]*** CUTSNS_PIN = 1 [16:01:28]*** CUTSNS_PIN = 0 [16:01:29]*** Brake cut motor [16:01:29]Read from MH i2c: 01 [16:01:29]MH_I2C_Read... [16:01:29]*** Stop cut motor [16:01:29]*** Cut end [16:01:29]Read from MH i2c: 01 07 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: 01 07 00 FF 57 00 00 00 00 00 FF 0F 6B [16:01:29]process_action close_receipt done [16:01:29]requested_data is exist [16:01:29]produce_requested_data [16:01:29]requested_item fm.sn is exist - process it [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 11 00 00 [16:01:29]Write to MH i2c: E2 08 00 00 58 80 11 00 00 00 00 00 00 D2 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 17 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 17 00 00 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [16:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:01:29]wFMCommunicate OK [16:01:29]requested_item fd.num is exist - process it [16:01:29]SAM_PROTO_GetFieldsCounters [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 13 00 00 [16:01:29]Write to MH i2c: E2 08 00 01 58 80 13 00 00 00 00 00 00 D5 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 62 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 62 00 01 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E3 02 00 0E 04 04 00 CF 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 23 [16:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E3 02 00 0E 04 04 00 CF 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 [16:01:29]wFMCommunicate OK [16:01:29]SAM_PROTO_GetFieldsCounters done [16:01:29]requested_item shift.num is exist - process it [16:01:29]requested_item shift.opened is exist - process it [16:01:29]req_shift_opened [16:01:29]FM_GetShiftState [16:01:29]SAM_PROTO_GetShiftState [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 13 01 00 [16:01:29]Write to MH i2c: E2 08 00 02 58 80 13 01 00 00 00 00 00 D7 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 02 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B5 [16:01:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:01:29]wFMCommunicate OK [16:01:29]SAM_PROTO_GetShiftState done [16:01:29]FM_GetShiftState done [16:01:29]req_shift_opened done [16:01:29]requested_item shift.open_date is exist - process it [16:01:29]req_shift_open_date [16:01:29]req_shift_open_date done [16:01:29]produce_requested_data done [16:01:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189219,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:01:29]process_action_free close_receipt [16:01:29]json_value_free [16:01:29]json_value_free done [16:01:29]process_json_proto returns [16:01:29]Send response to host [16:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189219,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:01:29]free response buf [16:01:29]execute_script done [16:01:29]execute_script returns [16:01:29]free content buf [16:01:29]Sock 8.Close socket [16:01:29]Sock 8.Thread stoped [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:10]accept exits with 9 [16:02:10]New connection [16:02:10]New thread 3067071844 created [16:02:10]Thread 3067215204 joined [16:02:10]Waiting for new connection... [16:02:10] Sock 9.Parse request [16:02:10]Sock 9.Check first char [16:02:10]Sock 9.First char is OK [16:02:10]request: POST /json_proto HTTP/1.0 [16:02:10]Method: POST [16:02:10]URL: /json_proto [16:02:10]Method is POST - this is cgi request [16:02:10]url: /json_proto [16:02:10]query_string will be loaded in cgi processing [16:02:10]execute_cgi json_proto POST (null) [16:02:10]execute_cgi path=json_proto method=POST [16:02:10]POST find Content-Length [16:02:10]Host: 172.17.42.131:8080 [16:02:10]Content-Length: 682 [16:02:10]Content-Type: application/json [16:02:10] [16:02:10]POST finish read [16:02:10]Found Content-Length = 682 [16:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.060, "sum" : 1340.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]execute_script... [16:02: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)211285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.060, "sum" : 1340.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]POST & json_proto [16:02:10]process_json_proto [16:02:10]json parsed OK: [16:02:10]protocol is kg_v1.0 [16:02:10]action value=close_receipt [16:02:10]process_action close_receipt [16:02:10]cmd_close_receipt [16:02:10]MH_GetDate [16:02:10]Write to MH i2c: F0 00 00 03 58 4A [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 03 58 00 86 6F 1A 67 A0 18 CA 66 B1 [16:02:10]GetLastDocTimeStamp 1729785689 [16:02:10]current date 1729785734 [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 04 58 80 13 01 00 00 00 00 00 D9 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 04 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B7 [16:02:10]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]opened in 1729728961 [16:02:10]opened+sec_in_day 1729815361 [16:02:10]quantity*price = 134005 [16:02:10]sum+1 = 134006 [16:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.31 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 293 24.10.2024 16:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189220 ФПД: 23886061596179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160214&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189220&fm=23886061596179&tin=02508201610067®Number=0000000000100030&sum=134000 [16:02:12]StoreToDocumentArchive [16:02:12]shift 463 fd 189220 [16:02:12]save to /storage/0463/doc_00189220 [16:02:12]save last doc name /storage/0463/doc_00189220 to /storage/kkm_last_doc_name [16:02:12]save OK [16:02:12]Clear old archive folders... [16:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:12]tlvbuf is B6F95480 [16:02:12]SAM_PROTO_ClearQueue [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 09 00 00 [16:02:12]Write to MH i2c: E2 08 00 11 58 80 09 00 00 00 00 00 00 DB [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 11 58 00 90 00 DD [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]SAM_PROTO_ClearQueue done [16:02:12]KKMCreateOFDPacket [16:02:12]OFDProtocolAddRootSTLVToBuf [16:02:12]FM_MakeSignedData [16:02:12]FM_MakeSignedData [16:02:12]SAM_PROTO_SignData [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 01 02 [16:02:12]Write to MH i2c: E2 08 00 12 58 80 0D 01 02 00 00 00 00 E3 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 12 58 00 90 00 DE [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]wFMCommunicate request_size=255 [16:02:12]MH_SAM_APDU [16:02: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 33 FF 03 08 00 03 8C 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 86 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E3 02 00 35 04 06 00 15 [16:02:12]Write to MH i2c: E2 02 01 13 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 33 FF 03 08 00 03 8C 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 86 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E3 02 00 35 04 06 00 15 00 00 39 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 13 58 00 90 00 DF [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]wFMCommunicate request_size=10 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 02 02 05 B9 68 37 6E 13 [16:02:12]Write to MH i2c: E2 0D 00 14 58 80 0D 02 02 05 00 B9 68 37 6E 13 00 00 C9 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 14 58 00 90 00 E0 [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 03 02 [16:02:12]Write to MH i2c: E2 08 00 15 58 80 0D 03 02 00 00 00 00 E8 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 0B 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 0B 00 15 58 00 54 FA 22 2F A1 76 D9 79 90 00 F1 [16:02:12]RAPDU: 54 FA 22 2F A1 76 D9 79 90 00 [16:02:12]wFMCommunicate OK [16:02:12]SAM_PROTO_SignData done [16:02:12]FM_MakeSignedData done [16:02:12]CreateOFDProtocolMessage [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 11 00 00 [16:02:12]Write to MH i2c: E2 08 00 16 58 80 11 00 00 00 00 00 00 E8 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 16 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [16:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:02:12]wFMCommunicate OK [16:02:12]CreateOFDProtocolMessage done [16:02:12]OFDSenderStorePacket 189220 [16:02:12]StoreOFDPacket docnum=189220 [16:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF B4 07 01 BB 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 33 FF 03 08 00 03 8C 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 86 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E3 02 00 35 04 06 00 15 B9 68 37 6E 13 54 FA 22 2F A1 76 D9 79 [16:02:12]CheckFolder [16:02:12]dirname=/storage/ofd_packets [16:02:12]CheckFolder done [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00189220 [16:02:12]NVStorageSaveData ofd_packets/00189220 [16:02:12]File name is /storage/ofd_packets/00189220 [16:02:12]Write 301 bytes [16:02:12]NVStorageSaveData done [16:02:12]OFDSenderStorePacket done [16:02:12]KKMCreateOFDPacket done [16:02:12]NVStorageSaveData kkm_last_timestamp [16:02:12]File name is /storage/kkm_last_timestamp [16:02:12]Write 4 bytes [16:02:12]NVStorageSaveData done [16:02:12]ExternCall_PrintAddStr [16:02:12]wPrintStart [16:02:12]Write to MH i2c: 01 00 00 17 58 6F [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 17 58 00 00 00 00 00 FF 0F 84 [16:02:12]RasterBufferAndPrint [16:02:12]line Счет N : (1)211285 [16:02:12]line ИНН: 02508201610067 [16:02:12]line Контрольно-Кассовый Чек [16:02:12]line ПРОДАЖА [16:02:12]line ТРК (МРК, ГНК) : 33 [16:02:12]line Товар: 2710124500 [16:02:12]line Аи-95-К-3 [16:02:12]line 18.060 * 74.20 [16:02:12]line = 1340.05 [16:02:12]line НДС 12% НСП 1% [16:02:12]line > о реализуемом товаре [16:02:12]line ОКРУГЛЕНИЕ: -0.05 [16:02:12]line ИТОГО: 1340.00 [16:02:12]line Внесено: 1340.00 [16:02:12]line СДАЧА: 0.00 [16:02:12]line НСП 1% : 11.86 [16:02:12]line НДС 12% : 142.31 [16:02:12]line Наличными: 1340.00 [16:02:12]line Безнал.: 0.00 [16:02:12]line Место: АЗС № 86 "Партнер Нефть" [16:02:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:02:12]line СНО: Общий режим [16:02:12]line Чек 293 24.10.2024 16:02 [16:02:12]line Смена: 463 ФФД: 1.0 [16:02:12]line ЗНМ: 0300000155 [16:02:12]line РНМ: 0000000000100030 [16:02:12]line Версия ККМ: 001 [16:02:12]line ФМ: 0000000000965340 [16:02:12]line ФД: 189220 [16:02:12]line ФПД: 23886061596179 [16:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160214&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189220&fm=23886061596179&tin=02508201610067®Number=0000000000100030&sum=134000 [16:02:12]written 0, free lines is 4095 [16:02:12]OFD Sender: Processing packet 189220 [packets to send 1062, broken 1061] [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00189220 [16:02:12]OFD Sender: To server: pG, [16:02:12]CommunicateWithHost lk.salyk.kg:30040 [16:02:12]ConnectInit lk.salyk.kg [16:02:12]Connected sock=10 [16:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF B4 07 01 BB 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 33 FF 03 08 00 03 8C 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 86 6F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E3 02 00 35 04 06 00 15 B9 68 37 6E 13 54 FA 22 2F A1 76 D9 79 [16:02:13]Write to MH i2c: 01 00 00 42 58 9A [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 42 58 00 00 00 00 00 58 0C 05 [16:02:13]RasterBufferAndPrint [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]written 0, free lines is 3165 [16:02:13]MH_Cut [16:02:13]Write to MH i2c: D1 01 00 49 58 01 73 [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 01 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 01 00 49 58 00 72 [16:02:13]Write to MH i2c: 01 00 00 4A 58 A2 [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 E6 47 00 0A 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 39 36 35 33 34 30 10 04 04 00 24 E3 02 00 F4 03 04 00 6E 19 1A 67 B6 04 01 00 00 4C EC F0 82 84 AD 91 0D [16:02:13]CommunicateWithHost err = 0 [16:02:13]CheckOFDResponse [16:02:13]1017 (14) - 77093643461234 [16:02:13]1041 (16) - 0000000000965340 [16:02:13]1040 (4) - 189220 [16:02:13]1012 (4) - 24.10.2024 09:54 [16:02:13]1206 (1) - 0 [16:02:13]OFD Sender: Remove packet 189220 [16:02:13]ProducePacketName [16:02:13]name=ofd_packets/00189220 [16:02:13]NVStorageDeleteData [16:02:13]OFD Sender: No OFD packet to send [16:02:14]*** Cut start [16:02:14]*** Partial cut [16:02:14]*** CUTSNS_PIN = 1 [16:02:14]*** CUTSNS_PIN = 0 [16:02:14]*** Brake cut motor [16:02:14]Read from MH i2c: 01 [16:02:14]MH_I2C_Read... [16:02:14]*** Stop cut motor [16:02:14]*** Cut end [16:02:14]Read from MH i2c: 01 07 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: 01 07 00 4A 58 00 00 00 00 00 FF 0F B7 [16:02:14]process_action close_receipt done [16:02:14]requested_data is exist [16:02:14]produce_requested_data [16:02:14]requested_item fm.sn is exist - process it [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 11 00 00 [16:02:14]Write to MH i2c: E2 08 00 4B 58 80 11 00 00 00 00 00 00 1D [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 17 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 17 00 4B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [16:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:02:15]wFMCommunicate OK [16:02:15]requested_item fd.num is exist - process it [16:02:15]SAM_PROTO_GetFieldsCounters [16:02:15]wFMCommunicate request_size=4 [16:02:15]MH_SAM_APDU [16:02:15]CAPDU: 80 13 00 00 [16:02:15]Write to MH i2c: E2 08 00 4C 58 80 13 00 00 00 00 00 00 20 [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 62 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 62 00 4C 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E3 02 00 0E 04 04 00 CF 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 72 [16:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E3 02 00 0E 04 04 00 CF 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 [16:02:15]wFMCommunicate OK [16:02:15]SAM_PROTO_GetFieldsCounters done [16:02:15]requested_item shift.num is exist - process it [16:02:15]requested_item shift.opened is exist - process it [16:02:15]req_shift_opened [16:02:15]FM_GetShiftState [16:02:15]SAM_PROTO_GetShiftState [16:02:15]wFMCommunicate request_size=4 [16:02:15]MH_SAM_APDU [16:02:15]CAPDU: 80 13 01 00 [16:02:15]Write to MH i2c: E2 08 00 4D 58 80 13 01 00 00 00 00 00 22 [16:02:15]Write i2c OK [16:02:15]MH_I2C_Read... [16:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:15]Read from MH i2c: E2 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0E 00 [16:02:15]MH_I2C_Read... [16:02:15]Read from MH i2c: E2 0E 00 4D 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 00 [16:02:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:02:15]wFMCommunicate OK [16:02:15]SAM_PROTO_GetShiftState done [16:02:15]FM_GetShiftState done [16:02:15]req_shift_opened done [16:02:15]requested_item shift.open_date is exist - process it [16:02:15]req_shift_open_date [16:02:15]req_shift_open_date done [16:02:15]produce_requested_data done [16:02:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189220,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:02:15]process_action_free close_receipt [16:02:15]json_value_free [16:02:15]json_value_free done [16:02:15]process_json_proto returns [16:02:15]Send response to host [16:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189220,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:02:15]free response buf [16:02:15]execute_script done [16:02:15]execute_script returns [16:02:15]free content buf [16:02:15]Sock 9.Close socket [16:02:15]Sock 9.Thread stoped [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:03]accept exits with 8 [16:05:03]New connection [16:05:03]New thread 3067215204 created [16:05:03]Thread 3067071844 joined [16:05:03]Waiting for new connection... [16:05:03] Sock 8.Parse request [16:05:03]Sock 8.Check first char [16:05:03]Sock 8.First char is OK [16:05:03]request: POST /json_proto HTTP/1.0 [16:05:03]Method: POST [16:05:03]URL: /json_proto [16:05:03]Method is POST - this is cgi request [16:05:03]url: /json_proto [16:05:03]query_string will be loaded in cgi processing [16:05:03]execute_cgi json_proto POST (null) [16:05:03]execute_cgi path=json_proto method=POST [16:05:03]POST find Content-Length [16:05:03]Host: 172.17.42.131:8080 [16:05:03]Content-Length: 766 [16:05:03]Content-Type: application/json [16:05:03] [16:05:03]POST finish read [16:05:03]Found Content-Length = 766 [16:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.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: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:03]execute_script... [16:05: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)211286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.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: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:03]POST & json_proto [16:05:03]process_json_proto [16:05:03]json parsed OK: [16:05:03]protocol is kg_v1.0 [16:05:03]action value=close_receipt [16:05:03]process_action close_receipt [16:05:03]cmd_close_receipt [16:05:03]MH_GetDate [16:05:03]Write to MH i2c: F0 00 00 4E 58 95 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: F0 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: F0 09 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: F0 09 00 4E 58 00 33 70 1A 67 A0 18 CA 66 AA [16:05:03]GetLastDocTimeStamp 1729785734 [16:05:03]current date 1729785907 [16:05:03]FM_GetShiftState [16:05:03]SAM_PROTO_GetShiftState [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 13 01 00 [16:05:03]Write to MH i2c: E2 08 00 4F 58 80 13 01 00 00 00 00 00 24 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0E 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0E 00 4F 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 02 [16:05:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_GetShiftState done [16:05:03]FM_GetShiftState done [16:05:03]opened in 1729728961 [16:05:03]opened+sec_in_day 1729815361 [16:05:03]quantity*price = 60009 [16:05:03]sum+1 = 60010 [16:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 294 24.10.2024 16:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189221 ФПД: 61629393736191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160507&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189221&fm=61629393736191&tin=02508201610067®Number=0000000000100030&sum=60009 [16:05:04]StoreToDocumentArchive [16:05:04]shift 463 fd 189221 [16:05:04]save to /storage/0463/doc_00189221 [16:05:04]save last doc name /storage/0463/doc_00189221 to /storage/kkm_last_doc_name [16:05:04]save OK [16:05:04]Clear old archive folders... [16:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:04]tlvbuf is 015783B0 [16:05:04]SAM_PROTO_ClearQueue [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 09 00 00 [16:05:04]Write to MH i2c: E2 08 00 5C 58 80 09 00 00 00 00 00 00 26 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 5C 58 00 90 00 28 [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]SAM_PROTO_ClearQueue done [16:05:04]KKMCreateOFDPacket [16:05:04]OFDProtocolAddRootSTLVToBuf [16:05:04]FM_MakeSignedData [16:05:04]FM_MakeSignedData [16:05:04]SAM_PROTO_SignData [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 0D 01 02 [16:05:04]Write to MH i2c: E2 08 00 5D 58 80 0D 01 02 00 00 00 00 2E [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 5D 58 00 90 00 29 [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=255 [16:05:04]MH_SAM_APDU [16:05: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 33 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E3 02 00 35 04 06 00 38 [16:05:04]Write to MH i2c: E2 02 01 5E 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 33 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E3 02 00 35 04 06 00 38 00 00 ED [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 03 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 03 00 5E 58 00 90 00 2A [16:05:05]RAPDU: 90 00 [16:05:05]wFMCommunicate OK [16:05:05]wFMCommunicate request_size=10 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 0D 02 02 05 0D 36 1F 11 FF [16:05:05]Write to MH i2c: E2 0D 00 5F 58 80 0D 02 02 05 00 0D 36 1F 11 FF 00 00 AD [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 03 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 03 00 5F 58 00 90 00 2B [16:05:05]RAPDU: 90 00 [16:05:05]wFMCommunicate OK [16:05:05]wFMCommunicate request_size=4 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 0D 03 02 [16:05:05]Write to MH i2c: E2 08 00 60 58 80 0D 03 02 00 00 00 00 33 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 0B 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 0B 00 60 58 00 B3 BA 12 5D AA 8B 13 77 90 00 CF [16:05:05]RAPDU: B3 BA 12 5D AA 8B 13 77 90 00 [16:05:05]wFMCommunicate OK [16:05:05]SAM_PROTO_SignData done [16:05:05]FM_MakeSignedData done [16:05:05]CreateOFDProtocolMessage [16:05:05]wFMCommunicate request_size=4 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 11 00 00 [16:05:05]Write to MH i2c: E2 08 00 61 58 80 11 00 00 00 00 00 00 33 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 17 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 17 00 61 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [16:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:05]wFMCommunicate OK [16:05:05]CreateOFDProtocolMessage done [16:05:05]OFDSenderStorePacket 189221 [16:05:05]StoreOFDPacket docnum=189221 [16:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 81 07 01 C9 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 33 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E3 02 00 35 04 06 00 38 0D 36 1F 11 FF B3 BA 12 5D AA 8B 13 77 [16:05:05]CheckFolder [16:05:05]dirname=/storage/ofd_packets [16:05:05]CheckFolder done [16:05:05]ProducePacketName [16:05:05]name=ofd_packets/00189221 [16:05:05]NVStorageSaveData ofd_packets/00189221 [16:05:05]File name is /storage/ofd_packets/00189221 [16:05:05]Write 301 bytes [16:05:05]NVStorageSaveData done [16:05:05]OFDSenderStorePacket done [16:05:05]KKMCreateOFDPacket done [16:05:05]NVStorageSaveData kkm_last_timestamp [16:05:05]File name is /storage/kkm_last_timestamp [16:05:05]Write 4 bytes [16:05:05]NVStorageSaveData done [16:05:05]ExternCall_PrintAddStr [16:05:05]wPrintStart [16:05:05]Write to MH i2c: 01 00 00 62 58 BA [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 62 58 00 00 00 00 00 FF 0F CF [16:05:05]RasterBufferAndPrint [16:05:05]line Счет N : (1)211286 [16:05:05]line ИНН: 02508201610067 [16:05:05]line Контрольно-Кассовый Чек [16:05:05]line ПРОДАЖА [16:05:05]line ТРК (МРК, ГНК) : 42 [16:05:05]line Товар: 2710124130 [16:05:05]line Аи-92-К-3 [16:05:05]line 8.970 * 66.90 [16:05:05]line = 600.09 [16:05:05]line НДС 12% НСП 1% [16:05:05]line > о реализуемом товаре [16:05:05]line ИТОГО: 600.09 [16:05:05]line НСП 1% : 5.31 [16:05:05]line НДС 12% : 63.73 [16:05:05]line Наличными: 0.00 [16:05:05]line Безнал.: 600.09 [16:05:05]line Место: АЗС № 86 "Партнер Нефть" [16:05:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:05:05]line СНО: Общий режим [16:05:05]line Чек 294 24.10.2024 16:05 [16:05:05]line Смена: 463 ФФД: 1.0 [16:05:05]line ЗНМ: 0300000155 [16:05:05]line РНМ: 0000000000100030 [16:05:05]line Версия ККМ: 001 [16:05:05]line Платежная система: Mbank [16:05:05]line ФМ: 0000000000965340 [16:05:05]line ФД: 189221 [16:05:05]line ФПД: 61629393736191 [16:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160507&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189221&fm=61629393736191&tin=02508201610067®Number=0000000000100030&sum=60009 [16:05:05]OFD Sender: Processing packet 189221 [packets to send 1062, broken 1061] [16:05:05]ProducePacketName [16:05:05]name=ofd_packets/00189221 [16:05:05]OFD Sender: To server: pG, [16:05:05]CommunicateWithHost lk.salyk.kg:30040 [16:05:05]ConnectInit lk.salyk.kg [16:05:05]written 0, free lines is 4095 [16:05:05]Connected sock=10 [16:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 81 07 01 C9 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 33 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E3 02 00 35 04 06 00 38 0D 36 1F 11 FF B3 BA 12 5D AA 8B 13 77 [16:05:05]Write to MH i2c: 01 00 00 8B 58 E3 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 8B 58 00 00 00 00 00 8A 0C 80 [16:05:05]RasterBufferAndPrint [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]written 0, free lines is 3215 [16:05:05]MH_Cut [16:05:05]Write to MH i2c: D1 01 00 92 58 01 BC [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 01 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 01 00 92 58 00 BB [16:05:05]Write to MH i2c: 01 00 00 93 58 EB [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D 14 47 00 09 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 39 36 35 33 34 30 10 04 04 00 25 E3 02 00 F4 03 04 00 1B 1A 1A 67 B6 04 01 00 00 98 79 BC 45 97 BD CC 9A [16:05:06]CommunicateWithHost err = 0 [16:05:06]CheckOFDResponse [16:05:06]1017 (14) - 77093643461234 [16:05:06]1041 (16) - 0000000000965340 [16:05:06]1040 (4) - 189221 [16:05:06]1012 (4) - 24.10.2024 09:57 [16:05:06]1206 (1) - 0 [16:05:06]OFD Sender: Remove packet 189221 [16:05:06]ProducePacketName [16:05:06]name=ofd_packets/00189221 [16:05:06]NVStorageDeleteData [16:05:06]OFD Sender: No OFD packet to send [16:05:07]*** Cut start [16:05:07]*** Partial cut [16:05:07]*** CUTSNS_PIN = 1 [16:05:07]*** CUTSNS_PIN = 0 [16:05:07]*** Brake cut motor [16:05:07]Read from MH i2c: 01 [16:05:07]MH_I2C_Read... [16:05:07]*** Stop cut motor [16:05:07]*** Cut end [16:05:07]Read from MH i2c: 01 07 00 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: 01 07 00 93 58 00 00 00 00 00 FF 0F 00 [16:05:07]process_action close_receipt done [16:05:07]requested_data is exist [16:05:07]produce_requested_data [16:05:07]requested_item fm.sn is exist - process it [16:05:07]wFMCommunicate request_size=4 [16:05:07]MH_SAM_APDU [16:05:07]CAPDU: 80 11 00 00 [16:05:07]Write to MH i2c: E2 08 00 94 58 80 11 00 00 00 00 00 00 66 [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:07]Read from MH i2c: E2 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 17 00 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 17 00 94 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [16:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:07]wFMCommunicate OK [16:05:07]requested_item fd.num is exist - process it [16:05:07]SAM_PROTO_GetFieldsCounters [16:05:07]wFMCommunicate request_size=4 [16:05:07]MH_SAM_APDU [16:05:07]CAPDU: 80 13 00 00 [16:05:07]Write to MH i2c: E2 08 00 95 58 80 13 00 00 00 00 00 00 69 [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:07]Read from MH i2c: E2 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 62 00 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: E2 62 00 95 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E3 02 00 0E 04 04 00 CF 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 BF [16:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E3 02 00 0E 04 04 00 CF 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 [16:05:07]wFMCommunicate OK [16:05:07]SAM_PROTO_GetFieldsCounters done [16:05:07]requested_item shift.num is exist - process it [16:05:07]requested_item shift.opened is exist - process it [16:05:07]req_shift_opened [16:05:07]FM_GetShiftState [16:05:07]SAM_PROTO_GetShiftState [16:05:07]wFMCommunicate request_size=4 [16:05:07]MH_SAM_APDU [16:05:07]CAPDU: 80 13 01 00 [16:05:07]Write to MH i2c: E2 08 00 96 58 80 13 01 00 00 00 00 00 6B [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 96 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 49 [16:05:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_GetShiftState done [16:05:08]FM_GetShiftState done [16:05:08]req_shift_opened done [16:05:08]requested_item shift.open_date is exist - process it [16:05:08]req_shift_open_date [16:05:08]req_shift_open_date done [16:05:08]produce_requested_data done [16:05:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189221,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:05:08]process_action_free close_receipt [16:05:08]json_value_free [16:05:08]json_value_free done [16:05:08]process_json_proto returns [16:05:08]Send response to host [16:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189221,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:05:08]free response buf [16:05:08]execute_script done [16:05:08]execute_script returns [16:05:08]free content buf [16:05:08]Sock 8.Close socket [16:05:08]Sock 8.Thread stoped [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:53]accept exits with 9 [16:05:53]New connection [16:05:53]New thread 3067071844 created [16:05:53]Thread 3067215204 joined [16:05:53]Waiting for new connection... [16:05:53] Sock 9.Parse request [16:05:53]Sock 9.Check first char [16:05:53]Sock 9.First char is OK [16:05:53]request: POST /json_proto HTTP/1.0 [16:05:53]Method: POST [16:05:53]URL: /json_proto [16:05:53]Method is POST - this is cgi request [16:05:53]url: /json_proto [16:05:53]query_string will be loaded in cgi processing [16:05:53]execute_cgi json_proto POST (null) [16:05:53]execute_cgi path=json_proto method=POST [16:05:53]POST find Content-Length [16:05:53]Host: 172.17.42.131:8080 [16:05:53]Content-Length: 792 [16:05:53]Content-Type: application/json [16:05:53] [16:05:53]POST finish read [16:05:53]Found Content-Length = 792 [16:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A68952", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:53]execute_script... [16:05: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)211287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A68952", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:53]POST & json_proto [16:05:53]process_json_proto [16:05:53]json parsed OK: [16:05:53]protocol is kg_v1.0 [16:05:53]action value=close_receipt [16:05:53]process_action close_receipt [16:05:53]cmd_close_receipt [16:05:53]MH_GetDate [16:05:53]Write to MH i2c: F0 00 00 97 58 DE [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 09 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: F0 09 00 97 58 00 65 70 1A 67 A0 18 CA 66 25 [16:05:53]GetLastDocTimeStamp 1729785907 [16:05:53]current date 1729785957 [16:05:53]FM_GetShiftState [16:05:53]SAM_PROTO_GetShiftState [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 13 01 00 [16:05:53]Write to MH i2c: E2 08 00 98 58 80 13 01 00 00 00 00 00 6D [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0E 00 98 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4B [16:05:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_GetShiftState done [16:05:53]FM_GetShiftState done [16:05:53]opened in 1729728961 [16:05:53]opened+sec_in_day 1729815361 [16:05:53]quantity*price = 0 [16:05:53]sum+1 = 1 [16:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 295 24.10.2024 16:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 68952 ФМ: 0000000000965340 ФД: 189222 ФПД: 55643948808035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160557&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189222&fm=55643948808035&tin=02508201610067®Number=0000000000100030&sum=0 [16:05:54]StoreToDocumentArchive [16:05:54]shift 463 fd 189222 [16:05:54]save to /storage/0463/doc_00189222 [16:05:54]save last doc name /storage/0463/doc_00189222 to /storage/kkm_last_doc_name [16:05:54]save OK [16:05:54]Clear old archive folders... [16:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:54]tlvbuf is 01567C80 [16:05:54]SAM_PROTO_ClearQueue [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 09 00 00 [16:05:54]Write to MH i2c: E2 08 00 A5 58 80 09 00 00 00 00 00 00 6F [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 A5 58 00 90 00 71 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]SAM_PROTO_ClearQueue done [16:05:54]KKMCreateOFDPacket [16:05:54]OFDProtocolAddRootSTLVToBuf [16:05:54]FM_MakeSignedData [16:05:54]FM_MakeSignedData [16:05:54]SAM_PROTO_SignData [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 0D 01 02 [16:05:54]Write to MH i2c: E2 08 00 A6 58 80 0D 01 02 00 00 00 00 77 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 A6 58 00 90 00 72 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]wFMCommunicate request_size=255 [16:05:54]MH_SAM_APDU [16:05: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 33 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 01 00 00 F4 03 04 00 65 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E3 02 00 35 04 06 00 32 [16:05:54]Write to MH i2c: E2 02 01 A7 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 33 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 01 00 00 F4 03 04 00 65 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E3 02 00 35 04 06 00 32 00 00 5E [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 A7 58 00 90 00 73 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]wFMCommunicate request_size=10 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 0D 02 02 05 9B 9D CD 77 63 [16:05:54]Write to MH i2c: E2 0D 00 A8 58 80 0D 02 02 05 00 9B 9D CD 77 63 00 00 63 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 03 00 A8 58 00 90 00 74 [16:05:54]RAPDU: 90 00 [16:05:54]wFMCommunicate OK [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 0D 03 02 [16:05:54]Write to MH i2c: E2 08 00 A9 58 80 0D 03 02 00 00 00 00 7C [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 0B 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 0B 00 A9 58 00 AC 63 AE 3A 8D 9F A4 61 90 00 A5 [16:05:54]RAPDU: AC 63 AE 3A 8D 9F A4 61 90 00 [16:05:54]wFMCommunicate OK [16:05:54]SAM_PROTO_SignData done [16:05:54]FM_MakeSignedData done [16:05:54]CreateOFDProtocolMessage [16:05:54]wFMCommunicate request_size=4 [16:05:54]MH_SAM_APDU [16:05:54]CAPDU: 80 11 00 00 [16:05:54]Write to MH i2c: E2 08 00 AA 58 80 11 00 00 00 00 00 00 7C [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:54]Read from MH i2c: E2 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 17 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: E2 17 00 AA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [16:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:54]wFMCommunicate OK [16:05:54]CreateOFDProtocolMessage done [16:05:54]OFDSenderStorePacket 189222 [16:05:54]StoreOFDPacket docnum=189222 [16:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C BC 07 01 10 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 33 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 01 00 00 F4 03 04 00 65 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E3 02 00 35 04 06 00 32 9B 9D CD 77 63 AC 63 AE 3A 8D 9F A4 61 [16:05:54]CheckFolder [16:05:54]dirname=/storage/ofd_packets [16:05:54]CheckFolder done [16:05:54]ProducePacketName [16:05:54]name=ofd_packets/00189222 [16:05:54]NVStorageSaveData ofd_packets/00189222 [16:05:54]File name is /storage/ofd_packets/00189222 [16:05:54]Write 301 bytes [16:05:54]NVStorageSaveData done [16:05:54]OFDSenderStorePacket done [16:05:54]KKMCreateOFDPacket done [16:05:54]NVStorageSaveData kkm_last_timestamp [16:05:54]File name is /storage/kkm_last_timestamp [16:05:54]Write 4 bytes [16:05:54]NVStorageSaveData done [16:05:54]ExternCall_PrintAddStr [16:05:54]wPrintStart [16:05:54]Write to MH i2c: 01 00 00 AB 58 03 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 07 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 07 00 AB 58 00 00 00 00 00 FF 0F 18 [16:05:54]RasterBufferAndPrint [16:05:54]line Счет N : (1)211287 [16:05:54]line ИНН: 02508201610067 [16:05:54]line Контрольно-Кассовый Чек [16:05:54]line ПРОДАЖА [16:05:54]line ТРК (МРК, ГНК) : 32 [16:05:54]line Товар: 2710124130 [16:05:54]line Аи-92-К-3 [16:05:54]line 20.000 * 0.00 [16:05:54]line = 0.00 [16:05:54]line НДС 12% НСП 1% [16:05:54]line > о реализуемом товаре [16:05:54]line ИТОГО: 0.00 [16:05:54]line НСП 1% : 0.00 [16:05:54]line НДС 12% : 0.00 [16:05:54]line Наличными: 0.00 [16:05:54]line Безнал.: 0.00 [16:05:54]line Место: АЗС № 86 "Партнер Нефть" [16:05:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:05:54]line СНО: Общий режим [16:05:54]line Чек 295 24.10.2024 16:05 [16:05:54]line Смена: 463 ФФД: 1.0 [16:05:54]line ЗНМ: 0300000155 [16:05:54]line РНМ: 0000000000100030 [16:05:54]line Версия ККМ: 001 [16:05:54]line Талоны: Топливная Карта [16:05:54]line 68952 [16:05:54]line ФМ: 0000000000965340 [16:05:54]line ФД: 189222 [16:05:54]line ФПД: 55643948808035 [16:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160557&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189222&fm=55643948808035&tin=02508201610067®Number=0000000000100030&sum=0 [16:05:54]written 0, free lines is 4095 [16:05:55]OFD Sender: Processing packet 189222 [packets to send 1062, broken 1061] [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00189222 [16:05:55]OFD Sender: To server: pG, [16:05:55]CommunicateWithHost lk.salyk.kg:30040 [16:05:55]ConnectInit lk.salyk.kg [16:05:55]Connected sock=10 [16:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C BC 07 01 10 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 33 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 01 00 00 F4 03 04 00 65 70 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E3 02 00 35 04 06 00 32 9B 9D CD 77 63 AC 63 AE 3A 8D 9F A4 61 [16:05:55]Write to MH i2c: 01 00 00 D5 58 2D [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 D5 58 00 00 00 00 00 71 0C B1 [16:05:55]RasterBufferAndPrint [16:05:55]line [16:05:55]line [16:05:55]line [16:05:55]line [16:05:55]line [16:05:55]written 0, free lines is 3191 [16:05:55]MH_Cut [16:05:55]Write to MH i2c: D1 01 00 DC 58 01 06 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: D1 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: D1 01 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: D1 01 00 DC 58 00 05 [16:05:55]Write to MH i2c: 01 00 00 DD 58 35 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 43 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 26 E3 02 00 F4 03 04 00 4C 1A 1A 67 B6 04 01 00 00 ED 9E 93 C3 B3 A4 19 8D [16:05:55]CommunicateWithHost err = 0 [16:05:55]CheckOFDResponse [16:05:55]1017 (14) - 77093643461234 [16:05:55]1041 (16) - 0000000000965340 [16:05:55]1040 (4) - 189222 [16:05:55]1012 (4) - 24.10.2024 09:58 [16:05:55]1206 (1) - 0 [16:05:55]OFD Sender: Remove packet 189222 [16:05:55]ProducePacketName [16:05:55]name=ofd_packets/00189222 [16:05:55]NVStorageDeleteData [16:05:56]OFD Sender: No OFD packet to send [16:05:56]*** Cut start [16:05:56]*** Partial cut [16:05:56]*** CUTSNS_PIN = 1 [16:05:56]*** CUTSNS_PIN = 0 [16:05:56]*** Brake cut motor [16:05:57]Read from MH i2c: 01 [16:05:57]MH_I2C_Read... [16:05:57]*** Stop cut motor [16:05:57]*** Cut end [16:05:57]Read from MH i2c: 01 07 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: 01 07 00 DD 58 00 00 00 00 00 FF 0F 4A [16:05:57]process_action close_receipt done [16:05:57]requested_data is exist [16:05:57]produce_requested_data [16:05:57]requested_item fm.sn is exist - process it [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 11 00 00 [16:05:57]Write to MH i2c: E2 08 00 DE 58 80 11 00 00 00 00 00 00 B0 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 17 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 17 00 DE 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [16:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:57]wFMCommunicate OK [16:05:57]requested_item fd.num is exist - process it [16:05:57]SAM_PROTO_GetFieldsCounters [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 13 00 00 [16:05:57]Write to MH i2c: E2 08 00 DF 58 80 13 00 00 00 00 00 00 B3 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 62 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 62 00 DF 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E3 02 00 0E 04 04 00 CF 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 0D [16:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E3 02 00 0E 04 04 00 CF 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 [16:05:57]wFMCommunicate OK [16:05:57]SAM_PROTO_GetFieldsCounters done [16:05:57]requested_item shift.num is exist - process it [16:05:57]requested_item shift.opened is exist - process it [16:05:57]req_shift_opened [16:05:57]FM_GetShiftState [16:05:57]SAM_PROTO_GetShiftState [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 13 01 00 [16:05:57]Write to MH i2c: E2 08 00 E0 58 80 13 01 00 00 00 00 00 B5 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 E0 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 93 [16:05:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:05:57]wFMCommunicate OK [16:05:57]SAM_PROTO_GetShiftState done [16:05:57]FM_GetShiftState done [16:05:57]req_shift_opened done [16:05:57]requested_item shift.open_date is exist - process it [16:05:57]req_shift_open_date [16:05:57]req_shift_open_date done [16:05:57]produce_requested_data done [16:05:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189222,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:05:57]process_action_free close_receipt [16:05:57]json_value_free [16:05:57]json_value_free done [16:05:57]process_json_proto returns [16:05:57]Send response to host [16:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189222,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:05:57]free response buf [16:05:57]execute_script done [16:05:57]execute_script returns [16:05:57]free content buf [16:05:57]Sock 9.Close socket [16:05:57]Sock 9.Thread stoped [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:11]accept exits with 8 [16:11:11]New connection [16:11:11]New thread 3067215204 created [16:11:11]Thread 3067071844 joined [16:11:11]Waiting for new connection... [16:11:11] Sock 8.Parse request [16:11:11]Sock 8.Check first char [16:11:11]Sock 8.First char is OK [16:11:11]request: POST /json_proto HTTP/1.0 [16:11:11]Method: POST [16:11:11]URL: /json_proto [16:11:11]Method is POST - this is cgi request [16:11:11]url: /json_proto [16:11:11]query_string will be loaded in cgi processing [16:11:11]execute_cgi json_proto POST (null) [16:11:11]execute_cgi path=json_proto method=POST [16:11:11]POST find Content-Length [16:11:11]Host: 172.17.42.131:8080 [16:11:11]Content-Length: 804 [16:11:11]Content-Type: application/json [16:11:11] [16:11:11]POST finish read [16:11:11]Found Content-Length = 804 [16:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3913800.801", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:11]execute_script... [16:11: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)211288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3913800.801", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:11]POST & json_proto [16:11:11]process_json_proto [16:11:11]json parsed OK: [16:11:11]protocol is kg_v1.0 [16:11:11]action value=close_receipt [16:11:11]process_action close_receipt [16:11:11]cmd_close_receipt [16:11:11]MH_GetDate [16:11:11]Write to MH i2c: F0 00 00 E1 58 28 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: F0 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: F0 09 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: F0 09 00 E1 58 00 A3 71 1A 67 A0 18 CA 66 AE [16:11:11]GetLastDocTimeStamp 1729785957 [16:11:11]current date 1729786275 [16:11:11]FM_GetShiftState [16:11:11]SAM_PROTO_GetShiftState [16:11:11]wFMCommunicate request_size=4 [16:11:11]MH_SAM_APDU [16:11:11]CAPDU: 80 13 01 00 [16:11:11]Write to MH i2c: E2 08 00 E2 58 80 13 01 00 00 00 00 00 B7 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:11]Read from MH i2c: E2 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 E2 58 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 95 [16:11:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:11:11]wFMCommunicate OK [16:11:11]SAM_PROTO_GetShiftState done [16:11:11]FM_GetShiftState done [16:11:11]opened in 1729728961 [16:11:11]opened+sec_in_day 1729815361 [16:11:11]quantity*price = 0 [16:11:11]sum+1 = 1 [16:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 296 24.10.2024 16:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913800.801 ФМ: 0000000000965340 ФД: 189223 ФПД: 41313860173430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189223&fm=41313860173430&tin=02508201610067®Number=0000000000100030&sum=0 [16:11:12]StoreToDocumentArchive [16:11:12]shift 463 fd 189223 [16:11:12]save to /storage/0463/doc_00189223 [16:11:12]save last doc name /storage/0463/doc_00189223 to /storage/kkm_last_doc_name [16:11:12]save OK [16:11:12]Clear old archive folders... [16:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:12]tlvbuf is B6F95010 [16:11:12]SAM_PROTO_ClearQueue [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 09 00 00 [16:11:12]Write to MH i2c: E2 08 00 EF 58 80 09 00 00 00 00 00 00 B9 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 EF 58 00 90 00 BB [16:11:12]RAPDU: 90 00 [16:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_ClearQueue done [16:11:12]KKMCreateOFDPacket [16:11:12]OFDProtocolAddRootSTLVToBuf [16:11:12]FM_MakeSignedData [16:11:12]FM_MakeSignedData [16:11:12]SAM_PROTO_SignData [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 0D 01 02 [16:11:12]Write to MH i2c: E2 08 00 F0 58 80 0D 01 02 00 00 00 00 C1 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:12]OFD Sender: No OFD packet to send [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 F0 58 00 90 00 BC [16:11:12]RAPDU: 90 00 [16:11:12]wFMCommunicate OK [16:11:12]wFMCommunicate request_size=255 [16:11:12]MH_SAM_APDU [16:11: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 33 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 28 01 00 00 F4 03 04 00 A3 71 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E3 02 00 35 04 06 00 25 [16:11:12]Write to MH i2c: E2 02 01 F1 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 33 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 28 01 00 00 F4 03 04 00 A3 71 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E3 02 00 35 04 06 00 25 00 00 DC [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 F1 58 00 90 00 BD [16:11:12]RAPDU: 90 00 [16:11:12]wFMCommunicate OK [16:11:12]wFMCommunicate request_size=10 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 0D 02 02 05 93 21 F5 BE 76 [16:11:12]Write to MH i2c: E2 0D 00 F2 58 80 0D 02 02 05 00 93 21 F5 BE 76 00 00 AB [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 03 00 F2 58 00 90 00 BE [16:11:12]RAPDU: 90 00 [16:11:12]wFMCommunicate OK [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 0D 03 02 [16:11:12]Write to MH i2c: E2 08 00 F3 58 80 0D 03 02 00 00 00 00 C6 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0B 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 0B 00 F3 58 00 F7 25 51 2A 96 D4 42 E9 90 00 F3 [16:11:12]RAPDU: F7 25 51 2A 96 D4 42 E9 90 00 [16:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_SignData done [16:11:12]FM_MakeSignedData done [16:11:12]CreateOFDProtocolMessage [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 11 00 00 [16:11:12]Write to MH i2c: E2 08 00 F4 58 80 11 00 00 00 00 00 00 C6 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:13]Read from MH i2c: E2 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: E2 17 00 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: E2 17 00 F4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [16:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:11:13]wFMCommunicate OK [16:11:13]CreateOFDProtocolMessage done [16:11:13]OFDSenderStorePacket 189223 [16:11:13]StoreOFDPacket docnum=189223 [16:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 7C 07 01 24 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 33 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 28 01 00 00 F4 03 04 00 A3 71 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E3 02 00 35 04 06 00 25 93 21 F5 BE 76 F7 25 51 2A 96 D4 42 E9 [16:11:13]CheckFolder [16:11:13]dirname=/storage/ofd_packets [16:11:13]CheckFolder done [16:11:13]ProducePacketName [16:11:13]name=ofd_packets/00189223 [16:11:13]NVStorageSaveData ofd_packets/00189223 [16:11:13]File name is /storage/ofd_packets/00189223 [16:11:13]Write 301 bytes [16:11:13]NVStorageSaveData done [16:11:13]OFDSenderStorePacket done [16:11:13]KKMCreateOFDPacket done [16:11:13]NVStorageSaveData kkm_last_timestamp [16:11:13]File name is /storage/kkm_last_timestamp [16:11:13]Write 4 bytes [16:11:13]NVStorageSaveData done [16:11:13]ExternCall_PrintAddStr [16:11:13]wPrintStart [16:11:13]Write to MH i2c: 01 00 00 F5 58 4D [16:11:13]Write i2c OK [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 07 00 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 07 00 F5 58 00 00 00 00 00 FF 0F 62 [16:11:13]RasterBufferAndPrint [16:11:13]line Счет N : (1)211288 [16:11:13]line ИНН: 02508201610067 [16:11:13]line Контрольно-Кассовый Чек [16:11:13]line ПРОДАЖА [16:11:13]line ТРК (МРК, ГНК) : 12 [16:11:13]line Товар: 2710124130 [16:11:13]line Аи-92-К-3 [16:11:13]line 20.000 * 0.00 [16:11:13]line = 0.00 [16:11:13]line НДС 12% НСП 1% [16:11:13]line > о реализуемом товаре [16:11:13]line ИТОГО: 0.00 [16:11:13]line НСП 1% : 0.00 [16:11:13]line НДС 12% : 0.00 [16:11:13]line Наличными: 0.00 [16:11:13]line Безнал.: 0.00 [16:11:13]line Место: АЗС № 86 "Партнер Нефть" [16:11:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:11:13]line СНО: Общий режим [16:11:13]line Чек 296 24.10.2024 16:11 [16:11:13]line Смена: 463 ФФД: 1.0 [16:11:13]line ЗНМ: 0300000155 [16:11:13]line РНМ: 0000000000100030 [16:11:13]line Версия ККМ: 001 [16:11:13]line Талоны: Топливные Талоны [16:11:13]line 3913800.801 [16:11:13]line ФМ: 0000000000965340 [16:11:13]line ФД: 189223 [16:11:13]line ФПД: 41313860173430 [16:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189223&fm=41313860173430&tin=02508201610067®Number=0000000000100030&sum=0 [16:11:13]written 0, free lines is 4095 [16:11:13]OFD Sender: Processing packet 189223 [packets to send 1062, broken 1061] [16:11:13]ProducePacketName [16:11:13]name=ofd_packets/00189223 [16:11:13]OFD Sender: To server: pG, [16:11:13]CommunicateWithHost lk.salyk.kg:30040 [16:11:13]ConnectInit lk.salyk.kg [16:11:13]Connected sock=10 [16:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 7C 07 01 24 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 33 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 28 01 00 00 F4 03 04 00 A3 71 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E3 02 00 35 04 06 00 25 93 21 F5 BE 76 F7 25 51 2A 96 D4 42 E9 [16:11:13]Write to MH i2c: 01 00 00 1F 59 78 [16:11:13]Write i2c OK [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 07 00 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: 01 07 00 1F 59 00 00 00 00 00 6B 0C F6 [16:11:13]RasterBufferAndPrint [16:11:13]line [16:11:13]line [16:11:13]line [16:11:13]line [16:11:13]line [16:11:13]written 0, free lines is 3184 [16:11:13]MH_Cut [16:11:13]Write to MH i2c: D1 01 00 26 59 01 51 [16:11:13]Write i2c OK [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: D1 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: D1 01 00 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: D1 01 00 26 59 00 50 [16:11:13]Write to MH i2c: 01 00 00 27 59 80 [16:11:13]Write i2c OK [16:11:13]MH_I2C_Read... [16:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 66 8C 47 00 86 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 39 36 35 33 34 30 10 04 04 00 27 E3 02 00 F4 03 04 00 8B 1B 1A 67 B6 04 01 00 00 3A 1D AE 14 61 13 42 B8 [16:11:13]CommunicateWithHost err = 0 [16:11:13]CheckOFDResponse [16:11:13]1017 (14) - 77093643461234 [16:11:13]1041 (16) - 0000000000965340 [16:11:13]1040 (4) - 189223 [16:11:13]1012 (4) - 24.10.2024 10:03 [16:11:13]1206 (1) - 0 [16:11:13]OFD Sender: Remove packet 189223 [16:11:13]ProducePacketName [16:11:13]name=ofd_packets/00189223 [16:11:13]NVStorageDeleteData [16:11:14]OFD Sender: No OFD packet to send [16:11:14]*** Cut start [16:11:14]*** Partial cut [16:11:14]*** CUTSNS_PIN = 1 [16:11:14]*** CUTSNS_PIN = 0 [16:11:15]*** Brake cut motor [16:11:15]Read from MH i2c: 01 [16:11:15]MH_I2C_Read... [16:11:15]*** Stop cut motor [16:11:15]*** Cut end [16:11:15]Read from MH i2c: 01 07 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: 01 07 00 27 59 00 00 00 00 00 FF 0F 95 [16:11:15]process_action close_receipt done [16:11:15]requested_data is exist [16:11:15]produce_requested_data [16:11:15]requested_item fm.sn is exist - process it [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 11 00 00 [16:11:15]Write to MH i2c: E2 08 00 28 59 80 11 00 00 00 00 00 00 FB [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:15]Read from MH i2c: E2 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 17 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 17 00 28 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [16:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:11:15]wFMCommunicate OK [16:11:15]requested_item fd.num is exist - process it [16:11:15]SAM_PROTO_GetFieldsCounters [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 13 00 00 [16:11:15]Write to MH i2c: E2 08 00 29 59 80 13 00 00 00 00 00 00 FE [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:15]Read from MH i2c: E2 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 62 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 62 00 29 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E3 02 00 0E 04 04 00 CF 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 5C [16:11:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E3 02 00 0E 04 04 00 CF 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 [16:11:15]wFMCommunicate OK [16:11:15]SAM_PROTO_GetFieldsCounters done [16:11:15]requested_item shift.num is exist - process it [16:11:15]requested_item shift.opened is exist - process it [16:11:15]req_shift_opened [16:11:15]FM_GetShiftState [16:11:15]SAM_PROTO_GetShiftState [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 13 01 00 [16:11:15]Write to MH i2c: E2 08 00 2A 59 80 13 01 00 00 00 00 00 00 [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 [16:11:15]MH_I2C_Read... [16:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:15]Read from MH i2c: E2 0E 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 0E 00 2A 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DE [16:11:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:11:15]wFMCommunicate OK [16:11:15]SAM_PROTO_GetShiftState done [16:11:15]FM_GetShiftState done [16:11:15]req_shift_opened done [16:11:15]requested_item shift.open_date is exist - process it [16:11:15]req_shift_open_date [16:11:15]req_shift_open_date done [16:11:15]produce_requested_data done [16:11:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189223,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:11:15]process_action_free close_receipt [16:11:15]json_value_free [16:11:15]json_value_free done [16:11:15]process_json_proto returns [16:11:15]Send response to host [16:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189223,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:11:15]free response buf [16:11:15]execute_script done [16:11:15]execute_script returns [16:11:15]free content buf [16:11:15]Sock 8.Close socket [16:11:15]Sock 8.Thread stoped [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:22]accept exits with 9 [16:13:22]New connection [16:13:22]New thread 3067071844 created [16:13:22]Thread 3067215204 joined [16:13:22]Waiting for new connection... [16:13:22] Sock 9.Parse request [16:13:22]Sock 9.Check first char [16:13:22]Sock 9.First char is OK [16:13:22]request: POST /json_proto HTTP/1.0 [16:13:22]Method: POST [16:13:22]URL: /json_proto [16:13:22]Method is POST - this is cgi request [16:13:22]url: /json_proto [16:13:22]query_string will be loaded in cgi processing [16:13:22]execute_cgi json_proto POST (null) [16:13:22]execute_cgi path=json_proto method=POST [16:13:22]POST find Content-Length [16:13:22]Host: 172.17.42.131:8080 [16:13:22]Content-Length: 677 [16:13:22]Content-Type: application/json [16:13:22] [16:13:22]POST finish read [16:13:22]Found Content-Length = 677 [16:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:13:22]execute_script... [16:13: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)211289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:13:22]POST & json_proto [16:13:22]process_json_proto [16:13:22]json parsed OK: [16:13:22]protocol is kg_v1.0 [16:13:22]action value=close_receipt [16:13:22]process_action close_receipt [16:13:22]cmd_close_receipt [16:13:22]MH_GetDate [16:13:22]Write to MH i2c: F0 00 00 2B 59 73 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: F0 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: F0 09 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: F0 09 00 2B 59 00 26 72 1A 67 A0 18 CA 66 7D [16:13:22]GetLastDocTimeStamp 1729786275 [16:13:22]current date 1729786406 [16:13:22]FM_GetShiftState [16:13:22]SAM_PROTO_GetShiftState [16:13:22]wFMCommunicate request_size=4 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 13 01 00 [16:13:22]Write to MH i2c: E2 08 00 2C 59 80 13 01 00 00 00 00 00 02 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 0E 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 0E 00 2C 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E0 [16:13:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:13:22]wFMCommunicate OK [16:13:22]SAM_PROTO_GetShiftState done [16:13:22]FM_GetShiftState done [16:13:22]opened in 1729728961 [16:13:22]opened+sec_in_day 1729815361 [16:13:22]quantity*price = 50010 [16:13:22]sum+1 = 50012 [16:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 297 24.10.2024 16:13 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189224 ФПД: 104717686934940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189224&fm=104717686934940&tin=02508201610067®Number=0000000000100030&sum=50000 [16:13:23]StoreToDocumentArchive [16:13:23]shift 463 fd 189224 [16:13:23]save to /storage/0463/doc_00189224 [16:13:23]save last doc name /storage/0463/doc_00189224 to /storage/kkm_last_doc_name [16:13:23]save OK [16:13:23]Clear old archive folders... [16:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:23]tlvbuf is 016852E0 [16:13:23]SAM_PROTO_ClearQueue [16:13:23]wFMCommunicate request_size=4 [16:13:23]MH_SAM_APDU [16:13:23]CAPDU: 80 09 00 00 [16:13:23]Write to MH i2c: E2 08 00 39 59 80 09 00 00 00 00 00 00 04 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 09 00 00... 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 39 59 00 90 00 06 [16:13:23]RAPDU: 90 00 [16:13:23]wFMCommunicate OK [16:13:23]SAM_PROTO_ClearQueue done [16:13:23]KKMCreateOFDPacket [16:13:23]OFDProtocolAddRootSTLVToBuf [16:13:23]FM_MakeSignedData [16:13:23]FM_MakeSignedData [16:13:23]SAM_PROTO_SignData [16:13:23]wFMCommunicate request_size=4 [16:13:23]MH_SAM_APDU [16:13:23]CAPDU: 80 0D 01 02 [16:13:23]Write to MH i2c: E2 08 00 3A 59 80 0D 01 02 00 00 00 00 0C [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 0D 01 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 3A 59 00 90 00 07 [16:13:23]RAPDU: 90 00 [16:13:23]wFMCommunicate OK [16:13:23]wFMCommunicate request_size=255 [16:13:23]MH_SAM_APDU [16:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 26 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E3 02 00 35 04 06 00 5F [16:13:23]Write to MH i2c: E2 02 01 3B 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 33 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 01 00 00 F4 03 04 00 26 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E3 02 00 35 04 06 00 5F 00 00 D6 [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 3B 59 00 90 00 08 [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 3D 7C 88 0D 9C [16:13:23]Write to MH i2c: E2 0D 00 3C 59 80 0D 02 02 05 00 3D 7C 88 0D 9C 00 00 03 [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 3C 59 00 90 00 09 [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 3D 59 80 0D 03 02 00 00 00 00 11 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0B 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0B 00 3D 59 00 E0 B9 A6 0F 6D 98 E5 9B 90 00 E5 [16:13:24]RAPDU: E0 B9 A6 0F 6D 98 E5 9B 90 00 [16:13:24]wFMCommunicate OK [16:13:24]SAM_PROTO_SignData done [16:13:24]FM_MakeSignedData done [16:13:24]CreateOFDProtocolMessage [16:13:24]wFMCommunicate request_size=4 [16:13:24]MH_SAM_APDU [16:13:24]CAPDU: 80 11 00 00 [16:13:24]Write to MH i2c: E2 08 00 3E 59 80 11 00 00 00 00 00 00 11 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 17 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 17 00 3E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [16:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:13:24]wFMCommunicate OK [16:13:24]CreateOFDProtocolMessage done [16:13:24]OFDSenderStorePacket 189224 [16:13:24]StoreOFDPacket docnum=189224 [16:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 26 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E3 02 00 35 04 06 00 5F 3D 7C 88 0D 9C E0 B9 A6 0F 6D 98 E5 9B [16:13:24]CheckFolder [16:13:24]dirname=/storage/ofd_packets [16:13:24]CheckFolder done [16:13:24]ProducePacketName [16:13:24]name=ofd_packets/00189224 [16:13:24]NVStorageSaveData ofd_packets/00189224 [16:13:24]File name is /storage/ofd_packets/00189224 [16:13:24]Write 301 bytes [16:13:24]NVStorageSaveData done [16:13:24]OFDSenderStorePacket done [16:13:24]KKMCreateOFDPacket done [16:13:24]NVStorageSaveData kkm_last_timestamp [16:13:24]File name is /storage/kkm_last_timestamp [16:13:24]Write 4 bytes [16:13:24]NVStorageSaveData done [16:13:24]ExternCall_PrintAddStr [16:13:24]wPrintStart [16:13:24]Write to MH i2c: 01 00 00 3F 59 98 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 07 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 07 00 3F 59 00 00 00 00 00 FF 0F AD [16:13:24]RasterBufferAndPrint [16:13:24]line Счет N : (1)211289 [16:13:24]line ИНН: 02508201610067 [16:13:24]line Контрольно-Кассовый Чек [16:13:24]line ПРОДАЖА [16:13:24]line ТРК (МРК, ГНК) : 23 [16:13:24]line Товар: 2710124500 [16:13:24]line Аи-95-К-3 [16:13:24]line 6.740 * 74.20 [16:13:24]line = 500.11 [16:13:24]line НДС 12% НСП 1% [16:13:24]line > о реализуемом товаре [16:13:24]line ОКРУГЛЕНИЕ: -0.11 [16:13:24]line ИТОГО: 500.00 [16:13:24]line Внесено: 500.00 [16:13:24]line СДАЧА: 0.00 [16:13:24]line НСП 1% : 4.43 [16:13:24]line НДС 12% : 53.11 [16:13:24]line Наличными: 500.00 [16:13:24]line Безнал.: 0.00 [16:13:24]line Место: АЗС № 86 "Партнер Нефть" [16:13:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:13:24]line СНО: Общий режим [16:13:24]line Чек 297 24.10.2024 16:13 [16:13:24]line Смена: 463 ФФД: 1.0 [16:13:24]line ЗНМ: 0300000155 [16:13:24]line РНМ: 0000000000100030 [16:13:24]line Версия ККМ: 001 [16:13:24]line ФМ: 0000000000965340 [16:13:24]line ФД: 189224 [16:13:24]line ФПД: 104717686934940 [16:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189224&fm=104717686934940&tin=02508201610067®Number=0000000000100030&sum=50000 [16:13:24]written 0, free lines is 4095 [16:13:24]OFD Sender: Processing packet 189224 [packets to send 1062, broken 1061] [16:13:24]ProducePacketName [16:13:24]name=ofd_packets/00189224 [16:13:24]OFD Sender: To server: pG, [16:13:24]CommunicateWithHost lk.salyk.kg:30040 [16:13:24]ConnectInit lk.salyk.kg [16:13:24]Connected sock=11 [16:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 26 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E3 02 00 35 04 06 00 5F 3D 7C 88 0D 9C E0 B9 A6 0F 6D 98 E5 9B [16:13:24]Write to MH i2c: 01 00 00 6A 59 C3 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 07 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: 01 07 00 6A 59 00 00 00 00 00 55 0C 2B [16:13:24]RasterBufferAndPrint [16:13:24]line [16:13:24]line [16:13:24]line [16:13:24]line [16:13:24]line [16:13:24]written 0, free lines is 3161 [16:13:24]MH_Cut [16:13:24]Write to MH i2c: D1 01 00 71 59 01 9C [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: D1 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: D1 01 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: D1 01 00 71 59 00 9B [16:13:24]Write to MH i2c: 01 00 00 72 59 CB [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 97 47 00 26 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E3 02 00 F4 03 04 00 0E 1C 1A 67 B6 04 01 00 00 92 16 E4 72 CC 1E D2 D1 [16:13:24]CommunicateWithHost err = 0 [16:13:24]CheckOFDResponse [16:13:24]1017 (14) - 77093643461234 [16:13:24]1041 (16) - 0000000000965340 [16:13:24]1040 (4) - 189224 [16:13:24]1012 (4) - 24.10.2024 10:06 [16:13:24]1206 (1) - 0 [16:13:24]OFD Sender: Remove packet 189224 [16:13:24]ProducePacketName [16:13:24]name=ofd_packets/00189224 [16:13:24]NVStorageDeleteData [16:13:25]OFD Sender: No OFD packet to send [16:13:25]*** Cut start [16:13:25]*** Partial cut [16:13:25]*** CUTSNS_PIN = 1 [16:13:25]*** CUTSNS_PIN = 0 [16:13:26]*** Brake cut motor [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 72 59 00 00 00 00 00 FF 0F E0 [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 73 59 80 11 00 00 00 00 00 00 46 [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 73 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [16:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 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 74 59 80 13 00 00 00 00 00 00 49 [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:26]Read from MH i2c: E2 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 62 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 62 00 74 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E3 02 00 0E 04 04 00 CF 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 AB [16:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E3 02 00 0E 04 04 00 CF 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 [16:13:26]wFMCommunicate OK [16:13:26]SAM_PROTO_GetFieldsCounters done [16:13:26]requested_item shift.num is exist - process it [16:13:26]requested_item shift.opened is exist - process it [16:13:26]req_shift_opened [16:13:26]FM_GetShiftState [16:13:26]SAM_PROTO_GetShiftState [16:13:26]wFMCommunicate request_size=4 [16:13:26]MH_SAM_APDU [16:13:26]CAPDU: 80 13 01 00 [16:13:26]Write to MH i2c: E2 08 00 75 59 80 13 01 00 00 00 00 00 4B [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 [16:13:26]MH_I2C_Read... [16:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:26]Read from MH i2c: E2 0E 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 0E 00 75 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 29 [16:13:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:13:26]wFMCommunicate OK [16:13:26]SAM_PROTO_GetShiftState done [16:13:26]FM_GetShiftState done [16:13:26]req_shift_opened done [16:13:26]requested_item shift.open_date is exist - process it [16:13:26]req_shift_open_date [16:13:26]req_shift_open_date done [16:13:26]produce_requested_data done [16:13:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189224,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:13:26]process_action_free close_receipt [16:13:26]json_value_free [16:13:26]json_value_free done [16:13:26]process_json_proto returns [16:13:26]Send response to host [16:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189224,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:13:26]free response buf [16:13:26]execute_script done [16:13:26]execute_script returns [16:13:26]free content buf [16:13:26]Sock 9.Close socket [16:13:26]Sock 9.Thread stoped [16:13:27]int [16:13:27]Write to MH i2c: 01 00 00 76 59 CF [16:13:27]*** FLAG_PRN_PAP1 set [16:13:27]Write i2c OK [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: 01 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: 01 07 00 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: 01 07 00 76 59 00 01 00 00 00 FF 0F E5 [16:13:27]state=0 [16:13:27]No paper [16:13:27]int [16:13:27]Write to MH i2c: 01 00 00 77 59 D0 [16:13:27]*** FLAG_PRN_PAP2 set [16:13:27]Write i2c OK [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: 01 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: 01 07 00 [16:13:27]MH_I2C_Read... [16:13:28]Read from MH i2c: 01 07 00 77 59 00 03 00 00 00 FF 0F E8 [16:13:28]state=0 [16:13:28]No paper [16:13:28]Cover opened [16:13:30]int [16:13:30]Write to MH i2c: 01 00 00 78 59 D1 [16:13:30]*** FLAG_PRN_PAP2 reset [16:13:30]Write i2c OK [16:13:30]MH_I2C_Read... [16:13:30]Read from MH i2c: 01 [16:13:30]MH_I2C_Read... [16:13:30]Read from MH i2c: 01 07 00 [16:13:30]MH_I2C_Read... [16:13:30]Read from MH i2c: 01 07 00 78 59 00 01 00 00 00 FF 0F E7 [16:13:30]state=3 [16:13:30]No paper [16:13:30]Cover closed [16:13:30]OFD Sender: No OFD packet to send [16:13:31]int [16:13:31]Write to MH i2c: 01 00 00 79 59 D2 [16:13:31]*** FLAG_PRN_PAP2 set [16:13:31]Write i2c OK [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 [16:13:31]MH_I2C_Read... [16:13:31]Read from MH i2c: 01 07 00 79 59 00 03 00 00 00 FF 0F EA [16:13:31]state=0 [16:13:31]No paper [16:13:31]Cover opened [16:13:35]OFD Sender: No OFD packet to send [16:13:36]Write to MH i2c: 01 00 00 7A 59 D3 [16:13:36]Write i2c OK [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: 01 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: 01 07 00 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: 01 07 00 7A 59 00 03 00 00 00 FF 0F EB [16:13:36]state=3 [16:13:36]No paper [16:13:36]Cover opened [16:13:40]OFD Sender: No OFD packet to send [16:13:41]Write to MH i2c: 01 00 00 7B 59 D4 [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 7B 59 00 03 00 00 00 FF 0F EC [16:13:41]state=3 [16:13:41]No paper [16:13:41]Cover opened [16:13:41]int [16:13:41]Write to MH i2c: 01 00 00 7C 59 D5 [16:13:41]*** FLAG_PRN_PAP2 reset [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 7C 59 00 01 00 00 00 FF 0F EB [16:13:41]state=3 [16:13:41]No paper [16:13:41]Cover closed [16:13:41]int [16:13:41]Write to MH i2c: 01 00 00 7D 59 D6 [16:13:41]*** FLAG_PRN_PAP1 reset [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: 01 07 00 7D 59 00 00 00 00 00 FF 0F EB [16:13:41]state=0 [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:26]accept exits with 8 [16:15:26]New connection [16:15:26]New thread 3067215204 created [16:15:26]Thread 3067071844 joined [16:15:26]Waiting for new connection... [16:15:26] Sock 8.Parse request [16:15:26]Sock 8.Check first char [16:15:26]Sock 8.First char is OK [16:15:26]request: POST /json_proto HTTP/1.0 [16:15:26]Method: POST [16:15:26]URL: /json_proto [16:15:26]Method is POST - this is cgi request [16:15:26]url: /json_proto [16:15:26]query_string will be loaded in cgi processing [16:15:26]execute_cgi json_proto POST (null) [16:15:26]execute_cgi path=json_proto method=POST [16:15:26]POST find Content-Length [16:15:26]Host: 172.17.42.131:8080 [16:15:26]Content-Length: 682 [16:15:26]Content-Type: application/json [16:15:26] [16:15:26]POST finish read [16:15:26]Found Content-Length = 682 [16:15:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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" ] } } [16:15:26]execute_script... [16:15: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)211290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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" ] } } [16:15:26]POST & json_proto [16:15:26]process_json_proto [16:15:26]json parsed OK: [16:15:26]protocol is kg_v1.0 [16:15:26]action value=close_receipt [16:15:26]process_action close_receipt [16:15:26]cmd_close_receipt [16:15:26]MH_GetDate [16:15:26]Write to MH i2c: F0 00 00 7E 59 C6 [16:15:26]Write i2c OK [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: F0 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: F0 09 00 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: F0 09 00 7E 59 00 A2 72 1A 67 A0 18 CA 66 4C [16:15:26]GetLastDocTimeStamp 1729786406 [16:15:26]current date 1729786530 [16:15:26]FM_GetShiftState [16:15:26]SAM_PROTO_GetShiftState [16:15:26]wFMCommunicate request_size=4 [16:15:26]MH_SAM_APDU [16:15:26]CAPDU: 80 13 01 00 [16:15:26]Write to MH i2c: E2 08 00 7F 59 80 13 01 00 00 00 00 00 55 [16:15:26]Write i2c OK [16:15:26]MH_I2C_Read... [16:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:26]Read from MH i2c: E2 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: E2 0E 00 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: E2 0E 00 7F 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 33 [16:15:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:15:26]wFMCommunicate OK [16:15:26]SAM_PROTO_GetShiftState done [16:15:26]FM_GetShiftState done [16:15:26]opened in 1729728961 [16:15:26]opened+sec_in_day 1729815361 [16:15:26]quantity*price = 130053 [16:15:26]sum+1 = 130055 [16:15:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 298 24.10.2024 16:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189225 ФПД: 206291506310384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189225&fm=206291506310384&tin=02508201610067®Number=0000000000100030&sum=130000 [16:15:27]StoreToDocumentArchive [16:15:27]shift 463 fd 189225 [16:15:27]save to /storage/0463/doc_00189225 [16:15:27]save last doc name /storage/0463/doc_00189225 to /storage/kkm_last_doc_name [16:15:27]save OK [16:15:27]Clear old archive folders... [16:15:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:27]tlvbuf is 0159B570 [16:15:27]SAM_PROTO_ClearQueue [16:15:27]wFMCommunicate request_size=4 [16:15:27]MH_SAM_APDU [16:15:27]CAPDU: 80 09 00 00 [16:15:27]Write to MH i2c: E2 08 00 8C 59 80 09 00 00 00 00 00 00 57 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 8C 59 00 90 00 59 [16:15:27]RAPDU: 90 00 [16:15:27]wFMCommunicate OK [16:15:27]SAM_PROTO_ClearQueue done [16:15:27]KKMCreateOFDPacket [16:15:27]OFDProtocolAddRootSTLVToBuf [16:15:27]FM_MakeSignedData [16:15:27]FM_MakeSignedData [16:15:27]SAM_PROTO_SignData [16:15:27]wFMCommunicate request_size=4 [16:15:27]MH_SAM_APDU [16:15:27]CAPDU: 80 0D 01 02 [16:15:27]Write to MH i2c: E2 08 00 8D 59 80 0D 01 02 00 00 00 00 5F [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 8D 59 00 90 00 5A [16:15:27]RAPDU: 90 00 [16:15:27]wFMCommunicate OK [16:15:27]wFMCommunicate request_size=255 [16:15:27]MH_SAM_APDU [16:15: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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 2A 01 00 00 F4 03 04 00 A2 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E3 02 00 35 04 06 00 BB [16:15:27]Write to MH i2c: E2 02 01 8E 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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 2A 01 00 00 F4 03 04 00 A2 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E3 02 00 35 04 06 00 BB 00 00 63 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 8E 59 00 90 00 5B [16:15:27]RAPDU: 90 00 [16:15:27]wFMCommunicate OK [16:15:27]wFMCommunicate request_size=10 [16:15:27]MH_SAM_APDU [16:15:27]CAPDU: 80 0D 02 02 05 9E FB F4 2C F0 [16:15:27]Write to MH i2c: E2 0D 00 8F 59 80 0D 02 02 05 00 9E FB F4 2C F0 00 00 15 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 03 00 8F 59 00 90 00 5C [16:15:27]RAPDU: 90 00 [16:15:27]wFMCommunicate OK [16:15:27]wFMCommunicate request_size=4 [16:15:27]MH_SAM_APDU [16:15:27]CAPDU: 80 0D 03 02 [16:15:27]Write to MH i2c: E2 08 00 90 59 80 0D 03 02 00 00 00 00 64 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 0B 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 0B 00 90 59 00 AE 01 81 78 C5 2E 68 41 90 00 A9 [16:15:27]RAPDU: AE 01 81 78 C5 2E 68 41 90 00 [16:15:27]wFMCommunicate OK [16:15:27]SAM_PROTO_SignData done [16:15:27]FM_MakeSignedData done [16:15:27]CreateOFDProtocolMessage [16:15:27]wFMCommunicate request_size=4 [16:15:27]MH_SAM_APDU [16:15:27]CAPDU: 80 11 00 00 [16:15:27]Write to MH i2c: E2 08 00 91 59 80 11 00 00 00 00 00 00 64 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:27]Read from MH i2c: E2 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 17 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: E2 17 00 91 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [16:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:15:27]wFMCommunicate OK [16:15:27]CreateOFDProtocolMessage done [16:15:27]OFDSenderStorePacket 189225 [16:15:27]StoreOFDPacket docnum=189225 [16:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE D0 07 01 AD 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 2A 01 00 00 F4 03 04 00 A2 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E3 02 00 35 04 06 00 BB 9E FB F4 2C F0 AE 01 81 78 C5 2E 68 41 [16:15:27]CheckFolder [16:15:27]dirname=/storage/ofd_packets [16:15:27]CheckFolder done [16:15:27]ProducePacketName [16:15:27]name=ofd_packets/00189225 [16:15:27]NVStorageSaveData ofd_packets/00189225 [16:15:27]File name is /storage/ofd_packets/00189225 [16:15:27]Write 301 bytes [16:15:27]NVStorageSaveData done [16:15:27]OFDSenderStorePacket done [16:15:27]KKMCreateOFDPacket done [16:15:27]NVStorageSaveData kkm_last_timestamp [16:15:27]File name is /storage/kkm_last_timestamp [16:15:27]Write 4 bytes [16:15:27]NVStorageSaveData done [16:15:27]ExternCall_PrintAddStr [16:15:27]wPrintStart [16:15:27]Write to MH i2c: 01 00 00 92 59 EB [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 07 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 07 00 92 59 00 00 00 00 00 FF 0F 00 [16:15:27]RasterBufferAndPrint [16:15:27]line Счет N : (1)211290 [16:15:27]line ИНН: 02508201610067 [16:15:27]line Контрольно-Кассовый Чек [16:15:27]line ПРОДАЖА [16:15:27]line ТРК (МРК, ГНК) : 12 [16:15:27]line Товар: 2710124130 [16:15:27]line Аи-92-К-3 [16:15:27]line 19.440 * 66.90 [16:15:27]line = 1300.54 [16:15:27]line НДС 12% НСП 1% [16:15:27]line > о реализуемом товаре [16:15:27]line ОКРУГЛЕНИЕ: -0.54 [16:15:27]line ИТОГО: 1300.00 [16:15:27]line Внесено: 1300.00 [16:15:27]line СДАЧА: 0.00 [16:15:27]line НСП 1% : 11.51 [16:15:27]line НДС 12% : 138.11 [16:15:27]line Наличными: 1300.00 [16:15:27]line Безнал.: 0.00 [16:15:27]line Место: АЗС № 86 "Партнер Нефть" [16:15:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:15:27]line СНО: Общий режим [16:15:27]line Чек 298 24.10.2024 16:15 [16:15:27]line Смена: 463 ФФД: 1.0 [16:15:27]line ЗНМ: 0300000155 [16:15:27]line РНМ: 0000000000100030 [16:15:27]line Версия ККМ: 001 [16:15:27]line ФМ: 0000000000965340 [16:15:27]line ФД: 189225 [16:15:27]line ФПД: 206291506310384 [16:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189225&fm=206291506310384&tin=02508201610067®Number=0000000000100030&sum=130000 [16:15:27]written 0, free lines is 4095 [16:15:28]OFD Sender: Processing packet 189225 [packets to send 1062, broken 1061] [16:15:28]ProducePacketName [16:15:28]name=ofd_packets/00189225 [16:15:28]OFD Sender: To server: pG, [16:15:28]CommunicateWithHost lk.salyk.kg:30040 [16:15:28]ConnectInit lk.salyk.kg [16:15:28]Connected sock=10 [16:15:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE D0 07 01 AD 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 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 F3 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 2A 01 00 00 F4 03 04 00 A2 72 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E3 02 00 35 04 06 00 BB 9E FB F4 2C F0 AE 01 81 78 C5 2E 68 41 [16:15:28]Write to MH i2c: 01 00 00 BD 59 16 [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: 01 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: 01 07 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: 01 07 00 BD 59 00 00 00 00 00 5F 0C 88 [16:15:28]RasterBufferAndPrint [16:15:28]line [16:15:28]line [16:15:28]line [16:15:28]line [16:15:28]line [16:15:28]written 0, free lines is 3171 [16:15:28]MH_Cut [16:15:28]Write to MH i2c: D1 01 00 C4 59 01 EF [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: D1 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: D1 01 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: D1 01 00 C4 59 00 EE [16:15:28]Write to MH i2c: 01 00 00 C5 59 1E [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 08 44 47 00 AA 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 39 36 35 33 34 30 10 04 04 00 29 E3 02 00 F4 03 04 00 89 1C 1A 67 B6 04 01 00 00 B6 D0 BC D9 61 76 BB 75 [16:15:28]CommunicateWithHost err = 0 [16:15:28]CheckOFDResponse [16:15:28]1017 (14) - 77093643461234 [16:15:28]1041 (16) - 0000000000965340 [16:15:28]1040 (4) - 189225 [16:15:28]1012 (4) - 24.10.2024 10:08 [16:15:28]1206 (1) - 0 [16:15:28]OFD Sender: Remove packet 189225 [16:15:28]ProducePacketName [16:15:28]name=ofd_packets/00189225 [16:15:28]NVStorageDeleteData [16:15:29]OFD Sender: No OFD packet to send [16:15:29]*** Cut start [16:15:29]*** Partial cut [16:15:29]*** CUTSNS_PIN = 1 [16:15:29]*** CUTSNS_PIN = 0 [16:15:30]*** Brake cut motor [16:15:30]Read from MH i2c: 01 [16:15:30]MH_I2C_Read... [16:15:30]*** Stop cut motor [16:15:30]*** Cut end [16:15:30]Read from MH i2c: 01 07 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 07 00 C5 59 00 00 00 00 00 FF 0F 33 [16:15:30]process_action close_receipt done [16:15:30]requested_data is exist [16:15:30]produce_requested_data [16:15:30]requested_item fm.sn is exist - process it [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 11 00 00 [16:15:30]Write to MH i2c: E2 08 00 C6 59 80 11 00 00 00 00 00 00 99 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 17 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 17 00 C6 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [16:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:15:30]wFMCommunicate OK [16:15:30]requested_item fd.num is exist - process it [16:15:30]SAM_PROTO_GetFieldsCounters [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 13 00 00 [16:15:30]Write to MH i2c: E2 08 00 C7 59 80 13 00 00 00 00 00 00 9C [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 62 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 62 00 C7 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E3 02 00 0E 04 04 00 CF 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 02 [16:15:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E3 02 00 0E 04 04 00 CF 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 [16:15:30]wFMCommunicate OK [16:15:30]SAM_PROTO_GetFieldsCounters done [16:15:30]requested_item shift.num is exist - process it [16:15:30]requested_item shift.opened is exist - process it [16:15:30]req_shift_opened [16:15:30]FM_GetShiftState [16:15:30]SAM_PROTO_GetShiftState [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 13 01 00 [16:15:30]Write to MH i2c: E2 08 00 C8 59 80 13 01 00 00 00 00 00 9E [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0E 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0E 00 C8 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7C [16:15:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:15:30]wFMCommunicate OK [16:15:30]SAM_PROTO_GetShiftState done [16:15:30]FM_GetShiftState done [16:15:30]req_shift_opened done [16:15:30]requested_item shift.open_date is exist - process it [16:15:30]req_shift_open_date [16:15:30]req_shift_open_date done [16:15:30]produce_requested_data done [16:15:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189225,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:15:30]process_action_free close_receipt [16:15:30]json_value_free [16:15:30]json_value_free done [16:15:30]process_json_proto returns [16:15:30]Send response to host [16:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189225,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:15:30]free response buf [16:15:30]execute_script done [16:15:30]execute_script returns [16:15:30]free content buf [16:15:30]Sock 8.Close socket [16:15:30]Sock 8.Thread stoped [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:21]accept exits with 9 [16:17:21]New connection [16:17:21]New thread 3067071844 created [16:17:21]Thread 3067215204 joined [16:17:21]Waiting for new connection... [16:17:21] Sock 9.Parse request [16:17:21]Sock 9.Check first char [16:17:21]Sock 9.First char is OK [16:17:21]request: POST /json_proto HTTP/1.0 [16:17:21]Method: POST [16:17:21]URL: /json_proto [16:17:21]Method is POST - this is cgi request [16:17:21]url: /json_proto [16:17:21]query_string will be loaded in cgi processing [16:17:21]execute_cgi json_proto POST (null) [16:17:21]execute_cgi path=json_proto method=POST [16:17:21]POST find Content-Length [16:17:21]Host: 172.17.42.131:8080 [16:17:21]Content-Length: 682 [16:17:21]Content-Type: application/json [16:17:21] [16:17:21]POST finish read [16:17:21]Found Content-Length = 682 [16:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:17:21]execute_script... [16:17: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)211291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:17:21]POST & json_proto [16:17:21]process_json_proto [16:17:21]json parsed OK: [16:17:21]protocol is kg_v1.0 [16:17:21]action value=close_receipt [16:17:21]process_action close_receipt [16:17:21]cmd_close_receipt [16:17:21]MH_GetDate [16:17:21]Write to MH i2c: F0 00 00 C9 59 11 [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 09 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 09 00 C9 59 00 15 73 1A 67 A0 18 CA 66 0B [16:17:21]GetLastDocTimeStamp 1729786530 [16:17:21]current date 1729786645 [16:17:21]FM_GetShiftState [16:17:21]SAM_PROTO_GetShiftState [16:17:21]wFMCommunicate request_size=4 [16:17:21]MH_SAM_APDU [16:17:21]CAPDU: 80 13 01 00 [16:17:21]Write to MH i2c: E2 08 00 CA 59 80 13 01 00 00 00 00 00 A0 [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:21]Read from MH i2c: E2 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: E2 0E 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: E2 0E 00 CA 59 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7E [16:17:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:17:21]wFMCommunicate OK [16:17:21]SAM_PROTO_GetShiftState done [16:17:21]FM_GetShiftState done [16:17:21]opened in 1729728961 [16:17:21]opened+sec_in_day 1729815361 [16:17:21]quantity*price = 100021 [16:17:21]sum+1 = 100023 [16:17: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 299 24.10.2024 16:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189226 ФПД: 223707352618709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161725&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189226&fm=223707352618709&tin=02508201610067®Number=0000000000100030&sum=100000 [16:17:22]StoreToDocumentArchive [16:17:22]shift 463 fd 189226 [16:17:22]save to /storage/0463/doc_00189226 [16:17:22]save last doc name /storage/0463/doc_00189226 to /storage/kkm_last_doc_name [16:17:22]save OK [16:17:22]Clear old archive folders... [16:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:22]tlvbuf is 014D2FE0 [16:17:22]SAM_PROTO_ClearQueue [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 09 00 00 [16:17:22]Write to MH i2c: E2 08 00 D7 59 80 09 00 00 00 00 00 00 A2 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 D7 59 00 90 00 A4 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_ClearQueue done [16:17:22]KKMCreateOFDPacket [16:17:22]OFDProtocolAddRootSTLVToBuf [16:17:22]FM_MakeSignedData [16:17:22]FM_MakeSignedData [16:17:22]SAM_PROTO_SignData [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 01 02 [16:17:22]Write to MH i2c: E2 08 00 D8 59 80 0D 01 02 00 00 00 00 AA [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 D8 59 00 90 00 A5 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=255 [16:17:22]MH_SAM_APDU [16:17: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 33 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 2B 01 00 00 F4 03 04 00 15 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E3 02 00 35 04 06 00 CB [16:17:22]Write to MH i2c: E2 02 01 D9 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 33 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 2B 01 00 00 F4 03 04 00 15 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E3 02 00 35 04 06 00 CB 00 00 19 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 D9 59 00 90 00 A6 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=10 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 02 02 05 75 ED 49 56 D5 [16:17:22]Write to MH i2c: E2 0D 00 DA 59 80 0D 02 02 05 00 75 ED 49 56 D5 00 00 8D [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 DA 59 00 90 00 A7 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 03 02 [16:17:22]Write to MH i2c: E2 08 00 DB 59 80 0D 03 02 00 00 00 00 AF [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0B 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0B 00 DB 59 00 AE 13 7B A2 A9 BB C6 CC 90 00 84 [16:17:22]RAPDU: AE 13 7B A2 A9 BB C6 CC 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_SignData done [16:17:22]FM_MakeSignedData done [16:17:22]CreateOFDProtocolMessage [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 11 00 00 [16:17:22]Write to MH i2c: E2 08 00 DC 59 80 11 00 00 00 00 00 00 AF [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 DC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [16:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:17:22]wFMCommunicate OK [16:17:22]CreateOFDProtocolMessage done [16:17:22]OFDSenderStorePacket 189226 [16:17:22]StoreOFDPacket docnum=189226 [16:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 46 07 01 5E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 2B 01 00 00 F4 03 04 00 15 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E3 02 00 35 04 06 00 CB 75 ED 49 56 D5 AE 13 7B A2 A9 BB C6 CC [16:17:22]CheckFolder [16:17:22]dirname=/storage/ofd_packets [16:17:22]CheckFolder done [16:17:22]ProducePacketName [16:17:22]name=ofd_packets/00189226 [16:17:22]NVStorageSaveData ofd_packets/00189226 [16:17:22]File name is /storage/ofd_packets/00189226 [16:17:22]Write 301 bytes [16:17:22]NVStorageSaveData done [16:17:22]OFDSenderStorePacket done [16:17:22]KKMCreateOFDPacket done [16:17:22]NVStorageSaveData kkm_last_timestamp [16:17:22]File name is /storage/kkm_last_timestamp [16:17:22]Write 4 bytes [16:17:22]NVStorageSaveData done [16:17:22]ExternCall_PrintAddStr [16:17:22]wPrintStart [16:17:22]Write to MH i2c: 01 00 00 DD 59 36 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 07 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 07 00 DD 59 00 00 00 00 00 FF 0F 4B [16:17:22]RasterBufferAndPrint [16:17:22]line Счет N : (1)211291 [16:17:22]line ИНН: 02508201610067 [16:17:22]line Контрольно-Кассовый Чек [16:17:22]line ПРОДАЖА [16:17:22]line ТРК (МРК, ГНК) : 43 [16:17:22]line Товар: 2710124500 [16:17:22]line Аи-95-К-3 [16:17:22]line 13.480 * 74.20 [16:17:22]line = 1000.22 [16:17:22]line НДС 12% НСП 1% [16:17:22]line > о реализуемом товаре [16:17:22]line ОКРУГЛЕНИЕ: -0.22 [16:17:22]line ИТОГО: 1000.00 [16:17:22]line Внесено: 1000.00 [16:17:22]line СДАЧА: 0.00 [16:17:22]line НСП 1% : 8.85 [16:17:22]line НДС 12% : 106.22 [16:17:22]line Наличными: 1000.00 [16:17:22]line Безнал.: 0.00 [16:17:22]line Место: АЗС № 86 "Партнер Нефть" [16:17:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:17:22]line СНО: Общий режим [16:17:22]line Чек 299 24.10.2024 16:17 [16:17:22]line Смена: 463 ФФД: 1.0 [16:17:22]line ЗНМ: 0300000155 [16:17:22]line РНМ: 0000000000100030 [16:17:22]line Версия ККМ: 001 [16:17:22]line ФМ: 0000000000965340 [16:17:22]line ФД: 189226 [16:17:22]line ФПД: 223707352618709 [16:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161725&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189226&fm=223707352618709&tin=02508201610067®Number=0000000000100030&sum=100000 [16:17:22]written 0, free lines is 4095 [16:17:22]OFD Sender: Processing packet 189226 [packets to send 1062, broken 1061] [16:17:22]ProducePacketName [16:17:22]name=ofd_packets/00189226 [16:17:22]OFD Sender: To server: pG, [16:17:22]CommunicateWithHost lk.salyk.kg:30040 [16:17:22]ConnectInit lk.salyk.kg [16:17:23]Connected sock=10 [16:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 46 07 01 5E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 2B 01 00 00 F4 03 04 00 15 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E3 02 00 35 04 06 00 CB 75 ED 49 56 D5 AE 13 7B A2 A9 BB C6 CC [16:17:23]Write to MH i2c: 01 00 00 08 5A 62 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 08 5A 00 00 00 00 00 60 0C D5 [16:17:23]RasterBufferAndPrint [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]written 0, free lines is 3172 [16:17:23]MH_Cut [16:17:23]Write to MH i2c: D1 01 00 0F 5A 01 3B [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 0F 5A 00 3A [16:17:23]Write to MH i2c: 01 00 00 10 5A 6A [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DD A2 47 00 DA 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 39 36 35 33 34 30 10 04 04 00 2A E3 02 00 F4 03 04 00 FC 1C 1A 67 B6 04 01 00 00 52 48 57 3A 4B B1 86 61 [16:17:23]CommunicateWithHost err = 0 [16:17:23]CheckOFDResponse [16:17:23]1017 (14) - 77093643461234 [16:17:23]1041 (16) - 0000000000965340 [16:17:23]1040 (4) - 189226 [16:17:23]1012 (4) - 24.10.2024 10:10 [16:17:23]1206 (1) - 0 [16:17:23]OFD Sender: Remove packet 189226 [16:17:23]ProducePacketName [16:17:23]name=ofd_packets/00189226 [16:17:23]NVStorageDeleteData [16:17:24]OFD Sender: No OFD packet to send [16:17:24]*** Cut start [16:17:24]*** Partial cut [16:17:24]*** CUTSNS_PIN = 1 [16:17:24]*** CUTSNS_PIN = 0 [16:17:24]*** Brake cut motor [16:17:25]Read from MH i2c: 01 [16:17:25]MH_I2C_Read... [16:17:25]*** Stop cut motor [16:17:25]*** Cut end [16:17:25]Read from MH i2c: 01 07 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: 01 07 00 10 5A 00 00 00 00 00 FF 0F 7F [16:17:25]process_action close_receipt done [16:17:25]requested_data is exist [16:17:25]produce_requested_data [16:17:25]requested_item fm.sn is exist - process it [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 11 00 00 [16:17:25]Write to MH i2c: E2 08 00 11 5A 80 11 00 00 00 00 00 00 E5 [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 17 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 17 00 11 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [16:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:17:25]wFMCommunicate OK [16:17:25]requested_item fd.num is exist - process it [16:17:25]SAM_PROTO_GetFieldsCounters [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 13 00 00 [16:17:25]Write to MH i2c: E2 08 00 12 5A 80 13 00 00 00 00 00 00 E8 [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 62 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 62 00 12 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E3 02 00 0E 04 04 00 CF 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 52 [16:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E3 02 00 0E 04 04 00 CF 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 [16:17:25]wFMCommunicate OK [16:17:25]SAM_PROTO_GetFieldsCounters done [16:17:25]requested_item shift.num is exist - process it [16:17:25]requested_item shift.opened is exist - process it [16:17:25]req_shift_opened [16:17:25]FM_GetShiftState [16:17:25]SAM_PROTO_GetShiftState [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 13 01 00 [16:17:25]Write to MH i2c: E2 08 00 13 5A 80 13 01 00 00 00 00 00 EA [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 0E 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 0E 00 13 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C8 [16:17:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:17:25]wFMCommunicate OK [16:17:25]SAM_PROTO_GetShiftState done [16:17:25]FM_GetShiftState done [16:17:25]req_shift_opened done [16:17:25]requested_item shift.open_date is exist - process it [16:17:25]req_shift_open_date [16:17:25]req_shift_open_date done [16:17:25]produce_requested_data done [16:17:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189226,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:17:25]process_action_free close_receipt [16:17:25]json_value_free [16:17:25]json_value_free done [16:17:25]process_json_proto returns [16:17:25]Send response to host [16:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189226,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:17:25]free response buf [16:17:25]execute_script done [16:17:25]execute_script returns [16:17:25]free content buf [16:17:25]Sock 9.Close socket [16:17:25]Sock 9.Thread stoped [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:38]accept exits with 8 [16:18:38]New connection [16:18:38]New thread 3067215204 created [16:18:38]Thread 3067071844 joined [16:18:38]Waiting for new connection... [16:18:38] Sock 8.Parse request [16:18:38]Sock 8.Check first char [16:18:38]Sock 8.First char is OK [16:18:38]request: POST /json_proto HTTP/1.0 [16:18:38]Method: POST [16:18:38]URL: /json_proto [16:18:38]Method is POST - this is cgi request [16:18:38]url: /json_proto [16:18:38]query_string will be loaded in cgi processing [16:18:38]execute_cgi json_proto POST (null) [16:18:38]execute_cgi path=json_proto method=POST [16:18:38]POST find Content-Length [16:18:38]Host: 172.17.42.131:8080 [16:18:38]Content-Length: 682 [16:18:38]Content-Type: application/json [16:18:38] [16:18:38]POST finish read [16:18:38]Found Content-Length = 682 [16:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [16:18:38]execute_script... [16:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [16:18:38]POST & json_proto [16:18:38]process_json_proto [16:18:38]json parsed OK: [16:18:38]protocol is kg_v1.0 [16:18:38]action value=close_receipt [16:18:38]process_action close_receipt [16:18:38]cmd_close_receipt [16:18:38]MH_GetDate [16:18:38]Write to MH i2c: F0 00 00 14 5A 5D [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 09 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 09 00 14 5A 00 62 73 1A 67 A0 18 CA 66 A4 [16:18:38]GetLastDocTimeStamp 1729786645 [16:18:38]current date 1729786722 [16:18:38]FM_GetShiftState [16:18:38]SAM_PROTO_GetShiftState [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 13 01 00 [16:18:38]Write to MH i2c: E2 08 00 15 5A 80 13 01 00 00 00 00 00 EC [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 15 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [16:18:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:18:38]wFMCommunicate OK [16:18:38]SAM_PROTO_GetShiftState done [16:18:38]FM_GetShiftState done [16:18:38]opened in 1729728961 [16:18:38]opened+sec_in_day 1729815361 [16:18:38]quantity*price = 130072 [16:18:38]sum+1 = 130074 [16:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 300 24.10.2024 16:18 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189227 ФПД: 81237652930616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161842&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189227&fm=81237652930616&tin=02508201610067®Number=0000000000100030&sum=130000 [16:18:39]StoreToDocumentArchive [16:18:39]shift 463 fd 189227 [16:18:39]save to /storage/0463/doc_00189227 [16:18:39]save last doc name /storage/0463/doc_00189227 to /storage/kkm_last_doc_name [16:18:39]save OK [16:18:39]Clear old archive folders... [16:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:39]tlvbuf is 01641A90 [16:18:39]SAM_PROTO_ClearQueue [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 09 00 00 [16:18:39]Write to MH i2c: E2 08 00 22 5A 80 09 00 00 00 00 00 00 EE [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 22 5A 00 90 00 F0 [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]SAM_PROTO_ClearQueue done [16:18:39]KKMCreateOFDPacket [16:18:39]OFDProtocolAddRootSTLVToBuf [16:18:39]FM_MakeSignedData [16:18:39]FM_MakeSignedData [16:18:39]SAM_PROTO_SignData [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 0D 01 02 [16:18:39]Write to MH i2c: E2 08 00 23 5A 80 0D 01 02 00 00 00 00 F6 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 23 5A 00 90 00 F1 [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]wFMCommunicate request_size=255 [16:18:39]MH_SAM_APDU [16:18: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 33 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 2C 01 00 00 F4 03 04 00 62 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E3 02 00 35 04 06 00 49 [16:18:39]Write to MH i2c: E2 02 01 24 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 33 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 2C 01 00 00 F4 03 04 00 62 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E3 02 00 35 04 06 00 49 00 00 C5 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 24 5A 00 90 00 F2 [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]wFMCommunicate request_size=10 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 0D 02 02 05 E2 9D 72 00 38 [16:18:39]Write to MH i2c: E2 0D 00 25 5A 80 0D 02 02 05 00 E2 9D 72 00 38 00 00 2C [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 03 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 03 00 25 5A 00 90 00 F3 [16:18:40]RAPDU: 90 00 [16:18:40]wFMCommunicate OK [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 0D 03 02 [16:18:40]Write to MH i2c: E2 08 00 26 5A 80 0D 03 02 00 00 00 00 FB [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0B 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0B 00 26 5A 00 C9 1D 99 87 9A 90 25 FC 90 00 4D [16:18:40]RAPDU: C9 1D 99 87 9A 90 25 FC 90 00 [16:18:40]wFMCommunicate OK [16:18:40]SAM_PROTO_SignData done [16:18:40]FM_MakeSignedData done [16:18:40]CreateOFDProtocolMessage [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 11 00 00 [16:18:40]Write to MH i2c: E2 08 00 27 5A 80 11 00 00 00 00 00 00 FB [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 27 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [16:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:18:40]wFMCommunicate OK [16:18:40]CreateOFDProtocolMessage done [16:18:40]OFDSenderStorePacket 189227 [16:18:40]StoreOFDPacket docnum=189227 [16:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B D0 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 2C 01 00 00 F4 03 04 00 62 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E3 02 00 35 04 06 00 49 E2 9D 72 00 38 C9 1D 99 87 9A 90 25 FC [16:18:40]CheckFolder [16:18:40]dirname=/storage/ofd_packets [16:18:40]CheckFolder done [16:18:40]ProducePacketName [16:18:40]name=ofd_packets/00189227 [16:18:40]NVStorageSaveData ofd_packets/00189227 [16:18:40]File name is /storage/ofd_packets/00189227 [16:18:40]Write 301 bytes [16:18:40]NVStorageSaveData done [16:18:40]OFDSenderStorePacket done [16:18:40]KKMCreateOFDPacket done [16:18:40]NVStorageSaveData kkm_last_timestamp [16:18:40]File name is /storage/kkm_last_timestamp [16:18:40]Write 4 bytes [16:18:40]NVStorageSaveData done [16:18:40]ExternCall_PrintAddStr [16:18:40]wPrintStart [16:18:40]Write to MH i2c: 01 00 00 28 5A 82 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 28 5A 00 00 00 00 00 FF 0F 97 [16:18:40]RasterBufferAndPrint [16:18:40]line Счет N : (1)211292 [16:18:40]line ИНН: 02508201610067 [16:18:40]line Контрольно-Кассовый Чек [16:18:40]line ПРОДАЖА [16:18:40]line ТРК (МРК, ГНК) : 13 [16:18:40]line Товар: 2710124500 [16:18:40]line Аи-95-К-3 [16:18:40]line 17.530 * 74.20 [16:18:40]line = 1300.73 [16:18:40]line НДС 12% НСП 1% [16:18:40]line > о реализуемом товаре [16:18:40]line ОКРУГЛЕНИЕ: -0.73 [16:18:40]line ИТОГО: 1300.00 [16:18:40]line Внесено: 1300.00 [16:18:40]line СДАЧА: 0.00 [16:18:40]line НСП 1% : 11.51 [16:18:40]line НДС 12% : 138.13 [16:18:40]line Наличными: 1300.00 [16:18:40]line Безнал.: 0.00 [16:18:40]line Место: АЗС № 86 "Партнер Нефть" [16:18:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:18:40]line СНО: Общий режим [16:18:40]line Чек 300 24.10.2024 16:18 [16:18:40]line Смена: 463 ФФД: 1.0 [16:18:40]line ЗНМ: 0300000155 [16:18:40]line РНМ: 0000000000100030 [16:18:40]line Версия ККМ: 001 [16:18:40]line ФМ: 0000000000965340 [16:18:40]line ФД: 189227 [16:18:40]line ФПД: 81237652930616 [16:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161842&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189227&fm=81237652930616&tin=02508201610067®Number=0000000000100030&sum=130000 [16:18:40]OFD Sender: Processing packet 189227 [packets to send 1062, broken 1061] [16:18:40]ProducePacketName [16:18:40]name=ofd_packets/00189227 [16:18:40]OFD Sender: To server: pG, [16:18:40]CommunicateWithHost lk.salyk.kg:30040 [16:18:40]ConnectInit lk.salyk.kg [16:18:40]written 0, free lines is 4095 [16:18:40]Connected sock=10 [16:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B D0 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 2C 01 00 00 F4 03 04 00 62 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E3 02 00 35 04 06 00 49 E2 9D 72 00 38 C9 1D 99 87 9A 90 25 FC [16:18:40]Write to MH i2c: 01 00 00 53 5A AD [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 53 5A 00 00 00 00 00 5C 0C 1C [16:18:40]RasterBufferAndPrint [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]written 0, free lines is 3168 [16:18:40]MH_Cut [16:18:40]Write to MH i2c: D1 01 00 5A 5A 01 86 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 01 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 01 00 5A 5A 00 85 [16:18:40]Write to MH i2c: 01 00 00 5B 5A B5 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B8 67 47 00 27 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 39 36 35 33 34 30 10 04 04 00 2B E3 02 00 F4 03 04 00 4A 1D 1A 67 B6 04 01 00 00 2C B2 C9 0F 17 C6 2F 4B [16:18:40]CommunicateWithHost err = 0 [16:18:40]CheckOFDResponse [16:18:40]1017 (14) - 77093643461234 [16:18:40]1041 (16) - 0000000000965340 [16:18:40]1040 (4) - 189227 [16:18:40]1012 (4) - 24.10.2024 10:11 [16:18:40]1206 (1) - 0 [16:18:40]OFD Sender: Remove packet 189227 [16:18:40]ProducePacketName [16:18:40]name=ofd_packets/00189227 [16:18:40]NVStorageDeleteData [16:18:41]OFD Sender: No OFD packet to send [16:18:41]*** Cut start [16:18:41]*** Partial cut [16:18:41]*** CUTSNS_PIN = 1 [16:18:41]*** CUTSNS_PIN = 0 [16:18:42]*** Brake cut motor [16:18:42]Read from MH i2c: 01 [16:18:42]MH_I2C_Read... [16:18:42]*** Stop cut motor [16:18:42]*** Cut end [16:18:42]Read from MH i2c: 01 07 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: 01 07 00 5B 5A 00 00 00 00 00 FF 0F CA [16:18:42]process_action close_receipt done [16:18:42]requested_data is exist [16:18:42]produce_requested_data [16:18:42]requested_item fm.sn is exist - process it [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 11 00 00 [16:18:42]Write to MH i2c: E2 08 00 5C 5A 80 11 00 00 00 00 00 00 30 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 17 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 17 00 5C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [16:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:18:42]wFMCommunicate OK [16:18:42]requested_item fd.num is exist - process it [16:18:42]SAM_PROTO_GetFieldsCounters [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 13 00 00 [16:18:42]Write to MH i2c: E2 08 00 5D 5A 80 13 00 00 00 00 00 00 33 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 62 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 62 00 5D 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E3 02 00 0E 04 04 00 CF 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 A1 [16:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E3 02 00 0E 04 04 00 CF 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 [16:18:42]wFMCommunicate OK [16:18:42]SAM_PROTO_GetFieldsCounters done [16:18:42]requested_item shift.num is exist - process it [16:18:42]requested_item shift.opened is exist - process it [16:18:42]req_shift_opened [16:18:42]FM_GetShiftState [16:18:42]SAM_PROTO_GetShiftState [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 13 01 00 [16:18:42]Write to MH i2c: E2 08 00 5E 5A 80 13 01 00 00 00 00 00 35 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 0E 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 0E 00 5E 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 13 [16:18:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:18:42]wFMCommunicate OK [16:18:42]SAM_PROTO_GetShiftState done [16:18:42]FM_GetShiftState done [16:18:42]req_shift_opened done [16:18:42]requested_item shift.open_date is exist - process it [16:18:42]req_shift_open_date [16:18:42]req_shift_open_date done [16:18:42]produce_requested_data done [16:18:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189227,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:18:42]process_action_free close_receipt [16:18:42]json_value_free [16:18:42]json_value_free done [16:18:42]process_json_proto returns [16:18:42]Send response to host [16:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189227,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:18:42]free response buf [16:18:42]execute_script done [16:18:42]execute_script returns [16:18:42]free content buf [16:18:42]Sock 8.Close socket [16:18:42]Sock 8.Thread stoped [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:32]accept exits with 9 [16:20:32]New connection [16:20:32]New thread 3067071844 created [16:20:32]Thread 3067215204 joined [16:20:32]Waiting for new connection... [16:20:32] Sock 9.Parse request [16:20:32]Sock 9.Check first char [16:20:32]Sock 9.First char is OK [16:20:32]request: POST /json_proto HTTP/1.0 [16:20:32]Method: POST [16:20:32]URL: /json_proto [16:20:32]Method is POST - this is cgi request [16:20:32]url: /json_proto [16:20:32]query_string will be loaded in cgi processing [16:20:32]execute_cgi json_proto POST (null) [16:20:32]execute_cgi path=json_proto method=POST [16:20:32]POST find Content-Length [16:20:32]Host: 172.17.42.131:8080 [16:20:32]Content-Length: 751 [16:20:32]Content-Type: application/json [16:20:32] [16:20:32]POST finish read [16:20:32]Found Content-Length = 751 [16:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:32]execute_script... [16: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)211293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:32]POST & json_proto [16:20:32]process_json_proto [16:20:32]json parsed OK: [16:20:32]protocol is kg_v1.0 [16:20:32]action value=close_receipt [16:20:32]process_action close_receipt [16:20:32]cmd_close_receipt [16:20:32]MH_GetDate [16:20:32]Write to MH i2c: F0 00 00 5F 5A A8 [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: F0 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: F0 09 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: F0 09 00 5F 5A 00 D4 73 1A 67 A0 18 CA 66 61 [16:20:32]GetLastDocTimeStamp 1729786722 [16:20:32]current date 1729786836 [16:20:32]FM_GetShiftState [16:20:32]SAM_PROTO_GetShiftState [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 13 01 00 [16:20:32]Write to MH i2c: E2 08 00 60 5A 80 13 01 00 00 00 00 00 37 [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 60 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [16:20:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:20:32]wFMCommunicate OK [16:20:32]SAM_PROTO_GetShiftState done [16:20:32]FM_GetShiftState done [16:20:32]opened in 1729728961 [16:20:32]opened+sec_in_day 1729815361 [16:20:32]quantity*price = 0 [16:20:32]sum+1 = 1 [16:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 301 24.10.2024 16:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100418 ФМ: 0000000000965340 ФД: 189228 ФПД: 124416737509941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189228&fm=124416737509941&tin=02508201610067®Number=0000000000100030&sum=0 [16:20:33]StoreToDocumentArchive [16:20:33]shift 463 fd 189228 [16:20:33]save to /storage/0463/doc_00189228 [16:20:33]save last doc name /storage/0463/doc_00189228 to /storage/kkm_last_doc_name [16:20:33]save OK [16:20:33]Clear old archive folders... [16:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:20:33]tlvbuf is 01641520 [16:20:33]SAM_PROTO_ClearQueue [16:20:33]wFMCommunicate request_size=4 [16:20:33]MH_SAM_APDU [16:20:33]CAPDU: 80 09 00 00 [16:20:33]Write to MH i2c: E2 08 00 6D 5A 80 09 00 00 00 00 00 00 39 [16:20:33]Write i2c OK [16:20:33]MH_I2C_Read... [16:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:33]Read from MH i2c: E2 [16:20:33]MH_I2C_Read... [16:20:33]Read from MH i2c: E2 03 00 [16:20:33]MH_I2C_Read... [16:20:33]Read from MH i2c: E2 03 00 6D 5A 00 90 00 3B [16:20:33]RAPDU: 90 00 [16:20:33]wFMCommunicate OK [16:20:33]SAM_PROTO_ClearQueue done [16:20:33]KKMCreateOFDPacket [16:20:33]OFDProtocolAddRootSTLVToBuf [16:20:33]FM_MakeSignedData [16:20:33]FM_MakeSignedData [16:20:33]SAM_PROTO_SignData [16:20:33]wFMCommunicate request_size=4 [16:20:33]MH_SAM_APDU [16:20:33]CAPDU: 80 0D 01 02 [16:20:33]Write to MH i2c: E2 08 00 6E 5A 80 0D 01 02 00 00 00 00 41 [16:20:33]Write i2c OK [16:20:33]MH_I2C_Read... [16:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:33]Read from MH i2c: E2 [16:20:33]MH_I2C_Read... [16:20:33]Read from MH i2c: E2 03 00 [16:20:33]MH_I2C_Read... [16:20:33]Read from MH i2c: E2 03 00 6E 5A 00 90 00 3C [16:20:33]RAPDU: 90 00 [16:20:33]wFMCommunicate OK [16:20:33]wFMCommunicate request_size=255 [16:20:33]MH_SAM_APDU [16:20:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D4 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E3 02 00 35 04 06 00 71 28 07 71 [16:20:33]Write to MH i2c: E2 02 01 6F 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D4 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E3 02 00 35 04 06 00 71 28 07 71 00 00 DA [16:20:33]Write i2c OK [16:20:33]MH_I2C_Read... [16:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:34]Read from MH i2c: E2 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 03 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 03 00 6F 5A 00 90 00 3D [16:20:34]RAPDU: 90 00 [16:20:34]wFMCommunicate OK [16:20:34]wFMCommunicate request_size=7 [16:20:34]MH_SAM_APDU [16:20:34]CAPDU: 80 0D 02 02 02 82 35 [16:20:34]Write to MH i2c: E2 0A 00 70 5A 80 0D 02 02 02 00 82 35 00 00 FF [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:34]Read from MH i2c: E2 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 03 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 03 00 70 5A 00 90 00 3E [16:20:34]RAPDU: 90 00 [16:20:34]wFMCommunicate OK [16:20:34]wFMCommunicate request_size=4 [16:20:34]MH_SAM_APDU [16:20:34]CAPDU: 80 0D 03 02 [16:20:34]Write to MH i2c: E2 08 00 71 5A 80 0D 03 02 00 00 00 00 46 [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:34]Read from MH i2c: E2 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 0B 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 0B 00 71 5A 00 5F 4A 28 FF 2E C5 97 5A 90 00 FB [16:20:34]RAPDU: 5F 4A 28 FF 2E C5 97 5A 90 00 [16:20:34]wFMCommunicate OK [16:20:34]SAM_PROTO_SignData done [16:20:34]FM_MakeSignedData done [16:20:34]CreateOFDProtocolMessage [16:20:34]wFMCommunicate request_size=4 [16:20:34]MH_SAM_APDU [16:20:34]CAPDU: 80 11 00 00 [16:20:34]Write to MH i2c: E2 08 00 72 5A 80 11 00 00 00 00 00 00 46 [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:34]Read from MH i2c: E2 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 17 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 17 00 72 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [16:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:20:34]wFMCommunicate OK [16:20:34]CreateOFDProtocolMessage done [16:20:34]OFDSenderStorePacket 189228 [16:20:34]StoreOFDPacket docnum=189228 [16:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 09 D6 04 01 2C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D4 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E3 02 00 35 04 06 00 71 28 07 71 82 35 5F 4A 28 FF 2E C5 97 5A [16:20:34]CheckFolder [16:20:34]dirname=/storage/ofd_packets [16:20:34]CheckFolder done [16:20:34]ProducePacketName [16:20:34]name=ofd_packets/00189228 [16:20:34]NVStorageSaveData ofd_packets/00189228 [16:20:34]File name is /storage/ofd_packets/00189228 [16:20:34]Write 298 bytes [16:20:34]NVStorageSaveData done [16:20:34]OFDSenderStorePacket done [16:20:34]KKMCreateOFDPacket done [16:20:34]NVStorageSaveData kkm_last_timestamp [16:20:34]File name is /storage/kkm_last_timestamp [16:20:34]Write 4 bytes [16:20:34]NVStorageSaveData done [16:20:34]ExternCall_PrintAddStr [16:20:34]wPrintStart [16:20:34]Write to MH i2c: 01 00 00 73 5A CD [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: 01 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: 01 07 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: 01 07 00 73 5A 00 00 00 00 00 FF 0F E2 [16:20:34]RasterBufferAndPrint [16:20:34]line Счет N : (1)211293 [16:20:34]line ИНН: 02508201610067 [16:20:34]line Контрольно-Кассовый Чек [16:20:34]line ПРОДАЖА [16:20:34]line ТРК (МРК, ГНК) : 51 [16:20:34]line Товар: 2710194210 [16:20:34]line ДТ-К-5 [16:20:34]line 20.000 * 0.00 [16:20:34]line = 0.00 [16:20:34]line НДС 12% НСП 1% [16:20:34]line > о реализуемом товаре [16:20:34]line ИТОГО: 0.00 [16:20:34]line НСП 1% : 0.00 [16:20:34]line НДС 12% : 0.00 [16:20:34]line Наличными: 0.00 [16:20:34]line Безнал.: 0.00 [16:20:34]line Место: АЗС № 86 "Партнер Нефть" [16:20:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:20:34]line СНО: Общий режим [16:20:34]line Чек 301 24.10.2024 16:20 [16:20:34]line Смена: 463 ФФД: 1.0 [16:20:34]line ЗНМ: 0300000155 [16:20:34]line РНМ: 0000000000100030 [16:20:34]line Версия ККМ: 001 [16:20:34]line Талоны: ТК ГПНА Online [16:20:34]line 30100418 [16:20:34]line ФМ: 0000000000965340 [16:20:34]line ФД: 189228 [16:20:34]line ФПД: 124416737509941 [16:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189228&fm=124416737509941&tin=02508201610067®Number=0000000000100030&sum=0 [16:20:34]OFD Sender: Processing packet 189228 [packets to send 1062, broken 1061] [16:20:34]ProducePacketName [16:20:34]name=ofd_packets/00189228 [16:20:34]OFD Sender: To server: pG, [16:20:34]CommunicateWithHost lk.salyk.kg:30040 [16:20:34]ConnectInit lk.salyk.kg [16:20:34]written 0, free lines is 4095 [16:20:34]Connected sock=10 [16:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 09 D6 04 01 2C BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D4 73 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E3 02 00 35 04 06 00 71 28 07 71 82 35 5F 4A 28 FF 2E C5 97 5A [16:20:35]Write to MH i2c: 01 00 00 9D 5A F7 [16:20:35]Write i2c OK [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: 01 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: 01 07 00 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: 01 07 00 9D 5A 00 00 00 00 00 71 0C 7B [16:20:35]RasterBufferAndPrint [16:20:35]line [16:20:35]line [16:20:35]line [16:20:35]line [16:20:35]line [16:20:35]written 0, free lines is 3190 [16:20:35]MH_Cut [16:20:35]Write to MH i2c: D1 01 00 A4 5A 01 D0 [16:20:35]Write i2c OK [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: D1 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: D1 01 00 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: D1 01 00 A4 5A 00 CF [16:20:35]Write to MH i2c: 01 00 00 A5 5A FF [16:20:35]Write i2c OK [16:20:35]MH_I2C_Read... [16:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C5 AD 47 00 DC 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 39 36 35 33 34 30 10 04 04 00 2C E3 02 00 F4 03 04 00 BC 1D 1A 67 B6 04 01 00 00 DD 7B 37 BF 19 6A CE B3 [16:20:35]CommunicateWithHost err = 0 [16:20:35]CheckOFDResponse [16:20:35]1017 (14) - 77093643461234 [16:20:35]1041 (16) - 0000000000965340 [16:20:35]1040 (4) - 189228 [16:20:35]1012 (4) - 24.10.2024 10:13 [16:20:35]1206 (1) - 0 [16:20:35]OFD Sender: Remove packet 189228 [16:20:35]ProducePacketName [16:20:35]name=ofd_packets/00189228 [16:20:35]NVStorageDeleteData [16:20:35]OFD Sender: No OFD packet to send [16:20:36]*** Cut start [16:20:36]*** Partial cut [16:20:36]*** CUTSNS_PIN = 1 [16:20:36]*** CUTSNS_PIN = 0 [16:20:36]*** Brake cut motor [16:20:36]Read from MH i2c: 01 [16:20:36]MH_I2C_Read... [16:20:36]*** Stop cut motor [16:20:36]*** Cut end [16:20:36]Read from MH i2c: 01 07 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: 01 07 00 A5 5A 00 00 00 00 00 FF 0F 14 [16:20:36]process_action close_receipt done [16:20:36]requested_data is exist [16:20:36]produce_requested_data [16:20:36]requested_item fm.sn is exist - process it [16:20:36]wFMCommunicate request_size=4 [16:20:36]MH_SAM_APDU [16:20:36]CAPDU: 80 11 00 00 [16:20:36]Write to MH i2c: E2 08 00 A6 5A 80 11 00 00 00 00 00 00 7A [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:36]Read from MH i2c: E2 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 17 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 17 00 A6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [16:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:20:36]wFMCommunicate OK [16:20:36]requested_item fd.num is exist - process it [16:20:36]SAM_PROTO_GetFieldsCounters [16:20:36]wFMCommunicate request_size=4 [16:20:36]MH_SAM_APDU [16:20:36]CAPDU: 80 13 00 00 [16:20:36]Write to MH i2c: E2 08 00 A7 5A 80 13 00 00 00 00 00 00 7D [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:37]Read from MH i2c: E2 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: E2 62 00 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: E2 62 00 A7 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E3 02 00 0E 04 04 00 CF 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 EF [16:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E3 02 00 0E 04 04 00 CF 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 [16:20:37]wFMCommunicate OK [16:20:37]SAM_PROTO_GetFieldsCounters done [16:20:37]requested_item shift.num is exist - process it [16:20:37]requested_item shift.opened is exist - process it [16:20:37]req_shift_opened [16:20:37]FM_GetShiftState [16:20:37]SAM_PROTO_GetShiftState [16:20:37]wFMCommunicate request_size=4 [16:20:37]MH_SAM_APDU [16:20:37]CAPDU: 80 13 01 00 [16:20:37]Write to MH i2c: E2 08 00 A8 5A 80 13 01 00 00 00 00 00 7F [16:20:37]Write i2c OK [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: E2 [16:20:37]MH_I2C_Read... [16:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:37]Read from MH i2c: E2 0E 00 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: E2 0E 00 A8 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5D [16:20:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:20:37]wFMCommunicate OK [16:20:37]SAM_PROTO_GetShiftState done [16:20:37]FM_GetShiftState done [16:20:37]req_shift_opened done [16:20:37]requested_item shift.open_date is exist - process it [16:20:37]req_shift_open_date [16:20:37]req_shift_open_date done [16:20:37]produce_requested_data done [16:20:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189228,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:20:37]process_action_free close_receipt [16:20:37]json_value_free [16:20:37]json_value_free done [16:20:37]process_json_proto returns [16:20:37]Send response to host [16:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189228,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:20:37]free response buf [16:20:37]execute_script done [16:20:37]execute_script returns [16:20:37]free content buf [16:20:37]Sock 9.Close socket [16:20:37]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:26]accept exits with 8 [16:21:26]New connection [16:21:26]New thread 3067215204 created [16:21:26]Thread 3067071844 joined [16:21:26]Waiting for new connection... [16:21:26] Sock 8.Parse request [16:21:26]Sock 8.Check first char [16:21:26]Sock 8.First char is OK [16:21:26]request: POST /json_proto HTTP/1.0 [16:21:26]Method: POST [16:21:26]URL: /json_proto [16:21:26]Method is POST - this is cgi request [16:21:26]url: /json_proto [16:21:26]query_string will be loaded in cgi processing [16:21:26]execute_cgi json_proto POST (null) [16:21:26]execute_cgi path=json_proto method=POST [16:21:26]POST find Content-Length [16:21:26]Host: 172.17.42.131:8080 [16:21:26]Content-Length: 688 [16:21:26]Content-Type: application/json [16:21:26] [16:21:26]POST finish read [16:21:26]Found Content-Length = 688 [16:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [16:21:26]execute_script... [16:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [16:21:26]POST & json_proto [16:21:26]process_json_proto [16:21:26]json parsed OK: [16:21:26]protocol is kg_v1.0 [16:21:26]action value=close_receipt [16:21:26]process_action close_receipt [16:21:26]cmd_close_receipt [16:21:26]MH_GetDate [16:21:26]Write to MH i2c: F0 00 00 A9 5A F2 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 A9 5A 00 0A 74 1A 67 A0 18 CA 66 E2 [16:21:26]GetLastDocTimeStamp 1729786836 [16:21:26]current date 1729786890 [16:21:26]FM_GetShiftState [16:21:26]SAM_PROTO_GetShiftState [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 13 01 00 [16:21:26]Write to MH i2c: E2 08 00 AA 5A 80 13 01 00 00 00 00 00 81 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 AA 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5F [16:21:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:21:26]wFMCommunicate OK [16:21:26]SAM_PROTO_GetShiftState done [16:21:26]FM_GetShiftState done [16:21:26]opened in 1729728961 [16:21:26]opened+sec_in_day 1729815361 [16:21:26]quantity*price = 120046 [16:21:26]sum+1 = 120047 [16:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 302 24.10.2024 16:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189229 ФПД: 254944945465786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162130&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189229&fm=254944945465786&tin=02508201610067®Number=0000000000100030&sum=120000 [16:21:27]StoreToDocumentArchive [16:21:27]shift 463 fd 189229 [16:21:27]save to /storage/0463/doc_00189229 [16:21:27]save last doc name /storage/0463/doc_00189229 to /storage/kkm_last_doc_name [16:21:27]save OK [16:21:27]Clear old archive folders... [16:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:21:27]tlvbuf is B6F1AB50 [16:21:27]SAM_PROTO_ClearQueue [16:21:27]wFMCommunicate request_size=4 [16:21:27]MH_SAM_APDU [16:21:27]CAPDU: 80 09 00 00 [16:21:27]Write to MH i2c: E2 08 00 B7 5A 80 09 00 00 00 00 00 00 83 [16:21:27]Write i2c OK [16:21:27]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 B7 5A 00 90 00 85 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_ClearQueue done [16:21:28]KKMCreateOFDPacket [16:21:28]OFDProtocolAddRootSTLVToBuf [16:21:28]FM_MakeSignedData [16:21:28]FM_MakeSignedData [16:21:28]SAM_PROTO_SignData [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 01 02 [16:21:28]Write to MH i2c: E2 08 00 B8 5A 80 0D 01 02 00 00 00 00 8B [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 B8 5A 00 90 00 86 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=255 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 2E 01 00 00 F4 03 04 00 0A 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E3 02 [16:21:28]Write to MH i2c: E2 02 01 B9 5A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 2E 01 00 00 F4 03 04 00 0A 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E3 02 00 00 6A [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 B9 5A 00 90 00 87 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=16 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E7 DE FE E9 69 BA [16:21:28]Write to MH i2c: E2 13 00 BA 5A 80 0D 02 02 0B 00 00 35 04 06 00 E7 DE FE E9 69 BA 00 00 B2 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 BA 5A 00 90 00 88 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 03 02 [16:21:28]Write to MH i2c: E2 08 00 BB 5A 80 0D 03 02 00 00 00 00 90 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 BB 5A 00 35 DD 79 93 C9 57 9E E7 90 00 54 [16:21:28]RAPDU: 35 DD 79 93 C9 57 9E E7 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_SignData done [16:21:28]FM_MakeSignedData done [16:21:28]CreateOFDProtocolMessage [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 11 00 00 [16:21:28]Write to MH i2c: E2 08 00 BC 5A 80 11 00 00 00 00 00 00 90 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 BC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [16:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:21:28]wFMCommunicate OK [16:21:28]CreateOFDProtocolMessage done [16:21:28]OFDSenderStorePacket 189229 [16:21:28]StoreOFDPacket docnum=189229 [16:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 02 C1 0D 01 09 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 2E 01 00 00 F4 03 04 00 0A 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E3 02 00 35 04 06 00 E7 DE FE E9 69 BA 35 DD 79 93 C9 57 9E E7 [16:21:28]CheckFolder [16:21:28]dirname=/storage/ofd_packets [16:21:28]CheckFolder done [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00189229 [16:21:28]NVStorageSaveData ofd_packets/00189229 [16:21:28]File name is /storage/ofd_packets/00189229 [16:21:28]Write 307 bytes [16:21:28]NVStorageSaveData done [16:21:28]OFDSenderStorePacket done [16:21:28]KKMCreateOFDPacket done [16:21:28]NVStorageSaveData kkm_last_timestamp [16:21:28]File name is /storage/kkm_last_timestamp [16:21:28]Write 4 bytes [16:21:28]NVStorageSaveData done [16:21:28]ExternCall_PrintAddStr [16:21:28]wPrintStart [16:21:28]Write to MH i2c: 01 00 00 BD 5A 17 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 BD 5A 00 00 00 00 00 FF 0F 2C [16:21:28]RasterBufferAndPrint [16:21:28]line Счет N : (1)211295 [16:21:28]line ИНН: 02508201610067 [16:21:28]line Контрольно-Кассовый Чек [16:21:28]line ПРОДАЖА [16:21:28]line ТРК (МРК, ГНК) : 11 [16:21:28]line Товар: 2710194210 [16:21:28]line D-ENERGY ДТ-К-5 [16:21:28]line 15.550 * 77.20 [16:21:28]line = 1200.46 [16:21:28]line НДС 12% НСП 1% [16:21:28]line > о реализуемом товаре [16:21:28]line ОКРУГЛЕНИЕ: -0.46 [16:21:28]line ИТОГО: 1200.00 [16:21:28]line Внесено: 1200.00 [16:21:28]line СДАЧА: 0.00 [16:21:28]line НСП 1% : 10.62 [16:21:28]line НДС 12% : 127.48 [16:21:28]line Наличными: 1200.00 [16:21:28]line Безнал.: 0.00 [16:21:28]line Место: АЗС № 86 "Партнер Нефть" [16:21:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:21:28]line СНО: Общий режим [16:21:28]line Чек 302 24.10.2024 16:21 [16:21:28]line Смена: 463 ФФД: 1.0 [16:21:28]line ЗНМ: 0300000155 [16:21:28]line РНМ: 0000000000100030 [16:21:28]line Версия ККМ: 001 [16:21:28]line ФМ: 0000000000965340 [16:21:28]line ФД: 189229 [16:21:28]line ФПД: 254944945465786 [16:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162130&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189229&fm=254944945465786&tin=02508201610067®Number=0000000000100030&sum=120000 [16:21:28]written 0, free lines is 4095 [16:21:28]OFD Sender: Processing packet 189229 [packets to send 1062, broken 1061] [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00189229 [16:21:28]OFD Sender: To server: pG, [16:21:28]CommunicateWithHost lk.salyk.kg:30040 [16:21:28]ConnectInit lk.salyk.kg [16:21:28]Connected sock=10 [16:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 02 C1 0D 01 09 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 2E 01 00 00 F4 03 04 00 0A 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E3 02 00 35 04 06 00 E7 DE FE E9 69 BA 35 DD 79 93 C9 57 9E E7 [16:21:28]Write to MH i2c: 01 00 00 E8 5A 42 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 E8 5A 00 00 00 00 00 58 0C AD [16:21:28]RasterBufferAndPrint [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]line [16:21:28]written 0, free lines is 3164 [16:21:28]MH_Cut [16:21:28]Write to MH i2c: D1 01 00 EF 5A 01 1B [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: D1 01 00 EF 5A 00 1A [16:21:28]Write to MH i2c: 01 00 00 F0 5A 4A [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 24 47 00 53 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 39 36 35 33 34 30 10 04 04 00 2D E3 02 00 F4 03 04 00 F2 1D 1A 67 B6 04 01 00 00 E5 E9 2C B0 9E 0D 0D C6 [16:21:29]CommunicateWithHost err = 0 [16:21:29]CheckOFDResponse [16:21:29]1017 (14) - 77093643461234 [16:21:29]1041 (16) - 0000000000965340 [16:21:29]1040 (4) - 189229 [16:21:29]1012 (4) - 24.10.2024 10:14 [16:21:29]1206 (1) - 0 [16:21:29]OFD Sender: Remove packet 189229 [16:21:29]ProducePacketName [16:21:29]name=ofd_packets/00189229 [16:21:29]NVStorageDeleteData [16:21:29]OFD Sender: No OFD packet to send [16:21:30]*** Cut start [16:21:30]*** Partial cut [16:21:30]*** CUTSNS_PIN = 1 [16:21:30]*** CUTSNS_PIN = 0 [16:21:30]*** Brake cut motor [16:21:30]Read from MH i2c: 01 [16:21:30]MH_I2C_Read... [16:21:30]*** Stop cut motor [16:21:30]*** Cut end [16:21:30]Read from MH i2c: 01 07 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: 01 07 00 F0 5A 00 00 00 00 00 FF 0F 5F [16:21:30]process_action close_receipt done [16:21:30]requested_data is exist [16:21:30]produce_requested_data [16:21:30]requested_item fm.sn is exist - process it [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 11 00 00 [16:21:30]Write to MH i2c: E2 08 00 F1 5A 80 11 00 00 00 00 00 00 C5 [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 F1 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [16:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:21:30]wFMCommunicate OK [16:21:30]requested_item fd.num is exist - process it [16:21:30]SAM_PROTO_GetFieldsCounters [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 00 00 [16:21:30]Write to MH i2c: E2 08 00 F2 5A 80 13 00 00 00 00 00 00 C8 [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:31]Read from MH i2c: E2 [16:21:31]MH_I2C_Read... [16:21:31]Read from MH i2c: E2 62 00 [16:21:31]MH_I2C_Read... [16:21:31]Read from MH i2c: E2 62 00 F2 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E3 02 00 0E 04 04 00 CF 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 3E [16:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E3 02 00 0E 04 04 00 CF 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 [16:21:31]wFMCommunicate OK [16:21:31]SAM_PROTO_GetFieldsCounters done [16:21:31]requested_item shift.num is exist - process it [16:21:31]requested_item shift.opened is exist - process it [16:21:31]req_shift_opened [16:21:31]FM_GetShiftState [16:21:31]SAM_PROTO_GetShiftState [16:21:31]wFMCommunicate request_size=4 [16:21:31]MH_SAM_APDU [16:21:31]CAPDU: 80 13 01 00 [16:21:31]Write to MH i2c: E2 08 00 F3 5A 80 13 01 00 00 00 00 00 CA [16:21:31]Write i2c OK [16:21:31]MH_I2C_Read... [16:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:31]Read from MH i2c: E2 [16:21:31]MH_I2C_Read... [16:21:31]Read from MH i2c: E2 0E 00 [16:21:31]MH_I2C_Read... [16:21:31]Read from MH i2c: E2 0E 00 F3 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A8 [16:21:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:21:31]wFMCommunicate OK [16:21:31]SAM_PROTO_GetShiftState done [16:21:31]FM_GetShiftState done [16:21:31]req_shift_opened done [16:21:31]requested_item shift.open_date is exist - process it [16:21:31]req_shift_open_date [16:21:31]req_shift_open_date done [16:21:31]produce_requested_data done [16:21:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189229,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:21:31]process_action_free close_receipt [16:21:31]json_value_free [16:21:31]json_value_free done [16:21:31]process_json_proto returns [16:21:31]Send response to host [16:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189229,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:21:31]free response buf [16:21:31]execute_script done [16:21:31]execute_script returns [16:21:31]free content buf [16:21:31]Sock 8.Close socket [16:21:31]Sock 8.Thread stoped [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:01]accept exits with 9 [16:22:01]New connection [16:22:01]New thread 3067071844 created [16:22:01]Thread 3067215204 joined [16:22:01]Waiting for new connection... [16:22:01] Sock 9.Parse request [16:22:01]Sock 9.Check first char [16:22:01]Sock 9.First char is OK [16:22:01]request: POST /json_proto HTTP/1.0 [16:22:01]Method: POST [16:22:01]URL: /json_proto [16:22:01]Method is POST - this is cgi request [16:22:01]url: /json_proto [16:22:01]query_string will be loaded in cgi processing [16:22:01]execute_cgi json_proto POST (null) [16:22:01]execute_cgi path=json_proto method=POST [16:22:01]POST find Content-Length [16:22:01]Host: 172.17.42.131:8080 [16:22:01]Content-Length: 983 [16:22:01]Content-Type: application/json [16:22:01] [16:22:01]POST finish read [16:22:01]Found Content-Length = 983 [16:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:22:01]execute_script... [16:22: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)211294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:22:01]POST & json_proto [16:22:01]process_json_proto [16:22:01]json parsed OK: [16:22:01]protocol is kg_v1.0 [16:22:01]action value=close_receipt [16:22:01]process_action close_receipt [16:22:01]cmd_close_receipt [16:22:01]MH_GetDate [16:22:01]Write to MH i2c: F0 00 00 F4 5A 3D [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: F0 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: F0 09 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: F0 09 00 F4 5A 00 2D 74 1A 67 A0 18 CA 66 50 [16:22:01]GetLastDocTimeStamp 1729786890 [16:22:01]current date 1729786925 [16:22:01]FM_GetShiftState [16:22:01]SAM_PROTO_GetShiftState [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 13 01 00 [16:22:01]Write to MH i2c: E2 08 00 F5 5A 80 13 01 00 00 00 00 00 CC [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 F5 5A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AA [16:22:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_GetShiftState done [16:22:01]FM_GetShiftState done [16:22:01]opened in 1729728961 [16:22:01]opened+sec_in_day 1729815361 [16:22:01]quantity*price = 200006 [16:22:01]sum+1 = 200008 [16:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 303 24.10.2024 16:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 189230 ФПД: 41102340243421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189230&fm=41102340243421&tin=02508201610067®Number=0000000000100030&sum=200000 [16:22:02]StoreToDocumentArchive [16:22:02]shift 463 fd 189230 [16:22:02]save to /storage/0463/doc_00189230 [16:22:02]save last doc name /storage/0463/doc_00189230 to /storage/kkm_last_doc_name [16:22:02]save OK [16:22:02]Clear old archive folders... [16:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:02]tlvbuf is B6DE8AE0 [16:22:02]SAM_PROTO_ClearQueue [16:22:02]wFMCommunicate request_size=4 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 09 00 00 [16:22:02]Write to MH i2c: E2 08 00 02 5B 80 09 00 00 00 00 00 00 CF [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 02 5B 00 90 00 D1 [16:22:02]RAPDU: 90 00 [16:22:02]wFMCommunicate OK [16:22:02]SAM_PROTO_ClearQueue done [16:22:02]KKMCreateOFDPacket [16:22:02]OFDProtocolAddRootSTLVToBuf [16:22:02]FM_MakeSignedData [16:22:02]FM_MakeSignedData [16:22:02]SAM_PROTO_SignData [16:22:02]wFMCommunicate request_size=4 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 0D 01 02 [16:22:02]Write to MH i2c: E2 08 00 03 5B 80 0D 01 02 00 00 00 00 D7 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 03 5B 00 90 00 D2 [16:22:02]RAPDU: 90 00 [16:22:02]wFMCommunicate OK [16:22:02]wFMCommunicate request_size=255 [16:22:02]MH_SAM_APDU [16:22: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 2F 01 00 00 F4 03 04 00 2D 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E3 02 00 35 04 06 00 25 [16:22:02]Write to MH i2c: E2 02 01 04 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 2F 01 00 00 F4 03 04 00 2D 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E3 02 00 35 04 06 00 25 00 00 2B [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 04 5B 00 90 00 D3 [16:22:02]RAPDU: 90 00 [16:22:02]wFMCommunicate OK [16:22:02]wFMCommunicate request_size=10 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 0D 02 02 05 61 E2 63 BF DD [16:22:02]Write to MH i2c: E2 0D 00 05 5B 80 0D 02 02 05 00 61 E2 63 BF DD 00 00 26 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 03 00 05 5B 00 90 00 D4 [16:22:02]RAPDU: 90 00 [16:22:02]wFMCommunicate OK [16:22:02]wFMCommunicate request_size=4 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 0D 03 02 [16:22:02]Write to MH i2c: E2 08 00 06 5B 80 0D 03 02 00 00 00 00 DC [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 0B 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 0B 00 06 5B 00 A3 FF B7 76 17 A9 B2 93 90 00 B1 [16:22:02]RAPDU: A3 FF B7 76 17 A9 B2 93 90 00 [16:22:02]wFMCommunicate OK [16:22:02]SAM_PROTO_SignData done [16:22:02]FM_MakeSignedData done [16:22:02]CreateOFDProtocolMessage [16:22:02]wFMCommunicate request_size=4 [16:22:02]MH_SAM_APDU [16:22:02]CAPDU: 80 11 00 00 [16:22:02]Write to MH i2c: E2 08 00 07 5B 80 11 00 00 00 00 00 00 DC [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 17 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 17 00 07 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [16:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:22:02]wFMCommunicate OK [16:22:02]CreateOFDProtocolMessage done [16:22:02]OFDSenderStorePacket 189230 [16:22:02]StoreOFDPacket docnum=189230 [16:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 EC 07 01 27 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 2F 01 00 00 F4 03 04 00 2D 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E3 02 00 35 04 06 00 25 61 E2 63 BF DD A3 FF B7 76 17 A9 B2 93 [16:22:02]CheckFolder [16:22:02]dirname=/storage/ofd_packets [16:22:02]CheckFolder done [16:22:02]ProducePacketName [16:22:02]name=ofd_packets/00189230 [16:22:02]NVStorageSaveData ofd_packets/00189230 [16:22:02]File name is /storage/ofd_packets/00189230 [16:22:02]Write 301 bytes [16:22:02]NVStorageSaveData done [16:22:02]OFDSenderStorePacket done [16:22:02]KKMCreateOFDPacket done [16:22:02]NVStorageSaveData kkm_last_timestamp [16:22:02]File name is /storage/kkm_last_timestamp [16:22:02]Write 4 bytes [16:22:02]NVStorageSaveData done [16:22:02]ExternCall_PrintAddStr [16:22:02]wPrintStart [16:22:02]Write to MH i2c: 01 00 00 08 5B 63 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 08 5B 00 00 00 00 00 FF 0F 78 [16:22:02]RasterBufferAndPrint [16:22:02]line Счет N : (1)211294 [16:22:02]line ИНН: 02508201610067 [16:22:02]line Контрольно-Кассовый Чек [16:22:02]line ПРОДАЖА [16:22:02]line ТРК (МРК, ГНК) : 42 [16:22:02]line Товар: 2710124130 [16:22:02]line Аи-92-К-3 [16:22:02]line 30.350 * 65.90 [16:22:02]line = 2000.07 [16:22:02]line НДС 12% НСП 1% [16:22:02]line > о реализуемом товаре [16:22:02]line ОКРУГЛЕНИЕ: -0.07 [16:22:02]line ИТОГО: 2000.00 [16:22:02]line Внесено: 2000.00 [16:22:02]line СДАЧА: 0.00 [16:22:02]line НСП 1% : 17.70 [16:22:02]line НДС 12% : 212.40 [16:22:02]line Наличными: 2000.00 [16:22:02]line Безнал.: 0.00 [16:22:02]line Место: АЗС № 86 "Партнер Нефть" [16:22:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:22:02]line СНО: Общий режим [16:22:02]line Чек 303 24.10.2024 16:22 [16:22:02]line Смена: 463 ФФД: 1.0 [16:22:02]line ЗНМ: 0300000155 [16:22:02]line РНМ: 0000000000100030 [16:22:02]line Версия ККМ: 001 [16:22:02]line [16:22:02]line Дисконтная программа [16:22:02]line АИ-92 [16:22:02]line номер 86 [16:22:02]line сэкономлено 30.35 сом [16:22:02]line ФМ: 0000000000965340 [16:22:02]line ФД: 189230 [16:22:02]line ФПД: 41102340243421 [16:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189230&fm=41102340243421&tin=02508201610067®Number=0000000000100030&sum=200000 [16:22:02]written 0, free lines is 4095 [16:22:03]OFD Sender: Processing packet 189230 [packets to send 1062, broken 1061] [16:22:03]ProducePacketName [16:22:03]name=ofd_packets/00189230 [16:22:03]OFD Sender: To server: pG, [16:22:03]CommunicateWithHost lk.salyk.kg:30040 [16:22:03]ConnectInit lk.salyk.kg [16:22:03]Connected sock=11 [16:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 EC 07 01 27 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 2F 01 00 00 F4 03 04 00 2D 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E3 02 00 35 04 06 00 25 61 E2 63 BF DD A3 FF B7 76 17 A9 B2 93 [16:22:03]Write to MH i2c: 01 00 00 38 5B 93 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 07 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 07 00 38 5B 00 00 00 00 00 E7 0B 8C [16:22:03]RasterBufferAndPrint [16:22:03]line [16:22:03]line [16:22:03]line [16:22:03]line [16:22:03]line [16:22:03]written 0, free lines is 3050 [16:22:03]MH_Cut [16:22:03]Write to MH i2c: D1 01 00 3F 5B 01 6C [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: D1 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: D1 01 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: D1 01 00 3F 5B 00 6B [16:22:03]Write to MH i2c: 01 00 00 40 5B 9B [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 52 77 47 00 6D 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 39 36 35 33 34 30 10 04 04 00 2E E3 02 00 F4 03 04 00 15 1E 1A 67 B6 04 01 00 00 C7 7D 26 25 62 B1 02 E1 [16:22:03]CommunicateWithHost err = 0 [16:22:03]CheckOFDResponse [16:22:03]1017 (14) - 77093643461234 [16:22:03]1041 (16) - 0000000000965340 [16:22:03]1040 (4) - 189230 [16:22:03]1012 (4) - 24.10.2024 10:14 [16:22:03]1206 (1) - 0 [16:22:03]OFD Sender: Remove packet 189230 [16:22:03]ProducePacketName [16:22:03]name=ofd_packets/00189230 [16:22:03]NVStorageDeleteData [16:22:04]OFD Sender: No OFD packet to send [16:22:04]*** Cut start [16:22:04]*** Partial cut [16:22:04]*** CUTSNS_PIN = 1 [16:22:04]*** CUTSNS_PIN = 0 [16:22:05]*** Brake cut motor [16:22:05]Read from MH i2c: 01 [16:22:05]MH_I2C_Read... [16:22:05]*** Stop cut motor [16:22:05]*** Cut end [16:22:05]Read from MH i2c: 01 07 00 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: 01 07 00 40 5B 00 00 00 00 00 FF 0F B0 [16:22:05]process_action close_receipt done [16:22:05]requested_data is exist [16:22:05]produce_requested_data [16:22:05]requested_item fm.sn is exist - process it [16:22:05]wFMCommunicate request_size=4 [16:22:05]MH_SAM_APDU [16:22:05]CAPDU: 80 11 00 00 [16:22:05]Write to MH i2c: E2 08 00 41 5B 80 11 00 00 00 00 00 00 16 [16:22:05]Write i2c OK [16:22:05]MH_I2C_Read... [16:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:05]Read from MH i2c: E2 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 17 00 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 17 00 41 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [16:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:22:05]wFMCommunicate OK [16:22:05]requested_item fd.num is exist - process it [16:22:05]SAM_PROTO_GetFieldsCounters [16:22:05]wFMCommunicate request_size=4 [16:22:05]MH_SAM_APDU [16:22:05]CAPDU: 80 13 00 00 [16:22:05]Write to MH i2c: E2 08 00 42 5B 80 13 00 00 00 00 00 00 19 [16:22:05]Write i2c OK [16:22:05]MH_I2C_Read... [16:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:05]Read from MH i2c: E2 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 62 00 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 62 00 42 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E3 02 00 0E 04 04 00 CF 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 93 [16:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E3 02 00 0E 04 04 00 CF 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 [16:22:05]wFMCommunicate OK [16:22:05]SAM_PROTO_GetFieldsCounters done [16:22:05]requested_item shift.num is exist - process it [16:22:05]requested_item shift.opened is exist - process it [16:22:05]req_shift_opened [16:22:05]FM_GetShiftState [16:22:05]SAM_PROTO_GetShiftState [16:22:05]wFMCommunicate request_size=4 [16:22:05]MH_SAM_APDU [16:22:05]CAPDU: 80 13 01 00 [16:22:05]Write to MH i2c: E2 08 00 43 5B 80 13 01 00 00 00 00 00 1B [16:22:05]Write i2c OK [16:22:05]MH_I2C_Read... [16:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:05]Read from MH i2c: E2 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 0E 00 [16:22:05]MH_I2C_Read... [16:22:05]Read from MH i2c: E2 0E 00 43 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F9 [16:22:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:22:05]wFMCommunicate OK [16:22:05]SAM_PROTO_GetShiftState done [16:22:05]FM_GetShiftState done [16:22:05]req_shift_opened done [16:22:05]requested_item shift.open_date is exist - process it [16:22:05]req_shift_open_date [16:22:05]req_shift_open_date done [16:22:05]produce_requested_data done [16:22:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189230,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:22:05]process_action_free close_receipt [16:22:05]json_value_free [16:22:05]json_value_free done [16:22:05]process_json_proto returns [16:22:05]Send response to host [16:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189230,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:22:05]free response buf [16:22:05]execute_script done [16:22:05]execute_script returns [16:22:05]free content buf [16:22:05]Sock 9.Close socket [16:22:05]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:26]accept exits with 8 [16:24:26]New connection [16:24:26]New thread 3067215204 created [16:24:26]Thread 3067071844 joined [16:24:26]Waiting for new connection... [16:24:26] Sock 8.Parse request [16:24:26]Sock 8.Check first char [16:24:26]Sock 8.First char is OK [16:24:26]request: POST /json_proto HTTP/1.0 [16:24:26]Method: POST [16:24:26]URL: /json_proto [16:24:26]Method is POST - this is cgi request [16:24:26]url: /json_proto [16:24:26]query_string will be loaded in cgi processing [16:24:26]execute_cgi json_proto POST (null) [16:24:26]execute_cgi path=json_proto method=POST [16:24:26]POST find Content-Length [16:24:26]Host: 172.17.42.131:8080 [16:24:26]Content-Length: 683 [16:24:26]Content-Type: application/json [16:24:26] [16:24:26]POST finish read [16:24:26]Found Content-Length = 683 [16:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:24:26]execute_script... [16:24: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)211296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:24:26]POST & json_proto [16:24:26]process_json_proto [16:24:26]json parsed OK: [16:24:26]protocol is kg_v1.0 [16:24:26]action value=close_receipt [16:24:26]process_action close_receipt [16:24:26]cmd_close_receipt [16:24:26]MH_GetDate [16:24:26]Write to MH i2c: F0 00 00 44 5B 8E [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: F0 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: F0 09 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: F0 09 00 44 5B 00 BE 74 1A 67 A0 18 CA 66 32 [16:24:26]GetLastDocTimeStamp 1729786925 [16:24:26]current date 1729787070 [16:24:26]FM_GetShiftState [16:24:26]SAM_PROTO_GetShiftState [16:24:26]wFMCommunicate request_size=4 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 13 01 00 [16:24:26]Write to MH i2c: E2 08 00 45 5B 80 13 01 00 00 00 00 00 1D [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 0E 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 0E 00 45 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FB [16:24:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:24:26]wFMCommunicate OK [16:24:26]SAM_PROTO_GetShiftState done [16:24:26]FM_GetShiftState done [16:24:26]opened in 1729728961 [16:24:26]opened+sec_in_day 1729815361 [16:24:26]quantity*price = 50025 [16:24:26]sum+1 = 50027 [16:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 304 24.10.2024 16:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189231 ФПД: 88216715276999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162430&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189231&fm=88216715276999&tin=02508201610067®Number=0000000000100030&sum=50000 [16:24:27]StoreToDocumentArchive [16:24:27]shift 463 fd 189231 [16:24:27]save to /storage/0463/doc_00189231 [16:24:27]save last doc name /storage/0463/doc_00189231 to /storage/kkm_last_doc_name [16:24:27]save OK [16:24:27]Clear old archive folders... [16:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:24:27]tlvbuf is 0154FD90 [16:24:27]SAM_PROTO_ClearQueue [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 09 00 00 [16:24:27]Write to MH i2c: E2 08 00 52 5B 80 09 00 00 00 00 00 00 1F [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 52 5B 00 90 00 21 [16:24:27]RAPDU: 90 00 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_ClearQueue done [16:24:27]KKMCreateOFDPacket [16:24:27]OFDProtocolAddRootSTLVToBuf [16:24:27]FM_MakeSignedData [16:24:27]FM_MakeSignedData [16:24:27]SAM_PROTO_SignData [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 0D 01 02 [16:24:27]Write to MH i2c: E2 08 00 53 5B 80 0D 01 02 00 00 00 00 27 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 53 5B 00 90 00 22 [16:24:27]RAPDU: 90 00 [16:24:27]wFMCommunicate OK [16:24:27]wFMCommunicate request_size=255 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E3 02 [16:24:27]Write to MH i2c: E2 02 01 54 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E3 02 00 00 FC [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [16:24:27]RAPDU: 90 00 [16:24:27]wFMCommunicate OK [16:24:27]wFMCommunicate request_size=16 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 50 3B 8D FA 32 C7 [16:24:27]Write to MH i2c: E2 13 00 55 5B 80 0D 02 02 0B 00 00 35 04 06 00 50 3B 8D FA 32 C7 00 00 8A [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [16:24:27]RAPDU: 90 00 [16:24:27]wFMCommunicate OK [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 0D 03 02 [16:24:27]Write to MH i2c: E2 08 00 56 5B 80 0D 03 02 00 00 00 00 2C [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0B 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0B 00 56 5B 00 A5 F0 3D C9 69 B5 1A C4 90 00 C4 [16:24:27]RAPDU: A5 F0 3D C9 69 B5 1A C4 90 00 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_SignData done [16:24:27]FM_MakeSignedData done [16:24:27]CreateOFDProtocolMessage [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 11 00 00 [16:24:27]Write to MH i2c: E2 08 00 57 5B 80 11 00 00 00 00 00 00 2C [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 17 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 17 00 57 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [16:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:24:27]wFMCommunicate OK [16:24:27]CreateOFDProtocolMessage done [16:24:27]OFDSenderStorePacket 189231 [16:24:27]StoreOFDPacket docnum=189231 [16:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 40 F8 0D 01 68 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E3 02 00 35 04 06 00 50 3B 8D FA 32 C7 A5 F0 3D C9 69 B5 1A C4 [16:24:27]CheckFolder [16:24:27]dirname=/storage/ofd_packets [16:24:27]CheckFolder done [16:24:27]ProducePacketName [16:24:27]name=ofd_packets/00189231 [16:24:27]NVStorageSaveData ofd_packets/00189231 [16:24:27]File name is /storage/ofd_packets/00189231 [16:24:27]Write 307 bytes [16:24:27]NVStorageSaveData done [16:24:27]OFDSenderStorePacket done [16:24:27]KKMCreateOFDPacket done [16:24:27]NVStorageSaveData kkm_last_timestamp [16:24:27]File name is /storage/kkm_last_timestamp [16:24:27]Write 4 bytes [16:24:27]NVStorageSaveData done [16:24:27]ExternCall_PrintAddStr [16:24:27]wPrintStart [16:24:27]Write to MH i2c: 01 00 00 58 5B B3 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 58 5B 00 00 00 00 00 FF 0F C8 [16:24:27]RasterBufferAndPrint [16:24:27]line Счет N : (1)211296 [16:24:27]line ИНН: 02508201610067 [16:24:27]line Контрольно-Кассовый Чек [16:24:27]line ПРОДАЖА [16:24:27]line ТРК (МРК, ГНК) : 31 [16:24:27]line Товар: 2710194210 [16:24:27]line D-ENERGY ДТ-К-5 [16:24:27]line 6.480 * 77.20 [16:24:27]line = 500.26 [16:24:27]line НДС 12% НСП 1% [16:24:27]line > о реализуемом товаре [16:24:27]line ОКРУГЛЕНИЕ: -0.26 [16:24:27]line ИТОГО: 500.00 [16:24:27]line Внесено: 500.00 [16:24:27]line СДАЧА: 0.00 [16:24:27]line НСП 1% : 4.43 [16:24:27]line НДС 12% : 53.12 [16:24:27]line Наличными: 500.00 [16:24:27]line Безнал.: 0.00 [16:24:27]line Место: АЗС № 86 "Партнер Нефть" [16:24:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:24:27]line СНО: Общий режим [16:24:27]line Чек 304 24.10.2024 16:24 [16:24:27]line Смена: 463 ФФД: 1.0 [16:24:27]line ЗНМ: 0300000155 [16:24:27]line РНМ: 0000000000100030 [16:24:27]line Версия ККМ: 001 [16:24:27]line ФМ: 0000000000965340 [16:24:27]line ФД: 189231 [16:24:27]line ФПД: 88216715276999 [16:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162430&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189231&fm=88216715276999&tin=02508201610067®Number=0000000000100030&sum=50000 [16:24:27]written 0, free lines is 4095 [16:24:27]OFD Sender: Processing packet 189231 [packets to send 1062, broken 1061] [16:24:27]ProducePacketName [16:24:27]name=ofd_packets/00189231 [16:24:27]OFD Sender: To server: pG, [16:24:27]CommunicateWithHost lk.salyk.kg:30040 [16:24:27]ConnectInit lk.salyk.kg [16:24:28]Connected sock=10 [16:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 40 F8 0D 01 68 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 BE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E3 02 00 35 04 06 00 50 3B 8D FA 32 C7 A5 F0 3D C9 69 B5 1A C4 [16:24:28]Write to MH i2c: 01 00 00 83 5B DE [16:24:28]Write i2c OK [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: 01 [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: 01 07 00 [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: 01 07 00 83 5B 00 00 00 00 00 5E 0C 4F [16:24:28]RasterBufferAndPrint [16:24:28]line [16:24:28]line [16:24:28]line [16:24:28]line [16:24:28]line [16:24:28]written 0, free lines is 3169 [16:24:28]MH_Cut [16:24:28]Write to MH i2c: D1 01 00 8A 5B 01 B7 [16:24:28]Write i2c OK [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: D1 [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: D1 01 00 [16:24:28]MH_I2C_Read... [16:24:28]Read from MH i2c: D1 01 00 8A 5B 00 B6 [16:24:28]Write to MH i2c: 01 00 00 8B 5B E6 [16:24:28]Write i2c OK [16:24:28]MH_I2C_Read... [16:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 4D 47 00 E5 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E3 02 00 F4 03 04 00 A5 1E 1A 67 B6 04 01 00 00 FA 8E BD F0 8B 5D 9E 20 [16:24:28]CommunicateWithHost err = 0 [16:24:28]CheckOFDResponse [16:24:28]1017 (14) - 77093643461234 [16:24:28]1041 (16) - 0000000000965340 [16:24:28]1040 (4) - 189231 [16:24:28]1012 (4) - 24.10.2024 10:17 [16:24:28]1206 (1) - 0 [16:24:28]OFD Sender: Remove packet 189231 [16:24:28]ProducePacketName [16:24:28]name=ofd_packets/00189231 [16:24:28]NVStorageDeleteData [16:24:28]OFD Sender: No OFD packet to send [16:24:29]*** Cut start [16:24:29]*** Partial cut [16:24:29]*** CUTSNS_PIN = 1 [16:24:29]*** CUTSNS_PIN = 0 [16:24:29]*** Brake cut motor [16:24:30]Read from MH i2c: 01 [16:24:30]MH_I2C_Read... [16:24:30]*** Stop cut motor [16:24:30]*** Cut end [16:24:30]Read from MH i2c: 01 07 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: 01 07 00 8B 5B 00 00 00 00 00 FF 0F FB [16:24:30]process_action close_receipt done [16:24:30]requested_data is exist [16:24:30]produce_requested_data [16:24:30]requested_item fm.sn is exist - process it [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 11 00 00 [16:24:30]Write to MH i2c: E2 08 00 8C 5B 80 11 00 00 00 00 00 00 61 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 17 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 17 00 8C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [16:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:24:30]wFMCommunicate OK [16:24:30]requested_item fd.num is exist - process it [16:24:30]SAM_PROTO_GetFieldsCounters [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 13 00 00 [16:24:30]Write to MH i2c: E2 08 00 8D 5B 80 13 00 00 00 00 00 00 64 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 62 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 62 00 8D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E3 02 00 0E 04 04 00 CF 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 E2 [16:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E3 02 00 0E 04 04 00 CF 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 [16:24:30]wFMCommunicate OK [16:24:30]SAM_PROTO_GetFieldsCounters done [16:24:30]requested_item shift.num is exist - process it [16:24:30]requested_item shift.opened is exist - process it [16:24:30]req_shift_opened [16:24:30]FM_GetShiftState [16:24:30]SAM_PROTO_GetShiftState [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 13 01 00 [16:24:30]Write to MH i2c: E2 08 00 8E 5B 80 13 01 00 00 00 00 00 66 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 0E 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 0E 00 8E 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 44 [16:24:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:24:30]wFMCommunicate OK [16:24:30]SAM_PROTO_GetShiftState done [16:24:30]FM_GetShiftState done [16:24:30]req_shift_opened done [16:24:30]requested_item shift.open_date is exist - process it [16:24:30]req_shift_open_date [16:24:30]req_shift_open_date done [16:24:30]produce_requested_data done [16:24:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189231,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:24:30]process_action_free close_receipt [16:24:30]json_value_free [16:24:30]json_value_free done [16:24:30]process_json_proto returns [16:24:30]Send response to host [16:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189231,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:24:30]free response buf [16:24:30]execute_script done [16:24:30]execute_script returns [16:24:30]free content buf [16:24:30]Sock 8.Close socket [16:24:30]Sock 8.Thread stoped [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:30]accept exits with 9 [16:25:30]New connection [16:25:30]New thread 3067071844 created [16:25:30]Thread 3067215204 joined [16:25:30]Waiting for new connection... [16:25:30] Sock 9.Parse request [16:25:30]Sock 9.Check first char [16:25:30]Sock 9.First char is OK [16:25:30]request: POST /json_proto HTTP/1.0 [16:25:30]Method: POST [16:25:30]URL: /json_proto [16:25:30]Method is POST - this is cgi request [16:25:30]url: /json_proto [16:25:30]query_string will be loaded in cgi processing [16:25:30]execute_cgi json_proto POST (null) [16:25:30]execute_cgi path=json_proto method=POST [16:25:30]POST find Content-Length [16:25:30]Host: 172.17.42.131:8080 [16:25:30]Content-Length: 754 [16:25:30]Content-Type: application/json [16:25:30] [16:25:30]POST finish read [16:25:30]Found Content-Length = 754 [16:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30116976", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:30]execute_script... [16: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)211297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30116976", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:30]POST & json_proto [16:25:30]process_json_proto [16:25:30]json parsed OK: [16:25:30]protocol is kg_v1.0 [16:25:30]action value=close_receipt [16:25:30]process_action close_receipt [16:25:30]cmd_close_receipt [16:25:30]MH_GetDate [16:25:30]Write to MH i2c: F0 00 00 8F 5B D9 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 09 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 09 00 8F 5B 00 FE 74 1A 67 A0 18 CA 66 BD [16:25:30]GetLastDocTimeStamp 1729787070 [16:25:30]current date 1729787134 [16:25:30]FM_GetShiftState [16:25:30]SAM_PROTO_GetShiftState [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 13 01 00 [16:25:30]Write to MH i2c: E2 08 00 90 5B 80 13 01 00 00 00 00 00 68 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 90 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 46 [16:25:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_GetShiftState done [16:25:30]FM_GetShiftState done [16:25:30]opened in 1729728961 [16:25:30]opened+sec_in_day 1729815361 [16:25:30]quantity*price = 0 [16:25:30]sum+1 = 1 [16:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 305 24.10.2024 16:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116976 ФМ: 0000000000965340 ФД: 189232 ФПД: 160639761769187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162534&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189232&fm=160639761769187&tin=02508201610067®Number=0000000000100030&sum=0 [16:25:31]StoreToDocumentArchive [16:25:31]shift 463 fd 189232 [16:25:31]save to /storage/0463/doc_00189232 [16:25:31]save last doc name /storage/0463/doc_00189232 to /storage/kkm_last_doc_name [16:25:31]save OK [16:25:31]Clear old archive folders... [16:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:31]tlvbuf is 0168DE30 [16:25:31]SAM_PROTO_ClearQueue [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 09 00 00 [16:25:31]Write to MH i2c: E2 08 00 9D 5B 80 09 00 00 00 00 00 00 6A [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 9D 5B 00 90 00 6C [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]SAM_PROTO_ClearQueue done [16:25:31]KKMCreateOFDPacket [16:25:31]OFDProtocolAddRootSTLVToBuf [16:25:31]FM_MakeSignedData [16:25:31]FM_MakeSignedData [16:25:31]SAM_PROTO_SignData [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 01 02 [16:25:31]Write to MH i2c: E2 08 00 9E 5B 80 0D 01 02 00 00 00 00 72 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=255 [16:25:31]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 31 01 00 00 F4 03 04 00 FE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E3 02 00 35 04 06 00 92 [16:25:31]Write to MH i2c: E2 02 01 9F 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 33 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 31 01 00 00 F4 03 04 00 FE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E3 02 00 35 04 06 00 92 00 00 33 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=10 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 02 02 05 19 DB EF E2 E3 [16:25:31]Write to MH i2c: E2 0D 00 A0 5B 80 0D 02 02 05 00 19 DB EF E2 E3 00 00 27 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 03 02 [16:25:31]Write to MH i2c: E2 08 00 A1 5B 80 0D 03 02 00 00 00 00 77 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 0B 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 0B 00 A1 5B 00 61 DD 0D 10 05 6B AB CD 90 00 BB [16:25:31]RAPDU: 61 DD 0D 10 05 6B AB CD 90 00 [16:25:31]wFMCommunicate OK [16:25:31]SAM_PROTO_SignData done [16:25:31]FM_MakeSignedData done [16:25:31]CreateOFDProtocolMessage [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 11 00 00 [16:25:31]Write to MH i2c: E2 08 00 A2 5B 80 11 00 00 00 00 00 00 77 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 17 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 17 00 A2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [16:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:25:31]wFMCommunicate OK [16:25:31]CreateOFDProtocolMessage done [16:25:31]OFDSenderStorePacket 189232 [16:25:31]StoreOFDPacket docnum=189232 [16:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 78 07 01 C0 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 33 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 31 01 00 00 F4 03 04 00 FE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E3 02 00 35 04 06 00 92 19 DB EF E2 E3 61 DD 0D 10 05 6B AB CD [16:25:31]CheckFolder [16:25:31]dirname=/storage/ofd_packets [16:25:31]CheckFolder done [16:25:31]ProducePacketName [16:25:31]name=ofd_packets/00189232 [16:25:31]NVStorageSaveData ofd_packets/00189232 [16:25:31]File name is /storage/ofd_packets/00189232 [16:25:31]Write 301 bytes [16:25:31]NVStorageSaveData done [16:25:31]OFDSenderStorePacket done [16:25:31]KKMCreateOFDPacket done [16:25:31]NVStorageSaveData kkm_last_timestamp [16:25:31]File name is /storage/kkm_last_timestamp [16:25:31]Write 4 bytes [16:25:31]NVStorageSaveData done [16:25:31]ExternCall_PrintAddStr [16:25:31]wPrintStart [16:25:31]Write to MH i2c: 01 00 00 A3 5B FE [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 07 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 07 00 A3 5B 00 00 00 00 00 FF 0F 13 [16:25:31]RasterBufferAndPrint [16:25:31]line Счет N : (1)211297 [16:25:31]line ИНН: 02508201610067 [16:25:31]line Контрольно-Кассовый Чек [16:25:31]line ПРОДАЖА [16:25:31]line ТРК (МРК, ГНК) : 12 [16:25:31]line Товар: 2710124130 [16:25:31]line Аи-92-К-3 [16:25:31]line 10.000 * 0.00 [16:25:31]line = 0.00 [16:25:31]line НДС 12% НСП 1% [16:25:31]line > о реализуемом товаре [16:25:31]line ИТОГО: 0.00 [16:25:31]line НСП 1% : 0.00 [16:25:31]line НДС 12% : 0.00 [16:25:31]line Наличными: 0.00 [16:25:31]line Безнал.: 0.00 [16:25:31]line Место: АЗС № 86 "Партнер Нефть" [16:25:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:25:31]line СНО: Общий режим [16:25:31]line Чек 305 24.10.2024 16:25 [16:25:31]line Смена: 463 ФФД: 1.0 [16:25:31]line ЗНМ: 0300000155 [16:25:31]line РНМ: 0000000000100030 [16:25:31]line Версия ККМ: 001 [16:25:31]line Талоны: ТК ГПНА Online [16:25:31]line 30116976 [16:25:31]line ФМ: 0000000000965340 [16:25:31]line ФД: 189232 [16:25:31]line ФПД: 160639761769187 [16:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162534&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189232&fm=160639761769187&tin=02508201610067®Number=0000000000100030&sum=0 [16:25:31]written 0, free lines is 4095 [16:25:31]OFD Sender: Processing packet 189232 [packets to send 1062, broken 1061] [16:25:31]ProducePacketName [16:25:31]name=ofd_packets/00189232 [16:25:31]OFD Sender: To server: pG, [16:25:31]CommunicateWithHost lk.salyk.kg:30040 [16:25:31]ConnectInit lk.salyk.kg [16:25:32]Connected sock=8 [16:25:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 78 07 01 C0 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 33 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 31 01 00 00 F4 03 04 00 FE 74 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E3 02 00 35 04 06 00 92 19 DB EF E2 E3 61 DD 0D 10 05 6B AB CD [16:25:32]Write to MH i2c: 01 00 00 CD 5B 28 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 CD 5B 00 00 00 00 00 74 0C AF [16:25:32]RasterBufferAndPrint [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]written 0, free lines is 3193 [16:25:32]MH_Cut [16:25:32]Write to MH i2c: D1 01 00 D4 5B 01 01 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 01 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 01 00 D4 5B 00 00 [16:25:32]Write to MH i2c: 01 00 00 D5 5B 30 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 BA 47 00 4E 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 39 36 35 33 34 30 10 04 04 00 30 E3 02 00 F4 03 04 00 E5 1E 1A 67 B6 04 01 00 00 6B 81 E8 8A F0 B3 A7 47 [16:25:32]CommunicateWithHost err = 0 [16:25:32]CheckOFDResponse [16:25:32]1017 (14) - 77093643461234 [16:25:32]1041 (16) - 0000000000965340 [16:25:32]1040 (4) - 189232 [16:25:32]1012 (4) - 24.10.2024 10:18 [16:25:32]1206 (1) - 0 [16:25:32]OFD Sender: Remove packet 189232 [16:25:32]ProducePacketName [16:25:32]name=ofd_packets/00189232 [16:25:32]NVStorageDeleteData [16:25:33]OFD Sender: No OFD packet to send [16:25:33]*** Cut start [16:25:33]*** Partial cut [16:25:33]*** CUTSNS_PIN = 1 [16:25:33]*** CUTSNS_PIN = 0 [16:25:33]*** Brake cut motor [16:25:34]Read from MH i2c: 01 [16:25:34]MH_I2C_Read... [16:25:34]*** Stop cut motor [16:25:34]*** Cut end [16:25:34]Read from MH i2c: 01 07 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: 01 07 00 D5 5B 00 00 00 00 00 FF 0F 45 [16:25:34]process_action close_receipt done [16:25:34]requested_data is exist [16:25:34]produce_requested_data [16:25:34]requested_item fm.sn is exist - process it [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 11 00 00 [16:25:34]Write to MH i2c: E2 08 00 D6 5B 80 11 00 00 00 00 00 00 AB [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 17 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 17 00 D6 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [16:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:25:34]wFMCommunicate OK [16:25:34]requested_item fd.num is exist - process it [16:25:34]SAM_PROTO_GetFieldsCounters [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 13 00 00 [16:25:34]Write to MH i2c: E2 08 00 D7 5B 80 13 00 00 00 00 00 00 AE [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 62 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 62 00 D7 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E3 02 00 0E 04 04 00 CF 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 30 [16:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E3 02 00 0E 04 04 00 CF 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 [16:25:34]wFMCommunicate OK [16:25:34]SAM_PROTO_GetFieldsCounters done [16:25:34]requested_item shift.num is exist - process it [16:25:34]requested_item shift.opened is exist - process it [16:25:34]req_shift_opened [16:25:34]FM_GetShiftState [16:25:34]SAM_PROTO_GetShiftState [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 13 01 00 [16:25:34]Write to MH i2c: E2 08 00 D8 5B 80 13 01 00 00 00 00 00 B0 [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 0E 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 0E 00 D8 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8E [16:25:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:25:34]wFMCommunicate OK [16:25:34]SAM_PROTO_GetShiftState done [16:25:34]FM_GetShiftState done [16:25:34]req_shift_opened done [16:25:34]requested_item shift.open_date is exist - process it [16:25:34]req_shift_open_date [16:25:34]req_shift_open_date done [16:25:34]produce_requested_data done [16:25:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189232,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:25:34]process_action_free close_receipt [16:25:34]json_value_free [16:25:34]json_value_free done [16:25:34]process_json_proto returns [16:25:34]Send response to host [16:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189232,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:25:34]free response buf [16:25:34]execute_script done [16:25:34]execute_script returns [16:25:34]free content buf [16:25:34]Sock 9.Close socket [16:25:34]Sock 9.Thread stoped [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:00]accept exits with 10 [16:27:00]New connection [16:27:00]New thread 3067215204 created [16:27:00]Thread 3067071844 joined [16:27:00]Waiting for new connection... [16:27:00] Sock 10.Parse request [16:27:00]Sock 10.Check first char [16:27:00]Sock 10.First char is OK [16:27:00]request: POST /json_proto HTTP/1.0 [16:27:00]Method: POST [16:27:00]URL: /json_proto [16:27:00]Method is POST - this is cgi request [16:27:00]url: /json_proto [16:27:00]query_string will be loaded in cgi processing [16:27:00]execute_cgi json_proto POST (null) [16:27:00]execute_cgi path=json_proto method=POST [16:27:00]POST find Content-Length [16:27:00]Host: 172.17.42.131:8080 [16:27:00]Content-Length: 983 [16:27:00]Content-Type: application/json [16:27:00] [16:27:00]POST finish read [16:27:00]Found Content-Length = 983 [16:27:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:27:00]execute_script... [16:27: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)211298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:27:00]POST & json_proto [16:27:00]process_json_proto [16:27:00]json parsed OK: [16:27:00]protocol is kg_v1.0 [16:27:00]action value=close_receipt [16:27:00]process_action close_receipt [16:27:00]cmd_close_receipt [16:27:00]MH_GetDate [16:27:00]Write to MH i2c: F0 00 00 D9 5B 23 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: F0 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: F0 09 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: F0 09 00 D9 5B 00 58 75 1A 67 A0 18 CA 66 62 [16:27:00]GetLastDocTimeStamp 1729787134 [16:27:00]current date 1729787224 [16:27:00]FM_GetShiftState [16:27:00]SAM_PROTO_GetShiftState [16:27:00]wFMCommunicate request_size=4 [16:27:00]MH_SAM_APDU [16:27:00]CAPDU: 80 13 01 00 [16:27:00]Write to MH i2c: E2 08 00 DA 5B 80 13 01 00 00 00 00 00 B2 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 0E 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 0E 00 DA 5B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 90 [16:27:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:27:00]wFMCommunicate OK [16:27:00]SAM_PROTO_GetShiftState done [16:27:00]FM_GetShiftState done [16:27:00]opened in 1729728961 [16:27:00]opened+sec_in_day 1729815361 [16:27:00]quantity*price = 150054 [16:27:00]sum+1 = 150055 [16:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 306 24.10.2024 16:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 189233 ФПД: 58719157693222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162704&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189233&fm=58719157693222&tin=02508201610067®Number=0000000000100030&sum=150000 [16:27:01]StoreToDocumentArchive [16:27:01]shift 463 fd 189233 [16:27:01]save to /storage/0463/doc_00189233 [16:27:01]save last doc name /storage/0463/doc_00189233 to /storage/kkm_last_doc_name [16:27:01]save OK [16:27:01]Clear old archive folders... [16:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:01]tlvbuf is 014D35B0 [16:27:01]SAM_PROTO_ClearQueue [16:27:01]wFMCommunicate request_size=4 [16:27:01]MH_SAM_APDU [16:27:01]CAPDU: 80 09 00 00 [16:27:01]Write to MH i2c: E2 08 00 E7 5B 80 09 00 00 00 00 00 00 B4 [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:01]Read from MH i2c: E2 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 03 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 03 00 E7 5B 00 90 00 B6 [16:27:01]RAPDU: 90 00 [16:27:01]wFMCommunicate OK [16:27:01]SAM_PROTO_ClearQueue done [16:27:01]KKMCreateOFDPacket [16:27:01]OFDProtocolAddRootSTLVToBuf [16:27:01]FM_MakeSignedData [16:27:01]FM_MakeSignedData [16:27:01]SAM_PROTO_SignData [16:27:01]wFMCommunicate request_size=4 [16:27:01]MH_SAM_APDU [16:27:01]CAPDU: 80 0D 01 02 [16:27:01]Write to MH i2c: E2 08 00 E8 5B 80 0D 01 02 00 00 00 00 BC [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:01]Read from MH i2c: E2 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 03 00 [16:27:01]MH_I2C_Read... [16:27:01]Read from MH i2c: E2 03 00 E8 5B 00 90 00 B7 [16:27:01]RAPDU: 90 00 [16:27:01]wFMCommunicate OK [16:27:01]wFMCommunicate request_size=255 [16:27:01]MH_SAM_APDU [16:27: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 58 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E3 02 00 35 04 06 00 35 [16:27:01]Write to MH i2c: E2 02 01 E9 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 58 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E3 02 00 35 04 06 00 35 00 00 01 [16:27:01]Write i2c OK [16:27:01]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 03 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 03 00 E9 5B 00 90 00 B8 [16:27:02]RAPDU: 90 00 [16:27:02]wFMCommunicate OK [16:27:02]wFMCommunicate request_size=10 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 0D 02 02 05 67 9E 89 2B 26 [16:27:02]Write to MH i2c: E2 0D 00 EA 5B 80 0D 02 02 05 00 67 9E 89 2B 26 00 00 A8 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 03 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 03 00 EA 5B 00 90 00 B9 [16:27:02]RAPDU: 90 00 [16:27:02]wFMCommunicate OK [16:27:02]wFMCommunicate request_size=4 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 0D 03 02 [16:27:02]Write to MH i2c: E2 08 00 EB 5B 80 0D 03 02 00 00 00 00 C1 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 0B 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 0B 00 EB 5B 00 59 D1 A8 E8 26 C2 65 A9 90 00 72 [16:27:02]RAPDU: 59 D1 A8 E8 26 C2 65 A9 90 00 [16:27:02]wFMCommunicate OK [16:27:02]SAM_PROTO_SignData done [16:27:02]FM_MakeSignedData done [16:27:02]CreateOFDProtocolMessage [16:27:02]wFMCommunicate request_size=4 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 11 00 00 [16:27:02]Write to MH i2c: E2 08 00 EC 5B 80 11 00 00 00 00 00 00 C1 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 17 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 17 00 EC 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [16:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:27:02]wFMCommunicate OK [16:27:02]CreateOFDProtocolMessage done [16:27:02]OFDSenderStorePacket 189233 [16:27:02]StoreOFDPacket docnum=189233 [16:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 CA 07 01 E9 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 58 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E3 02 00 35 04 06 00 35 67 9E 89 2B 26 59 D1 A8 E8 26 C2 65 A9 [16:27:02]CheckFolder [16:27:02]dirname=/storage/ofd_packets [16:27:02]CheckFolder done [16:27:02]ProducePacketName [16:27:02]name=ofd_packets/00189233 [16:27:02]NVStorageSaveData ofd_packets/00189233 [16:27:02]File name is /storage/ofd_packets/00189233 [16:27:02]Write 301 bytes [16:27:02]NVStorageSaveData done [16:27:02]OFDSenderStorePacket done [16:27:02]KKMCreateOFDPacket done [16:27:02]NVStorageSaveData kkm_last_timestamp [16:27:02]File name is /storage/kkm_last_timestamp [16:27:02]Write 4 bytes [16:27:02]NVStorageSaveData done [16:27:02]ExternCall_PrintAddStr [16:27:02]wPrintStart [16:27:02]Write to MH i2c: 01 00 00 ED 5B 48 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 07 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 07 00 ED 5B 00 00 00 00 00 FF 0F 5D [16:27:02]RasterBufferAndPrint [16:27:02]line Счет N : (1)211298 [16:27:02]line ИНН: 02508201610067 [16:27:02]line Контрольно-Кассовый Чек [16:27:02]line ПРОДАЖА [16:27:02]line ТРК (МРК, ГНК) : 22 [16:27:02]line Товар: 2710124130 [16:27:02]line Аи-92-К-3 [16:27:02]line 22.770 * 65.90 [16:27:02]line = 1500.54 [16:27:02]line НДС 12% НСП 1% [16:27:02]line > о реализуемом товаре [16:27:02]line ОКРУГЛЕНИЕ: -0.54 [16:27:02]line ИТОГО: 1500.00 [16:27:02]line Внесено: 1500.00 [16:27:02]line СДАЧА: 0.00 [16:27:02]line НСП 1% : 13.28 [16:27:02]line НДС 12% : 159.35 [16:27:02]line Наличными: 1500.00 [16:27:02]line Безнал.: 0.00 [16:27:02]line Место: АЗС № 86 "Партнер Нефть" [16:27:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:27:02]line СНО: Общий режим [16:27:02]line Чек 306 24.10.2024 16:27 [16:27:02]line Смена: 463 ФФД: 1.0 [16:27:02]line ЗНМ: 0300000155 [16:27:02]line РНМ: 0000000000100030 [16:27:02]line Версия ККМ: 001 [16:27:02]line [16:27:02]line Дисконтная программа [16:27:02]line АИ-92 [16:27:02]line номер 86 [16:27:02]line сэкономлено 22.77 сом [16:27:02]line ФМ: 0000000000965340 [16:27:02]line ФД: 189233 [16:27:02]line ФПД: 58719157693222 [16:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162704&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189233&fm=58719157693222&tin=02508201610067®Number=0000000000100030&sum=150000 [16:27:02]written 0, free lines is 4095 [16:27:02]OFD Sender: Processing packet 189233 [packets to send 1062, broken 1061] [16:27:02]ProducePacketName [16:27:02]name=ofd_packets/00189233 [16:27:02]OFD Sender: To server: pG, [16:27:02]CommunicateWithHost lk.salyk.kg:30040 [16:27:02]ConnectInit lk.salyk.kg [16:27:02]Connected sock=9 [16:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 CA 07 01 E9 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 58 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E3 02 00 35 04 06 00 35 67 9E 89 2B 26 59 D1 A8 E8 26 C2 65 A9 [16:27:02]Write to MH i2c: 01 00 00 1D 5C 79 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 07 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 07 00 1D 5C 00 00 00 00 00 E1 0B 6C [16:27:02]RasterBufferAndPrint [16:27:02]line [16:27:02]line [16:27:02]line [16:27:02]line [16:27:02]line [16:27:02]written 0, free lines is 3044 [16:27:02]MH_Cut [16:27:02]Write to MH i2c: D1 01 00 24 5C 01 52 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: D1 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: D1 01 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: D1 01 00 24 5C 00 51 [16:27:02]Write to MH i2c: 01 00 00 25 5C 81 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C 12 47 00 AD 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E3 02 00 F4 03 04 00 40 1F 1A 67 B6 04 01 00 00 CF 4F 86 18 99 C9 4E 7A [16:27:03]CommunicateWithHost err = 0 [16:27:03]CheckOFDResponse [16:27:03]1017 (14) - 77093643461234 [16:27:03]1041 (16) - 0000000000965340 [16:27:03]1040 (4) - 189233 [16:27:03]1012 (4) - 24.10.2024 10:19 [16:27:03]1206 (1) - 0 [16:27:03]OFD Sender: Remove packet 189233 [16:27:03]ProducePacketName [16:27:03]name=ofd_packets/00189233 [16:27:03]NVStorageDeleteData [16:27:03]OFD Sender: No OFD packet to send [16:27:04]*** Cut start [16:27:04]*** Partial cut [16:27:04]*** CUTSNS_PIN = 1 [16:27:04]*** CUTSNS_PIN = 0 [16:27:04]*** Brake cut motor [16:27:04]Read from MH i2c: 01 [16:27:04]MH_I2C_Read... [16:27:04]*** Stop cut motor [16:27:04]*** Cut end [16:27:04]Read from MH i2c: 01 07 00 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: 01 07 00 25 5C 00 00 00 00 00 FF 0F 96 [16:27:04]process_action close_receipt done [16:27:04]requested_data is exist [16:27:04]produce_requested_data [16:27:04]requested_item fm.sn is exist - process it [16:27:04]wFMCommunicate request_size=4 [16:27:04]MH_SAM_APDU [16:27:04]CAPDU: 80 11 00 00 [16:27:04]Write to MH i2c: E2 08 00 26 5C 80 11 00 00 00 00 00 00 FC [16:27:04]Write i2c OK [16:27:04]MH_I2C_Read... [16:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:04]Read from MH i2c: E2 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 17 00 [16:27:04]MH_I2C_Read... [16:27:04]Read from MH i2c: E2 17 00 26 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [16:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:27:04]wFMCommunicate OK [16:27:04]requested_item fd.num is exist - process it [16:27:04]SAM_PROTO_GetFieldsCounters [16:27:04]wFMCommunicate request_size=4 [16:27:04]MH_SAM_APDU [16:27:04]CAPDU: 80 13 00 00 [16:27:04]Write to MH i2c: E2 08 00 27 5C 80 13 00 00 00 00 00 00 FF [16:27:04]Write i2c OK [16:27:04]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 62 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 62 00 27 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E3 02 00 0E 04 04 00 CF 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 85 [16:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E3 02 00 0E 04 04 00 CF 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 [16:27:05]wFMCommunicate OK [16:27:05]SAM_PROTO_GetFieldsCounters done [16:27:05]requested_item shift.num is exist - process it [16:27:05]requested_item shift.opened is exist - process it [16:27:05]req_shift_opened [16:27:05]FM_GetShiftState [16:27:05]SAM_PROTO_GetShiftState [16:27:05]wFMCommunicate request_size=4 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 13 01 00 [16:27:05]Write to MH i2c: E2 08 00 28 5C 80 13 01 00 00 00 00 00 01 [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 28 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DF [16:27:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:27:05]wFMCommunicate OK [16:27:05]SAM_PROTO_GetShiftState done [16:27:05]FM_GetShiftState done [16:27:05]req_shift_opened done [16:27:05]requested_item shift.open_date is exist - process it [16:27:05]req_shift_open_date [16:27:05]req_shift_open_date done [16:27:05]produce_requested_data done [16:27:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189233,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:27:05]process_action_free close_receipt [16:27:05]json_value_free [16:27:05]json_value_free done [16:27:05]process_json_proto returns [16:27:05]Send response to host [16:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189233,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:27:05]free response buf [16:27:05]execute_script done [16:27:05]execute_script returns [16:27:05]free content buf [16:27:05]Sock 10.Close socket [16:27:05]Sock 10.Thread stoped [16:27:08]OFD Sender: No OFD packet to send [16:27:12]accept exits with 8 [16:27:12]New connection [16:27:12]New thread 3067071844 created [16:27:12]Thread 3067215204 joined [16:27:12]Waiting for new connection... [16:27:12] Sock 8.Parse request [16:27:12]Sock 8.Check first char [16:27:12]Sock 8.First char is OK [16:27:12]request: POST /json_proto HTTP/1.0 [16:27:12]Method: POST [16:27:12]URL: /json_proto [16:27:12]Method is POST - this is cgi request [16:27:12]url: /json_proto [16:27:12]query_string will be loaded in cgi processing [16:27:12]execute_cgi json_proto POST (null) [16:27:12]execute_cgi path=json_proto method=POST [16:27:12]POST find Content-Length [16:27:12]Host: 172.17.42.131:8080 [16:27:12]Content-Length: 677 [16:27:12]Content-Type: application/json [16:27:12] [16:27:12]POST finish read [16:27:12]Found Content-Length = 677 [16:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [16:27:12]execute_script... [16:27: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)211300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [16:27:12]POST & json_proto [16:27:12]process_json_proto [16:27:12]json parsed OK: [16:27:12]protocol is kg_v1.0 [16:27:12]action value=close_receipt [16:27:12]process_action close_receipt [16:27:12]cmd_close_receipt [16:27:12]MH_GetDate [16:27:12]Write to MH i2c: F0 00 00 29 5C 74 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: F0 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: F0 09 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: F0 09 00 29 5C 00 64 75 1A 67 A0 18 CA 66 BF [16:27:12]GetLastDocTimeStamp 1729787224 [16:27:12]current date 1729787236 [16:27:12]FM_GetShiftState [16:27:12]SAM_PROTO_GetShiftState [16:27:12]wFMCommunicate request_size=4 [16:27:12]MH_SAM_APDU [16:27:12]CAPDU: 80 13 01 00 [16:27:12]Write to MH i2c: E2 08 00 2A 5C 80 13 01 00 00 00 00 00 03 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:12]Read from MH i2c: E2 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 0E 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: E2 0E 00 2A 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E1 [16:27:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:27:12]wFMCommunicate OK [16:27:12]SAM_PROTO_GetShiftState done [16:27:12]FM_GetShiftState done [16:27:12]opened in 1729728961 [16:27:12]opened+sec_in_day 1729815361 [16:27:12]quantity*price = 60027 [16:27:12]sum+1 = 60029 [16:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 307 24.10.2024 16:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189234 ФПД: 54670539001817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189234&fm=54670539001817&tin=02508201610067®Number=0000000000100030&sum=60000 [16:27:14]StoreToDocumentArchive [16:27:14]shift 463 fd 189234 [16:27:14]save to /storage/0463/doc_00189234 [16:27:14]save last doc name /storage/0463/doc_00189234 to /storage/kkm_last_doc_name [16:27:14]save OK [16:27:14]Clear old archive folders... [16:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:14]tlvbuf is 016B7CF0 [16:27:14]SAM_PROTO_ClearQueue [16:27:14]wFMCommunicate request_size=4 [16:27:14]MH_SAM_APDU [16:27:14]CAPDU: 80 09 00 00 [16:27:14]Write to MH i2c: E2 08 00 37 5C 80 09 00 00 00 00 00 00 05 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 37 5C 00 90 00 07 [16:27:14]RAPDU: 90 00 [16:27:14]wFMCommunicate OK [16:27:14]SAM_PROTO_ClearQueue done [16:27:14]KKMCreateOFDPacket [16:27:14]OFDProtocolAddRootSTLVToBuf [16:27:14]FM_MakeSignedData [16:27:14]FM_MakeSignedData [16:27:14]SAM_PROTO_SignData [16:27:14]wFMCommunicate request_size=4 [16:27:14]MH_SAM_APDU [16:27:14]CAPDU: 80 0D 01 02 [16:27:14]Write to MH i2c: E2 08 00 38 5C 80 0D 01 02 00 00 00 00 0D [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 38 5C 00 90 00 08 [16:27:14]RAPDU: 90 00 [16:27:14]wFMCommunicate OK [16:27:14]wFMCommunicate request_size=255 [16:27:14]MH_SAM_APDU [16:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 33 01 00 00 F4 03 04 00 65 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E3 02 00 35 04 06 00 31 [16:27:14]Write to MH i2c: E2 02 01 39 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 33 01 00 00 F4 03 04 00 65 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E3 02 00 35 04 06 00 31 00 00 85 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 39 5C 00 90 00 09 [16:27:14]RAPDU: 90 00 [16:27:14]wFMCommunicate OK [16:27:14]wFMCommunicate request_size=10 [16:27:14]MH_SAM_APDU [16:27:14]CAPDU: 80 0D 02 02 05 B8 FA 0E 8F D9 [16:27:14]Write to MH i2c: E2 0D 00 3A 5C 80 0D 02 02 05 00 B8 FA 0E 8F D9 00 00 42 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 03 00 3A 5C 00 90 00 0A [16:27:14]RAPDU: 90 00 [16:27:14]wFMCommunicate OK [16:27:14]wFMCommunicate request_size=4 [16:27:14]MH_SAM_APDU [16:27:14]CAPDU: 80 0D 03 02 [16:27:14]Write to MH i2c: E2 08 00 3B 5C 80 0D 03 02 00 00 00 00 12 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 0B 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 0B 00 3B 5C 00 8F 3C B3 79 AF 69 8C AF 90 00 5D [16:27:14]RAPDU: 8F 3C B3 79 AF 69 8C AF 90 00 [16:27:14]wFMCommunicate OK [16:27:14]SAM_PROTO_SignData done [16:27:14]FM_MakeSignedData done [16:27:14]CreateOFDProtocolMessage [16:27:14]wFMCommunicate request_size=4 [16:27:14]MH_SAM_APDU [16:27:14]CAPDU: 80 11 00 00 [16:27:14]Write to MH i2c: E2 08 00 3C 5C 80 11 00 00 00 00 00 00 12 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:14]Read from MH i2c: E2 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 17 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: E2 17 00 3C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [16:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:27:14]wFMCommunicate OK [16:27:14]CreateOFDProtocolMessage done [16:27:14]OFDSenderStorePacket 189234 [16:27:14]StoreOFDPacket docnum=189234 [16:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 05 EA 07 01 AD 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 33 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 33 01 00 00 F4 03 04 00 65 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E3 02 00 35 04 06 00 31 B8 FA 0E 8F D9 8F 3C B3 79 AF 69 8C AF [16:27:14]CheckFolder [16:27:14]dirname=/storage/ofd_packets [16:27:14]CheckFolder done [16:27:14]ProducePacketName [16:27:14]name=ofd_packets/00189234 [16:27:14]NVStorageSaveData ofd_packets/00189234 [16:27:14]File name is /storage/ofd_packets/00189234 [16:27:14]Write 301 bytes [16:27:14]NVStorageSaveData done [16:27:14]OFDSenderStorePacket done [16:27:14]KKMCreateOFDPacket done [16:27:14]NVStorageSaveData kkm_last_timestamp [16:27:14]File name is /storage/kkm_last_timestamp [16:27:14]Write 4 bytes [16:27:14]NVStorageSaveData done [16:27:14]ExternCall_PrintAddStr [16:27:14]wPrintStart [16:27:14]Write to MH i2c: 01 00 00 3D 5C 99 [16:27:14]Write i2c OK [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: 01 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: 01 07 00 [16:27:14]MH_I2C_Read... [16:27:14]Read from MH i2c: 01 07 00 3D 5C 00 00 00 00 00 FF 0F AE [16:27:14]RasterBufferAndPrint [16:27:14]line Счет N : (1)211300 [16:27:14]line ИНН: 02508201610067 [16:27:14]line Контрольно-Кассовый Чек [16:27:14]line ПРОДАЖА [16:27:14]line ТРК (МРК, ГНК) : 33 [16:27:14]line Товар: 2710124500 [16:27:14]line Аи-95-К-3 [16:27:14]line 8.090 * 74.20 [16:27:14]line = 600.28 [16:27:14]line НДС 12% НСП 1% [16:27:14]line > о реализуемом товаре [16:27:14]line ОКРУГЛЕНИЕ: -0.28 [16:27:14]line ИТОГО: 600.00 [16:27:14]line Внесено: 600.00 [16:27:14]line СДАЧА: 0.00 [16:27:14]line НСП 1% : 5.31 [16:27:14]line НДС 12% : 63.75 [16:27:14]line Наличными: 600.00 [16:27:14]line Безнал.: 0.00 [16:27:14]line Место: АЗС № 86 "Партнер Нефть" [16:27:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:27:14]line СНО: Общий режим [16:27:14]line Чек 307 24.10.2024 16:27 [16:27:14]line Смена: 463 ФФД: 1.0 [16:27:14]line ЗНМ: 0300000155 [16:27:14]line РНМ: 0000000000100030 [16:27:14]line Версия ККМ: 001 [16:27:14]line ФМ: 0000000000965340 [16:27:14]line ФД: 189234 [16:27:14]line ФПД: 54670539001817 [16:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189234&fm=54670539001817&tin=02508201610067®Number=0000000000100030&sum=60000 [16:27:14]written 0, free lines is 4095 [16:27:14]OFD Sender: Processing packet 189234 [packets to send 1062, broken 1061] [16:27:14]ProducePacketName [16:27:14]name=ofd_packets/00189234 [16:27:14]OFD Sender: To server: pG, [16:27:14]CommunicateWithHost lk.salyk.kg:30040 [16:27:14]ConnectInit lk.salyk.kg [16:27:14]Connected sock=10 [16:27:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 05 EA 07 01 AD 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 33 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 33 01 00 00 F4 03 04 00 65 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E3 02 00 35 04 06 00 31 B8 FA 0E 8F D9 8F 3C B3 79 AF 69 8C AF [16:27:15]Write to MH i2c: 01 00 00 68 5C C4 [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 [16:27:15]MH_I2C_Read... [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 68 5C 00 00 00 00 00 60 0C 37 [16:27:15]RasterBufferAndPrint [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]written 0, free lines is 3174 [16:27:15]MH_Cut [16:27:15]Write to MH i2c: D1 01 00 6F 5C 01 9D [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 01 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 01 00 6F 5C 00 9C [16:27:15]Write to MH i2c: 01 00 00 70 5C CC [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 23 69 47 00 FF 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 39 36 35 33 34 30 10 04 04 00 32 E3 02 00 F4 03 04 00 4C 1F 1A 67 B6 04 01 00 00 CB F9 C0 94 5F 97 7E D7 [16:27:15]CommunicateWithHost err = 0 [16:27:15]CheckOFDResponse [16:27:15]1017 (14) - 77093643461234 [16:27:15]1041 (16) - 0000000000965340 [16:27:15]1040 (4) - 189234 [16:27:15]1012 (4) - 24.10.2024 10:19 [16:27:15]1206 (1) - 0 [16:27:15]OFD Sender: Remove packet 189234 [16:27:15]ProducePacketName [16:27:15]name=ofd_packets/00189234 [16:27:15]NVStorageDeleteData [16:27:15]OFD Sender: No OFD packet to send [16:27:16]*** Cut start [16:27:16]*** Partial cut [16:27:16]*** CUTSNS_PIN = 1 [16:27:16]*** CUTSNS_PIN = 0 [16:27:16]*** Brake cut motor [16:27:16]Read from MH i2c: 01 [16:27:16]MH_I2C_Read... [16:27:16]*** Stop cut motor [16:27:16]*** Cut end [16:27:16]Read from MH i2c: 01 07 00 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: 01 07 00 70 5C 00 00 00 00 00 FF 0F E1 [16:27:16]process_action close_receipt done [16:27:16]requested_data is exist [16:27:16]produce_requested_data [16:27:16]requested_item fm.sn is exist - process it [16:27:16]wFMCommunicate request_size=4 [16:27:16]MH_SAM_APDU [16:27:16]CAPDU: 80 11 00 00 [16:27:16]Write to MH i2c: E2 08 00 71 5C 80 11 00 00 00 00 00 00 47 [16:27:16]Write i2c OK [16:27:16]MH_I2C_Read... [16:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:16]Read from MH i2c: E2 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 17 00 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 17 00 71 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [16:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:27:16]wFMCommunicate OK [16:27:16]requested_item fd.num is exist - process it [16:27:16]SAM_PROTO_GetFieldsCounters [16:27:16]wFMCommunicate request_size=4 [16:27:16]MH_SAM_APDU [16:27:16]CAPDU: 80 13 00 00 [16:27:17]Write to MH i2c: E2 08 00 72 5C 80 13 00 00 00 00 00 00 4A [16:27:17]Write i2c OK [16:27:17]MH_I2C_Read... [16:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:17]Read from MH i2c: E2 [16:27:17]MH_I2C_Read... [16:27:17]Read from MH i2c: E2 62 00 [16:27:17]MH_I2C_Read... [16:27:17]Read from MH i2c: E2 62 00 72 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E3 02 00 0E 04 04 00 CF 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 D4 [16:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E3 02 00 0E 04 04 00 CF 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 [16:27:17]wFMCommunicate OK [16:27:17]SAM_PROTO_GetFieldsCounters done [16:27:17]requested_item shift.num is exist - process it [16:27:17]requested_item shift.opened is exist - process it [16:27:17]req_shift_opened [16:27:17]FM_GetShiftState [16:27:17]SAM_PROTO_GetShiftState [16:27:17]wFMCommunicate request_size=4 [16:27:17]MH_SAM_APDU [16:27:17]CAPDU: 80 13 01 00 [16:27:17]Write to MH i2c: E2 08 00 73 5C 80 13 01 00 00 00 00 00 4C [16:27:17]Write i2c OK [16:27:17]MH_I2C_Read... [16:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:17]Read from MH i2c: E2 [16:27:17]MH_I2C_Read... [16:27:17]Read from MH i2c: E2 0E 00 [16:27:17]MH_I2C_Read... [16:27:17]Read from MH i2c: E2 0E 00 73 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2A [16:27:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:27:17]wFMCommunicate OK [16:27:17]SAM_PROTO_GetShiftState done [16:27:17]FM_GetShiftState done [16:27:17]req_shift_opened done [16:27:17]requested_item shift.open_date is exist - process it [16:27:17]req_shift_open_date [16:27:17]req_shift_open_date done [16:27:17]produce_requested_data done [16:27:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189234,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:27:17]process_action_free close_receipt [16:27:17]json_value_free [16:27:17]json_value_free done [16:27:17]process_json_proto returns [16:27:17]Send response to host [16:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189234,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:27:17]free response buf [16:27:17]execute_script done [16:27:17]execute_script returns [16:27:17]free content buf [16:27:17]Sock 8.Close socket [16:27:17]Sock 8.Thread stoped [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:34]accept exits with 9 [16:28:34]New connection [16:28:34]New thread 3067215204 created [16:28:34]Thread 3067071844 joined [16:28:34]Waiting for new connection... [16:28:34] Sock 9.Parse request [16:28:34]Sock 9.Check first char [16:28:34]Sock 9.First char is OK [16:28:34]request: POST /json_proto HTTP/1.0 [16:28:34]Method: POST [16:28:34]URL: /json_proto [16:28:34]Method is POST - this is cgi request [16:28:34]url: /json_proto [16:28:34]query_string will be loaded in cgi processing [16:28:34]execute_cgi json_proto POST (null) [16:28:34]execute_cgi path=json_proto method=POST [16:28:34]POST find Content-Length [16:28:34]Host: 172.17.42.131:8080 [16:28:34]Content-Length: 682 [16:28:34]Content-Type: application/json [16:28:34] [16:28:34]POST finish read [16:28:34]Found Content-Length = 682 [16:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:34]execute_script... [16:28: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)211299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:34]POST & json_proto [16:28:34]process_json_proto [16:28:34]json parsed OK: [16:28:34]protocol is kg_v1.0 [16:28:34]action value=close_receipt [16:28:34]process_action close_receipt [16:28:34]cmd_close_receipt [16:28:34]MH_GetDate [16:28:34]Write to MH i2c: F0 00 00 74 5C BF [16:28:34]Write i2c OK [16:28:34]MH_I2C_Read... [16:28:34]Read from MH i2c: F0 [16:28:34]MH_I2C_Read... [16:28:34]Read from MH i2c: F0 09 00 [16:28:34]MH_I2C_Read... [16:28:34]Read from MH i2c: F0 09 00 74 5C 00 B6 75 1A 67 A0 18 CA 66 5C [16:28:34]GetLastDocTimeStamp 1729787237 [16:28:34]current date 1729787318 [16:28:34]FM_GetShiftState [16:28:34]SAM_PROTO_GetShiftState [16:28:34]wFMCommunicate request_size=4 [16:28:34]MH_SAM_APDU [16:28:34]CAPDU: 80 13 01 00 [16:28:34]Write to MH i2c: E2 08 00 75 5C 80 13 01 00 00 00 00 00 4E [16:28:34]Write i2c OK [16:28:34]MH_I2C_Read... [16:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:34]Read from MH i2c: E2 [16:28:34]MH_I2C_Read... [16:28:34]Read from MH i2c: E2 0E 00 [16:28:34]MH_I2C_Read... [16:28:34]Read from MH i2c: E2 0E 00 75 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2C [16:28:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:28:34]wFMCommunicate OK [16:28:34]SAM_PROTO_GetShiftState done [16:28:34]FM_GetShiftState done [16:28:34]opened in 1729728961 [16:28:34]opened+sec_in_day 1729815361 [16:28:34]quantity*price = 100015 [16:28:34]sum+1 = 100017 [16:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 308 24.10.2024 16:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189235 ФПД: 213809436147656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189235&fm=213809436147656&tin=02508201610067®Number=0000000000100030&sum=100000 [16:28:35]StoreToDocumentArchive [16:28:35]shift 463 fd 189235 [16:28:35]save to /storage/0463/doc_00189235 [16:28:35]save last doc name /storage/0463/doc_00189235 to /storage/kkm_last_doc_name [16:28:35]save OK [16:28:35]Clear old archive folders... [16:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:35]tlvbuf is 015B9420 [16:28:35]SAM_PROTO_ClearQueue [16:28:35]wFMCommunicate request_size=4 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 09 00 00 [16:28:35]Write to MH i2c: E2 08 00 82 5C 80 09 00 00 00 00 00 00 50 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 82 5C 00 90 00 52 [16:28:35]RAPDU: 90 00 [16:28:35]wFMCommunicate OK [16:28:35]SAM_PROTO_ClearQueue done [16:28:35]KKMCreateOFDPacket [16:28:35]OFDProtocolAddRootSTLVToBuf [16:28:35]FM_MakeSignedData [16:28:35]FM_MakeSignedData [16:28:35]SAM_PROTO_SignData [16:28:35]wFMCommunicate request_size=4 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 0D 01 02 [16:28:35]Write to MH i2c: E2 08 00 83 5C 80 0D 01 02 00 00 00 00 58 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 83 5C 00 90 00 53 [16:28:35]RAPDU: 90 00 [16:28:35]wFMCommunicate OK [16:28:35]wFMCommunicate request_size=255 [16:28:35]MH_SAM_APDU [16:28: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B6 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E3 02 00 35 04 06 00 C2 [16:28:35]Write to MH i2c: E2 02 01 84 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B6 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E3 02 00 35 04 06 00 C2 00 00 50 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 84 5C 00 90 00 54 [16:28:35]RAPDU: 90 00 [16:28:35]wFMCommunicate OK [16:28:35]wFMCommunicate request_size=10 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 0D 02 02 05 75 63 7D BF C8 [16:28:35]Write to MH i2c: E2 0D 00 85 5C 80 0D 02 02 05 00 75 63 7D BF C8 00 00 41 [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 03 00 85 5C 00 90 00 55 [16:28:35]RAPDU: 90 00 [16:28:35]wFMCommunicate OK [16:28:35]wFMCommunicate request_size=4 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 0D 03 02 [16:28:35]Write to MH i2c: E2 08 00 86 5C 80 0D 03 02 00 00 00 00 5D [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:35]Read from MH i2c: E2 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 0B 00 [16:28:35]MH_I2C_Read... [16:28:35]Read from MH i2c: E2 0B 00 86 5C 00 2F BF C4 D2 1C 9F 75 B1 90 00 C3 [16:28:35]RAPDU: 2F BF C4 D2 1C 9F 75 B1 90 00 [16:28:35]wFMCommunicate OK [16:28:35]SAM_PROTO_SignData done [16:28:35]FM_MakeSignedData done [16:28:35]CreateOFDProtocolMessage [16:28:35]wFMCommunicate request_size=4 [16:28:35]MH_SAM_APDU [16:28:35]CAPDU: 80 11 00 00 [16:28:35]Write to MH i2c: E2 08 00 87 5C 80 11 00 00 00 00 00 00 5D [16:28:35]Write i2c OK [16:28:35]MH_I2C_Read... [16:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:36]Read from MH i2c: E2 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 17 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: E2 17 00 87 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [16:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:28:36]wFMCommunicate OK [16:28:36]CreateOFDProtocolMessage done [16:28:36]OFDSenderStorePacket 189235 [16:28:36]StoreOFDPacket docnum=189235 [16:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC BD 07 01 98 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B6 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E3 02 00 35 04 06 00 C2 75 63 7D BF C8 2F BF C4 D2 1C 9F 75 B1 [16:28:36]CheckFolder [16:28:36]dirname=/storage/ofd_packets [16:28:36]CheckFolder done [16:28:36]ProducePacketName [16:28:36]name=ofd_packets/00189235 [16:28:36]NVStorageSaveData ofd_packets/00189235 [16:28:36]File name is /storage/ofd_packets/00189235 [16:28:36]Write 301 bytes [16:28:36]NVStorageSaveData done [16:28:36]OFDSenderStorePacket done [16:28:36]KKMCreateOFDPacket done [16:28:36]NVStorageSaveData kkm_last_timestamp [16:28:36]File name is /storage/kkm_last_timestamp [16:28:36]Write 4 bytes [16:28:36]NVStorageSaveData done [16:28:36]ExternCall_PrintAddStr [16:28:36]wPrintStart [16:28:36]Write to MH i2c: 01 00 00 88 5C E4 [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 07 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 FF 0F F9 [16:28:36]RasterBufferAndPrint [16:28:36]line Счет N : (1)211299 [16:28:36]line ИНН: 02508201610067 [16:28:36]line Контрольно-Кассовый Чек [16:28:36]line ПРОДАЖА [16:28:36]line ТРК (МРК, ГНК) : 42 [16:28:36]line Товар: 2710124130 [16:28:36]line Аи-92-К-3 [16:28:36]line 14.950 * 66.90 [16:28:36]line = 1000.16 [16:28:36]line НДС 12% НСП 1% [16:28:36]line > о реализуемом товаре [16:28:36]line ОКРУГЛЕНИЕ: -0.16 [16:28:36]line ИТОГО: 1000.00 [16:28:36]line Внесено: 1000.00 [16:28:36]line СДАЧА: 0.00 [16:28:36]line НСП 1% : 8.85 [16:28:36]line НДС 12% : 106.21 [16:28:36]line Наличными: 1000.00 [16:28:36]line Безнал.: 0.00 [16:28:36]line Место: АЗС № 86 "Партнер Нефть" [16:28:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:28:36]line СНО: Общий режим [16:28:36]line Чек 308 24.10.2024 16:28 [16:28:36]line Смена: 463 ФФД: 1.0 [16:28:36]line ЗНМ: 0300000155 [16:28:36]line РНМ: 0000000000100030 [16:28:36]line Версия ККМ: 001 [16:28:36]line ФМ: 0000000000965340 [16:28:36]line ФД: 189235 [16:28:36]line ФПД: 213809436147656 [16:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189235&fm=213809436147656&tin=02508201610067®Number=0000000000100030&sum=100000 [16:28:36]written 0, free lines is 4095 [16:28:36]OFD Sender: Processing packet 189235 [packets to send 1062, broken 1061] [16:28:36]ProducePacketName [16:28:36]name=ofd_packets/00189235 [16:28:36]OFD Sender: To server: pG, [16:28:36]CommunicateWithHost lk.salyk.kg:30040 [16:28:36]ConnectInit lk.salyk.kg [16:28:36]Write to MH i2c: 01 00 00 B3 5C 0F [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 07 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: 01 07 00 B3 5C 00 00 00 00 00 5F 0C 81 [16:28:36]RasterBufferAndPrint [16:28:36]line [16:28:36]line [16:28:36]line [16:28:36]line [16:28:36]line [16:28:36]written 0, free lines is 3170 [16:28:36]Connected sock=8 [16:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC BD 07 01 98 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 B6 75 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E3 02 00 35 04 06 00 C2 75 63 7D BF C8 2F BF C4 D2 1C 9F 75 B1 [16:28:36]MH_Cut [16:28:36]Write to MH i2c: D1 01 00 BA 5C 01 E8 [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: D1 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: D1 01 00 [16:28:36]MH_I2C_Read... [16:28:36]Read from MH i2c: D1 01 00 BA 5C 00 E7 [16:28:36]Write to MH i2c: 01 00 00 BB 5C 17 [16:28:36]Write i2c OK [16:28:36]MH_I2C_Read... [16:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B AA 47 00 0C 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 39 36 35 33 34 30 10 04 04 00 33 E3 02 00 F4 03 04 00 9E 1F 1A 67 B6 04 01 00 00 E8 F5 E2 D6 C2 86 73 34 [16:28:36]CommunicateWithHost err = 0 [16:28:36]CheckOFDResponse [16:28:36]1017 (14) - 77093643461234 [16:28:36]1041 (16) - 0000000000965340 [16:28:36]1040 (4) - 189235 [16:28:36]1012 (4) - 24.10.2024 10:21 [16:28:36]1206 (1) - 0 [16:28:36]OFD Sender: Remove packet 189235 [16:28:36]ProducePacketName [16:28:36]name=ofd_packets/00189235 [16:28:36]NVStorageDeleteData [16:28:37]OFD Sender: No OFD packet to send [16:28:37]*** Cut start [16:28:37]*** Partial cut [16:28:37]*** CUTSNS_PIN = 1 [16:28:37]*** CUTSNS_PIN = 0 [16:28:38]*** Brake cut motor [16:28:38]Read from MH i2c: 01 [16:28:38]MH_I2C_Read... [16:28:38]*** Stop cut motor [16:28:38]*** Cut end [16:28:38]Read from MH i2c: 01 07 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: 01 07 00 BB 5C 00 00 00 00 00 FF 0F 2C [16:28:38]process_action close_receipt done [16:28:38]requested_data is exist [16:28:38]produce_requested_data [16:28:38]requested_item fm.sn is exist - process it [16:28:38]wFMCommunicate request_size=4 [16:28:38]MH_SAM_APDU [16:28:38]CAPDU: 80 11 00 00 [16:28:38]Write to MH i2c: E2 08 00 BC 5C 80 11 00 00 00 00 00 00 92 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:38]Read from MH i2c: E2 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 17 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 17 00 BC 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [16:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:28:38]wFMCommunicate OK [16:28:38]requested_item fd.num is exist - process it [16:28:38]SAM_PROTO_GetFieldsCounters [16:28:38]wFMCommunicate request_size=4 [16:28:38]MH_SAM_APDU [16:28:38]CAPDU: 80 13 00 00 [16:28:38]Write to MH i2c: E2 08 00 BD 5C 80 13 00 00 00 00 00 00 95 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:38]Read from MH i2c: E2 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 62 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 62 00 BD 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E3 02 00 0E 04 04 00 CF 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 23 [16:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E3 02 00 0E 04 04 00 CF 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 [16:28:38]wFMCommunicate OK [16:28:38]SAM_PROTO_GetFieldsCounters done [16:28:38]requested_item shift.num is exist - process it [16:28:38]requested_item shift.opened is exist - process it [16:28:38]req_shift_opened [16:28:38]FM_GetShiftState [16:28:38]SAM_PROTO_GetShiftState [16:28:38]wFMCommunicate request_size=4 [16:28:38]MH_SAM_APDU [16:28:38]CAPDU: 80 13 01 00 [16:28:38]Write to MH i2c: E2 08 00 BE 5C 80 13 01 00 00 00 00 00 97 [16:28:38]Write i2c OK [16:28:38]MH_I2C_Read... [16:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:38]Read from MH i2c: E2 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 0E 00 [16:28:38]MH_I2C_Read... [16:28:38]Read from MH i2c: E2 0E 00 BE 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 75 [16:28:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:28:38]wFMCommunicate OK [16:28:38]SAM_PROTO_GetShiftState done [16:28:38]FM_GetShiftState done [16:28:38]req_shift_opened done [16:28:38]requested_item shift.open_date is exist - process it [16:28:38]req_shift_open_date [16:28:38]req_shift_open_date done [16:28:38]produce_requested_data done [16:28:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189235,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:28:38]process_action_free close_receipt [16:28:38]json_value_free [16:28:38]json_value_free done [16:28:38]process_json_proto returns [16:28:38]Send response to host [16:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189235,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:28:38]free response buf [16:28:38]execute_script done [16:28:38]execute_script returns [16:28:38]free content buf [16:28:38]Sock 9.Close socket [16:28:38]Sock 9.Thread stoped [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:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:39]accept exits with 10 [16:31:39]New connection [16:31:39]New thread 3067071844 created [16:31:39]Thread 3067215204 joined [16:31:39]Waiting for new connection... [16:31:39] Sock 10.Parse request [16:31:39]Sock 10.Check first char [16:31:39]Sock 10.First char is OK [16:31:39]request: POST /json_proto HTTP/1.0 [16:31:39]Method: POST [16:31:39]URL: /json_proto [16:31:39]Method is POST - this is cgi request [16:31:39]url: /json_proto [16:31:39]query_string will be loaded in cgi processing [16:31:39]execute_cgi json_proto POST (null) [16:31:39]execute_cgi path=json_proto method=POST [16:31:39]POST find Content-Length [16:31:39]Host: 172.17.42.131:8080 [16:31:39]Content-Length: 688 [16:31:39]Content-Type: application/json [16:31:39] [16:31:39]POST finish read [16:31:39]Found Content-Length = 688 [16:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [16:31:39]execute_script... [16:31: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)211302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [16:31:39]POST & json_proto [16:31:39]process_json_proto [16:31:39]json parsed OK: [16:31:39]protocol is kg_v1.0 [16:31:39]action value=close_receipt [16:31:39]process_action close_receipt [16:31:39]cmd_close_receipt [16:31:39]MH_GetDate [16:31:39]Write to MH i2c: F0 00 00 BF 5C 0A [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 09 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 09 00 BF 5C 00 6F 76 1A 67 A0 18 CA 66 61 [16:31:39]GetLastDocTimeStamp 1729787318 [16:31:39]current date 1729787503 [16:31:39]FM_GetShiftState [16:31:39]SAM_PROTO_GetShiftState [16:31:39]wFMCommunicate request_size=4 [16:31:39]MH_SAM_APDU [16:31:39]CAPDU: 80 13 01 00 [16:31:39]Write to MH i2c: E2 08 00 C0 5C 80 13 01 00 00 00 00 00 99 [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 C0 5C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 77 [16:31:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:31:39]wFMCommunicate OK [16:31:39]SAM_PROTO_GetShiftState done [16:31:39]FM_GetShiftState done [16:31:39]opened in 1729728961 [16:31:39]opened+sec_in_day 1729815361 [16:31:39]quantity*price = 250050 [16:31:39]sum+1 = 250052 [16:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 309 24.10.2024 16:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189236 ФПД: 168685948635009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189236&fm=168685948635009&tin=02508201610067®Number=0000000000100030&sum=250000 [16:31:40]StoreToDocumentArchive [16:31:40]shift 463 fd 189236 [16:31:40]save to /storage/0463/doc_00189236 [16:31:40]save last doc name /storage/0463/doc_00189236 to /storage/kkm_last_doc_name [16:31:40]save OK [16:31:40]Clear old archive folders... [16:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:31:40]tlvbuf is 015E7550 [16:31:40]SAM_PROTO_ClearQueue [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 09 00 00 [16:31:40]Write to MH i2c: E2 08 00 CD 5C 80 09 00 00 00 00 00 00 9B [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 CD 5C 00 90 00 9D [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]SAM_PROTO_ClearQueue done [16:31:40]KKMCreateOFDPacket [16:31:40]OFDProtocolAddRootSTLVToBuf [16:31:40]FM_MakeSignedData [16:31:40]FM_MakeSignedData [16:31:40]SAM_PROTO_SignData [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 01 02 [16:31:40]Write to MH i2c: E2 08 00 CE 5C 80 0D 01 02 00 00 00 00 A3 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 CE 5C 00 90 00 9E [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]wFMCommunicate request_size=255 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 35 01 00 00 F4 03 04 00 6F 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E3 02 [16:31:40]Write to MH i2c: E2 02 01 CF 5C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 35 01 00 00 F4 03 04 00 6F 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E3 02 00 00 17 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:41]Read from MH i2c: E2 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 03 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 03 00 CF 5C 00 90 00 9F [16:31:41]RAPDU: 90 00 [16:31:41]wFMCommunicate OK [16:31:41]wFMCommunicate request_size=16 [16:31:41]MH_SAM_APDU [16:31:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 99 6B 42 0C 07 81 [16:31:41]Write to MH i2c: E2 13 00 D0 5C 80 0D 02 02 0B 00 00 35 04 06 00 99 6B 42 0C 07 81 00 00 D5 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:41]Read from MH i2c: E2 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 03 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 03 00 D0 5C 00 90 00 A0 [16:31:41]RAPDU: 90 00 [16:31:41]wFMCommunicate OK [16:31:41]wFMCommunicate request_size=4 [16:31:41]MH_SAM_APDU [16:31:41]CAPDU: 80 0D 03 02 [16:31:41]Write to MH i2c: E2 08 00 D1 5C 80 0D 03 02 00 00 00 00 A8 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:41]Read from MH i2c: E2 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 0B 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 0B 00 D1 5C 00 EF F6 C9 8E 3C C2 64 CC 90 00 13 [16:31:41]RAPDU: EF F6 C9 8E 3C C2 64 CC 90 00 [16:31:41]wFMCommunicate OK [16:31:41]SAM_PROTO_SignData done [16:31:41]FM_MakeSignedData done [16:31:41]CreateOFDProtocolMessage [16:31:41]wFMCommunicate request_size=4 [16:31:41]MH_SAM_APDU [16:31:41]CAPDU: 80 11 00 00 [16:31:41]Write to MH i2c: E2 08 00 D2 5C 80 11 00 00 00 00 00 00 A8 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:41]Read from MH i2c: E2 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 17 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 17 00 D2 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [16:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:31:41]wFMCommunicate OK [16:31:41]CreateOFDProtocolMessage done [16:31:41]OFDSenderStorePacket 189236 [16:31:41]StoreOFDPacket docnum=189236 [16:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 40 AB 0D 01 FC CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 35 01 00 00 F4 03 04 00 6F 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E3 02 00 35 04 06 00 99 6B 42 0C 07 81 EF F6 C9 8E 3C C2 64 CC [16:31:41]CheckFolder [16:31:41]dirname=/storage/ofd_packets [16:31:41]CheckFolder done [16:31:41]ProducePacketName [16:31:41]name=ofd_packets/00189236 [16:31:41]NVStorageSaveData ofd_packets/00189236 [16:31:41]File name is /storage/ofd_packets/00189236 [16:31:41]Write 307 bytes [16:31:41]NVStorageSaveData done [16:31:41]OFDSenderStorePacket done [16:31:41]KKMCreateOFDPacket done [16:31:41]NVStorageSaveData kkm_last_timestamp [16:31:41]File name is /storage/kkm_last_timestamp [16:31:41]Write 4 bytes [16:31:41]NVStorageSaveData done [16:31:41]ExternCall_PrintAddStr [16:31:41]wPrintStart [16:31:41]Write to MH i2c: 01 00 00 D3 5C 2F [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 D3 5C 00 00 00 00 00 FF 0F 44 [16:31:41]RasterBufferAndPrint [16:31:41]line Счет N : (1)211302 [16:31:41]line ИНН: 02508201610067 [16:31:41]line Контрольно-Кассовый Чек [16:31:41]line ПРОДАЖА [16:31:41]line ТРК (МРК, ГНК) : 41 [16:31:41]line Товар: 2710194210 [16:31:41]line D-ENERGY ДТ-К-5 [16:31:41]line 32.390 * 77.20 [16:31:41]line = 2500.51 [16:31:41]line НДС 12% НСП 1% [16:31:41]line > о реализуемом товаре [16:31:41]line ОКРУГЛЕНИЕ: -0.51 [16:31:41]line ИТОГО: 2500.00 [16:31:41]line Внесено: 2500.00 [16:31:41]line СДАЧА: 0.00 [16:31:41]line НСП 1% : 22.13 [16:31:41]line НДС 12% : 265.54 [16:31:41]line Наличными: 2500.00 [16:31:41]line Безнал.: 0.00 [16:31:41]line Место: АЗС № 86 "Партнер Нефть" [16:31:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:31:41]line СНО: Общий режим [16:31:41]line Чек 309 24.10.2024 16:31 [16:31:41]line Смена: 463 ФФД: 1.0 [16:31:41]line ЗНМ: 0300000155 [16:31:41]line РНМ: 0000000000100030 [16:31:41]line Версия ККМ: 001 [16:31:41]line ФМ: 0000000000965340 [16:31:41]line ФД: 189236 [16:31:41]line ФПД: 168685948635009 [16:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189236&fm=168685948635009&tin=02508201610067®Number=0000000000100030&sum=250000 [16:31:41]written 0, free lines is 4095 [16:31:41]OFD Sender: Processing packet 189236 [packets to send 1062, broken 1061] [16:31:41]ProducePacketName [16:31:41]name=ofd_packets/00189236 [16:31:41]OFD Sender: To server: pG, [16:31:41]CommunicateWithHost lk.salyk.kg:30040 [16:31:41]ConnectInit lk.salyk.kg [16:31:41]Connected sock=9 [16:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 40 AB 0D 01 FC CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 35 01 00 00 F4 03 04 00 6F 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E3 02 00 35 04 06 00 99 6B 42 0C 07 81 EF F6 C9 8E 3C C2 64 CC [16:31:41]Write to MH i2c: 01 00 00 FE 5C 5A [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 FE 5C 00 00 00 00 00 60 0C CD [16:31:41]RasterBufferAndPrint [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]written 0, free lines is 3172 [16:31:41]MH_Cut [16:31:41]Write to MH i2c: D1 01 00 05 5D 01 34 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: D1 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: D1 01 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: D1 01 00 05 5D 00 33 [16:31:41]Write to MH i2c: 01 00 00 06 5D 63 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3F EF 47 00 51 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 39 36 35 33 34 30 10 04 04 00 34 E3 02 00 F4 03 04 00 57 20 1A 67 B6 04 01 00 00 CA B7 59 88 67 13 A9 D3 [16:31:41]CommunicateWithHost err = 0 [16:31:41]CheckOFDResponse [16:31:41]1017 (14) - 77093643461234 [16:31:41]1041 (16) - 0000000000965340 [16:31:41]1040 (4) - 189236 [16:31:41]1012 (4) - 24.10.2024 10:24 [16:31:41]1206 (1) - 0 [16:31:41]OFD Sender: Remove packet 189236 [16:31:41]ProducePacketName [16:31:41]name=ofd_packets/00189236 [16:31:41]NVStorageDeleteData [16:31:42]OFD Sender: No OFD packet to send [16:31:42]*** Cut start [16:31:42]*** Partial cut [16:31:42]*** CUTSNS_PIN = 1 [16:31:42]*** CUTSNS_PIN = 0 [16:31:43]*** Brake cut motor [16:31:43]Read from MH i2c: 01 [16:31:43]MH_I2C_Read... [16:31:43]*** Stop cut motor [16:31:43]*** Cut end [16:31:43]Read from MH i2c: 01 07 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: 01 07 00 06 5D 00 00 00 00 00 FF 0F 78 [16:31:43]process_action close_receipt done [16:31:43]requested_data is exist [16:31:43]produce_requested_data [16:31:43]requested_item fm.sn is exist - process it [16:31:43]wFMCommunicate request_size=4 [16:31:43]MH_SAM_APDU [16:31:43]CAPDU: 80 11 00 00 [16:31:43]Write to MH i2c: E2 08 00 07 5D 80 11 00 00 00 00 00 00 DE [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:43]Read from MH i2c: E2 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 17 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 17 00 07 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [16:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:31:43]wFMCommunicate OK [16:31:43]requested_item fd.num is exist - process it [16:31:43]SAM_PROTO_GetFieldsCounters [16:31:43]wFMCommunicate request_size=4 [16:31:43]MH_SAM_APDU [16:31:43]CAPDU: 80 13 00 00 [16:31:43]Write to MH i2c: E2 08 00 08 5D 80 13 00 00 00 00 00 00 E1 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:43]Read from MH i2c: E2 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 62 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 62 00 08 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E3 02 00 0E 04 04 00 CF 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 73 [16:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E3 02 00 0E 04 04 00 CF 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 [16:31:43]wFMCommunicate OK [16:31:43]SAM_PROTO_GetFieldsCounters done [16:31:43]requested_item shift.num is exist - process it [16:31:43]requested_item shift.opened is exist - process it [16:31:43]req_shift_opened [16:31:43]FM_GetShiftState [16:31:43]SAM_PROTO_GetShiftState [16:31:43]wFMCommunicate request_size=4 [16:31:43]MH_SAM_APDU [16:31:43]CAPDU: 80 13 01 00 [16:31:43]Write to MH i2c: E2 08 00 09 5D 80 13 01 00 00 00 00 00 E3 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:43]Read from MH i2c: E2 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 0E 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: E2 0E 00 09 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C1 [16:31:43]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:31:43]wFMCommunicate OK [16:31:43]SAM_PROTO_GetShiftState done [16:31:43]FM_GetShiftState done [16:31:43]req_shift_opened done [16:31:43]requested_item shift.open_date is exist - process it [16:31:43]req_shift_open_date [16:31:43]req_shift_open_date done [16:31:43]produce_requested_data done [16:31:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189236,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:31:43]process_action_free close_receipt [16:31:43]json_value_free [16:31:43]json_value_free done [16:31:43]process_json_proto returns [16:31:43]Send response to host [16:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189236,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:31:43]free response buf [16:31:43]execute_script done [16:31:43]execute_script returns [16:31:43]free content buf [16:31:43]Sock 10.Close socket [16:31:43]Sock 10.Thread stoped [16:31:47]OFD Sender: No OFD packet to send [16:31:52]accept exits with 8 [16:31:52]New connection [16:31:52]New thread 3067215204 created [16:31:52]Thread 3067071844 joined [16:31:52]Waiting for new connection... [16:31:52] Sock 8.Parse request [16:31:52]Sock 8.Check first char [16:31:52]Sock 8.First char is OK [16:31:52]request: POST /json_proto HTTP/1.0 [16:31:52]Method: POST [16:31:52]URL: /json_proto [16:31:52]Method is POST - this is cgi request [16:31:52]url: /json_proto [16:31:52]query_string will be loaded in cgi processing [16:31:52]execute_cgi json_proto POST (null) [16:31:52]execute_cgi path=json_proto method=POST [16:31:52]POST find Content-Length [16:31:52]Host: 172.17.42.131:8080 [16:31:52]Content-Length: 803 [16:31:52]Content-Type: application/json [16:31:52] [16:31:52]POST finish read [16:31:52]Found Content-Length = 803 [16:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:52]execute_script... [16:31: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)211301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:52]POST & json_proto [16:31:52]process_json_proto [16:31:52]json parsed OK: [16:31:52]protocol is kg_v1.0 [16:31:52]action value=close_receipt [16:31:52]process_action close_receipt [16:31:52]cmd_close_receipt [16:31:52]MH_GetDate [16:31:52]Write to MH i2c: F0 00 00 0A 5D 56 [16:31:52]Write i2c OK [16:31:52]MH_I2C_Read... [16:31:52]Read from MH i2c: F0 [16:31:52]MH_I2C_Read... [16:31:52]Read from MH i2c: F0 09 00 [16:31:52]MH_I2C_Read... [16:31:52]Read from MH i2c: F0 09 00 0A 5D 00 7C 76 1A 67 A0 18 CA 66 BA [16:31:52]GetLastDocTimeStamp 1729787503 [16:31:52]current date 1729787516 [16:31:52]FM_GetShiftState [16:31:52]SAM_PROTO_GetShiftState [16:31:52]wFMCommunicate request_size=4 [16:31:52]MH_SAM_APDU [16:31:52]CAPDU: 80 13 01 00 [16:31:52]Write to MH i2c: E2 08 00 0B 5D 80 13 01 00 00 00 00 00 E5 [16:31:52]Write i2c OK [16:31:52]MH_I2C_Read... [16:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:52]Read from MH i2c: E2 [16:31:52]MH_I2C_Read... [16:31:52]Read from MH i2c: E2 0E 00 [16:31:52]MH_I2C_Read... [16:31:52]Read from MH i2c: E2 0E 00 0B 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C3 [16:31:52]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:31:52]wFMCommunicate OK [16:31:52]SAM_PROTO_GetShiftState done [16:31:52]FM_GetShiftState done [16:31:52]opened in 1729728961 [16:31:52]opened+sec_in_day 1729815361 [16:31:52]quantity*price = 400012 [16:31:52]sum+1 = 400013 [16:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 310 24.10.2024 16:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 189237 ФПД: 35950492574360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189237&fm=35950492574360&tin=02508201610067®Number=0000000000100030&sum=400012 [16:31:53]StoreToDocumentArchive [16:31:53]shift 463 fd 189237 [16:31:53]save to /storage/0463/doc_00189237 [16:31:53]save last doc name /storage/0463/doc_00189237 to /storage/kkm_last_doc_name [16:31:53]save OK [16:31:53]Clear old archive folders... [16:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:53]tlvbuf is 015DBD40 [16:31:53]SAM_PROTO_ClearQueue [16:31:53]wFMCommunicate request_size=4 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 09 00 00 [16:31:53]Write to MH i2c: E2 08 00 18 5D 80 09 00 00 00 00 00 00 E7 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 18 5D 00 90 00 E9 [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]SAM_PROTO_ClearQueue done [16:31:53]KKMCreateOFDPacket [16:31:53]OFDProtocolAddRootSTLVToBuf [16:31:53]FM_MakeSignedData [16:31:53]FM_MakeSignedData [16:31:53]SAM_PROTO_SignData [16:31:53]wFMCommunicate request_size=4 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 0D 01 02 [16:31:53]Write to MH i2c: E2 08 00 19 5D 80 0D 01 02 00 00 00 00 EF [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 19 5D 00 90 00 EA [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=255 [16:31:53]MH_SAM_APDU [16:31: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 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 7C 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E3 02 00 35 04 06 00 20 [16:31:53]Write to MH i2c: E2 02 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 7C 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E3 02 00 35 04 06 00 20 00 00 8E [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 1A 5D 00 90 00 EB [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=10 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 0D 02 02 05 B2 60 56 E2 98 [16:31:53]Write to MH i2c: E2 0D 00 1B 5D 80 0D 02 02 05 00 B2 60 56 E2 98 00 00 DE [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 03 00 1B 5D 00 90 00 EC [16:31:53]RAPDU: 90 00 [16:31:53]wFMCommunicate OK [16:31:53]wFMCommunicate request_size=4 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 0D 03 02 [16:31:53]Write to MH i2c: E2 08 00 1C 5D 80 0D 03 02 00 00 00 00 F4 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 0B 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 0B 00 1C 5D 00 93 FB 40 9D 71 F2 45 AA 90 00 B2 [16:31:53]RAPDU: 93 FB 40 9D 71 F2 45 AA 90 00 [16:31:53]wFMCommunicate OK [16:31:53]SAM_PROTO_SignData done [16:31:53]FM_MakeSignedData done [16:31:53]CreateOFDProtocolMessage [16:31:53]wFMCommunicate request_size=4 [16:31:53]MH_SAM_APDU [16:31:53]CAPDU: 80 11 00 00 [16:31:53]Write to MH i2c: E2 08 00 1D 5D 80 11 00 00 00 00 00 00 F4 [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:53]Read from MH i2c: E2 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 17 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: E2 17 00 1D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [16:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:31:53]wFMCommunicate OK [16:31:53]CreateOFDProtocolMessage done [16:31:53]OFDSenderStorePacket 189237 [16:31:53]StoreOFDPacket docnum=189237 [16:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 02 07 01 66 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 7C 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E3 02 00 35 04 06 00 20 B2 60 56 E2 98 93 FB 40 9D 71 F2 45 AA [16:31:53]CheckFolder [16:31:53]dirname=/storage/ofd_packets [16:31:53]CheckFolder done [16:31:53]ProducePacketName [16:31:53]name=ofd_packets/00189237 [16:31:53]NVStorageSaveData ofd_packets/00189237 [16:31:53]File name is /storage/ofd_packets/00189237 [16:31:53]Write 301 bytes [16:31:53]NVStorageSaveData done [16:31:53]OFDSenderStorePacket done [16:31:53]KKMCreateOFDPacket done [16:31:53]NVStorageSaveData kkm_last_timestamp [16:31:53]File name is /storage/kkm_last_timestamp [16:31:53]Write 4 bytes [16:31:53]NVStorageSaveData done [16:31:53]ExternCall_PrintAddStr [16:31:53]wPrintStart [16:31:53]Write to MH i2c: 01 00 00 1E 5D 7B [16:31:53]Write i2c OK [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: 01 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: 01 07 00 [16:31:53]MH_I2C_Read... [16:31:53]Read from MH i2c: 01 07 00 1E 5D 00 00 00 00 00 FF 0F 90 [16:31:53]RasterBufferAndPrint [16:31:53]line Счет N : (1)211301 [16:31:53]line ИНН: 02508201610067 [16:31:53]line Контрольно-Кассовый Чек [16:31:53]line ПРОДАЖА [16:31:53]line ТРК (МРК, ГНК) : 33 [16:31:53]line Товар: 2710124500 [16:31:53]line Аи-95-К-3 [16:31:53]line 53.910 * 74.20 [16:31:53]line = 4000.12 [16:31:53]line НДС 12% НСП 1% [16:31:53]line > о реализуемом товаре [16:31:53]line ИТОГО: 4000.12 [16:31:53]line НСП 1% : 35.40 [16:31:53]line НДС 12% : 424.79 [16:31:53]line Наличными: 0.00 [16:31:53]line Безнал.: 4000.12 [16:31:53]line Место: АЗС № 86 "Партнер Нефть" [16:31:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:31:53]line СНО: Общий режим [16:31:53]line Чек 310 24.10.2024 16:31 [16:31:53]line Смена: 463 ФФД: 1.0 [16:31:53]line ЗНМ: 0300000155 [16:31:53]line РНМ: 0000000000100030 [16:31:53]line Версия ККМ: 001 [16:31:53]line Платежная система: O! деньги [16:31:53]line ФМ: 0000000000965340 [16:31:53]line ФД: 189237 [16:31:53]line ФПД: 35950492574360 [16:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189237&fm=35950492574360&tin=02508201610067®Number=0000000000100030&sum=400012 [16:31:53]written 0, free lines is 4095 [16:31:53]OFD Sender: Processing packet 189237 [packets to send 1062, broken 1061] [16:31:53]ProducePacketName [16:31:53]name=ofd_packets/00189237 [16:31:53]OFD Sender: To server: pG, [16:31:53]CommunicateWithHost lk.salyk.kg:30040 [16:31:53]ConnectInit lk.salyk.kg [16:31:54]Connected sock=10 [16:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 02 07 01 66 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 7C 76 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E3 02 00 35 04 06 00 20 B2 60 56 E2 98 93 FB 40 9D 71 F2 45 AA [16:31:54]Write to MH i2c: 01 00 00 48 5D A5 [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 07 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 07 00 48 5D 00 00 00 00 00 76 0C 2E [16:31:54]RasterBufferAndPrint [16:31:54]line [16:31:54]line [16:31:54]line [16:31:54]line [16:31:54]line [16:31:54]written 0, free lines is 3197 [16:31:54]MH_Cut [16:31:54]Write to MH i2c: D1 01 00 4F 5D 01 7E [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: D1 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: D1 01 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: D1 01 00 4F 5D 00 7D [16:31:54]Write to MH i2c: 01 00 00 50 5D AD [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 15 22 47 00 9F 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 39 36 35 33 34 30 10 04 04 00 35 E3 02 00 F4 03 04 00 63 20 1A 67 B6 04 01 00 00 C6 57 22 D9 92 06 D1 2F [16:31:54]CommunicateWithHost err = 0 [16:31:54]CheckOFDResponse [16:31:54]1017 (14) - 77093643461234 [16:31:54]1041 (16) - 0000000000965340 [16:31:54]1040 (4) - 189237 [16:31:54]1012 (4) - 24.10.2024 10:24 [16:31:54]1206 (1) - 0 [16:31:54]OFD Sender: Remove packet 189237 [16:31:54]ProducePacketName [16:31:54]name=ofd_packets/00189237 [16:31:54]NVStorageDeleteData [16:31:54]OFD Sender: No OFD packet to send [16:31:55]*** Cut start [16:31:55]*** Partial cut [16:31:55]*** CUTSNS_PIN = 1 [16:31:55]*** CUTSNS_PIN = 0 [16:31:55]*** Brake cut motor [16:31:56]Read from MH i2c: 01 [16:31:56]MH_I2C_Read... [16:31:56]*** Stop cut motor [16:31:56]*** Cut end [16:31:56]Read from MH i2c: 01 07 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: 01 07 00 50 5D 00 00 00 00 00 FF 0F C2 [16:31:56]process_action close_receipt done [16:31:56]requested_data is exist [16:31:56]produce_requested_data [16:31:56]requested_item fm.sn is exist - process it [16:31:56]wFMCommunicate request_size=4 [16:31:56]MH_SAM_APDU [16:31:56]CAPDU: 80 11 00 00 [16:31:56]Write to MH i2c: E2 08 00 51 5D 80 11 00 00 00 00 00 00 28 [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:56]Read from MH i2c: E2 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 17 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 17 00 51 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [16:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:31:56]wFMCommunicate OK [16:31:56]requested_item fd.num is exist - process it [16:31:56]SAM_PROTO_GetFieldsCounters [16:31:56]wFMCommunicate request_size=4 [16:31:56]MH_SAM_APDU [16:31:56]CAPDU: 80 13 00 00 [16:31:56]Write to MH i2c: E2 08 00 52 5D 80 13 00 00 00 00 00 00 2B [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:56]Read from MH i2c: E2 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 62 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 62 00 52 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E3 02 00 0E 04 04 00 CF 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 C1 [16:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E3 02 00 0E 04 04 00 CF 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 [16:31:56]wFMCommunicate OK [16:31:56]SAM_PROTO_GetFieldsCounters done [16:31:56]requested_item shift.num is exist - process it [16:31:56]requested_item shift.opened is exist - process it [16:31:56]req_shift_opened [16:31:56]FM_GetShiftState [16:31:56]SAM_PROTO_GetShiftState [16:31:56]wFMCommunicate request_size=4 [16:31:56]MH_SAM_APDU [16:31:56]CAPDU: 80 13 01 00 [16:31:56]Write to MH i2c: E2 08 00 53 5D 80 13 01 00 00 00 00 00 2D [16:31:56]Write i2c OK [16:31:56]MH_I2C_Read... [16:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:56]Read from MH i2c: E2 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 0E 00 [16:31:56]MH_I2C_Read... [16:31:56]Read from MH i2c: E2 0E 00 53 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0B [16:31:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:31:56]wFMCommunicate OK [16:31:56]SAM_PROTO_GetShiftState done [16:31:56]FM_GetShiftState done [16:31:56]req_shift_opened done [16:31:56]requested_item shift.open_date is exist - process it [16:31:56]req_shift_open_date [16:31:56]req_shift_open_date done [16:31:56]produce_requested_data done [16:31:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189237,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:31:56]process_action_free close_receipt [16:31:56]json_value_free [16:31:56]json_value_free done [16:31:56]process_json_proto returns [16:31:56]Send response to host [16:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189237,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:31:56]free response buf [16:31:56]execute_script done [16:31:56]execute_script returns [16:31:56]free content buf [16:31:56]Sock 8.Close socket [16:31:56]Sock 8.Thread stoped [16:31:59]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [16:35:31]New connection [16:35:31]New thread 3067071844 created [16:35:31]Thread 3067215204 joined [16:35:31]Waiting for new connection... [16:35:31] Sock 9.Parse request [16:35:31]Sock 9.Check first char [16:35:31]Sock 9.First char is OK [16:35:31]request: POST /json_proto HTTP/1.0 [16:35:31]Method: POST [16:35:31]URL: /json_proto [16:35:31]Method is POST - this is cgi request [16:35:31]url: /json_proto [16:35:31]query_string will be loaded in cgi processing [16:35:31]execute_cgi json_proto POST (null) [16:35:31]execute_cgi path=json_proto method=POST [16:35:31]POST find Content-Length [16:35:31]Host: 172.17.42.131:8080 [16:35:31]Content-Length: 678 [16:35:31]Content-Type: application/json [16:35:31] [16:35:31]POST finish read [16:35:31]Found Content-Length = 678 [16:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 12.800, "sum" : 856.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:31]execute_script... [16:35: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)211303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 12.800, "sum" : 856.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:31]POST & json_proto [16:35:31]process_json_proto [16:35:31]json parsed OK: [16:35:31]protocol is kg_v1.0 [16:35:31]action value=close_receipt [16:35:31]process_action close_receipt [16:35:31]cmd_close_receipt [16:35:31]MH_GetDate [16:35:31]Write to MH i2c: F0 00 00 54 5D A0 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: F0 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: F0 09 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: F0 09 00 54 5D 00 57 77 1A 67 A0 18 CA 66 E0 [16:35:31]GetLastDocTimeStamp 1729787516 [16:35:31]current date 1729787735 [16:35:31]FM_GetShiftState [16:35:31]SAM_PROTO_GetShiftState [16:35:31]wFMCommunicate request_size=4 [16:35:31]MH_SAM_APDU [16:35:31]CAPDU: 80 13 01 00 [16:35:31]Write to MH i2c: E2 08 00 55 5D 80 13 01 00 00 00 00 00 2F [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:31]Read from MH i2c: E2 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 0E 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 0E 00 55 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0D [16:35:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:35:31]wFMCommunicate OK [16:35:31]SAM_PROTO_GetShiftState done [16:35:31]FM_GetShiftState done [16:35:31]opened in 1729728961 [16:35:31]opened+sec_in_day 1729815361 [16:35:31]quantity*price = 85632 [16:35:31]sum+1 = 85633 [16:35:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.94 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 311 24.10.2024 16:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189238 ФПД: 46129303270595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189238&fm=46129303270595&tin=02508201610067®Number=0000000000100030&sum=85600 [16:35:32]StoreToDocumentArchive [16:35:32]shift 463 fd 189238 [16:35:32]save to /storage/0463/doc_00189238 [16:35:32]save last doc name /storage/0463/doc_00189238 to /storage/kkm_last_doc_name [16:35:32]save OK [16:35:32]Clear old archive folders... [16:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:32]tlvbuf is B6F1A8B0 [16:35:32]SAM_PROTO_ClearQueue [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 09 00 00 [16:35:32]Write to MH i2c: E2 08 00 62 5D 80 09 00 00 00 00 00 00 31 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 62 5D 00 90 00 33 [16:35:32]RAPDU: 90 00 [16:35:32]wFMCommunicate OK [16:35:32]SAM_PROTO_ClearQueue done [16:35:32]KKMCreateOFDPacket [16:35:32]OFDProtocolAddRootSTLVToBuf [16:35:32]FM_MakeSignedData [16:35:32]FM_MakeSignedData [16:35:32]SAM_PROTO_SignData [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 0D 01 02 [16:35:32]Write to MH i2c: E2 08 00 63 5D 80 0D 01 02 00 00 00 00 39 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 63 5D 00 90 00 34 [16:35:32]RAPDU: 90 00 [16:35:32]wFMCommunicate OK [16:35:32]wFMCommunicate request_size=255 [16:35:32]MH_SAM_APDU [16:35: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 33 FF 03 08 00 03 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 57 77 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E3 02 00 35 04 06 00 29 [16:35:32]Write to MH i2c: E2 02 01 64 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 33 FF 03 08 00 03 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 57 77 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E3 02 00 35 04 06 00 29 00 00 FE [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 64 5D 00 90 00 35 [16:35:33]RAPDU: 90 00 [16:35:33]wFMCommunicate OK [16:35:33]wFMCommunicate request_size=10 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 0D 02 02 05 F4 50 BC 34 C3 [16:35:33]Write to MH i2c: E2 0D 00 65 5D 80 0D 02 02 05 00 F4 50 BC 34 C3 00 00 3D [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 03 00 65 5D 00 90 00 36 [16:35:33]RAPDU: 90 00 [16:35:33]wFMCommunicate OK [16:35:33]wFMCommunicate request_size=4 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 0D 03 02 [16:35:33]Write to MH i2c: E2 08 00 66 5D 80 0D 03 02 00 00 00 00 3E [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 0B 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 0B 00 66 5D 00 4D 3E 9A 45 48 8A 61 AF 90 00 8B [16:35:33]RAPDU: 4D 3E 9A 45 48 8A 61 AF 90 00 [16:35:33]wFMCommunicate OK [16:35:33]SAM_PROTO_SignData done [16:35:33]FM_MakeSignedData done [16:35:33]CreateOFDProtocolMessage [16:35:33]wFMCommunicate request_size=4 [16:35:33]MH_SAM_APDU [16:35:33]CAPDU: 80 11 00 00 [16:35:33]Write to MH i2c: E2 08 00 67 5D 80 11 00 00 00 00 00 00 3E [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:33]Read from MH i2c: E2 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 17 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: E2 17 00 67 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [16:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:35:33]wFMCommunicate OK [16:35:33]CreateOFDProtocolMessage done [16:35:33]OFDSenderStorePacket 189238 [16:35:33]StoreOFDPacket docnum=189238 [16:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 73 07 01 0D 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 33 FF 03 08 00 03 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 57 77 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E3 02 00 35 04 06 00 29 F4 50 BC 34 C3 4D 3E 9A 45 48 8A 61 AF [16:35:33]CheckFolder [16:35:33]dirname=/storage/ofd_packets [16:35:33]CheckFolder done [16:35:33]ProducePacketName [16:35:33]name=ofd_packets/00189238 [16:35:33]NVStorageSaveData ofd_packets/00189238 [16:35:33]File name is /storage/ofd_packets/00189238 [16:35:33]Write 301 bytes [16:35:33]NVStorageSaveData done [16:35:33]OFDSenderStorePacket done [16:35:33]KKMCreateOFDPacket done [16:35:33]NVStorageSaveData kkm_last_timestamp [16:35:33]File name is /storage/kkm_last_timestamp [16:35:33]Write 4 bytes [16:35:33]NVStorageSaveData done [16:35:33]ExternCall_PrintAddStr [16:35:33]wPrintStart [16:35:33]Write to MH i2c: 01 00 00 68 5D C5 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 68 5D 00 00 00 00 00 FF 0F DA [16:35:33]RasterBufferAndPrint [16:35:33]line Счет N : (1)211303 [16:35:33]line ИНН: 02508201610067 [16:35:33]line Контрольно-Кассовый Чек [16:35:33]line ПРОДАЖА [16:35:33]line ТРК (МРК, ГНК) : 42 [16:35:33]line Товар: 2710124130 [16:35:33]line Аи-92-К-3 [16:35:33]line 12.800 * 66.90 [16:35:33]line = 856.32 [16:35:33]line НДС 12% НСП 1% [16:35:33]line > о реализуемом товаре [16:35:33]line ОКРУГЛЕНИЕ: -0.32 [16:35:33]line ИТОГО: 856.00 [16:35:33]line Внесено: 856.00 [16:35:33]line СДАЧА: 0.00 [16:35:33]line НСП 1% : 7.58 [16:35:33]line НДС 12% : 90.94 [16:35:33]line Наличными: 856.00 [16:35:33]line Безнал.: 0.00 [16:35:33]line Место: АЗС № 86 "Партнер Нефть" [16:35:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:35:33]line СНО: Общий режим [16:35:33]line Чек 311 24.10.2024 16:35 [16:35:33]line Смена: 463 ФФД: 1.0 [16:35:33]line ЗНМ: 0300000155 [16:35:33]line РНМ: 0000000000100030 [16:35:33]line Версия ККМ: 001 [16:35:33]line ФМ: 0000000000965340 [16:35:33]line ФД: 189238 [16:35:33]line ФПД: 46129303270595 [16:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189238&fm=46129303270595&tin=02508201610067®Number=0000000000100030&sum=85600 [16:35:33]written 0, free lines is 4095 [16:35:33]OFD Sender: Processing packet 189238 [packets to send 1062, broken 1061] [16:35:33]ProducePacketName [16:35:33]name=ofd_packets/00189238 [16:35:33]OFD Sender: To server: pG, [16:35:33]CommunicateWithHost lk.salyk.kg:30040 [16:35:33]ConnectInit lk.salyk.kg [16:35:33]Connected sock=11 [16:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 73 07 01 0D 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 33 FF 03 08 00 03 00 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 80 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 57 77 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E3 02 00 35 04 06 00 29 F4 50 BC 34 C3 4D 3E 9A 45 48 8A 61 AF [16:35:33]Write to MH i2c: 01 00 00 93 5D F0 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 93 5D 00 00 00 00 00 5C 0C 5F [16:35:33]RasterBufferAndPrint [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]written 0, free lines is 3167 [16:35:33]MH_Cut [16:35:33]Write to MH i2c: D1 01 00 9A 5D 01 C9 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 01 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 01 00 9A 5D 00 C8 [16:35:33]Write to MH i2c: 01 00 00 9B 5D F8 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 0D 47 00 8F 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 39 36 35 33 34 30 10 04 04 00 36 E3 02 00 F4 03 04 00 3F 21 1A 67 B6 04 01 00 00 95 EF 5D 44 1C 7E 14 9C [16:35:34]CommunicateWithHost err = 0 [16:35:34]CheckOFDResponse [16:35:34]1017 (14) - 77093643461234 [16:35:34]1041 (16) - 0000000000965340 [16:35:34]1040 (4) - 189238 [16:35:34]1012 (4) - 24.10.2024 10:28 [16:35:34]1206 (1) - 0 [16:35:34]OFD Sender: Remove packet 189238 [16:35:34]ProducePacketName [16:35:34]name=ofd_packets/00189238 [16:35:34]NVStorageDeleteData [16:35:34]OFD Sender: No OFD packet to send [16:35:35]*** Cut start [16:35:35]*** Partial cut [16:35:35]*** CUTSNS_PIN = 1 [16:35:35]*** CUTSNS_PIN = 0 [16:35:35]*** Brake cut motor [16:35:35]Read from MH i2c: 01 [16:35:35]MH_I2C_Read... [16:35:35]*** Stop cut motor [16:35:35]*** Cut end [16:35:35]Read from MH i2c: 01 07 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: 01 07 00 9B 5D 00 00 00 00 00 FF 0F 0D [16:35:35]process_action close_receipt done [16:35:35]requested_data is exist [16:35:35]produce_requested_data [16:35:35]requested_item fm.sn is exist - process it [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 11 00 00 [16:35:35]Write to MH i2c: E2 08 00 9C 5D 80 11 00 00 00 00 00 00 73 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 17 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 17 00 9C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [16:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:35:35]wFMCommunicate OK [16:35:35]requested_item fd.num is exist - process it [16:35:35]SAM_PROTO_GetFieldsCounters [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 13 00 00 [16:35:35]Write to MH i2c: E2 08 00 9D 5D 80 13 00 00 00 00 00 00 76 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 62 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 62 00 9D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E3 02 00 0E 04 04 00 CF 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 10 [16:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E3 02 00 0E 04 04 00 CF 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 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_GetFieldsCounters done [16:35:36]requested_item shift.num is exist - process it [16:35:36]requested_item shift.opened is exist - process it [16:35:36]req_shift_opened [16:35:36]FM_GetShiftState [16:35:36]SAM_PROTO_GetShiftState [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 13 01 00 [16:35:36]Write to MH i2c: E2 08 00 9E 5D 80 13 01 00 00 00 00 00 78 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0E 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0E 00 9E 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 56 [16:35:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_GetShiftState done [16:35:36]FM_GetShiftState done [16:35:36]req_shift_opened done [16:35:36]requested_item shift.open_date is exist - process it [16:35:36]req_shift_open_date [16:35:36]req_shift_open_date done [16:35:36]produce_requested_data done [16:35:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189238,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:35:36]process_action_free close_receipt [16:35:36]json_value_free [16:35:36]json_value_free done [16:35:36]process_json_proto returns [16:35:36]Send response to host [16:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189238,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:35:36]free response buf [16:35:36]execute_script done [16:35:36]execute_script returns [16:35:36]free content buf [16:35:36]Sock 9.Close socket [16:35:36]Sock 9.Thread stoped [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:38]accept exits with 8 [16:41:38]New connection [16:41:38]New thread 3067215204 created [16:41:38]Thread 3067071844 joined [16:41:38]Waiting for new connection... [16:41:38] Sock 8.Parse request [16:41:38]Sock 8.Check first char [16:41:38]Sock 8.First char is OK [16:41:38]request: POST /json_proto HTTP/1.0 [16:41:38]Method: POST [16:41:38]URL: /json_proto [16:41:38]Method is POST - this is cgi request [16:41:38]url: /json_proto [16:41:38]query_string will be loaded in cgi processing [16:41:38]execute_cgi json_proto POST (null) [16:41:38]execute_cgi path=json_proto method=POST [16:41:38]POST find Content-Length [16:41:38]Host: 172.17.42.131:8080 [16:41:38]Content-Length: 683 [16:41:38]Content-Type: application/json [16:41:38] [16:41:38]POST finish read [16:41:38]Found Content-Length = 683 [16:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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:41:38]execute_script... [16:41: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)211304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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:41:38]POST & json_proto [16:41:38]process_json_proto [16:41:38]json parsed OK: [16:41:38]protocol is kg_v1.0 [16:41:38]action value=close_receipt [16:41:38]process_action close_receipt [16:41:38]cmd_close_receipt [16:41:38]MH_GetDate [16:41:38]Write to MH i2c: F0 00 00 9F 5D EB [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: F0 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: F0 09 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: F0 09 00 9F 5D 00 C6 78 1A 67 A0 18 CA 66 9B [16:41:38]GetLastDocTimeStamp 1729787735 [16:41:38]current date 1729788102 [16:41:38]FM_GetShiftState [16:41:38]SAM_PROTO_GetShiftState [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 13 01 00 [16:41:38]Write to MH i2c: E2 08 00 A0 5D 80 13 01 00 00 00 00 00 7A [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 0E 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 0E 00 A0 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 58 [16:41:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:41:38]wFMCommunicate OK [16:41:38]SAM_PROTO_GetShiftState done [16:41:38]FM_GetShiftState done [16:41:38]opened in 1729728961 [16:41:38]opened+sec_in_day 1729815361 [16:41:38]quantity*price = 70020 [16:41:38]sum+1 = 70021 [16:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 312 24.10.2024 16:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189239 ФПД: 172574316406940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189239&fm=172574316406940&tin=02508201610067®Number=0000000000100030&sum=70000 [16:41:39]StoreToDocumentArchive [16:41:39]shift 463 fd 189239 [16:41:39]save to /storage/0463/doc_00189239 [16:41:39]save last doc name /storage/0463/doc_00189239 to /storage/kkm_last_doc_name [16:41:39]save OK [16:41:39]Clear old archive folders... [16:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:41:39]tlvbuf is 01578020 [16:41:39]SAM_PROTO_ClearQueue [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 09 00 00 [16:41:39]Write to MH i2c: E2 08 00 AD 5D 80 09 00 00 00 00 00 00 7C [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 AD 5D 00 90 00 7E [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_ClearQueue done [16:41:39]KKMCreateOFDPacket [16:41:39]OFDProtocolAddRootSTLVToBuf [16:41:39]FM_MakeSignedData [16:41:39]FM_MakeSignedData [16:41:39]SAM_PROTO_SignData [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 01 02 [16:41:39]Write to MH i2c: E2 08 00 AE 5D 80 0D 01 02 00 00 00 00 84 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 AE 5D 00 90 00 7F [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=255 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 38 01 00 00 F4 03 04 00 C6 78 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E3 02 [16:41:39]Write to MH i2c: E2 02 01 AF 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 38 01 00 00 F4 03 04 00 C6 78 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E3 02 00 00 EB [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 AF 5D 00 90 00 80 [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=16 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9C F4 96 D3 A8 9C [16:41:39]Write to MH i2c: E2 13 00 B0 5D 80 0D 02 02 0B 00 00 35 04 06 00 9C F4 96 D3 A8 9C 00 00 19 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 B0 5D 00 90 00 81 [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 03 02 [16:41:39]Write to MH i2c: E2 08 00 B1 5D 80 0D 03 02 00 00 00 00 89 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0B 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0B 00 B1 5D 00 49 69 44 51 E6 49 21 5F 90 00 80 [16:41:39]RAPDU: 49 69 44 51 E6 49 21 5F 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_SignData done [16:41:39]FM_MakeSignedData done [16:41:39]CreateOFDProtocolMessage [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 11 00 00 [16:41:39]Write to MH i2c: E2 08 00 B2 5D 80 11 00 00 00 00 00 00 89 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 17 00 [16:41:39]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 17 00 B2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [16:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:41:40]wFMCommunicate OK [16:41:40]CreateOFDProtocolMessage done [16:41:40]OFDSenderStorePacket 189239 [16:41:40]StoreOFDPacket docnum=189239 [16:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 AA 0D 01 61 EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 38 01 00 00 F4 03 04 00 C6 78 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E3 02 00 35 04 06 00 9C F4 96 D3 A8 9C 49 69 44 51 E6 49 21 5F [16:41:40]CheckFolder [16:41:40]dirname=/storage/ofd_packets [16:41:40]CheckFolder done [16:41:40]ProducePacketName [16:41:40]name=ofd_packets/00189239 [16:41:40]NVStorageSaveData ofd_packets/00189239 [16:41:40]File name is /storage/ofd_packets/00189239 [16:41:40]Write 307 bytes [16:41:40]NVStorageSaveData done [16:41:40]OFDSenderStorePacket done [16:41:40]KKMCreateOFDPacket done [16:41:40]NVStorageSaveData kkm_last_timestamp [16:41:40]File name is /storage/kkm_last_timestamp [16:41:40]Write 4 bytes [16:41:40]NVStorageSaveData done [16:41:40]ExternCall_PrintAddStr [16:41:40]wPrintStart [16:41:40]Write to MH i2c: 01 00 00 B3 5D 10 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 07 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 07 00 B3 5D 00 00 00 00 00 FF 0F 25 [16:41:40]RasterBufferAndPrint [16:41:40]line Счет N : (1)211304 [16:41:40]line ИНН: 02508201610067 [16:41:40]line Контрольно-Кассовый Чек [16:41:40]line ПРОДАЖА [16:41:40]line ТРК (МРК, ГНК) : 31 [16:41:40]line Товар: 2710194210 [16:41:40]line D-ENERGY ДТ-К-5 [16:41:40]line 9.070 * 77.20 [16:41:40]line = 700.20 [16:41:40]line НДС 12% НСП 1% [16:41:40]line > о реализуемом товаре [16:41:40]line ОКРУГЛЕНИЕ: -0.20 [16:41:40]line ИТОГО: 700.00 [16:41:40]line Внесено: 700.00 [16:41:40]line СДАЧА: 0.00 [16:41:40]line НСП 1% : 6.20 [16:41:40]line НДС 12% : 74.36 [16:41:40]line Наличными: 700.00 [16:41:40]line Безнал.: 0.00 [16:41:40]line Место: АЗС № 86 "Партнер Нефть" [16:41:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:41:40]line СНО: Общий режим [16:41:40]line Чек 312 24.10.2024 16:41 [16:41:40]line Смена: 463 ФФД: 1.0 [16:41:40]line ЗНМ: 0300000155 [16:41:40]line РНМ: 0000000000100030 [16:41:40]line Версия ККМ: 001 [16:41:40]line ФМ: 0000000000965340 [16:41:40]line ФД: 189239 [16:41:40]line ФПД: 172574316406940 [16:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189239&fm=172574316406940&tin=02508201610067®Number=0000000000100030&sum=70000 [16:41:40]written 0, free lines is 4095 [16:41:40]OFD Sender: Processing packet 189239 [packets to send 1062, broken 1061] [16:41:40]ProducePacketName [16:41:40]name=ofd_packets/00189239 [16:41:40]OFD Sender: To server: pG, [16:41:40]CommunicateWithHost lk.salyk.kg:30040 [16:41:40]ConnectInit lk.salyk.kg [16:41:40]Connected sock=10 [16:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 AA 0D 01 61 EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 38 01 00 00 F4 03 04 00 C6 78 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E3 02 00 35 04 06 00 9C F4 96 D3 A8 9C 49 69 44 51 E6 49 21 5F [16:41:40]Write to MH i2c: 01 00 00 DE 5D 3B [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 07 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 07 00 DE 5D 00 00 00 00 00 58 0C A6 [16:41:40]RasterBufferAndPrint [16:41:40]line [16:41:40]line [16:41:40]line [16:41:40]line [16:41:40]line [16:41:40]written 0, free lines is 3164 [16:41:40]MH_Cut [16:41:40]Write to MH i2c: D1 01 00 E5 5D 01 14 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: D1 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: D1 01 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: D1 01 00 E5 5D 00 13 [16:41:40]Write to MH i2c: 01 00 00 E6 5D 43 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 78 47 00 E0 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 39 36 35 33 34 30 10 04 04 00 37 E3 02 00 F4 03 04 00 AE 22 1A 67 B6 04 01 00 00 05 C5 8F 38 17 40 B3 0E [16:41:40]CommunicateWithHost err = 0 [16:41:40]CheckOFDResponse [16:41:40]1017 (14) - 77093643461234 [16:41:40]1041 (16) - 0000000000965340 [16:41:40]1040 (4) - 189239 [16:41:40]1012 (4) - 24.10.2024 10:34 [16:41:40]1206 (1) - 0 [16:41:40]OFD Sender: Remove packet 189239 [16:41:40]ProducePacketName [16:41:40]name=ofd_packets/00189239 [16:41:40]NVStorageDeleteData [16:41:41]OFD Sender: No OFD packet to send [16:41:41]*** Cut start [16:41:41]*** Partial cut [16:41:41]*** CUTSNS_PIN = 1 [16:41:41]*** CUTSNS_PIN = 0 [16:41:42]*** Brake cut motor [16:41:42]Read from MH i2c: 01 [16:41:42]MH_I2C_Read... [16:41:42]*** Stop cut motor [16:41:42]*** Cut end [16:41:42]Read from MH i2c: 01 07 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 E6 5D 00 00 00 00 00 FF 0F 58 [16:41:42]process_action close_receipt done [16:41:42]requested_data is exist [16:41:42]produce_requested_data [16:41:42]requested_item fm.sn is exist - process it [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 11 00 00 [16:41:42]Write to MH i2c: E2 08 00 E7 5D 80 11 00 00 00 00 00 00 BE [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 E7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [16:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:41:42]wFMCommunicate OK [16:41:42]requested_item fd.num is exist - process it [16:41:42]SAM_PROTO_GetFieldsCounters [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 13 00 00 [16:41:42]Write to MH i2c: E2 08 00 E8 5D 80 13 00 00 00 00 00 00 C1 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 62 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 62 00 E8 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E3 02 00 0E 04 04 00 CF 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 5F [16:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E3 02 00 0E 04 04 00 CF 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 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_GetFieldsCounters done [16:41:42]requested_item shift.num is exist - process it [16:41:42]requested_item shift.opened is exist - process it [16:41:42]req_shift_opened [16:41:42]FM_GetShiftState [16:41:42]SAM_PROTO_GetShiftState [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 13 01 00 [16:41:42]Write to MH i2c: E2 08 00 E9 5D 80 13 01 00 00 00 00 00 C3 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0E 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0E 00 E9 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A1 [16:41:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_GetShiftState done [16:41:42]FM_GetShiftState done [16:41:42]req_shift_opened done [16:41:42]requested_item shift.open_date is exist - process it [16:41:42]req_shift_open_date [16:41:42]req_shift_open_date done [16:41:42]produce_requested_data done [16:41:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189239,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:41:42]process_action_free close_receipt [16:41:42]json_value_free [16:41:42]json_value_free done [16:41:42]process_json_proto returns [16:41:42]Send response to host [16:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189239,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:41:42]free response buf [16:41:42]execute_script done [16:41:42]execute_script returns [16:41:42]free content buf [16:41:42]Sock 8.Close socket [16:41:42]Sock 8.Thread stoped [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [16:44:05]New connection [16:44:05]New thread 3067071844 created [16:44:05]Thread 3067215204 joined [16:44:05]Waiting for new connection... [16:44:05] Sock 9.Parse request [16:44:05]Sock 9.Check first char [16:44:05]Sock 9.First char is OK [16:44:05]request: POST /json_proto HTTP/1.0 [16:44:05]Method: POST [16:44:05]URL: /json_proto [16:44:05]Method is POST - this is cgi request [16:44:05]url: /json_proto [16:44:05]query_string will be loaded in cgi processing [16:44:05]execute_cgi json_proto POST (null) [16:44:05]execute_cgi path=json_proto method=POST [16:44:05]POST find Content-Length [16:44:05]Host: 172.17.42.131:8080 [16:44:05]Content-Length: 797 [16:44:05]Content-Type: application/json [16:44:05] [16:44:05]POST finish read [16:44:05]Found Content-Length = 797 [16:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4339720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:05]execute_script... [16:44: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)211305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4339720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:05]POST & json_proto [16:44:05]process_json_proto [16:44:05]json parsed OK: [16:44:05]protocol is kg_v1.0 [16:44:05]action value=close_receipt [16:44:05]process_action close_receipt [16:44:05]cmd_close_receipt [16:44:05]MH_GetDate [16:44:05]Write to MH i2c: F0 00 00 EA 5D 36 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: F0 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: F0 09 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: F0 09 00 EA 5D 00 59 79 1A 67 A0 18 CA 66 7A [16:44:05]GetLastDocTimeStamp 1729788102 [16:44:05]current date 1729788249 [16:44:05]FM_GetShiftState [16:44:05]SAM_PROTO_GetShiftState [16:44:05]wFMCommunicate request_size=4 [16:44:05]MH_SAM_APDU [16:44:05]CAPDU: 80 13 01 00 [16:44:05]Write to MH i2c: E2 08 00 EB 5D 80 13 01 00 00 00 00 00 C5 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:05]Read from MH i2c: E2 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: E2 0E 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: E2 0E 00 EB 5D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A3 [16:44:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:44:05]wFMCommunicate OK [16:44:05]SAM_PROTO_GetShiftState done [16:44:05]FM_GetShiftState done [16:44:05]opened in 1729728961 [16:44:05]opened+sec_in_day 1729815361 [16:44:05]quantity*price = 0 [16:44:05]sum+1 = 1 [16:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 313 24.10.2024 16:44 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4339720 ФМ: 0000000000965340 ФД: 189240 ФПД: 84686614482173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189240&fm=84686614482173&tin=02508201610067®Number=0000000000100030&sum=0 [16:44:06]StoreToDocumentArchive [16:44:06]shift 463 fd 189240 [16:44:06]save to /storage/0463/doc_00189240 [16:44:06]save last doc name /storage/0463/doc_00189240 to /storage/kkm_last_doc_name [16:44:06]save OK [16:44:06]Clear old archive folders... [16:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:06]tlvbuf is 016B7D80 [16:44:06]SAM_PROTO_ClearQueue [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 09 00 00 [16:44:06]Write to MH i2c: E2 08 00 F8 5D 80 09 00 00 00 00 00 00 C7 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 03 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 03 00 F8 5D 00 90 00 C9 [16:44:06]RAPDU: 90 00 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_ClearQueue done [16:44:06]KKMCreateOFDPacket [16:44:06]OFDProtocolAddRootSTLVToBuf [16:44:06]FM_MakeSignedData [16:44:06]FM_MakeSignedData [16:44:06]SAM_PROTO_SignData [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 0D 01 02 [16:44:06]Write to MH i2c: E2 08 00 F9 5D 80 0D 01 02 00 00 00 00 CF [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:06]OFD Sender: No OFD packet to send [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 03 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 03 00 F9 5D 00 90 00 CA [16:44:06]RAPDU: 90 00 [16:44:06]wFMCommunicate OK [16:44:06]wFMCommunicate request_size=255 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 59 79 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E3 02 00 35 04 06 00 4D 05 A3 92 [16:44:06]Write to MH i2c: E2 02 01 FA 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 59 79 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E3 02 00 35 04 06 00 4D 05 A3 92 00 00 81 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:07]Read from MH i2c: E2 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 03 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 03 00 FA 5D 00 90 00 CB [16:44:07]RAPDU: 90 00 [16:44:07]wFMCommunicate OK [16:44:07]wFMCommunicate request_size=7 [16:44:07]MH_SAM_APDU [16:44:07]CAPDU: 80 0D 02 02 02 CC FD [16:44:07]Write to MH i2c: E2 0A 00 FB 5D 80 0D 02 02 02 00 CC FD 00 00 9F [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:07]Read from MH i2c: E2 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 03 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 03 00 FB 5D 00 90 00 CC [16:44:07]RAPDU: 90 00 [16:44:07]wFMCommunicate OK [16:44:07]wFMCommunicate request_size=4 [16:44:07]MH_SAM_APDU [16:44:07]CAPDU: 80 0D 03 02 [16:44:07]Write to MH i2c: E2 08 00 FC 5D 80 0D 03 02 00 00 00 00 D4 [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:07]Read from MH i2c: E2 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 0B 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 0B 00 FC 5D 00 7D E3 3E 93 80 41 A9 2E 90 00 9E [16:44:07]RAPDU: 7D E3 3E 93 80 41 A9 2E 90 00 [16:44:07]wFMCommunicate OK [16:44:07]SAM_PROTO_SignData done [16:44:07]FM_MakeSignedData done [16:44:07]CreateOFDProtocolMessage [16:44:07]wFMCommunicate request_size=4 [16:44:07]MH_SAM_APDU [16:44:07]CAPDU: 80 11 00 00 [16:44:07]Write to MH i2c: E2 08 00 FD 5D 80 11 00 00 00 00 00 00 D4 [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:07]Read from MH i2c: E2 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 17 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 17 00 FD 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [16:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:44:07]wFMCommunicate OK [16:44:07]CreateOFDProtocolMessage done [16:44:07]OFDSenderStorePacket 189240 [16:44:07]StoreOFDPacket docnum=189240 [16:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 98 47 04 01 CE 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 59 79 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E3 02 00 35 04 06 00 4D 05 A3 92 CC FD 7D E3 3E 93 80 41 A9 2E [16:44:07]CheckFolder [16:44:07]dirname=/storage/ofd_packets [16:44:07]CheckFolder done [16:44:07]ProducePacketName [16:44:07]name=ofd_packets/00189240 [16:44:07]NVStorageSaveData ofd_packets/00189240 [16:44:07]File name is /storage/ofd_packets/00189240 [16:44:07]Write 298 bytes [16:44:07]NVStorageSaveData done [16:44:07]OFDSenderStorePacket done [16:44:07]KKMCreateOFDPacket done [16:44:07]NVStorageSaveData kkm_last_timestamp [16:44:07]File name is /storage/kkm_last_timestamp [16:44:07]Write 4 bytes [16:44:07]NVStorageSaveData done [16:44:07]ExternCall_PrintAddStr [16:44:07]wPrintStart [16:44:07]Write to MH i2c: 01 00 00 FE 5D 5B [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 07 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 07 00 FE 5D 00 00 00 00 00 FF 0F 70 [16:44:07]RasterBufferAndPrint [16:44:07]line Счет N : (1)211305 [16:44:07]line ИНН: 02508201610067 [16:44:07]line Контрольно-Кассовый Чек [16:44:07]line ПРОДАЖА [16:44:07]line ТРК (МРК, ГНК) : 51 [16:44:07]line Товар: 2710194210 [16:44:07]line ДТ-К-5 [16:44:07]line 20.000 * 0.00 [16:44:07]line = 0.00 [16:44:07]line НДС 12% НСП 1% [16:44:07]line > о реализуемом товаре [16:44:07]line ИТОГО: 0.00 [16:44:07]line НСП 1% : 0.00 [16:44:07]line НДС 12% : 0.00 [16:44:07]line Наличными: 0.00 [16:44:07]line Безнал.: 0.00 [16:44:07]line Место: АЗС № 86 "Партнер Нефть" [16:44:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:44:07]line СНО: Общий режим [16:44:07]line Чек 313 24.10.2024 16:44 [16:44:07]line Смена: 463 ФФД: 1.0 [16:44:07]line ЗНМ: 0300000155 [16:44:07]line РНМ: 0000000000100030 [16:44:07]line Версия ККМ: 001 [16:44:07]line Талоны: Топливные Талоны [16:44:07]line 4339720 [16:44:07]line ФМ: 0000000000965340 [16:44:07]line ФД: 189240 [16:44:07]line ФПД: 84686614482173 [16:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189240&fm=84686614482173&tin=02508201610067®Number=0000000000100030&sum=0 [16:44:07]written 0, free lines is 4095 [16:44:07]OFD Sender: Processing packet 189240 [packets to send 1062, broken 1061] [16:44:07]ProducePacketName [16:44:07]name=ofd_packets/00189240 [16:44:07]OFD Sender: To server: pG, [16:44:07]CommunicateWithHost lk.salyk.kg:30040 [16:44:07]ConnectInit lk.salyk.kg [16:44:07]Write to MH i2c: 01 00 00 28 5E 86 [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 07 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: 01 07 00 28 5E 00 00 00 00 00 68 0C 01 [16:44:07]RasterBufferAndPrint [16:44:07]line [16:44:07]line [16:44:07]line [16:44:07]line [16:44:07]line [16:44:07]written 0, free lines is 3180 [16:44:07]MH_Cut [16:44:07]Write to MH i2c: D1 01 00 2F 5E 01 5F [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: D1 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: D1 01 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: D1 01 00 2F 5E 00 5E [16:44:07]Write to MH i2c: 01 00 00 30 5E 8E [16:44:07]Write i2c OK [16:44:07]MH_I2C_Read... [16:44:09]*** Cut start [16:44:09]*** Partial cut [16:44:09]*** CUTSNS_PIN = 1 [16:44:09]*** CUTSNS_PIN = 0 [16:44:09]*** Brake cut motor [16:44:09]Read from MH i2c: 01 [16:44:09]MH_I2C_Read... [16:44:09]*** Stop cut motor [16:44:09]*** Cut end [16:44:09]Read from MH i2c: 01 07 00 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: 01 07 00 30 5E 00 00 00 00 00 FF 0F A3 [16:44:09]process_action close_receipt done [16:44:09]requested_data is exist [16:44:09]produce_requested_data [16:44:09]requested_item fm.sn is exist - process it [16:44:09]wFMCommunicate request_size=4 [16:44:09]MH_SAM_APDU [16:44:09]CAPDU: 80 11 00 00 [16:44:09]Write to MH i2c: E2 08 00 31 5E 80 11 00 00 00 00 00 00 09 [16:44:09]Write i2c OK [16:44:09]MH_I2C_Read... [16:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:09]Read from MH i2c: E2 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 17 00 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 17 00 31 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [16:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:44:09]wFMCommunicate OK [16:44:09]requested_item fd.num is exist - process it [16:44:09]SAM_PROTO_GetFieldsCounters [16:44:09]wFMCommunicate request_size=4 [16:44:09]MH_SAM_APDU [16:44:09]CAPDU: 80 13 00 00 [16:44:09]Write to MH i2c: E2 08 00 32 5E 80 13 00 00 00 00 00 00 0C [16:44:09]Write i2c OK [16:44:09]MH_I2C_Read... [16:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:09]Read from MH i2c: E2 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 62 00 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 62 00 32 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E3 02 00 0E 04 04 00 CF 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 AE [16:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E3 02 00 0E 04 04 00 CF 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 [16:44:09]wFMCommunicate OK [16:44:09]SAM_PROTO_GetFieldsCounters done [16:44:09]requested_item shift.num is exist - process it [16:44:09]requested_item shift.opened is exist - process it [16:44:09]req_shift_opened [16:44:09]FM_GetShiftState [16:44:09]SAM_PROTO_GetShiftState [16:44:09]wFMCommunicate request_size=4 [16:44:09]MH_SAM_APDU [16:44:09]CAPDU: 80 13 01 00 [16:44:09]Write to MH i2c: E2 08 00 33 5E 80 13 01 00 00 00 00 00 0E [16:44:09]Write i2c OK [16:44:09]MH_I2C_Read... [16:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:09]Read from MH i2c: E2 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 0E 00 [16:44:09]MH_I2C_Read... [16:44:09]Read from MH i2c: E2 0E 00 33 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EC [16:44:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:44:09]wFMCommunicate OK [16:44:09]SAM_PROTO_GetShiftState done [16:44:09]FM_GetShiftState done [16:44:09]req_shift_opened done [16:44:09]requested_item shift.open_date is exist - process it [16:44:09]req_shift_open_date [16:44:09]req_shift_open_date done [16:44:09]produce_requested_data done [16:44:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189240,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:44:09]process_action_free close_receipt [16:44:09]json_value_free [16:44:09]json_value_free done [16:44:09]process_json_proto returns [16:44:09]Send response to host [16:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189240,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:44:09]free response buf [16:44:09]execute_script done [16:44:09]execute_script returns [16:44:09]free content buf [16:44:09]Sock 9.Close socket [16:44:09]Sock 9.Thread stoped [16:46:20]ConnectInit Can't connect to host [16:46:20]CommunicateWithHost connect error [16:46:20]CommunicateWithHost err = -1 [16:46:20]OFD Sender: Server communicate error [16:46:25]OFD Sender: Processing packet 189240 [packets to send 1062, broken 1061] [16:46:25]ProducePacketName [16:46:25]name=ofd_packets/00189240 [16:46:25]OFD Sender: To server: pG, [16:46:25]CommunicateWithHost lk.salyk.kg:30040 [16:46:25]ConnectInit lk.salyk.kg [16:46:25]Connected sock=9 [16:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 98 47 04 01 CE 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 59 79 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E3 02 00 35 04 06 00 4D 05 A3 92 CC FD 7D E3 3E 93 80 41 A9 2E [16:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3B 55 47 00 04 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 39 36 35 33 34 30 10 04 04 00 38 E3 02 00 F4 03 04 00 CB 23 1A 67 B6 04 01 00 00 28 F0 44 20 AF 9D A7 C2 [16:46:26]CommunicateWithHost err = 0 [16:46:26]CheckOFDResponse [16:46:26]1017 (14) - 77093643461234 [16:46:26]1041 (16) - 0000000000965340 [16:46:26]1040 (4) - 189240 [16:46:26]1012 (4) - 24.10.2024 10:39 [16:46:26]1206 (1) - 0 [16:46:26]OFD Sender: Remove packet 189240 [16:46:26]ProducePacketName [16:46:26]name=ofd_packets/00189240 [16:46:26]NVStorageDeleteData [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:13]accept exits with 8 [16:48:13]New connection [16:48:13]New thread 3067215204 created [16:48:13]Thread 3067071844 joined [16:48:13]Waiting for new connection... [16:48:13] Sock 8.Parse request [16:48:13]Sock 8.Check first char [16:48:13]Sock 8.First char is OK [16:48:13]request: POST /json_proto HTTP/1.0 [16:48:13]Method: POST [16:48:13]URL: /json_proto [16:48:13]Method is POST - this is cgi request [16:48:13]url: /json_proto [16:48:13]query_string will be loaded in cgi processing [16:48:13]execute_cgi json_proto POST (null) [16:48:13]execute_cgi path=json_proto method=POST [16:48:13]POST find Content-Length [16:48:13]Host: 172.17.42.131:8080 [16:48:13]Content-Length: 682 [16:48:13]Content-Type: application/json [16:48:13] [16:48:13]POST finish read [16:48:13]Found Content-Length = 682 [16:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:13]execute_script... [16:48: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)211306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:13]POST & json_proto [16:48:13]process_json_proto [16:48:13]json parsed OK: [16:48:13]protocol is kg_v1.0 [16:48:13]action value=close_receipt [16:48:13]process_action close_receipt [16:48:13]cmd_close_receipt [16:48:13]MH_GetDate [16:48:13]Write to MH i2c: F0 00 00 34 5E 81 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: F0 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: F0 09 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: F0 09 00 34 5E 00 51 7A 1A 67 A0 18 CA 66 BE [16:48:13]GetLastDocTimeStamp 1729788249 [16:48:13]current date 1729788497 [16:48:13]FM_GetShiftState [16:48:13]SAM_PROTO_GetShiftState [16:48:13]wFMCommunicate request_size=4 [16:48:13]MH_SAM_APDU [16:48:13]CAPDU: 80 13 01 00 [16:48:13]Write to MH i2c: E2 08 00 35 5E 80 13 01 00 00 00 00 00 10 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0E 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0E 00 35 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EE [16:48:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:48:13]wFMCommunicate OK [16:48:13]SAM_PROTO_GetShiftState done [16:48:13]FM_GetShiftState done [16:48:13]opened in 1729728961 [16:48:13]opened+sec_in_day 1729815361 [16:48:13]quantity*price = 125036 [16:48:13]sum+1 = 125037 [16:48:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.06 НДС 12% : 132.78 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 314 24.10.2024 16:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189241 ФПД: 161231683270438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189241&fm=161231683270438&tin=02508201610067®Number=0000000000100030&sum=125000 [16:48:14]StoreToDocumentArchive [16:48:14]shift 463 fd 189241 [16:48:14]save to /storage/0463/doc_00189241 [16:48:14]save last doc name /storage/0463/doc_00189241 to /storage/kkm_last_doc_name [16:48:14]save OK [16:48:14]Clear old archive folders... [16:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:14]tlvbuf is 01537FD0 [16:48:14]SAM_PROTO_ClearQueue [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 09 00 00 [16:48:14]Write to MH i2c: E2 08 00 42 5E 80 09 00 00 00 00 00 00 12 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 42 5E 00 90 00 14 [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]SAM_PROTO_ClearQueue done [16:48:14]KKMCreateOFDPacket [16:48:14]OFDProtocolAddRootSTLVToBuf [16:48:14]FM_MakeSignedData [16:48:14]FM_MakeSignedData [16:48:14]SAM_PROTO_SignData [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 0D 01 02 [16:48:14]Write to MH i2c: E2 08 00 43 5E 80 0D 01 02 00 00 00 00 1A [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 43 5E 00 90 00 15 [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]wFMCommunicate request_size=255 [16:48:14]MH_SAM_APDU [16:48: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 33 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 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 51 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E3 02 00 35 04 06 00 92 [16:48:14]Write to MH i2c: E2 02 01 44 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 33 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 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 51 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E3 02 00 35 04 06 00 92 00 00 B4 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 44 5E 00 90 00 16 [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]wFMCommunicate request_size=10 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 0D 02 02 05 A3 AD 35 37 26 [16:48:14]Write to MH i2c: E2 0D 00 45 5E 80 0D 02 02 05 00 A3 AD 35 37 26 00 00 09 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 45 5E 00 90 00 17 [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 0D 03 02 [16:48:14]Write to MH i2c: E2 08 00 46 5E 80 0D 03 02 00 00 00 00 1F [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 0B 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 0B 00 46 5E 00 B6 C1 1A 1E 8C BF B8 F8 90 00 CA [16:48:14]RAPDU: B6 C1 1A 1E 8C BF B8 F8 90 00 [16:48:14]wFMCommunicate OK [16:48:14]SAM_PROTO_SignData done [16:48:14]FM_MakeSignedData done [16:48:14]CreateOFDProtocolMessage [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 11 00 00 [16:48:14]Write to MH i2c: E2 08 00 47 5E 80 11 00 00 00 00 00 00 1F [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 17 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 17 00 47 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [16:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:48:14]wFMCommunicate OK [16:48:14]CreateOFDProtocolMessage done [16:48:14]OFDSenderStorePacket 189241 [16:48:14]StoreOFDPacket docnum=189241 [16:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 28 07 01 7D ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 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 51 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E3 02 00 35 04 06 00 92 A3 AD 35 37 26 B6 C1 1A 1E 8C BF B8 F8 [16:48:14]CheckFolder [16:48:14]dirname=/storage/ofd_packets [16:48:14]CheckFolder done [16:48:14]ProducePacketName [16:48:14]name=ofd_packets/00189241 [16:48:14]NVStorageSaveData ofd_packets/00189241 [16:48:14]File name is /storage/ofd_packets/00189241 [16:48:14]Write 301 bytes [16:48:14]NVStorageSaveData done [16:48:14]OFDSenderStorePacket done [16:48:14]KKMCreateOFDPacket done [16:48:14]NVStorageSaveData kkm_last_timestamp [16:48:14]File name is /storage/kkm_last_timestamp [16:48:14]Write 4 bytes [16:48:14]NVStorageSaveData done [16:48:14]ExternCall_PrintAddStr [16:48:14]wPrintStart [16:48:14]Write to MH i2c: 01 00 00 48 5E A6 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: 01 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: 01 07 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: 01 07 00 48 5E 00 00 00 00 00 FF 0F BB [16:48:14]RasterBufferAndPrint [16:48:14]line Счет N : (1)211306 [16:48:14]line ИНН: 02508201610067 [16:48:14]line Контрольно-Кассовый Чек [16:48:14]line ПРОДАЖА [16:48:14]line ТРК (МРК, ГНК) : 42 [16:48:14]line Товар: 2710124130 [16:48:14]line Аи-92-К-3 [16:48:14]line 18.690 * 66.90 [16:48:14]line = 1250.36 [16:48:14]line НДС 12% НСП 1% [16:48:14]line > о реализуемом товаре [16:48:14]line ОКРУГЛЕНИЕ: -0.36 [16:48:14]line ИТОГО: 1250.00 [16:48:14]line Внесено: 1250.00 [16:48:14]line СДАЧА: 0.00 [16:48:14]line НСП 1% : 11.06 [16:48:14]line НДС 12% : 132.78 [16:48:14]line Наличными: 1250.00 [16:48:14]line Безнал.: 0.00 [16:48:14]line Место: АЗС № 86 "Партнер Нефть" [16:48:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:48:14]line СНО: Общий режим [16:48:14]line Чек 314 24.10.2024 16:48 [16:48:14]line Смена: 463 ФФД: 1.0 [16:48:14]line ЗНМ: 0300000155 [16:48:14]line РНМ: 0000000000100030 [16:48:14]line Версия ККМ: 001 [16:48:14]line ФМ: 0000000000965340 [16:48:14]line ФД: 189241 [16:48:14]line ФПД: 161231683270438 [16:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189241&fm=161231683270438&tin=02508201610067®Number=0000000000100030&sum=125000 [16:48:14]written 0, free lines is 4095 [16:48:14]OFD Sender: Processing packet 189241 [packets to send 1062, broken 1061] [16:48:14]ProducePacketName [16:48:14]name=ofd_packets/00189241 [16:48:14]OFD Sender: To server: pG, [16:48:14]CommunicateWithHost lk.salyk.kg:30040 [16:48:14]ConnectInit lk.salyk.kg [16:48:15]Connected sock=10 [16:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 28 07 01 7D ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 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 51 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E3 02 00 35 04 06 00 92 A3 AD 35 37 26 B6 C1 1A 1E 8C BF B8 F8 [16:48:15]Write to MH i2c: 01 00 00 73 5E D1 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 73 5E 00 00 00 00 00 55 0C 39 [16:48:15]RasterBufferAndPrint [16:48:15]line [16:48:15]line [16:48:15]line [16:48:15]line [16:48:15]line [16:48:15]written 0, free lines is 3161 [16:48:15]MH_Cut [16:48:15]Write to MH i2c: D1 01 00 7A 5E 01 AA [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: D1 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: D1 01 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: D1 01 00 7A 5E 00 A9 [16:48:15]Write to MH i2c: 01 00 00 7B 5E D9 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E2 CE 47 00 34 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E3 02 00 F4 03 04 00 38 24 1A 67 B6 04 01 00 00 A9 CE B2 D2 7F E8 D9 86 [16:48:15]CommunicateWithHost err = 0 [16:48:15]CheckOFDResponse [16:48:15]1017 (14) - 77093643461234 [16:48:15]1041 (16) - 0000000000965340 [16:48:15]1040 (4) - 189241 [16:48:15]1012 (4) - 24.10.2024 10:40 [16:48:15]1206 (1) - 0 [16:48:15]OFD Sender: Remove packet 189241 [16:48:15]ProducePacketName [16:48:15]name=ofd_packets/00189241 [16:48:15]NVStorageDeleteData [16:48:15]OFD Sender: No OFD packet to send [16:48:16]*** Cut start [16:48:16]*** Partial cut [16:48:16]*** CUTSNS_PIN = 1 [16:48:16]*** CUTSNS_PIN = 0 [16:48:16]*** Brake cut motor [16:48:17]Read from MH i2c: 01 [16:48:17]MH_I2C_Read... [16:48:17]*** Stop cut motor [16:48:17]*** Cut end [16:48:17]Read from MH i2c: 01 07 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: 01 07 00 7B 5E 00 00 00 00 00 FF 0F EE [16:48:17]process_action close_receipt done [16:48:17]requested_data is exist [16:48:17]produce_requested_data [16:48:17]requested_item fm.sn is exist - process it [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 11 00 00 [16:48:17]Write to MH i2c: E2 08 00 7C 5E 80 11 00 00 00 00 00 00 54 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 17 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 17 00 7C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [16:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:48:17]wFMCommunicate OK [16:48:17]requested_item fd.num is exist - process it [16:48:17]SAM_PROTO_GetFieldsCounters [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 13 00 00 [16:48:17]Write to MH i2c: E2 08 00 7D 5E 80 13 00 00 00 00 00 00 57 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 62 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 62 00 7D 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E3 02 00 0E 04 04 00 CF 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 FD [16:48:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E3 02 00 0E 04 04 00 CF 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 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_GetFieldsCounters done [16:48:17]requested_item shift.num is exist - process it [16:48:17]requested_item shift.opened is exist - process it [16:48:17]req_shift_opened [16:48:17]FM_GetShiftState [16:48:17]SAM_PROTO_GetShiftState [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 13 01 00 [16:48:17]Write to MH i2c: E2 08 00 7E 5E 80 13 01 00 00 00 00 00 59 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 7E 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 37 [16:48:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_GetShiftState done [16:48:17]FM_GetShiftState done [16:48:17]req_shift_opened done [16:48:17]requested_item shift.open_date is exist - process it [16:48:17]req_shift_open_date [16:48:17]req_shift_open_date done [16:48:17]produce_requested_data done [16:48:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189241,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:48:17]process_action_free close_receipt [16:48:17]json_value_free [16:48:17]json_value_free done [16:48:17]process_json_proto returns [16:48:17]Send response to host [16:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189241,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:48:17]free response buf [16:48:17]execute_script done [16:48:17]execute_script returns [16:48:17]free content buf [16:48:17]Sock 8.Close socket [16:48:17]Sock 8.Thread stoped [16:48:20]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]accept exits with 9 [16:49:46]New connection [16:49:46]New thread 3067071844 created [16:49:46]Thread 3067215204 joined [16:49:46]Waiting for new connection... [16:49:46] Sock 9.Parse request [16:49:46]Sock 9.Check first char [16:49:46]Sock 9.First char is OK [16:49:46]request: POST /json_proto HTTP/1.0 [16:49:46]Method: POST [16:49:46]URL: /json_proto [16:49:46]Method is POST - this is cgi request [16:49:46]url: /json_proto [16:49:46]query_string will be loaded in cgi processing [16:49:46]execute_cgi json_proto POST (null) [16:49:46]execute_cgi path=json_proto method=POST [16:49:46]POST find Content-Length [16:49:46]Host: 172.17.42.131:8080 [16:49:46]Content-Length: 983 [16:49:46]Content-Type: application/json [16:49:46] [16:49:46]POST finish read [16:49:46]Found Content-Length = 983 [16:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:49:46]execute_script... [16:49: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)211307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:49:46]POST & json_proto [16:49:46]process_json_proto [16:49:46]json parsed OK: [16:49:46]protocol is kg_v1.0 [16:49:46]action value=close_receipt [16:49:46]process_action close_receipt [16:49:46]cmd_close_receipt [16:49:46]MH_GetDate [16:49:46]Write to MH i2c: F0 00 00 7F 5E CC [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: F0 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: F0 09 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: F0 09 00 7F 5E 00 AE 7A 1A 67 A0 18 CA 66 66 [16:49:46]GetLastDocTimeStamp 1729788497 [16:49:46]current date 1729788590 [16:49:46]FM_GetShiftState [16:49:46]SAM_PROTO_GetShiftState [16:49:46]wFMCommunicate request_size=4 [16:49:46]MH_SAM_APDU [16:49:46]CAPDU: 80 13 01 00 [16:49:46]Write to MH i2c: E2 08 00 80 5E 80 13 01 00 00 00 00 00 5B [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:46]Read from MH i2c: E2 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 0E 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: E2 0E 00 80 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 39 [16:49:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:49:46]wFMCommunicate OK [16:49:46]SAM_PROTO_GetShiftState done [16:49:46]FM_GetShiftState done [16:49:46]opened in 1729728961 [16:49:46]opened+sec_in_day 1729815361 [16:49:46]quantity*price = 150054 [16:49:46]sum+1 = 150055 [16:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 315 24.10.2024 16:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 189242 ФПД: 235413763867803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189242&fm=235413763867803&tin=02508201610067®Number=0000000000100030&sum=150000 [16:49:47]StoreToDocumentArchive [16:49:47]shift 463 fd 189242 [16:49:47]save to /storage/0463/doc_00189242 [16:49:47]save last doc name /storage/0463/doc_00189242 to /storage/kkm_last_doc_name [16:49:47]save OK [16:49:47]Clear old archive folders... [16:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:47]tlvbuf is 016C69A0 [16:49:47]SAM_PROTO_ClearQueue [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 09 00 00 [16:49:47]Write to MH i2c: E2 08 00 8D 5E 80 09 00 00 00 00 00 00 5D [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 8D 5E 00 90 00 5F [16:49:47]RAPDU: 90 00 [16:49:47]wFMCommunicate OK [16:49:47]SAM_PROTO_ClearQueue done [16:49:47]KKMCreateOFDPacket [16:49:47]OFDProtocolAddRootSTLVToBuf [16:49:47]FM_MakeSignedData [16:49:47]FM_MakeSignedData [16:49:47]SAM_PROTO_SignData [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 0D 01 02 [16:49:47]Write to MH i2c: E2 08 00 8E 5E 80 0D 01 02 00 00 00 00 65 [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 8E 5E 00 90 00 60 [16:49:47]RAPDU: 90 00 [16:49:47]wFMCommunicate OK [16:49:47]wFMCommunicate request_size=255 [16:49:47]MH_SAM_APDU [16:49: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AE 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E3 02 00 35 04 06 00 D6 [16:49:47]Write to MH i2c: E2 02 01 8F 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AE 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E3 02 00 35 04 06 00 D6 00 00 B8 [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 8F 5E 00 90 00 61 [16:49:47]RAPDU: 90 00 [16:49:47]wFMCommunicate OK [16:49:47]wFMCommunicate request_size=10 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 0D 02 02 05 1B 89 C5 44 9B [16:49:47]Write to MH i2c: E2 0D 00 90 5E 80 0D 02 02 05 00 1B 89 C5 44 9B 00 00 BA [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 03 00 90 5E 00 90 00 62 [16:49:47]RAPDU: 90 00 [16:49:47]wFMCommunicate OK [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 0D 03 02 [16:49:47]Write to MH i2c: E2 08 00 91 5E 80 0D 03 02 00 00 00 00 6A [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 0B 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 0B 00 91 5E 00 E1 38 54 06 DB 11 4F 38 90 00 51 [16:49:47]RAPDU: E1 38 54 06 DB 11 4F 38 90 00 [16:49:47]wFMCommunicate OK [16:49:47]SAM_PROTO_SignData done [16:49:47]FM_MakeSignedData done [16:49:47]CreateOFDProtocolMessage [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 11 00 00 [16:49:47]Write to MH i2c: E2 08 00 92 5E 80 11 00 00 00 00 00 00 6A [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 92 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [16:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:49:47]wFMCommunicate OK [16:49:47]CreateOFDProtocolMessage done [16:49:47]OFDSenderStorePacket 189242 [16:49:47]StoreOFDPacket docnum=189242 [16:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C E2 07 01 52 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AE 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E3 02 00 35 04 06 00 D6 1B 89 C5 44 9B E1 38 54 06 DB 11 4F 38 [16:49:47]CheckFolder [16:49:47]dirname=/storage/ofd_packets [16:49:47]CheckFolder done [16:49:47]ProducePacketName [16:49:47]name=ofd_packets/00189242 [16:49:47]NVStorageSaveData ofd_packets/00189242 [16:49:47]File name is /storage/ofd_packets/00189242 [16:49:47]Write 301 bytes [16:49:47]NVStorageSaveData done [16:49:47]OFDSenderStorePacket done [16:49:47]KKMCreateOFDPacket done [16:49:47]NVStorageSaveData kkm_last_timestamp [16:49:47]File name is /storage/kkm_last_timestamp [16:49:47]Write 4 bytes [16:49:47]NVStorageSaveData done [16:49:47]ExternCall_PrintAddStr [16:49:47]wPrintStart [16:49:47]Write to MH i2c: 01 00 00 93 5E F1 [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: 01 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: 01 07 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: 01 07 00 93 5E 00 00 00 00 00 FF 0F 06 [16:49:47]RasterBufferAndPrint [16:49:47]line Счет N : (1)211307 [16:49:47]line ИНН: 02508201610067 [16:49:47]line Контрольно-Кассовый Чек [16:49:47]line ПРОДАЖА [16:49:47]line ТРК (МРК, ГНК) : 12 [16:49:47]line Товар: 2710124130 [16:49:47]line Аи-92-К-3 [16:49:47]line 22.770 * 65.90 [16:49:47]line = 1500.54 [16:49:47]line НДС 12% НСП 1% [16:49:47]line > о реализуемом товаре [16:49:47]line ОКРУГЛЕНИЕ: -0.54 [16:49:47]line ИТОГО: 1500.00 [16:49:47]line Внесено: 1500.00 [16:49:47]line СДАЧА: 0.00 [16:49:47]line НСП 1% : 13.28 [16:49:47]line НДС 12% : 159.35 [16:49:47]line Наличными: 1500.00 [16:49:47]line Безнал.: 0.00 [16:49:47]line Место: АЗС № 86 "Партнер Нефть" [16:49:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:49:47]line СНО: Общий режим [16:49:47]line Чек 315 24.10.2024 16:49 [16:49:47]line Смена: 463 ФФД: 1.0 [16:49:47]line ЗНМ: 0300000155 [16:49:47]line РНМ: 0000000000100030 [16:49:47]line Версия ККМ: 001 [16:49:47]line [16:49:47]line Дисконтная программа [16:49:47]line АИ-92 [16:49:47]line номер 86 [16:49:47]line сэкономлено 22.77 сом [16:49:47]line ФМ: 0000000000965340 [16:49:47]line ФД: 189242 [16:49:47]line ФПД: 235413763867803 [16:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189242&fm=235413763867803&tin=02508201610067®Number=0000000000100030&sum=150000 [16:49:47]written 0, free lines is 4095 [16:49:47]OFD Sender: Processing packet 189242 [packets to send 1062, broken 1061] [16:49:47]ProducePacketName [16:49:47]name=ofd_packets/00189242 [16:49:47]OFD Sender: To server: pG, [16:49:47]CommunicateWithHost lk.salyk.kg:30040 [16:49:47]ConnectInit lk.salyk.kg [16:49:48]Connected sock=10 [16:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C E2 07 01 52 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AE 7A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E3 02 00 35 04 06 00 D6 1B 89 C5 44 9B E1 38 54 06 DB 11 4F 38 [16:49:48]Write to MH i2c: 01 00 00 C3 5E 21 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 07 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 07 00 C3 5E 00 00 00 00 00 E1 0B 14 [16:49:48]RasterBufferAndPrint [16:49:48]line [16:49:48]line [16:49:48]line [16:49:48]line [16:49:48]line [16:49:48]written 0, free lines is 3043 [16:49:48]MH_Cut [16:49:48]Write to MH i2c: D1 01 00 CA 5E 01 FA [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: D1 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: D1 01 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: D1 01 00 CA 5E 00 F9 [16:49:48]Write to MH i2c: 01 00 00 CB 5E 29 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A F5 47 00 E0 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 39 36 35 33 34 30 10 04 04 00 3A E3 02 00 F4 03 04 00 95 24 1A 67 B6 04 01 00 00 5E 49 42 CC 83 01 F8 5D [16:49:48]CommunicateWithHost err = 0 [16:49:48]CheckOFDResponse [16:49:48]1017 (14) - 77093643461234 [16:49:48]1041 (16) - 0000000000965340 [16:49:48]1040 (4) - 189242 [16:49:48]1012 (4) - 24.10.2024 10:42 [16:49:48]1206 (1) - 0 [16:49:48]OFD Sender: Remove packet 189242 [16:49:48]ProducePacketName [16:49:48]name=ofd_packets/00189242 [16:49:48]NVStorageDeleteData [16:49:48]OFD Sender: No OFD packet to send [16:49:49]*** Cut start [16:49:49]*** Partial cut [16:49:49]*** CUTSNS_PIN = 1 [16:49:49]*** CUTSNS_PIN = 0 [16:49:49]*** Brake cut motor [16:49:50]Read from MH i2c: 01 [16:49:50]MH_I2C_Read... [16:49:50]*** Stop cut motor [16:49:50]*** Cut end [16:49:50]Read from MH i2c: 01 07 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: 01 07 00 CB 5E 00 00 00 00 00 FF 0F 3E [16:49:50]process_action close_receipt done [16:49:50]requested_data is exist [16:49:50]produce_requested_data [16:49:50]requested_item fm.sn is exist - process it [16:49:50]wFMCommunicate request_size=4 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 11 00 00 [16:49:50]Write to MH i2c: E2 08 00 CC 5E 80 11 00 00 00 00 00 00 A4 [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 17 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 17 00 CC 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [16:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:49:50]wFMCommunicate OK [16:49:50]requested_item fd.num is exist - process it [16:49:50]SAM_PROTO_GetFieldsCounters [16:49:50]wFMCommunicate request_size=4 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 13 00 00 [16:49:50]Write to MH i2c: E2 08 00 CD 5E 80 13 00 00 00 00 00 00 A7 [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 62 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 62 00 CD 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E3 02 00 0E 04 04 00 CF 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 51 [16:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E3 02 00 0E 04 04 00 CF 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 [16:49:50]wFMCommunicate OK [16:49:50]SAM_PROTO_GetFieldsCounters done [16:49:50]requested_item shift.num is exist - process it [16:49:50]requested_item shift.opened is exist - process it [16:49:50]req_shift_opened [16:49:50]FM_GetShiftState [16:49:50]SAM_PROTO_GetShiftState [16:49:50]wFMCommunicate request_size=4 [16:49:50]MH_SAM_APDU [16:49:50]CAPDU: 80 13 01 00 [16:49:50]Write to MH i2c: E2 08 00 CE 5E 80 13 01 00 00 00 00 00 A9 [16:49:50]Write i2c OK [16:49:50]MH_I2C_Read... [16:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:50]Read from MH i2c: E2 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 0E 00 [16:49:50]MH_I2C_Read... [16:49:50]Read from MH i2c: E2 0E 00 CE 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 87 [16:49:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:49:50]wFMCommunicate OK [16:49:50]SAM_PROTO_GetShiftState done [16:49:50]FM_GetShiftState done [16:49:50]req_shift_opened done [16:49:50]requested_item shift.open_date is exist - process it [16:49:50]req_shift_open_date [16:49:50]req_shift_open_date done [16:49:50]produce_requested_data done [16:49:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189242,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:49:50]process_action_free close_receipt [16:49:50]json_value_free [16:49:50]json_value_free done [16:49:50]process_json_proto returns [16:49:50]Send response to host [16:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189242,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:49:50]free response buf [16:49:50]execute_script done [16:49:50]execute_script returns [16:49:50]free content buf [16:49:50]Sock 9.Close socket [16:49:50]Sock 9.Thread stoped [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:04]accept exits with 8 [16:52:04]New connection [16:52:04]New thread 3067215204 created [16:52:04]Thread 3067071844 joined [16:52:04]Waiting for new connection... [16:52:04] Sock 8.Parse request [16:52:04]Sock 8.Check first char [16:52:04]Sock 8.First char is OK [16:52:04]request: POST /json_proto HTTP/1.0 [16:52:04]Method: POST [16:52:04]URL: /json_proto [16:52:04]Method is POST - this is cgi request [16:52:04]url: /json_proto [16:52:04]query_string will be loaded in cgi processing [16:52:04]execute_cgi json_proto POST (null) [16:52:04]execute_cgi path=json_proto method=POST [16:52:04]POST find Content-Length [16:52:04]Host: 172.17.42.131:8080 [16:52:04]Content-Length: 682 [16:52:04]Content-Type: application/json [16:52:04] [16:52:04]POST finish read [16:52:04]Found Content-Length = 682 [16:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "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" ] } } [16:52:04]execute_script... [16:52: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)211308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "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" ] } } [16:52:04]POST & json_proto [16:52:04]process_json_proto [16:52:04]json parsed OK: [16:52:04]protocol is kg_v1.0 [16:52:04]action value=close_receipt [16:52:04]process_action close_receipt [16:52:04]cmd_close_receipt [16:52:04]MH_GetDate [16:52:04]Write to MH i2c: F0 00 00 CF 5E 1C [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: F0 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: F0 09 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: F0 09 00 CF 5E 00 38 7B 1A 67 A0 18 CA 66 41 [16:52:04]GetLastDocTimeStamp 1729788590 [16:52:04]current date 1729788728 [16:52:04]FM_GetShiftState [16:52:04]SAM_PROTO_GetShiftState [16:52:04]wFMCommunicate request_size=4 [16:52:04]MH_SAM_APDU [16:52:04]CAPDU: 80 13 01 00 [16:52:04]Write to MH i2c: E2 08 00 D0 5E 80 13 01 00 00 00 00 00 AB [16:52:04]Write i2c OK [16:52:04]MH_I2C_Read... [16:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:04]Read from MH i2c: E2 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 0E 00 [16:52:04]MH_I2C_Read... [16:52:04]Read from MH i2c: E2 0E 00 D0 5E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 89 [16:52:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:52:04]wFMCommunicate OK [16:52:04]SAM_PROTO_GetShiftState done [16:52:04]FM_GetShiftState done [16:52:04]opened in 1729728961 [16:52:04]opened+sec_in_day 1729815361 [16:52:04]quantity*price = 110050 [16:52:04]sum+1 = 110052 [16:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 316 24.10.2024 16:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189243 ФПД: 158158782760580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189243&fm=158158782760580&tin=02508201610067®Number=0000000000100030&sum=110000 [16:52:05]StoreToDocumentArchive [16:52:05]shift 463 fd 189243 [16:52:05]save to /storage/0463/doc_00189243 [16:52:05]save last doc name /storage/0463/doc_00189243 to /storage/kkm_last_doc_name [16:52:05]save OK [16:52:05]Clear old archive folders... [16:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:05]tlvbuf is 01517700 [16:52:05]SAM_PROTO_ClearQueue [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 09 00 00 [16:52:05]Write to MH i2c: E2 08 00 DD 5E 80 09 00 00 00 00 00 00 AD [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 03 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 03 00 DD 5E 00 90 00 AF [16:52:05]RAPDU: 90 00 [16:52:05]wFMCommunicate OK [16:52:05]SAM_PROTO_ClearQueue done [16:52:05]KKMCreateOFDPacket [16:52:05]OFDProtocolAddRootSTLVToBuf [16:52:05]FM_MakeSignedData [16:52:05]FM_MakeSignedData [16:52:05]SAM_PROTO_SignData [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 0D 01 02 [16:52:05]Write to MH i2c: E2 08 00 DE 5E 80 0D 01 02 00 00 00 00 B5 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 03 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 03 00 DE 5E 00 90 00 B0 [16:52:05]RAPDU: 90 00 [16:52:05]wFMCommunicate OK [16:52:05]wFMCommunicate request_size=255 [16:52:05]MH_SAM_APDU [16:52: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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 3C 01 00 00 F4 03 04 00 38 7B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E3 02 00 35 04 06 00 8F [16:52:05]Write to MH i2c: E2 02 01 DF 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 3C 01 00 00 F4 03 04 00 38 7B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E3 02 00 35 04 06 00 8F 00 00 43 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 DF 5E 00 90 00 B1 [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]wFMCommunicate request_size=10 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 02 02 05 D8 36 10 86 84 [16:52:06]Write to MH i2c: E2 0D 00 E0 5E 80 0D 02 02 05 00 D8 36 10 86 84 00 00 EA [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 E0 5E 00 90 00 B2 [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 03 02 [16:52:06]Write to MH i2c: E2 08 00 E1 5E 80 0D 03 02 00 00 00 00 BA [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0B 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0B 00 E1 5E 00 4F CD 3F B6 D8 B1 11 82 90 00 E8 [16:52:06]RAPDU: 4F CD 3F B6 D8 B1 11 82 90 00 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_SignData done [16:52:06]FM_MakeSignedData done [16:52:06]CreateOFDProtocolMessage [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 11 00 00 [16:52:06]Write to MH i2c: E2 08 00 E2 5E 80 11 00 00 00 00 00 00 BA [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 E2 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [16:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:52:06]wFMCommunicate OK [16:52:06]CreateOFDProtocolMessage done [16:52:06]OFDSenderStorePacket 189243 [16:52:06]StoreOFDPacket docnum=189243 [16:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 04 07 01 63 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 3C 01 00 00 F4 03 04 00 38 7B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E3 02 00 35 04 06 00 8F D8 36 10 86 84 4F CD 3F B6 D8 B1 11 82 [16:52:06]CheckFolder [16:52:06]dirname=/storage/ofd_packets [16:52:06]CheckFolder done [16:52:06]ProducePacketName [16:52:06]name=ofd_packets/00189243 [16:52:06]NVStorageSaveData ofd_packets/00189243 [16:52:06]File name is /storage/ofd_packets/00189243 [16:52:06]Write 301 bytes [16:52:06]NVStorageSaveData done [16:52:06]OFDSenderStorePacket done [16:52:06]KKMCreateOFDPacket done [16:52:06]NVStorageSaveData kkm_last_timestamp [16:52:06]File name is /storage/kkm_last_timestamp [16:52:06]Write 4 bytes [16:52:06]NVStorageSaveData done [16:52:06]ExternCall_PrintAddStr [16:52:06]wPrintStart [16:52:06]Write to MH i2c: 01 00 00 E3 5E 41 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 E3 5E 00 00 00 00 00 FF 0F 56 [16:52:06]RasterBufferAndPrint [16:52:06]line Счет N : (1)211308 [16:52:06]line ИНН: 02508201610067 [16:52:06]line Контрольно-Кассовый Чек [16:52:06]line ПРОДАЖА [16:52:06]line ТРК (МРК, ГНК) : 32 [16:52:06]line Товар: 2710124130 [16:52:06]line Аи-92-К-3 [16:52:06]line 16.450 * 66.90 [16:52:06]line = 1100.51 [16:52:06]line НДС 12% НСП 1% [16:52:06]line > о реализуемом товаре [16:52:06]line ОКРУГЛЕНИЕ: -0.51 [16:52:06]line ИТОГО: 1100.00 [16:52:06]line Внесено: 1100.00 [16:52:06]line СДАЧА: 0.00 [16:52:06]line НСП 1% : 9.74 [16:52:06]line НДС 12% : 116.87 [16:52:06]line Наличными: 1100.00 [16:52:06]line Безнал.: 0.00 [16:52:06]line Место: АЗС № 86 "Партнер Нефть" [16:52:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:52:06]line СНО: Общий режим [16:52:06]line Чек 316 24.10.2024 16:52 [16:52:06]line Смена: 463 ФФД: 1.0 [16:52:06]line ЗНМ: 0300000155 [16:52:06]line РНМ: 0000000000100030 [16:52:06]line Версия ККМ: 001 [16:52:06]line ФМ: 0000000000965340 [16:52:06]line ФД: 189243 [16:52:06]line ФПД: 158158782760580 [16:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189243&fm=158158782760580&tin=02508201610067®Number=0000000000100030&sum=110000 [16:52:06]written 0, free lines is 4095 [16:52:06]OFD Sender: Processing packet 189243 [packets to send 1062, broken 1061] [16:52:06]ProducePacketName [16:52:06]name=ofd_packets/00189243 [16:52:06]OFD Sender: To server: pG, [16:52:06]CommunicateWithHost lk.salyk.kg:30040 [16:52:06]ConnectInit lk.salyk.kg [16:52:06]Connected sock=10 [16:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 04 07 01 63 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 3C 01 00 00 F4 03 04 00 38 7B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E3 02 00 35 04 06 00 8F D8 36 10 86 84 4F CD 3F B6 D8 B1 11 82 [16:52:06]Write to MH i2c: 01 00 00 0E 5F 6D [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 0E 5F 00 00 00 00 00 55 0C D5 [16:52:06]RasterBufferAndPrint [16:52:06]line [16:52:06]line [16:52:06]line [16:52:06]line [16:52:06]line [16:52:06]written 0, free lines is 3160 [16:52:06]MH_Cut [16:52:06]Write to MH i2c: D1 01 00 15 5F 01 46 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: D1 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: D1 01 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: D1 01 00 15 5F 00 45 [16:52:06]Write to MH i2c: 01 00 00 16 5F 75 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 BC 47 00 5D 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 39 36 35 33 34 30 10 04 04 00 3B E3 02 00 F4 03 04 00 20 25 1A 67 B6 04 01 00 00 67 79 8B 55 C9 1F 74 C4 [16:52:07]CommunicateWithHost err = 0 [16:52:07]CheckOFDResponse [16:52:07]1017 (14) - 77093643461234 [16:52:07]1041 (16) - 0000000000965340 [16:52:07]1040 (4) - 189243 [16:52:07]1012 (4) - 24.10.2024 10:44 [16:52:07]1206 (1) - 0 [16:52:07]OFD Sender: Remove packet 189243 [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00189243 [16:52:07]NVStorageDeleteData [16:52:07]OFD Sender: No OFD packet to send [16:52:08]*** Cut start [16:52:08]*** Partial cut [16:52:08]*** CUTSNS_PIN = 1 [16:52:08]*** CUTSNS_PIN = 0 [16:52:08]*** Brake cut motor [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]*** Stop cut motor [16:52:08]*** Cut end [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 16 5F 00 00 00 00 00 FF 0F 8A [16:52:08]process_action close_receipt done [16:52:08]requested_data is exist [16:52:08]produce_requested_data [16:52:08]requested_item fm.sn is exist - process it [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 11 00 00 [16:52:08]Write to MH i2c: E2 08 00 17 5F 80 11 00 00 00 00 00 00 F0 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 17 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [16:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:52:08]wFMCommunicate OK [16:52:08]requested_item fd.num is exist - process it [16:52:08]SAM_PROTO_GetFieldsCounters [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 00 00 [16:52:08]Write to MH i2c: E2 08 00 18 5F 80 13 00 00 00 00 00 00 F3 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 62 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 62 00 18 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E3 02 00 0E 04 04 00 CF 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 A1 [16:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E3 02 00 0E 04 04 00 CF 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 [16:52:08]wFMCommunicate OK [16:52:08]SAM_PROTO_GetFieldsCounters done [16:52:08]requested_item shift.num is exist - process it [16:52:08]requested_item shift.opened is exist - process it [16:52:08]req_shift_opened [16:52:08]FM_GetShiftState [16:52:08]SAM_PROTO_GetShiftState [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 01 00 [16:52:08]Write to MH i2c: E2 08 00 19 5F 80 13 01 00 00 00 00 00 F5 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 19 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D3 [16:52:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:52:09]wFMCommunicate OK [16:52:09]SAM_PROTO_GetShiftState done [16:52:09]FM_GetShiftState done [16:52:09]req_shift_opened done [16:52:09]requested_item shift.open_date is exist - process it [16:52:09]req_shift_open_date [16:52:09]req_shift_open_date done [16:52:09]produce_requested_data done [16:52:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189243,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:52:09]process_action_free close_receipt [16:52:09]json_value_free [16:52:09]json_value_free done [16:52:09]process_json_proto returns [16:52:09]Send response to host [16:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189243,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:52:09]free response buf [16:52:09]execute_script done [16:52:09]execute_script returns [16:52:09]free content buf [16:52:09]Sock 8.Close socket [16:52:09]Sock 8.Thread stoped [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]accept exits with 9 [16:55:48]New connection [16:55:48]New thread 3067071844 created [16:55:48]Thread 3067215204 joined [16:55:48]Waiting for new connection... [16:55:48] Sock 9.Parse request [16:55:48]Sock 9.Check first char [16:55:48]Sock 9.First char is OK [16:55:48]request: POST /json_proto HTTP/1.0 [16:55:48]Method: POST [16:55:48]URL: /json_proto [16:55:48]Method is POST - this is cgi request [16:55:48]url: /json_proto [16:55:48]query_string will be loaded in cgi processing [16:55:48]execute_cgi json_proto POST (null) [16:55:48]execute_cgi path=json_proto method=POST [16:55:48]POST find Content-Length [16:55:48]Host: 172.17.42.131:8080 [16:55:48]Content-Length: 682 [16:55:48]Content-Type: application/json [16:55:48] [16:55:48]POST finish read [16:55:48]Found Content-Length = 682 [16:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:55:48]execute_script... [16:55: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)211309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:55:48]POST & json_proto [16:55:48]process_json_proto [16:55:48]json parsed OK: [16:55:48]protocol is kg_v1.0 [16:55:48]action value=close_receipt [16:55:48]process_action close_receipt [16:55:48]cmd_close_receipt [16:55:48]MH_GetDate [16:55:48]Write to MH i2c: F0 00 00 1A 5F 68 [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: F0 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: F0 09 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: F0 09 00 1A 5F 00 18 7C 1A 67 A0 18 CA 66 6E [16:55:48]GetLastDocTimeStamp 1729788728 [16:55:48]current date 1729788952 [16:55:48]FM_GetShiftState [16:55:48]SAM_PROTO_GetShiftState [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 13 01 00 [16:55:48]Write to MH i2c: E2 08 00 1B 5F 80 13 01 00 00 00 00 00 F7 [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 1B 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D5 [16:55:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_GetShiftState done [16:55:48]FM_GetShiftState done [16:55:48]opened in 1729728961 [16:55:48]opened+sec_in_day 1729815361 [16:55:48]quantity*price = 100021 [16:55:48]sum+1 = 100023 [16:55: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 317 24.10.2024 16:55 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189244 ФПД: 94930788025018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165552&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189244&fm=94930788025018&tin=02508201610067®Number=0000000000100030&sum=100000 [16:55:49]StoreToDocumentArchive [16:55:49]shift 463 fd 189244 [16:55:49]save to /storage/0463/doc_00189244 [16:55:49]save last doc name /storage/0463/doc_00189244 to /storage/kkm_last_doc_name [16:55:49]save OK [16:55:49]Clear old archive folders... [16:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:49]tlvbuf is 015DC240 [16:55:49]SAM_PROTO_ClearQueue [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 09 00 00 [16:55:49]Write to MH i2c: E2 08 00 28 5F 80 09 00 00 00 00 00 00 F9 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 28 5F 00 90 00 FB [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]SAM_PROTO_ClearQueue done [16:55:49]KKMCreateOFDPacket [16:55:49]OFDProtocolAddRootSTLVToBuf [16:55:49]FM_MakeSignedData [16:55:49]FM_MakeSignedData [16:55:49]SAM_PROTO_SignData [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 0D 01 02 [16:55:49]Write to MH i2c: E2 08 00 29 5F 80 0D 01 02 00 00 00 00 01 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 29 5F 00 90 00 FC [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]wFMCommunicate request_size=255 [16:55:49]MH_SAM_APDU [16:55: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 33 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 3D 01 00 00 F4 03 04 00 18 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E3 02 00 35 04 06 00 56 [16:55:49]Write to MH i2c: E2 02 01 2A 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 33 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 3D 01 00 00 F4 03 04 00 18 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E3 02 00 35 04 06 00 56 00 00 2B [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 2A 5F 00 90 00 FD [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]wFMCommunicate request_size=10 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 0D 02 02 05 56 CB E6 02 BA [16:55:49]Write to MH i2c: E2 0D 00 2B 5F 80 0D 02 02 05 00 56 CB E6 02 BA 00 00 D1 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 2B 5F 00 90 00 FE [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 0D 03 02 [16:55:49]Write to MH i2c: E2 08 00 2C 5F 80 0D 03 02 00 00 00 00 06 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 0B 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 0B 00 2C 5F 00 DF 72 DA 7F 05 8B 40 DF 90 00 60 [16:55:49]RAPDU: DF 72 DA 7F 05 8B 40 DF 90 00 [16:55:49]wFMCommunicate OK [16:55:49]SAM_PROTO_SignData done [16:55:49]FM_MakeSignedData done [16:55:49]CreateOFDProtocolMessage [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 11 00 00 [16:55:49]Write to MH i2c: E2 08 00 2D 5F 80 11 00 00 00 00 00 00 06 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 17 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 17 00 2D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [16:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:55:49]wFMCommunicate OK [16:55:49]CreateOFDProtocolMessage done [16:55:49]OFDSenderStorePacket 189244 [16:55:49]StoreOFDPacket docnum=189244 [16:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 6D 07 01 D5 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 33 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 3D 01 00 00 F4 03 04 00 18 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E3 02 00 35 04 06 00 56 56 CB E6 02 BA DF 72 DA 7F 05 8B 40 DF [16:55:49]CheckFolder [16:55:49]dirname=/storage/ofd_packets [16:55:49]CheckFolder done [16:55:49]ProducePacketName [16:55:49]name=ofd_packets/00189244 [16:55:49]NVStorageSaveData ofd_packets/00189244 [16:55:49]File name is /storage/ofd_packets/00189244 [16:55:49]Write 301 bytes [16:55:49]NVStorageSaveData done [16:55:49]OFDSenderStorePacket done [16:55:49]KKMCreateOFDPacket done [16:55:49]NVStorageSaveData kkm_last_timestamp [16:55:49]File name is /storage/kkm_last_timestamp [16:55:49]Write 4 bytes [16:55:49]NVStorageSaveData done [16:55:49]ExternCall_PrintAddStr [16:55:49]wPrintStart [16:55:49]Write to MH i2c: 01 00 00 2E 5F 8D [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: 01 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: 01 07 00 [16:55:49]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 07 00 2E 5F 00 00 00 00 00 FF 0F A2 [16:55:50]RasterBufferAndPrint [16:55:50]line Счет N : (1)211309 [16:55:50]line ИНН: 02508201610067 [16:55:50]line Контрольно-Кассовый Чек [16:55:50]line ПРОДАЖА [16:55:50]line ТРК (МРК, ГНК) : 33 [16:55:50]line Товар: 2710124500 [16:55:50]line Аи-95-К-3 [16:55:50]line 13.480 * 74.20 [16:55:50]line = 1000.22 [16:55:50]line НДС 12% НСП 1% [16:55:50]line > о реализуемом товаре [16:55:50]line ОКРУГЛЕНИЕ: -0.22 [16:55:50]line ИТОГО: 1000.00 [16:55:50]line Внесено: 1000.00 [16:55:50]line СДАЧА: 0.00 [16:55:50]line НСП 1% : 8.85 [16:55:50]line НДС 12% : 106.22 [16:55:50]line Наличными: 1000.00 [16:55:50]line Безнал.: 0.00 [16:55:50]line Место: АЗС № 86 "Партнер Нефть" [16:55:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:55:50]line СНО: Общий режим [16:55:50]line Чек 317 24.10.2024 16:55 [16:55:50]line Смена: 463 ФФД: 1.0 [16:55:50]line ЗНМ: 0300000155 [16:55:50]line РНМ: 0000000000100030 [16:55:50]line Версия ККМ: 001 [16:55:50]line ФМ: 0000000000965340 [16:55:50]line ФД: 189244 [16:55:50]line ФПД: 94930788025018 [16:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165552&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189244&fm=94930788025018&tin=02508201610067®Number=0000000000100030&sum=100000 [16:55:50]written 0, free lines is 4095 [16:55:50]OFD Sender: Processing packet 189244 [packets to send 1062, broken 1061] [16:55:50]ProducePacketName [16:55:50]name=ofd_packets/00189244 [16:55:50]OFD Sender: To server: pG, [16:55:50]CommunicateWithHost lk.salyk.kg:30040 [16:55:50]ConnectInit lk.salyk.kg [16:55:50]Write to MH i2c: 01 00 00 59 5F B8 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 07 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 07 00 59 5F 00 00 00 00 00 57 0C 22 [16:55:50]RasterBufferAndPrint [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]written 0, free lines is 3162 [16:55:50]MH_Cut [16:55:50]Write to MH i2c: D1 01 00 60 5F 01 91 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 01 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 01 00 60 5F 00 90 [16:55:50]Write to MH i2c: 01 00 00 61 5F C0 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:51]*** Cut start [16:55:51]*** Partial cut [16:55:51]*** CUTSNS_PIN = 1 [16:55:51]*** CUTSNS_PIN = 0 [16:55:52]*** Brake cut motor [16:55:52]Read from MH i2c: 01 [16:55:52]MH_I2C_Read... [16:55:52]*** Stop cut motor [16:55:52]*** Cut end [16:55:52]Read from MH i2c: 01 07 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 61 5F 00 00 00 00 00 FF 0F D5 [16:55:52]process_action close_receipt done [16:55:52]requested_data is exist [16:55:52]produce_requested_data [16:55:52]requested_item fm.sn is exist - process it [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 11 00 00 [16:55:52]Write to MH i2c: E2 08 00 62 5F 80 11 00 00 00 00 00 00 3B [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 62 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [16:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:55:52]wFMCommunicate OK [16:55:52]requested_item fd.num is exist - process it [16:55:52]SAM_PROTO_GetFieldsCounters [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 13 00 00 [16:55:52]Write to MH i2c: E2 08 00 63 5F 80 13 00 00 00 00 00 00 3E [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 62 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 62 00 63 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E3 02 00 0E 04 04 00 CF 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 F0 [16:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E3 02 00 0E 04 04 00 CF 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 [16:55:52]wFMCommunicate OK [16:55:52]SAM_PROTO_GetFieldsCounters done [16:55:52]requested_item shift.num is exist - process it [16:55:52]requested_item shift.opened is exist - process it [16:55:52]req_shift_opened [16:55:52]FM_GetShiftState [16:55:52]SAM_PROTO_GetShiftState [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 13 01 00 [16:55:52]Write to MH i2c: E2 08 00 64 5F 80 13 01 00 00 00 00 00 40 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0E 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0E 00 64 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1E [16:55:52]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:55:52]wFMCommunicate OK [16:55:52]SAM_PROTO_GetShiftState done [16:55:52]FM_GetShiftState done [16:55:52]req_shift_opened done [16:55:52]requested_item shift.open_date is exist - process it [16:55:52]req_shift_open_date [16:55:52]req_shift_open_date done [16:55:52]produce_requested_data done [16:55:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189244,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:55:52]process_action_free close_receipt [16:55:52]json_value_free [16:55:52]json_value_free done [16:55:52]process_json_proto returns [16:55:52]Send response to host [16:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189244,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:55:52]free response buf [16:55:52]execute_script done [16:55:52]execute_script returns [16:55:52]free content buf [16:55:52]Sock 9.Close socket [16:55:52]Sock 9.Thread stoped [16:55:55]ConnectInit Can't take IP for lk.salyk.kg [16:55:55]CommunicateWithHost connect error [16:55:55]CommunicateWithHost err = -1 [16:55:55]OFD Sender: Server communicate error [16:56:00]OFD Sender: Processing packet 189244 [packets to send 1062, broken 1061] [16:56:00]ProducePacketName [16:56:00]name=ofd_packets/00189244 [16:56:00]OFD Sender: To server: pG, [16:56:00]CommunicateWithHost lk.salyk.kg:30040 [16:56:00]ConnectInit lk.salyk.kg [16:56:05]ConnectInit Can't take IP for lk.salyk.kg [16:56:05]CommunicateWithHost connect error [16:56:05]CommunicateWithHost err = -1 [16:56:05]OFD Sender: Server communicate error [16:56:10]OFD Sender: Processing packet 189244 [packets to send 1062, broken 1061] [16:56:10]ProducePacketName [16:56:10]name=ofd_packets/00189244 [16:56:10]OFD Sender: To server: pG, [16:56:10]CommunicateWithHost lk.salyk.kg:30040 [16:56:10]ConnectInit lk.salyk.kg [16:56:15]ConnectInit Can't take IP for lk.salyk.kg [16:56:15]CommunicateWithHost connect error [16:56:15]CommunicateWithHost err = -1 [16:56:15]OFD Sender: Server communicate error [16:56:20]OFD Sender: Processing packet 189244 [packets to send 1062, broken 1061] [16:56:20]ProducePacketName [16:56:20]name=ofd_packets/00189244 [16:56:20]OFD Sender: To server: pG, [16:56:20]CommunicateWithHost lk.salyk.kg:30040 [16:56:20]ConnectInit lk.salyk.kg [16:56:20]Connected sock=8 [16:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 6D 07 01 D5 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 33 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 3D 01 00 00 F4 03 04 00 18 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E3 02 00 35 04 06 00 56 56 CB E6 02 BA DF 72 DA 7F 05 8B 40 DF [16:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 2E 47 00 B6 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 39 36 35 33 34 30 10 04 04 00 3C E3 02 00 F4 03 04 00 1E 26 1A 67 B6 04 01 00 00 97 E1 26 5E 7D 3B 09 2B [16:56:21]CommunicateWithHost err = 0 [16:56:21]CheckOFDResponse [16:56:21]1017 (14) - 77093643461234 [16:56:21]1041 (16) - 0000000000965340 [16:56:21]1040 (4) - 189244 [16:56:21]1012 (4) - 24.10.2024 10:49 [16:56:21]1206 (1) - 0 [16:56:21]OFD Sender: Remove packet 189244 [16:56:21]ProducePacketName [16:56:21]name=ofd_packets/00189244 [16:56:21]NVStorageDeleteData [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:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:48]accept exits with 10 [16:57:48]New connection [16:57:48]New thread 3067215204 created [16:57:48]Thread 3067071844 joined [16:57:48]Waiting for new connection... [16:57:48] Sock 10.Parse request [16:57:48]Sock 10.Check first char [16:57:48]Sock 10.First char is OK [16:57:48]request: POST /json_proto HTTP/1.0 [16:57:48]Method: POST [16:57:48]URL: /json_proto [16:57:48]Method is POST - this is cgi request [16:57:48]url: /json_proto [16:57:48]query_string will be loaded in cgi processing [16:57:48]execute_cgi json_proto POST (null) [16:57:48]execute_cgi path=json_proto method=POST [16:57:48]POST find Content-Length [16:57:48]Host: 172.17.42.131:8080 [16:57:48]Content-Length: 677 [16:57:48]Content-Type: application/json [16:57:48] [16:57:48]POST finish read [16:57:48]Found Content-Length = 677 [16:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:57:48]execute_script... [16:57: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)211310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:57:48]POST & json_proto [16:57:48]process_json_proto [16:57:48]json parsed OK: [16:57:48]protocol is kg_v1.0 [16:57:48]action value=close_receipt [16:57:48]process_action close_receipt [16:57:48]cmd_close_receipt [16:57:48]MH_GetDate [16:57:48]Write to MH i2c: F0 00 00 65 5F B3 [16:57:48]Write i2c OK [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: F0 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: F0 09 00 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: F0 09 00 65 5F 00 90 7C 1A 67 A0 18 CA 66 31 [16:57:48]GetLastDocTimeStamp 1729788952 [16:57:48]current date 1729789072 [16:57:48]FM_GetShiftState [16:57:48]SAM_PROTO_GetShiftState [16:57:48]wFMCommunicate request_size=4 [16:57:48]MH_SAM_APDU [16:57:48]CAPDU: 80 13 01 00 [16:57:48]Write to MH i2c: E2 08 00 66 5F 80 13 01 00 00 00 00 00 42 [16:57:48]Write i2c OK [16:57:48]MH_I2C_Read... [16:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:48]Read from MH i2c: E2 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: E2 0E 00 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: E2 0E 00 66 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 20 [16:57:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:57:48]wFMCommunicate OK [16:57:48]SAM_PROTO_GetShiftState done [16:57:48]FM_GetShiftState done [16:57:48]opened in 1729728961 [16:57:48]opened+sec_in_day 1729815361 [16:57:48]quantity*price = 40006 [16:57:48]sum+1 = 40007 [16:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 318 24.10.2024 16:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189245 ФПД: 260478051539340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189245&fm=260478051539340&tin=02508201610067®Number=0000000000100030&sum=40000 [16:57:49]StoreToDocumentArchive [16:57:49]shift 463 fd 189245 [16:57:49]save to /storage/0463/doc_00189245 [16:57:49]save last doc name /storage/0463/doc_00189245 to /storage/kkm_last_doc_name [16:57:49]save OK [16:57:49]Clear old archive folders... [16:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:49]tlvbuf is 01578090 [16:57:49]SAM_PROTO_ClearQueue [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 09 00 00 [16:57:49]Write to MH i2c: E2 08 00 73 5F 80 09 00 00 00 00 00 00 44 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 73 5F 00 90 00 46 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]SAM_PROTO_ClearQueue done [16:57:49]KKMCreateOFDPacket [16:57:49]OFDProtocolAddRootSTLVToBuf [16:57:49]FM_MakeSignedData [16:57:49]FM_MakeSignedData [16:57:49]SAM_PROTO_SignData [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 0D 01 02 [16:57:49]Write to MH i2c: E2 08 00 74 5F 80 0D 01 02 00 00 00 00 4C [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 74 5F 00 90 00 47 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]wFMCommunicate request_size=255 [16:57:49]MH_SAM_APDU [16:57: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 3E 01 00 00 F4 03 04 00 90 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E3 02 00 35 04 06 00 EC [16:57:49]Write to MH i2c: E2 02 01 75 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 3E 01 00 00 F4 03 04 00 90 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E3 02 00 35 04 06 00 EC 00 00 38 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 75 5F 00 90 00 48 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]wFMCommunicate request_size=10 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 0D 02 02 05 E7 45 BB D9 8C [16:57:49]Write to MH i2c: E2 0D 00 76 5F 80 0D 02 02 05 00 E7 45 BB D9 8C 00 00 A5 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 03 00 76 5F 00 90 00 49 [16:57:49]RAPDU: 90 00 [16:57:49]wFMCommunicate OK [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 0D 03 02 [16:57:49]Write to MH i2c: E2 08 00 77 5F 80 0D 03 02 00 00 00 00 51 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0B 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0B 00 77 5F 00 22 32 1B E5 50 79 6E 11 90 00 EE [16:57:49]RAPDU: 22 32 1B E5 50 79 6E 11 90 00 [16:57:49]wFMCommunicate OK [16:57:49]SAM_PROTO_SignData done [16:57:49]FM_MakeSignedData done [16:57:49]CreateOFDProtocolMessage [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 11 00 00 [16:57:49]Write to MH i2c: E2 08 00 78 5F 80 11 00 00 00 00 00 00 51 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 17 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 17 00 78 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [16:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:49]wFMCommunicate OK [16:57:49]CreateOFDProtocolMessage done [16:57:49]OFDSenderStorePacket 189245 [16:57:49]StoreOFDPacket docnum=189245 [16:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 4C 07 01 7C 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 3E 01 00 00 F4 03 04 00 90 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E3 02 00 35 04 06 00 EC E7 45 BB D9 8C 22 32 1B E5 50 79 6E 11 [16:57:49]CheckFolder [16:57:49]dirname=/storage/ofd_packets [16:57:49]CheckFolder done [16:57:49]ProducePacketName [16:57:49]name=ofd_packets/00189245 [16:57:49]NVStorageSaveData ofd_packets/00189245 [16:57:49]File name is /storage/ofd_packets/00189245 [16:57:49]Write 301 bytes [16:57:49]NVStorageSaveData done [16:57:49]OFDSenderStorePacket done [16:57:49]KKMCreateOFDPacket done [16:57:49]NVStorageSaveData kkm_last_timestamp [16:57:49]File name is /storage/kkm_last_timestamp [16:57:49]Write 4 bytes [16:57:49]NVStorageSaveData done [16:57:49]ExternCall_PrintAddStr [16:57:49]wPrintStart [16:57:49]Write to MH i2c: 01 00 00 79 5F D8 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: 01 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: 01 07 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: 01 07 00 79 5F 00 00 00 00 00 FF 0F ED [16:57:49]RasterBufferAndPrint [16:57:49]line Счет N : (1)211310 [16:57:49]line ИНН: 02508201610067 [16:57:49]line Контрольно-Кассовый Чек [16:57:49]line ПРОДАЖА [16:57:49]line ТРК (МРК, ГНК) : 12 [16:57:49]line Товар: 2710124130 [16:57:49]line Аи-92-К-3 [16:57:49]line 5.980 * 66.90 [16:57:49]line = 400.06 [16:57:49]line НДС 12% НСП 1% [16:57:49]line > о реализуемом товаре [16:57:49]line ОКРУГЛЕНИЕ: -0.06 [16:57:49]line ИТОГО: 400.00 [16:57:49]line Внесено: 400.00 [16:57:49]line СДАЧА: 0.00 [16:57:49]line НСП 1% : 3.54 [16:57:49]line НДС 12% : 42.48 [16:57:49]line Наличными: 400.00 [16:57:49]line Безнал.: 0.00 [16:57:49]line Место: АЗС № 86 "Партнер Нефть" [16:57:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:57:49]line СНО: Общий режим [16:57:49]line Чек 318 24.10.2024 16:57 [16:57:49]line Смена: 463 ФФД: 1.0 [16:57:49]line ЗНМ: 0300000155 [16:57:49]line РНМ: 0000000000100030 [16:57:49]line Версия ККМ: 001 [16:57:49]line ФМ: 0000000000965340 [16:57:49]line ФД: 189245 [16:57:49]line ФПД: 260478051539340 [16:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189245&fm=260478051539340&tin=02508201610067®Number=0000000000100030&sum=40000 [16:57:49]OFD Sender: Processing packet 189245 [packets to send 1062, broken 1061] [16:57:49]ProducePacketName [16:57:49]name=ofd_packets/00189245 [16:57:49]OFD Sender: To server: pG, [16:57:49]CommunicateWithHost lk.salyk.kg:30040 [16:57:49]ConnectInit lk.salyk.kg [16:57:49]written 0, free lines is 4095 [16:57:50]Connected sock=9 [16:57:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 4C 07 01 7C 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 3E 01 00 00 F4 03 04 00 90 7C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E3 02 00 35 04 06 00 EC E7 45 BB D9 8C 22 32 1B E5 50 79 6E 11 [16:57:50]Write to MH i2c: 01 00 00 A4 5F 03 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 07 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 07 00 A4 5F 00 00 00 00 00 5E 0C 74 [16:57:50]RasterBufferAndPrint [16:57:50]line [16:57:50]line [16:57:50]line [16:57:50]line [16:57:50]line [16:57:50]written 0, free lines is 3168 [16:57:50]MH_Cut [16:57:50]Write to MH i2c: D1 01 00 AB 5F 01 DC [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: D1 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: D1 01 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: D1 01 00 AB 5F 00 DB [16:57:50]Write to MH i2c: 01 00 00 AC 5F 0B [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 63 47 00 44 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 39 36 35 33 34 30 10 04 04 00 3D E3 02 00 F4 03 04 00 77 26 1A 67 B6 04 01 00 00 F6 95 F6 A9 5E 93 B2 3A [16:57:50]CommunicateWithHost err = 0 [16:57:50]CheckOFDResponse [16:57:50]1017 (14) - 77093643461234 [16:57:50]1041 (16) - 0000000000965340 [16:57:50]1040 (4) - 189245 [16:57:50]1012 (4) - 24.10.2024 10:50 [16:57:50]1206 (1) - 0 [16:57:50]OFD Sender: Remove packet 189245 [16:57:50]ProducePacketName [16:57:50]name=ofd_packets/00189245 [16:57:50]NVStorageDeleteData [16:57:51]OFD Sender: No OFD packet to send [16:57:51]*** Cut start [16:57:51]*** Partial cut [16:57:51]*** CUTSNS_PIN = 1 [16:57:51]*** CUTSNS_PIN = 0 [16:57:51]*** Brake cut motor [16:57:52]Read from MH i2c: 01 [16:57:52]MH_I2C_Read... [16:57:52]*** Stop cut motor [16:57:52]*** Cut end [16:57:52]Read from MH i2c: 01 07 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 AC 5F 00 00 00 00 00 FF 0F 20 [16:57:52]process_action close_receipt done [16:57:52]requested_data is exist [16:57:52]produce_requested_data [16:57:52]requested_item fm.sn is exist - process it [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 11 00 00 [16:57:52]Write to MH i2c: E2 08 00 AD 5F 80 11 00 00 00 00 00 00 86 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:52]Read from MH i2c: E2 17 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 17 00 AD 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [16:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:52]wFMCommunicate OK [16:57:52]requested_item fd.num is exist - process it [16:57:52]SAM_PROTO_GetFieldsCounters [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 13 00 00 [16:57:52]Write to MH i2c: E2 08 00 AE 5F 80 13 00 00 00 00 00 00 89 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 62 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 62 00 AE 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E3 02 00 0E 04 04 00 CF 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 3F [16:57:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E3 02 00 0E 04 04 00 CF 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 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_GetFieldsCounters done [16:57:52]requested_item shift.num is exist - process it [16:57:52]requested_item shift.opened is exist - process it [16:57:52]req_shift_opened [16:57:52]FM_GetShiftState [16:57:52]SAM_PROTO_GetShiftState [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 13 01 00 [16:57:52]Write to MH i2c: E2 08 00 AF 5F 80 13 01 00 00 00 00 00 8B [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 AF 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 69 [16:57:52]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_GetShiftState done [16:57:52]FM_GetShiftState done [16:57:52]req_shift_opened done [16:57:52]requested_item shift.open_date is exist - process it [16:57:52]req_shift_open_date [16:57:52]req_shift_open_date done [16:57:52]produce_requested_data done [16:57:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189245,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:57:52]process_action_free close_receipt [16:57:52]json_value_free [16:57:52]json_value_free done [16:57:52]process_json_proto returns [16:57:52]Send response to host [16:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189245,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:57:52]free response buf [16:57:52]execute_script done [16:57:52]execute_script returns [16:57:52]free content buf [16:57:52]Sock 10.Close socket [16:57:52]Sock 10.Thread stoped [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:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 B9 5F 00 90 00 8C [16:59:41]RAPDU: 90 00 [16:59:41]wFMCommunicate OK [16:59:41]wFMCommunicate request_size=13 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 15 02 00 08 F4 03 04 00 01 7D 1A 67 [16:59:41]Write to MH i2c: E2 10 00 BA 5F 80 15 02 00 08 00 F4 03 04 00 01 7D 1A 67 00 00 A3 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 BA 5F 00 90 00 8D [16:59:41]RAPDU: 90 00 [16:59:41]wFMCommunicate OK [16:59:41]wFMCommunicate request_size=25 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [16:59:41]Write to MH i2c: E2 1C 00 BB 5F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 E7 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 BB 5F 00 90 00 8E [16:59:41]RAPDU: 90 00 [16:59:41]wFMCommunicate OK [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 15 03 00 [16:59:41]Write to MH i2c: E2 08 00 BC 5F 80 15 03 00 00 00 00 00 9C [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]OFD Sender: No OFD packet to send [16:59:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 40 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 40 00 BC 5F 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 3F 01 00 00 35 04 06 00 2D 45 60 E8 26 C6 90 00 66 [16:59:41]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 3F 01 00 00 35 04 06 00 2D 45 60 E8 26 C6 90 00 [16:59:41]wFMCommunicate OK [16:59:41]SAM_PROTO_ProcessDocument answer len = 59 [16:59:41]SAM_PROTO_ProcessDocument done [16:59:41]SetTLVBufToDocument [16:59:41]Processing tag 1209 (04B9) [16:59:41]Malloc new data [16:59:41]Processing tag 1041 (0411) [16:59:41]Processing tag 1040 (0410) [16:59:41]Malloc new data [16:59:41]Processing tag 1038 (040E) [16:59:41]Malloc new data [16:59:41]Processing tag 1042 (0412) [16:59:41]Malloc new data [16:59:41]Processing tag 1077 (0435) [16:59:41]Malloc new data [16:59:41]SetTLVBufToDocument err=0 [16:59:41]KKMLoadAndSignReceiptData store KKM data [16:59:41]KKMLoadAndSignReceiptData err=0 [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 11 00 00 [16:59:41]Write to MH i2c: E2 08 00 BD 5F 80 11 00 00 00 00 00 00 96 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 17 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 17 00 BD 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [16:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:41]wFMCommunicate OK [16:59:41]Счет N : (1)211311 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 42 Товар: 2710124130 Аи-92-К-3 22.430 * 66.90 = 1500.57 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 319 24.10.2024 16:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189246 ФПД: 49776001820358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189246&fm=49776001820358&tin=02508201610067®Number=0000000000100030&sum=150000 [16:59:41]StoreToDocumentArchive [16:59:41]shift 463 fd 189246 [16:59:41]save to /storage/0463/doc_00189246 [16:59:41]save last doc name /storage/0463/doc_00189246 to /storage/kkm_last_doc_name [16:59:41]save OK [16:59:41]Clear old archive folders... [16:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:41]tlvbuf is B6F1A830 [16:59:41]SAM_PROTO_ClearQueue [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 09 00 00 [16:59:41]Write to MH i2c: E2 08 00 BE 5F 80 09 00 00 00 00 00 00 8F [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 BE 5F 00 90 00 91 [16:59:41]RAPDU: 90 00 [16:59:41]wFMCommunicate OK [16:59:41]SAM_PROTO_ClearQueue done [16:59:41]KKMCreateOFDPacket [16:59:41]OFDProtocolAddRootSTLVToBuf [16:59:41]FM_MakeSignedData [16:59:41]FM_MakeSignedData [16:59:41]SAM_PROTO_SignData [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 0D 01 02 [16:59:41]Write to MH i2c: E2 08 00 BF 5F 80 0D 01 02 00 00 00 00 97 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 03 00 BF 5F 00 90 00 92 [16:59:41]RAPDU: 90 00 [16:59:41]wFMCommunicate OK [16:59:41]wFMCommunicate request_size=255 [16:59:41]MH_SAM_APDU [16:59: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 01 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 35 04 06 00 2D [16:59:41]Write to MH i2c: E2 02 01 C0 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 01 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 35 04 06 00 2D 00 00 B2 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 C0 5F 00 90 00 93 [16:59:42]RAPDU: 90 00 [16:59:42]wFMCommunicate OK [16:59:42]wFMCommunicate request_size=10 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 0D 02 02 05 45 60 E8 26 C6 [16:59:42]Write to MH i2c: E2 0D 00 C1 5F 80 0D 02 02 05 00 45 60 E8 26 C6 00 00 1D [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 C1 5F 00 90 00 94 [16:59:42]RAPDU: 90 00 [16:59:42]wFMCommunicate OK [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 0D 03 02 [16:59:42]Write to MH i2c: E2 08 00 C2 5F 80 0D 03 02 00 00 00 00 9C [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0B 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 0B 00 C2 5F 00 B0 1C 76 28 80 CC C1 F8 90 00 0C [16:59:42]RAPDU: B0 1C 76 28 80 CC C1 F8 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_SignData done [16:59:42]FM_MakeSignedData done [16:59:42]CreateOFDProtocolMessage [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 11 00 00 [16:59:42]Write to MH i2c: E2 08 00 C3 5F 80 11 00 00 00 00 00 00 9C [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 17 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 17 00 C3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [16:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:42]wFMCommunicate OK [16:59:42]CreateOFDProtocolMessage done [16:59:42]OFDSenderStorePacket 189246 [16:59:42]StoreOFDPacket docnum=189246 [16:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 04 07 01 51 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 01 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 35 04 06 00 2D 45 60 E8 26 C6 B0 1C 76 28 80 CC C1 F8 [16:59:42]CheckFolder [16:59:42]dirname=/storage/ofd_packets [16:59:42]CheckFolder done [16:59:42]ProducePacketName [16:59:42]name=ofd_packets/00189246 [16:59:42]NVStorageSaveData ofd_packets/00189246 [16:59:42]File name is /storage/ofd_packets/00189246 [16:59:42]Write 301 bytes [16:59:42]NVStorageSaveData done [16:59:42]OFDSenderStorePacket done [16:59:42]KKMCreateOFDPacket done [16:59:42]NVStorageSaveData kkm_last_timestamp [16:59:42]File name is /storage/kkm_last_timestamp [16:59:42]Write 4 bytes [16:59:42]NVStorageSaveData done [16:59:42]ExternCall_PrintAddStr [16:59:42]wPrintStart [16:59:42]Write to MH i2c: 01 00 00 C4 5F 23 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 07 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 07 00 C4 5F 00 00 00 00 00 FF 0F 38 [16:59:42]RasterBufferAndPrint [16:59:42]line Счет N : (1)211311 [16:59:42]line ИНН: 02508201610067 [16:59:42]line Контрольно-Кассовый Чек [16:59:42]line ПРОДАЖА [16:59:42]line ТРК (МРК, ГНК) : 42 [16:59:42]line Товар: 2710124130 [16:59:42]line Аи-92-К-3 [16:59:42]line 22.430 * 66.90 [16:59:42]line = 1500.57 [16:59:42]line НДС 12% НСП 1% [16:59:42]line > о реализуемом товаре [16:59:42]line ОКРУГЛЕНИЕ: -0.57 [16:59:42]line ИТОГО: 1500.00 [16:59:42]line Внесено: 1500.00 [16:59:42]line СДАЧА: 0.00 [16:59:42]line НСП 1% : 13.28 [16:59:42]line НДС 12% : 159.35 [16:59:42]line Наличными: 1500.00 [16:59:42]line Безнал.: 0.00 [16:59:42]line Место: АЗС № 86 "Партнер Нефть" [16:59:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:59:42]line СНО: Общий режим [16:59:42]line Чек 319 24.10.2024 16:59 [16:59:42]line Смена: 463 ФФД: 1.0 [16:59:42]line ЗНМ: 0300000155 [16:59:42]line РНМ: 0000000000100030 [16:59:42]line Версия ККМ: 001 [16:59:42]line ФМ: 0000000000965340 [16:59:42]line ФД: 189246 [16:59:42]line ФПД: 49776001820358 [16:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189246&fm=49776001820358&tin=02508201610067®Number=0000000000100030&sum=150000 [16:59:42]written 0, free lines is 4095 [16:59:42]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [16:59:42]ProducePacketName [16:59:42]name=ofd_packets/00189246 [16:59:42]OFD Sender: To server: pG, [16:59:42]CommunicateWithHost lk.salyk.kg:30040 [16:59:42]ConnectInit lk.salyk.kg [16:59:42]Write to MH i2c: 01 00 00 EF 5F 4E [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 07 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: 01 07 00 EF 5F 00 00 00 00 00 58 0C B9 [16:59:42]RasterBufferAndPrint [16:59:42]line [16:59:42]line [16:59:42]line [16:59:42]line [16:59:42]line [16:59:42]written 0, free lines is 3164 [16:59:42]MH_Cut [16:59:42]Write to MH i2c: D1 01 00 F6 5F 01 27 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: D1 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: D1 01 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: D1 01 00 F6 5F 00 26 [16:59:42]Write to MH i2c: 01 00 00 F7 5F 56 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:44]*** Cut start [16:59:44]*** Partial cut [16:59:44]*** CUTSNS_PIN = 1 [16:59:44]*** CUTSNS_PIN = 0 [16:59:44]*** Brake cut motor [16:59:44]Read from MH i2c: 01 [16:59:44]MH_I2C_Read... [16:59:44]*** Stop cut motor [16:59:44]*** Cut end [16:59:44]Read from MH i2c: 01 07 00 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: 01 07 00 F7 5F 00 00 00 00 00 FF 0F 6B [16:59:44]process_action close_receipt done [16:59:44]requested_data is exist [16:59:44]produce_requested_data [16:59:44]requested_item fm.sn is exist - process it [16:59:44]wFMCommunicate request_size=4 [16:59:44]MH_SAM_APDU [16:59:44]CAPDU: 80 11 00 00 [16:59:44]Write to MH i2c: E2 08 00 F8 5F 80 11 00 00 00 00 00 00 D1 [16:59:44]Write i2c OK [16:59:44]MH_I2C_Read... [16:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:44]Read from MH i2c: E2 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 17 00 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 17 00 F8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [16:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:44]wFMCommunicate OK [16:59:44]requested_item fd.num is exist - process it [16:59:44]SAM_PROTO_GetFieldsCounters [16:59:44]wFMCommunicate request_size=4 [16:59:44]MH_SAM_APDU [16:59:44]CAPDU: 80 13 00 00 [16:59:44]Write to MH i2c: E2 08 00 F9 5F 80 13 00 00 00 00 00 00 D4 [16:59:44]Write i2c OK [16:59:44]MH_I2C_Read... [16:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:44]Read from MH i2c: E2 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 62 00 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 62 00 F9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E3 02 00 0E 04 04 00 CF 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 8E [16:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E3 02 00 0E 04 04 00 CF 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 [16:59:44]wFMCommunicate OK [16:59:44]SAM_PROTO_GetFieldsCounters done [16:59:44]requested_item shift.num is exist - process it [16:59:45]requested_item shift.opened is exist - process it [16:59:45]req_shift_opened [16:59:45]FM_GetShiftState [16:59:45]SAM_PROTO_GetShiftState [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 13 01 00 [16:59:45]Write to MH i2c: E2 08 00 FA 5F 80 13 01 00 00 00 00 00 D6 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 FA 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B4 [16:59:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_GetShiftState done [16:59:45]FM_GetShiftState done [16:59:45]req_shift_opened done [16:59:45]requested_item shift.open_date is exist - process it [16:59:45]req_shift_open_date [16:59:45]req_shift_open_date done [16:59:45]produce_requested_data done [16:59:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189246,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [16:59:45]process_action_free close_receipt [16:59:45]json_value_free [16:59:45]json_value_free done [16:59:45]process_json_proto returns [16:59:45]Send response to host [16:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189246,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [16:59:45]free response buf [16:59:45]execute_script done [16:59:45]execute_script returns [16:59:45]free content buf [16:59:45]Sock 8.Close socket [16:59:45]Sock 8.Thread stoped [16:59:47]ConnectInit Can't take IP for lk.salyk.kg [16:59:47]CommunicateWithHost connect error [16:59:47]CommunicateWithHost err = -1 [16:59:47]OFD Sender: Server communicate error [16:59:52]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [16:59:52]ProducePacketName [16:59:52]name=ofd_packets/00189246 [16:59:52]OFD Sender: To server: pG, [16:59:52]CommunicateWithHost lk.salyk.kg:30040 [16:59:52]ConnectInit lk.salyk.kg [16:59:57]ConnectInit Can't take IP for lk.salyk.kg [16:59:57]CommunicateWithHost connect error [16:59:57]CommunicateWithHost err = -1 [16:59:57]OFD Sender: Server communicate error [17:00:02]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:02]ProducePacketName [17:00:02]name=ofd_packets/00189246 [17:00:02]OFD Sender: To server: pG, [17:00:02]CommunicateWithHost lk.salyk.kg:30040 [17:00:02]ConnectInit lk.salyk.kg [17:00:07]ConnectInit Can't take IP for lk.salyk.kg [17:00:07]CommunicateWithHost connect error [17:00:07]CommunicateWithHost err = -1 [17:00:07]OFD Sender: Server communicate error [17:00:12]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:12]ProducePacketName [17:00:12]name=ofd_packets/00189246 [17:00:12]OFD Sender: To server: pG, [17:00:12]CommunicateWithHost lk.salyk.kg:30040 [17:00:12]ConnectInit lk.salyk.kg [17:00:17]ConnectInit Can't take IP for lk.salyk.kg [17:00:17]CommunicateWithHost connect error [17:00:17]CommunicateWithHost err = -1 [17:00:17]OFD Sender: Server communicate error [17:00:22]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:22]ProducePacketName [17:00:22]name=ofd_packets/00189246 [17:00:22]OFD Sender: To server: pG, [17:00:22]CommunicateWithHost lk.salyk.kg:30040 [17:00:22]ConnectInit lk.salyk.kg [17:00:27]ConnectInit Can't take IP for lk.salyk.kg [17:00:27]CommunicateWithHost connect error [17:00:27]CommunicateWithHost err = -1 [17:00:27]OFD Sender: Server communicate error [17:00:32]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:32]ProducePacketName [17:00:32]name=ofd_packets/00189246 [17:00:32]OFD Sender: To server: pG, [17:00:32]CommunicateWithHost lk.salyk.kg:30040 [17:00:32]ConnectInit lk.salyk.kg [17:00:37]ConnectInit Can't take IP for lk.salyk.kg [17:00:37]CommunicateWithHost connect error [17:00:37]CommunicateWithHost err = -1 [17:00:37]OFD Sender: Server communicate error [17:00:42]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:42]ProducePacketName [17:00:42]name=ofd_packets/00189246 [17:00:42]OFD Sender: To server: pG, [17:00:42]CommunicateWithHost lk.salyk.kg:30040 [17:00:42]ConnectInit lk.salyk.kg [17:00:47]ConnectInit Can't take IP for lk.salyk.kg [17:00:47]CommunicateWithHost connect error [17:00:47]CommunicateWithHost err = -1 [17:00:47]OFD Sender: Server communicate error [17:00:52]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:00:52]ProducePacketName [17:00:52]name=ofd_packets/00189246 [17:00:52]OFD Sender: To server: pG, [17:00:52]CommunicateWithHost lk.salyk.kg:30040 [17:00:52]ConnectInit lk.salyk.kg [17:00:57]ConnectInit Can't take IP for lk.salyk.kg [17:00:57]CommunicateWithHost connect error [17:00:57]CommunicateWithHost err = -1 [17:00:57]OFD Sender: Server communicate error [17:01:02]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:02]ProducePacketName [17:01:02]name=ofd_packets/00189246 [17:01:02]OFD Sender: To server: pG, [17:01:02]CommunicateWithHost lk.salyk.kg:30040 [17:01:02]ConnectInit lk.salyk.kg [17:01:07]ConnectInit Can't take IP for lk.salyk.kg [17:01:07]CommunicateWithHost connect error [17:01:07]CommunicateWithHost err = -1 [17:01:07]OFD Sender: Server communicate error [17:01:12]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00189246 [17:01:12]OFD Sender: To server: pG, [17:01:12]CommunicateWithHost lk.salyk.kg:30040 [17:01:12]ConnectInit lk.salyk.kg [17:01:17]ConnectInit Can't take IP for lk.salyk.kg [17:01:17]CommunicateWithHost connect error [17:01:17]CommunicateWithHost err = -1 [17:01:17]OFD Sender: Server communicate error [17:01:22]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:22]ProducePacketName [17:01:22]name=ofd_packets/00189246 [17:01:22]OFD Sender: To server: pG, [17:01:22]CommunicateWithHost lk.salyk.kg:30040 [17:01:22]ConnectInit lk.salyk.kg [17:01:26]ConnectInit Can't connect to host [17:01:27]ConnectInit Can't take IP for lk.salyk.kg [17:01:27]CommunicateWithHost connect error [17:01:27]CommunicateWithHost err = -1 [17:01:27]OFD Sender: Server communicate error [17:01:32]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00189246 [17:01:32]OFD Sender: To server: pG, [17:01:32]CommunicateWithHost lk.salyk.kg:30040 [17:01:32]ConnectInit lk.salyk.kg [17:01:38]ConnectInit Can't take IP for lk.salyk.kg [17:01:38]CommunicateWithHost connect error [17:01:38]CommunicateWithHost err = -1 [17:01:38]OFD Sender: Server communicate error [17:01:43]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:43]ProducePacketName [17:01:43]name=ofd_packets/00189246 [17:01:43]OFD Sender: To server: pG, [17:01:43]CommunicateWithHost lk.salyk.kg:30040 [17:01:43]ConnectInit lk.salyk.kg [17:01:48]ConnectInit Can't take IP for lk.salyk.kg [17:01:48]CommunicateWithHost connect error [17:01:48]CommunicateWithHost err = -1 [17:01:48]OFD Sender: Server communicate error [17:01:53]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:01:53]ProducePacketName [17:01:53]name=ofd_packets/00189246 [17:01:53]OFD Sender: To server: pG, [17:01:53]CommunicateWithHost lk.salyk.kg:30040 [17:01:53]ConnectInit lk.salyk.kg [17:01:58]ConnectInit Can't take IP for lk.salyk.kg [17:01:58]CommunicateWithHost connect error [17:01:58]CommunicateWithHost err = -1 [17:01:58]OFD Sender: Server communicate error [17:02:03]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:03]ProducePacketName [17:02:03]name=ofd_packets/00189246 [17:02:03]OFD Sender: To server: pG, [17:02:03]CommunicateWithHost lk.salyk.kg:30040 [17:02:03]ConnectInit lk.salyk.kg [17:02:08]ConnectInit Can't take IP for lk.salyk.kg [17:02:08]CommunicateWithHost connect error [17:02:08]CommunicateWithHost err = -1 [17:02:08]OFD Sender: Server communicate error [17:02:13]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00189246 [17:02:13]OFD Sender: To server: pG, [17:02:13]CommunicateWithHost lk.salyk.kg:30040 [17:02:13]ConnectInit lk.salyk.kg [17:02:18]ConnectInit Can't take IP for lk.salyk.kg [17:02:18]CommunicateWithHost connect error [17:02:18]CommunicateWithHost err = -1 [17:02:18]OFD Sender: Server communicate error [17:02:23]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:23]ProducePacketName [17:02:23]name=ofd_packets/00189246 [17:02:23]OFD Sender: To server: pG, [17:02:23]CommunicateWithHost lk.salyk.kg:30040 [17:02:23]ConnectInit lk.salyk.kg [17:02:28]ConnectInit Can't take IP for lk.salyk.kg [17:02:28]CommunicateWithHost connect error [17:02:28]CommunicateWithHost err = -1 [17:02:28]OFD Sender: Server communicate error [17:02:33]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:33]ProducePacketName [17:02:33]name=ofd_packets/00189246 [17:02:33]OFD Sender: To server: pG, [17:02:33]CommunicateWithHost lk.salyk.kg:30040 [17:02:33]ConnectInit lk.salyk.kg [17:02:38]ConnectInit Can't take IP for lk.salyk.kg [17:02:38]CommunicateWithHost connect error [17:02:38]CommunicateWithHost err = -1 [17:02:38]OFD Sender: Server communicate error [17:02:43]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:43]ProducePacketName [17:02:43]name=ofd_packets/00189246 [17:02:43]OFD Sender: To server: pG, [17:02:43]CommunicateWithHost lk.salyk.kg:30040 [17:02:43]ConnectInit lk.salyk.kg [17:02:48]ConnectInit Can't take IP for lk.salyk.kg [17:02:48]CommunicateWithHost connect error [17:02:48]CommunicateWithHost err = -1 [17:02:48]OFD Sender: Server communicate error [17:02:53]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:02:53]ProducePacketName [17:02:53]name=ofd_packets/00189246 [17:02:53]OFD Sender: To server: pG, [17:02:53]CommunicateWithHost lk.salyk.kg:30040 [17:02:53]ConnectInit lk.salyk.kg [17:02:58]ConnectInit Can't take IP for lk.salyk.kg [17:02:58]CommunicateWithHost connect error [17:02:58]CommunicateWithHost err = -1 [17:02:58]OFD Sender: Server communicate error [17:03:03]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00189246 [17:03:03]OFD Sender: To server: pG, [17:03:03]CommunicateWithHost lk.salyk.kg:30040 [17:03:03]ConnectInit lk.salyk.kg [17:03:08]ConnectInit Can't take IP for lk.salyk.kg [17:03:08]CommunicateWithHost connect error [17:03:08]CommunicateWithHost err = -1 [17:03:08]OFD Sender: Server communicate error [17:03:13]OFD Sender: Processing packet 189246 [packets to send 1062, broken 1061] [17:03:13]ProducePacketName [17:03:13]name=ofd_packets/00189246 [17:03:13]OFD Sender: To server: pG, [17:03:13]CommunicateWithHost lk.salyk.kg:30040 [17:03:13]ConnectInit lk.salyk.kg [17:03:16]accept exits with 10 [17:03:16]New connection [17:03:16]New thread 3067215204 created [17:03:16]Thread 3067071844 joined [17:03:16]Waiting for new connection... [17:03:16] Sock 10.Parse request [17:03:16]Sock 10.Check first char [17:03:16]Sock 10.First char is OK [17:03:16]request: POST /json_proto HTTP/1.0 [17:03:16]Method: POST [17:03:16]URL: /json_proto [17:03:16]Method is POST - this is cgi request [17:03:16]url: /json_proto [17:03:16]query_string will be loaded in cgi processing [17:03:16]execute_cgi json_proto POST (null) [17:03:16]execute_cgi path=json_proto method=POST [17:03:16]POST find Content-Length [17:03:16]Host: 172.17.42.131:8080 [17:03:16]Content-Length: 688 [17:03:16]Content-Type: application/json [17:03:16] [17:03:16]POST finish read [17:03:16]Found Content-Length = 688 [17:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:03:16]execute_script... [17:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:03:16]POST & json_proto [17:03:16]process_json_proto [17:03:16]json parsed OK: [17:03:16]protocol is kg_v1.0 [17:03:16]action value=close_receipt [17:03:16]process_action close_receipt [17:03:16]cmd_close_receipt [17:03:16]MH_GetDate [17:03:16]Write to MH i2c: F0 00 00 FB 5F 49 [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 FB 5F 00 D9 7D 1A 67 A0 18 CA 66 11 [17:03:16]GetLastDocTimeStamp 1729789185 [17:03:16]current date 1729789401 [17:03:16]FM_GetShiftState [17:03:16]SAM_PROTO_GetShiftState [17:03:16]wFMCommunicate request_size=4 [17:03:16]MH_SAM_APDU [17:03:16]CAPDU: 80 13 01 00 [17:03:16]Write to MH i2c: E2 08 00 FC 5F 80 13 01 00 00 00 00 00 D8 [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:16]0E 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 0E 00 FC 5F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B6 [17:03:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:03:16]wFMCommunicate OK [17:03:16]SAM_PROTO_GetShiftState done [17:03:16]FM_GetShiftState done [17:03:16]opened in 1729728961 [17:03:16]opened+sec_in_day 1729815361 [17:03:16]quantity*price = 150076 [17:03:16]sum+1 = 150078 [17:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 320 24.10.2024 17:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189247 ФПД: 169111683704105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189247&fm=169111683704105&tin=02508201610067®Number=0000000000100030&sum=150000 [17:03:18]StoreToDocumentArchive [17:03:18]shift 463 fd 189247 [17:03:18]save to /storage/0463/doc_00189247 [17:03:18]save last doc name /storage/0463/doc_00189247 to /storage/kkm_last_doc_name [17:03:18]save OK [17:03:18]Clear old archive folders... [17:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:03:18]tlvbuf is 016CF980 [17:03:18]SAM_PROTO_ClearQueue [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 09 00 00 [17:03:18]Write to MH i2c: E2 08 00 09 60 80 09 00 00 00 00 00 00 DB [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 09 60 00 90 00 DD [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]SAM_PROTO_ClearQueue done [17:03:18]KKMCreateOFDPacket [17:03:18]OFDProtocolAddRootSTLVToBuf [17:03:18]FM_MakeSignedData [17:03:18]FM_MakeSignedData [17:03:18]SAM_PROTO_SignData [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 01 02 [17:03:18]Write to MH i2c: E2 08 00 0A 60 80 0D 01 02 00 00 00 00 E3 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 0A 60 00 90 00 DE [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]wFMCommunicate request_size=255 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 40 01 00 00 F4 03 04 00 D9 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E3 02 [17:03:18]Write to MH i2c: E2 02 01 0B 60 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 40 01 00 00 F4 03 04 00 D9 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E3 02 00 00 9E [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]ConnectInit Can't take IP for lk.salyk.kg [17:03:18]CommunicateWithHost connect error [17:03:18]CommunicateWithHost err = -1 [17:03:18]OFD Sender: Server communicate error [17:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 0B 60 00 90 00 DF [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]wFMCommunicate request_size=16 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 99 CE 61 D5 A5 29 [17:03:18]Write to MH i2c: E2 13 00 0C 60 80 0D 02 02 0B 00 00 35 04 06 00 99 CE 61 D5 A5 29 00 00 A6 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 0C 60 00 90 00 E0 [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 03 02 [17:03:18]Write to MH i2c: E2 08 00 0D 60 80 0D 03 02 00 00 00 00 E8 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0B 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0B 00 0D 60 00 80 CE 62 B0 66 E1 80 2A 90 00 3A [17:03:18]RAPDU: 80 CE 62 B0 66 E1 80 2A 90 00 [17:03:18]wFMCommunicate OK [17:03:18]SAM_PROTO_SignData done [17:03:18]FM_MakeSignedData done [17:03:18]CreateOFDProtocolMessage [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 11 00 00 [17:03:18]Write to MH i2c: E2 08 00 0E 60 80 11 00 00 00 00 00 00 E8 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 17 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 17 00 0E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [17:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:18]wFMCommunicate OK [17:03:18]CreateOFDProtocolMessage done [17:03:18]OFDSenderStorePacket 189247 [17:03:18]StoreOFDPacket docnum=189247 [17:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 55 D7 0D 01 03 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 40 01 00 00 F4 03 04 00 D9 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E3 02 00 35 04 06 00 99 CE 61 D5 A5 29 80 CE 62 B0 66 E1 80 2A [17:03:18]CheckFolder [17:03:18]dirname=/storage/ofd_packets [17:03:18]CheckFolder done [17:03:18]ProducePacketName [17:03:18]name=ofd_packets/00189247 [17:03:18]NVStorageSaveData ofd_packets/00189247 [17:03:18]File name is /storage/ofd_packets/00189247 [17:03:18]Write 307 bytes [17:03:18]NVStorageSaveData done [17:03:18]OFDSenderStorePacket done [17:03:18]KKMCreateOFDPacket done [17:03:18]NVStorageSaveData kkm_last_timestamp [17:03:18]File name is /storage/kkm_last_timestamp [17:03:18]Write 4 bytes [17:03:18]NVStorageSaveData done [17:03:18]ExternCall_PrintAddStr [17:03:18]wPrintStart [17:03:18]Write to MH i2c: 01 00 00 0F 60 6F [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 07 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 07 00 0F 60 00 00 00 00 00 FF 0F 84 [17:03:18]RasterBufferAndPrint [17:03:18]line Счет N : (1)211312 [17:03:18]line ИНН: 02508201610067 [17:03:18]line Контрольно-Кассовый Чек [17:03:18]line ПРОДАЖА [17:03:18]line ТРК (МРК, ГНК) : 31 [17:03:18]line Товар: 2710194210 [17:03:18]line D-ENERGY ДТ-К-5 [17:03:18]line 19.440 * 77.20 [17:03:18]line = 1500.77 [17:03:18]line НДС 12% НСП 1% [17:03:18]line > о реализуемом товаре [17:03:18]line ОКРУГЛЕНИЕ: -0.77 [17:03:18]line ИТОГО: 1500.00 [17:03:18]line Внесено: 1500.00 [17:03:18]line СДАЧА: 0.00 [17:03:18]line НСП 1% : 13.28 [17:03:18]line НДС 12% : 159.37 [17:03:18]line Наличными: 1500.00 [17:03:18]line Безнал.: 0.00 [17:03:18]line Место: АЗС № 86 "Партнер Нефть" [17:03:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:03:18]line СНО: Общий режим [17:03:18]line Чек 320 24.10.2024 17:03 [17:03:18]line Смена: 463 ФФД: 1.0 [17:03:18]line ЗНМ: 0300000155 [17:03:18]line РНМ: 0000000000100030 [17:03:18]line Версия ККМ: 001 [17:03:18]line ФМ: 0000000000965340 [17:03:18]line ФД: 189247 [17:03:18]line ФПД: 169111683704105 [17:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189247&fm=169111683704105&tin=02508201610067®Number=0000000000100030&sum=150000 [17:03:18]written 0, free lines is 4095 [17:03:18]OFD Sender: Processing packet 189246 [packets to send 1063, broken 1061] [17:03:18]ProducePacketName [17:03:18]name=ofd_packets/00189246 [17:03:18]OFD Sender: To server: pG, [17:03:18]CommunicateWithHost lk.salyk.kg:30040 [17:03:18]ConnectInit lk.salyk.kg [17:03:19]Write to MH i2c: 01 00 00 3A 60 9A [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 07 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 07 00 3A 60 00 00 00 00 00 52 0C FF [17:03:19]RasterBufferAndPrint [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]written 0, free lines is 3163 [17:03:19]MH_Cut [17:03:19]Write to MH i2c: D1 01 00 41 60 01 73 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: D1 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: D1 01 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: D1 01 00 41 60 00 72 [17:03:19]Write to MH i2c: 01 00 00 42 60 A2 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:20]*** Cut start [17:03:20]*** Partial cut [17:03:20]*** CUTSNS_PIN = 1 [17:03:20]*** CUTSNS_PIN = 0 [17:03:20]*** Brake cut motor [17:03:21]Read from MH i2c: 01 [17:03:21]MH_I2C_Read... [17:03:21]*** Stop cut motor [17:03:21]*** Cut end [17:03:21]Read from MH i2c: 01 07 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: 01 07 00 42 60 00 00 00 00 00 FF 0F B7 [17:03:21]process_action close_receipt done [17:03:21]requested_data is exist [17:03:21]produce_requested_data [17:03:21]requested_item fm.sn is exist - process it [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 11 00 00 [17:03:21]Write to MH i2c: E2 08 00 43 60 80 11 00 00 00 00 00 00 1D [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:21]Read from MH i2c: E2 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 17 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 17 00 43 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [17:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:21]wFMCommunicate OK [17:03:21]requested_item fd.num is exist - process it [17:03:21]SAM_PROTO_GetFieldsCounters [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 13 00 00 [17:03:21]Write to MH i2c: E2 08 00 44 60 80 13 00 00 00 00 00 00 20 [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:21]Read from MH i2c: E2 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 62 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 62 00 44 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E3 02 00 0E 04 04 00 CF 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 DE [17:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E3 02 00 0E 04 04 00 CF 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 [17:03:21]wFMCommunicate OK [17:03:21]SAM_PROTO_GetFieldsCounters done [17:03:21]requested_item shift.num is exist - process it [17:03:21]requested_item shift.opened is exist - process it [17:03:21]req_shift_opened [17:03:21]FM_GetShiftState [17:03:21]SAM_PROTO_GetShiftState [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 13 01 00 [17:03:21]Write to MH i2c: E2 08 00 45 60 80 13 01 00 00 00 00 00 22 [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:21]Read from MH i2c: E2 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 0E 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 0E 00 45 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 00 [17:03:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:03:21]wFMCommunicate OK [17:03:21]SAM_PROTO_GetShiftState done [17:03:21]FM_GetShiftState done [17:03:21]req_shift_opened done [17:03:21]requested_item shift.open_date is exist - process it [17:03:21]req_shift_open_date [17:03:21]req_shift_open_date done [17:03:21]produce_requested_data done [17:03:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189247,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:03:21]process_action_free close_receipt [17:03:21]json_value_free [17:03:21]json_value_free done [17:03:21]process_json_proto returns [17:03:21]Send response to host [17:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189247,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:03:21]free response buf [17:03:21]execute_script done [17:03:21]execute_script returns [17:03:21]free content buf [17:03:21]Sock 10.Close socket [17:03:21]Sock 10.Thread stoped [17:03:23]ConnectInit Can't take IP for lk.salyk.kg [17:03:23]CommunicateWithHost connect error [17:03:23]CommunicateWithHost err = -1 [17:03:23]OFD Sender: Server communicate error [17:03:28]OFD Sender: Processing packet 189246 [packets to send 1063, broken 1061] [17:03:28]ProducePacketName [17:03:28]name=ofd_packets/00189246 [17:03:28]OFD Sender: To server: pG, [17:03:28]CommunicateWithHost lk.salyk.kg:30040 [17:03:28]ConnectInit lk.salyk.kg [17:03:33]ConnectInit Can't take IP for lk.salyk.kg [17:03:33]CommunicateWithHost connect error [17:03:33]CommunicateWithHost err = -1 [17:03:33]OFD Sender: Server communicate error [17:03:39]OFD Sender: Processing packet 189246 [packets to send 1063, broken 1061] [17:03:39]ProducePacketName [17:03:39]name=ofd_packets/00189246 [17:03:39]OFD Sender: To server: pG, [17:03:39]CommunicateWithHost lk.salyk.kg:30040 [17:03:39]ConnectInit lk.salyk.kg [17:03:41]Connected sock=9 [17:03:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 04 07 01 51 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 01 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 35 04 06 00 2D 45 60 E8 26 C6 B0 1C 76 28 80 CC C1 F8 [17:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 26 47 00 AB 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 39 36 35 33 34 30 10 04 04 00 3E E3 02 00 F4 03 04 00 D7 27 1A 67 B6 04 01 00 00 27 9F 16 96 1E 54 78 DA [17:03:42]CommunicateWithHost err = 0 [17:03:42]CheckOFDResponse [17:03:42]1017 (14) - 77093643461234 [17:03:42]1041 (16) - 0000000000965340 [17:03:42]1040 (4) - 189246 [17:03:42]1012 (4) - 24.10.2024 10:56 [17:03:42]1206 (1) - 0 [17:03:42]OFD Sender: Remove packet 189246 [17:03:42]ProducePacketName [17:03:42]name=ofd_packets/00189246 [17:03:42]NVStorageDeleteData [17:03:42]OFD Sender: Processing packet 189247 [packets to send 1062, broken 1061] [17:03:42]ProducePacketName [17:03:42]name=ofd_packets/00189247 [17:03:42]OFD Sender: To server: pG, [17:03:42]CommunicateWithHost lk.salyk.kg:30040 [17:03:42]ConnectInit lk.salyk.kg [17:03:42]Connected sock=9 [17:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 55 D7 0D 01 03 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 40 01 00 00 F4 03 04 00 D9 7D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E3 02 00 35 04 06 00 99 CE 61 D5 A5 29 80 CE 62 B0 66 E1 80 2A [17:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 69 57 47 00 C1 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 39 36 35 33 34 30 10 04 04 00 3F E3 02 00 F4 03 04 00 D8 27 1A 67 B6 04 01 00 00 E6 A3 5B C8 84 D3 6E FE [17:03:43]CommunicateWithHost err = 0 [17:03:43]CheckOFDResponse [17:03:43]1017 (14) - 77093643461234 [17:03:43]1041 (16) - 0000000000965340 [17:03:43]1040 (4) - 189247 [17:03:43]1012 (4) - 24.10.2024 10:56 [17:03:43]1206 (1) - 0 [17:03:43]OFD Sender: Remove packet 189247 [17:03:43]ProducePacketName [17:03:43]name=ofd_packets/00189247 [17:03:43]NVStorageDeleteData [17:03:43]OFD Sender: No OFD packet to send [17:03:44]ConnectInit Can't connect to host [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:06]accept exits with 12 [17:04:06]New connection [17:04:06]New thread 3067071844 created [17:04:06]Thread 3067215204 joined [17:04:06]Waiting for new connection... [17:04:06] Sock 12.Parse request [17:04:06]Sock 12.Check first char [17:04:06]Sock 12.First char is OK [17:04:06]request: POST /json_proto HTTP/1.0 [17:04:06]Method: POST [17:04:06]URL: /json_proto [17:04:06]Method is POST - this is cgi request [17:04:06]url: /json_proto [17:04:06]query_string will be loaded in cgi processing [17:04:06]execute_cgi json_proto POST (null) [17:04:06]execute_cgi path=json_proto method=POST [17:04:06]POST find Content-Length [17:04:06]Host: 172.17.42.131:8080 [17:04:06]Content-Length: 688 [17:04:06]Content-Type: application/json [17:04:06] [17:04:06]POST finish read [17:04:06]Found Content-Length = 688 [17:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:04:06]execute_script... [17:04: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)211313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:04:06]POST & json_proto [17:04:06]process_json_proto [17:04:06]json parsed OK: [17:04:06]protocol is kg_v1.0 [17:04:06]action value=close_receipt [17:04:06]process_action close_receipt [17:04:06]cmd_close_receipt [17:04:06]MH_GetDate [17:04:06]Write to MH i2c: F0 00 00 46 60 95 [17:04:06]Write i2c OK [17:04:06]MH_I2C_Read... [17:04:06]Read from MH i2c: F0 [17:04:06]MH_I2C_Read... [17:04:06]Read from MH i2c: F0 09 00 [17:04:06]MH_I2C_Read... [17:04:06]Read from MH i2c: F0 09 00 46 60 00 0B 7E 1A 67 A0 18 CA 66 90 [17:04:06]GetLastDocTimeStamp 1729789401 [17:04:06]current date 1729789451 [17:04:06]FM_GetShiftState [17:04:06]SAM_PROTO_GetShiftState [17:04:06]wFMCommunicate request_size=4 [17:04:06]MH_SAM_APDU [17:04:06]CAPDU: 80 13 01 00 [17:04:06]Write to MH i2c: E2 08 00 47 60 80 13 01 00 00 00 00 00 24 [17:04:06]Write i2c OK [17:04:06]MH_I2C_Read... [17:04:06]Read from MH i2c: E2 [17:04:06]MH_I2C_Read... [17:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:06]Read from MH i2c: E2 0E 00 [17:04:06]MH_I2C_Read... [17:04:06]Read from MH i2c: E2 0E 00 47 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 02 [17:04:06]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:04:06]wFMCommunicate OK [17:04:06]SAM_PROTO_GetShiftState done [17:04:06]FM_GetShiftState done [17:04:06]opened in 1729728961 [17:04:06]opened+sec_in_day 1729815361 [17:04:06]quantity*price = 200025 [17:04:06]sum+1 = 200026 [17:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 321 24.10.2024 17:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189248 ФПД: 77649701585655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189248&fm=77649701585655&tin=02508201610067®Number=0000000000100030&sum=200000 [17:04:07]StoreToDocumentArchive [17:04:07]shift 463 fd 189248 [17:04:07]save to /storage/0463/doc_00189248 [17:04:07]save last doc name /storage/0463/doc_00189248 to /storage/kkm_last_doc_name [17:04:07]save OK [17:04:07]Clear old archive folders... [17:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:04:07]tlvbuf is 01567490 [17:04:07]SAM_PROTO_ClearQueue [17:04:07]wFMCommunicate request_size=4 [17:04:07]MH_SAM_APDU [17:04:07]CAPDU: 80 09 00 00 [17:04:07]Write to MH i2c: E2 08 00 54 60 80 09 00 00 00 00 00 00 26 [17:04:07]Write i2c OK [17:04:07]MH_I2C_Read... [17:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:07]Read from MH i2c: E2 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: E2 03 00 [17:04:07]MH_I2C_Read... [17:04:07]Read from MH i2c: E2 03 00 54 60 00 90 00 28 [17:04:07]RAPDU: 90 00 [17:04:07]wFMCommunicate OK [17:04:07]SAM_PROTO_ClearQueue done [17:04:07]KKMCreateOFDPacket [17:04:07]OFDProtocolAddRootSTLVToBuf [17:04:07]FM_MakeSignedData [17:04:07]FM_MakeSignedData [17:04:07]SAM_PROTO_SignData [17:04:07]wFMCommunicate request_size=4 [17:04:07]MH_SAM_APDU [17:04:07]CAPDU: 80 0D 01 02 [17:04:07]Write to MH i2c: E2 08 00 55 60 80 0D 01 02 00 00 00 00 2E [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 55 60 00 90 00 29 [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=255 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 0B 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E3 02 [17:04:08]Write to MH i2c: E2 02 01 56 60 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 0B 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E3 02 00 00 10 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 56 60 00 90 00 2A [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=16 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 46 9F 3A E1 42 F7 [17:04:08]Write to MH i2c: E2 13 00 57 60 80 0D 02 02 0B 00 00 35 04 06 00 46 9F 3A E1 42 F7 00 00 BF [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 03 00 57 60 00 90 00 2B [17:04:08]RAPDU: 90 00 [17:04:08]wFMCommunicate OK [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 0D 03 02 [17:04:08]Write to MH i2c: E2 08 00 58 60 80 0D 03 02 00 00 00 00 33 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 0B 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 0B 00 58 60 00 21 D8 B9 5B 5F BD 2D 1D 90 00 A7 [17:04:08]RAPDU: 21 D8 B9 5B 5F BD 2D 1D 90 00 [17:04:08]wFMCommunicate OK [17:04:08]SAM_PROTO_SignData done [17:04:08]FM_MakeSignedData done [17:04:08]CreateOFDProtocolMessage [17:04:08]wFMCommunicate request_size=4 [17:04:08]MH_SAM_APDU [17:04:08]CAPDU: 80 11 00 00 [17:04:08]Write to MH i2c: E2 08 00 59 60 80 11 00 00 00 00 00 00 33 [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:08]Read from MH i2c: E2 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 17 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: E2 17 00 59 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [17:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:04:08]wFMCommunicate OK [17:04:08]CreateOFDProtocolMessage done [17:04:08]OFDSenderStorePacket 189248 [17:04:08]StoreOFDPacket docnum=189248 [17:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 6B 0D 01 D1 B6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 0B 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E3 02 00 35 04 06 00 46 9F 3A E1 42 F7 21 D8 B9 5B 5F BD 2D 1D [17:04:08]CheckFolder [17:04:08]dirname=/storage/ofd_packets [17:04:08]CheckFolder done [17:04:08]ProducePacketName [17:04:08]name=ofd_packets/00189248 [17:04:08]NVStorageSaveData ofd_packets/00189248 [17:04:08]File name is /storage/ofd_packets/00189248 [17:04:08]Write 307 bytes [17:04:08]NVStorageSaveData done [17:04:08]OFDSenderStorePacket done [17:04:08]KKMCreateOFDPacket done [17:04:08]NVStorageSaveData kkm_last_timestamp [17:04:08]File name is /storage/kkm_last_timestamp [17:04:08]Write 4 bytes [17:04:08]NVStorageSaveData done [17:04:08]ExternCall_PrintAddStr [17:04:08]wPrintStart [17:04:08]Write to MH i2c: 01 00 00 5A 60 BA [17:04:08]Write i2c OK [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 07 00 [17:04:08]MH_I2C_Read... [17:04:08]Read from MH i2c: 01 07 00 5A 60 00 00 00 00 00 FF 0F CF [17:04:08]RasterBufferAndPrint [17:04:08]line Счет N : (1)211313 [17:04:08]line ИНН: 02508201610067 [17:04:08]line Контрольно-Кассовый Чек [17:04:08]line ПРОДАЖА [17:04:08]line ТРК (МРК, ГНК) : 21 [17:04:08]line Товар: 2710194210 [17:04:08]line D-ENERGY ДТ-К-5 [17:04:08]line 25.910 * 77.20 [17:04:08]line = 2000.25 [17:04:08]line НДС 12% НСП 1% [17:04:08]line > о реализуемом товаре [17:04:08]line ОКРУГЛЕНИЕ: -0.25 [17:04:08]line ИТОГО: 2000.00 [17:04:08]line Внесено: 2000.00 [17:04:08]line СДАЧА: 0.00 [17:04:08]line НСП 1% : 17.70 [17:04:08]line НДС 12% : 212.42 [17:04:08]line Наличными: 2000.00 [17:04:08]line Безнал.: 0.00 [17:04:08]line Место: АЗС № 86 "Партнер Нефть" [17:04:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:04:08]line СНО: Общий режим [17:04:08]line Чек 321 24.10.2024 17:04 [17:04:08]line Смена: 463 ФФД: 1.0 [17:04:08]line ЗНМ: 0300000155 [17:04:08]line РНМ: 0000000000100030 [17:04:08]line Версия ККМ: 001 [17:04:08]line ФМ: 0000000000965340 [17:04:08]line ФД: 189248 [17:04:08]line ФПД: 77649701585655 [17:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189248&fm=77649701585655&tin=02508201610067®Number=0000000000100030&sum=200000 [17:04:08]written 0, free lines is 4095 [17:04:08]OFD Sender: Processing packet 189248 [packets to send 1062, broken 1061] [17:04:08]ProducePacketName [17:04:08]name=ofd_packets/00189248 [17:04:08]OFD Sender: To server: pG, [17:04:08]CommunicateWithHost lk.salyk.kg:30040 [17:04:08]ConnectInit lk.salyk.kg [17:04:08]Connected sock=8 [17:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 6B 0D 01 D1 B6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 0B 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E3 02 00 35 04 06 00 46 9F 3A E1 42 F7 21 D8 B9 5B 5F BD 2D 1D [17:04:09]Write to MH i2c: 01 00 00 85 60 E5 [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 07 00 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: 01 07 00 85 60 00 00 00 00 00 5E 0C 56 [17:04:09]RasterBufferAndPrint [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]line [17:04:09]written 0, free lines is 3174 [17:04:09]MH_Cut [17:04:09]Write to MH i2c: D1 01 00 8C 60 01 BE [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 01 00 [17:04:09]MH_I2C_Read... [17:04:09]Read from MH i2c: D1 01 00 8C 60 00 BD [17:04:09]Write to MH i2c: 01 00 00 8D 60 ED [17:04:09]Write i2c OK [17:04:09]MH_I2C_Read... [17:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 EE 47 00 B8 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 39 36 35 33 34 30 10 04 04 00 40 E3 02 00 F4 03 04 00 F2 27 1A 67 B6 04 01 00 00 0B 38 3E A3 B4 BE D2 15 [17:04:09]CommunicateWithHost err = 0 [17:04:09]CheckOFDResponse [17:04:09]1017 (14) - 77093643461234 [17:04:09]1041 (16) - 0000000000965340 [17:04:09]1040 (4) - 189248 [17:04:09]1012 (4) - 24.10.2024 10:56 [17:04:09]1206 (1) - 0 [17:04:09]OFD Sender: Remove packet 189248 [17:04:09]ProducePacketName [17:04:09]name=ofd_packets/00189248 [17:04:09]NVStorageDeleteData [17:04:09]OFD Sender: No OFD packet to send [17:04:10]*** Cut start [17:04:10]*** Partial cut [17:04:10]*** CUTSNS_PIN = 1 [17:04:10]*** CUTSNS_PIN = 0 [17:04:10]*** Brake cut motor [17:04:10]Read from MH i2c: 01 [17:04:10]MH_I2C_Read... [17:04:10]*** Stop cut motor [17:04:10]*** Cut end [17:04:10]Read from MH i2c: 01 07 00 [17:04:10]MH_I2C_Read... [17:04:10]Read from MH i2c: 01 07 00 8D 60 00 00 00 00 00 FF 0F 02 [17:04:10]process_action close_receipt done [17:04:10]requested_data is exist [17:04:10]produce_requested_data [17:04:10]requested_item fm.sn is exist - process it [17:04:10]wFMCommunicate request_size=4 [17:04:10]MH_SAM_APDU [17:04:10]CAPDU: 80 11 00 00 [17:04:10]Write to MH i2c: E2 08 00 8E 60 80 11 00 00 00 00 00 00 68 [17:04:10]Write i2c OK [17:04:10]MH_I2C_Read... [17:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:11]Read from MH i2c: E2 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 17 00 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 17 00 8E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [17:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:04:11]wFMCommunicate OK [17:04:11]requested_item fd.num is exist - process it [17:04:11]SAM_PROTO_GetFieldsCounters [17:04:11]wFMCommunicate request_size=4 [17:04:11]MH_SAM_APDU [17:04:11]CAPDU: 80 13 00 00 [17:04:11]Write to MH i2c: E2 08 00 8F 60 80 13 00 00 00 00 00 00 6B [17:04:11]Write i2c OK [17:04:11]MH_I2C_Read... [17:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:11]Read from MH i2c: E2 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 62 00 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 62 00 8F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E3 02 00 0E 04 04 00 CF 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 2D [17:04:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E3 02 00 0E 04 04 00 CF 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 [17:04:11]wFMCommunicate OK [17:04:11]SAM_PROTO_GetFieldsCounters done [17:04:11]requested_item shift.num is exist - process it [17:04:11]requested_item shift.opened is exist - process it [17:04:11]req_shift_opened [17:04:11]FM_GetShiftState [17:04:11]SAM_PROTO_GetShiftState [17:04:11]wFMCommunicate request_size=4 [17:04:11]MH_SAM_APDU [17:04:11]CAPDU: 80 13 01 00 [17:04:11]Write to MH i2c: E2 08 00 90 60 80 13 01 00 00 00 00 00 6D [17:04:11]Write i2c OK [17:04:11]MH_I2C_Read... [17:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:11]Read from MH i2c: E2 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 0E 00 [17:04:11]MH_I2C_Read... [17:04:11]Read from MH i2c: E2 0E 00 90 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4B [17:04:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:04:11]wFMCommunicate OK [17:04:11]SAM_PROTO_GetShiftState done [17:04:11]FM_GetShiftState done [17:04:11]req_shift_opened done [17:04:11]requested_item shift.open_date is exist - process it [17:04:11]req_shift_open_date [17:04:11]req_shift_open_date done [17:04:11]produce_requested_data done [17:04:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189248,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:04:11]process_action_free close_receipt [17:04:11]json_value_free [17:04:11]json_value_free done [17:04:11]process_json_proto returns [17:04:11]Send response to host [17:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189248,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:04:11]free response buf [17:04:11]execute_script done [17:04:11]execute_script returns [17:04:11]free content buf [17:04:11]Sock 12.Close socket [17:04:11]Sock 12.Thread stoped [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:26]accept exits with 9 [17:07:26]New connection [17:07:26]New thread 3067215204 created [17:07:26]Thread 3067071844 joined [17:07:26]Waiting for new connection... [17:07:26] Sock 9.Parse request [17:07:26]Sock 9.Check first char [17:07:26]Sock 9.First char is OK [17:07:26]request: POST /json_proto HTTP/1.0 [17:07:26]Method: POST [17:07:26]URL: /json_proto [17:07:26]Method is POST - this is cgi request [17:07:26]url: /json_proto [17:07:26]query_string will be loaded in cgi processing [17:07:26]execute_cgi json_proto POST (null) [17:07:26]execute_cgi path=json_proto method=POST [17:07:26]POST find Content-Length [17:07:26]Host: 172.17.42.131:8080 [17:07:26]Content-Length: 767 [17:07:26]Content-Type: application/json [17:07:26] [17:07:26]POST finish read [17:07:26]Found Content-Length = 767 [17:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:26]execute_script... [17:07: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)211314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:26]POST & json_proto [17:07:26]process_json_proto [17:07:26]json parsed OK: [17:07:26]protocol is kg_v1.0 [17:07:26]action value=close_receipt [17:07:26]process_action close_receipt [17:07:26]cmd_close_receipt [17:07:26]MH_GetDate [17:07:26]Write to MH i2c: F0 00 00 91 60 E0 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 09 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 09 00 91 60 00 D2 7E 1A 67 A0 18 CA 66 A2 [17:07:26]GetLastDocTimeStamp 1729789451 [17:07:26]current date 1729789650 [17:07:26]FM_GetShiftState [17:07:26]SAM_PROTO_GetShiftState [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 13 01 00 [17:07:26]Write to MH i2c: E2 08 00 92 60 80 13 01 00 00 00 00 00 6F [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 92 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4D [17:07:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:07:26]wFMCommunicate OK [17:07:26]SAM_PROTO_GetShiftState done [17:07:26]FM_GetShiftState done [17:07:26]opened in 1729728961 [17:07:26]opened+sec_in_day 1729815361 [17:07:26]quantity*price = 900074 [17:07:26]sum+1 = 900075 [17:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 322 24.10.2024 17:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189249 ФПД: 145018890822732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189249&fm=145018890822732&tin=02508201610067®Number=0000000000100030&sum=900074 [17:07:27]StoreToDocumentArchive [17:07:27]shift 463 fd 189249 [17:07:27]save to /storage/0463/doc_00189249 [17:07:27]save last doc name /storage/0463/doc_00189249 to /storage/kkm_last_doc_name [17:07:27]save OK [17:07:27]Clear old archive folders... [17:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:27]tlvbuf is 016A2020 [17:07:27]SAM_PROTO_ClearQueue [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 09 00 00 [17:07:27]Write to MH i2c: E2 08 00 9F 60 80 09 00 00 00 00 00 00 71 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 9F 60 00 90 00 73 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_ClearQueue done [17:07:27]KKMCreateOFDPacket [17:07:27]OFDProtocolAddRootSTLVToBuf [17:07:27]FM_MakeSignedData [17:07:27]FM_MakeSignedData [17:07:27]SAM_PROTO_SignData [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 01 02 [17:07:27]Write to MH i2c: E2 08 00 A0 60 80 0D 01 02 00 00 00 00 79 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 A0 60 00 90 00 74 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=255 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E3 02 00 35 04 06 00 83 E4 D7 79 [17:07:27]Write to MH i2c: E2 02 01 A1 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E3 02 00 35 04 06 00 83 E4 D7 79 00 00 BB [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 A1 60 00 90 00 75 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=7 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 02 02 02 24 4C [17:07:27]Write to MH i2c: E2 0A 00 A2 60 80 0D 02 02 02 00 24 4C 00 00 F0 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 A2 60 00 90 00 76 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 03 02 [17:07:27]Write to MH i2c: E2 08 00 A3 60 80 0D 03 02 00 00 00 00 7E [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0B 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0B 00 A3 60 00 B3 5F 44 64 AB 4D DD 93 90 00 A1 [17:07:27]RAPDU: B3 5F 44 64 AB 4D DD 93 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_SignData done [17:07:27]FM_MakeSignedData done [17:07:27]CreateOFDProtocolMessage [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 11 00 00 [17:07:27]Write to MH i2c: E2 08 00 A4 60 80 11 00 00 00 00 00 00 7E [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 17 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 17 00 A4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [17:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:07:27]wFMCommunicate OK [17:07:27]CreateOFDProtocolMessage done [17:07:27]OFDSenderStorePacket 189249 [17:07:27]StoreOFDPacket docnum=189249 [17:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 41 F1 04 01 35 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E3 02 00 35 04 06 00 83 E4 D7 79 24 4C B3 5F 44 64 AB 4D DD 93 [17:07:27]CheckFolder [17:07:27]dirname=/storage/ofd_packets [17:07:27]CheckFolder done [17:07:27]ProducePacketName [17:07:27]name=ofd_packets/00189249 [17:07:27]NVStorageSaveData ofd_packets/00189249 [17:07:27]File name is /storage/ofd_packets/00189249 [17:07:27]Write 298 bytes [17:07:27]NVStorageSaveData done [17:07:27]OFDSenderStorePacket done [17:07:27]KKMCreateOFDPacket done [17:07:27]NVStorageSaveData kkm_last_timestamp [17:07:27]File name is /storage/kkm_last_timestamp [17:07:27]Write 4 bytes [17:07:27]NVStorageSaveData done [17:07:27]ExternCall_PrintAddStr [17:07:27]wPrintStart [17:07:27]Write to MH i2c: 01 00 00 A5 60 05 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 07 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 07 00 A5 60 00 00 00 00 00 FF 0F 1A [17:07:27]RasterBufferAndPrint [17:07:27]line Счет N : (1)211314 [17:07:27]line ИНН: 02508201610067 [17:07:27]line Контрольно-Кассовый Чек [17:07:27]line ПРОДАЖА [17:07:27]line ТРК (МРК, ГНК) : 51 [17:07:27]line Товар: 2710194210 [17:07:27]line ДТ-К-5 [17:07:27]line 118.120 * 76.20 [17:07:27]line = 9000.74 [17:07:27]line НДС 12% НСП 1% [17:07:27]line > о реализуемом товаре [17:07:27]line ИТОГО: 9000.74 [17:07:27]line НСП 1% : 79.65 [17:07:27]line НДС 12% : 955.83 [17:07:27]line Наличными: 0.00 [17:07:27]line Безнал.: 9000.74 [17:07:27]line Место: АЗС № 86 "Партнер Нефть" [17:07:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:07:27]line СНО: Общий режим [17:07:27]line Чек 322 24.10.2024 17:07 [17:07:27]line Смена: 463 ФФД: 1.0 [17:07:27]line ЗНМ: 0300000155 [17:07:27]line РНМ: 0000000000100030 [17:07:27]line Версия ККМ: 001 [17:07:27]line Платежная система: Mbank [17:07:27]line ФМ: 0000000000965340 [17:07:27]line ФД: 189249 [17:07:27]line ФПД: 145018890822732 [17:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189249&fm=145018890822732&tin=02508201610067®Number=0000000000100030&sum=900074 [17:07:27]written 0, free lines is 4095 [17:07:27]OFD Sender: Processing packet 189249 [packets to send 1062, broken 1061] [17:07:27]ProducePacketName [17:07:27]name=ofd_packets/00189249 [17:07:27]OFD Sender: To server: pG, [17:07:27]CommunicateWithHost lk.salyk.kg:30040 [17:07:27]ConnectInit lk.salyk.kg [17:07:28]Connected sock=10 [17:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 41 F1 04 01 35 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E3 02 00 35 04 06 00 83 E4 D7 79 24 4C B3 5F 44 64 AB 4D DD 93 [17:07:28]Write to MH i2c: 01 00 00 CE 60 2E [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 CE 60 00 00 00 00 00 8E 0C CF [17:07:28]RasterBufferAndPrint [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]written 0, free lines is 3219 [17:07:28]MH_Cut [17:07:28]Write to MH i2c: D1 01 00 D5 60 01 07 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: D1 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: D1 01 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: D1 01 00 D5 60 00 06 [17:07:28]Write to MH i2c: 01 00 00 D6 60 36 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF 94 47 00 D3 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 39 36 35 33 34 30 10 04 04 00 41 E3 02 00 F4 03 04 00 BA 28 1A 67 B6 04 01 00 00 30 2A 0D 5A D1 21 90 F6 [17:07:28]CommunicateWithHost err = 0 [17:07:28]CheckOFDResponse [17:07:28]1017 (14) - 77093643461234 [17:07:28]1041 (16) - 0000000000965340 [17:07:28]1040 (4) - 189249 [17:07:28]1012 (4) - 24.10.2024 11:00 [17:07:28]1206 (1) - 0 [17:07:28]OFD Sender: Remove packet 189249 [17:07:28]ProducePacketName [17:07:28]name=ofd_packets/00189249 [17:07:28]NVStorageDeleteData [17:07:29]OFD Sender: No OFD packet to send [17:07:29]*** Cut start [17:07:29]*** Partial cut [17:07:29]*** CUTSNS_PIN = 1 [17:07:29]*** CUTSNS_PIN = 0 [17:07:29]*** Brake cut motor [17:07:30]Read from MH i2c: 01 [17:07:30]*** Stop cut motor [17:07:30]*** Cut end [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 07 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 07 00 D6 60 00 00 00 00 00 FF 0F 4B [17:07:30]process_action close_receipt done [17:07:30]requested_data is exist [17:07:30]produce_requested_data [17:07:30]requested_item fm.sn is exist - process it [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 11 00 00 [17:07:30]Write to MH i2c: E2 08 00 D7 60 80 11 00 00 00 00 00 00 B1 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:30]Read from MH i2c: E2 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 17 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 17 00 D7 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [17:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:07:30]wFMCommunicate OK [17:07:30]requested_item fd.num is exist - process it [17:07:30]SAM_PROTO_GetFieldsCounters [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 13 00 00 [17:07:30]Write to MH i2c: E2 08 00 D8 60 80 13 00 00 00 00 00 00 B4 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:30]Read from MH i2c: E2 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 62 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 62 00 D8 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E3 02 00 0E 04 04 00 CF 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 7A [17:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E3 02 00 0E 04 04 00 CF 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 [17:07:30]wFMCommunicate OK [17:07:30]SAM_PROTO_GetFieldsCounters done [17:07:30]requested_item shift.num is exist - process it [17:07:30]requested_item shift.opened is exist - process it [17:07:30]req_shift_opened [17:07:30]FM_GetShiftState [17:07:30]SAM_PROTO_GetShiftState [17:07:30]wFMCommunicate request_size=4 [17:07:30]MH_SAM_APDU [17:07:30]CAPDU: 80 13 01 00 [17:07:30]Write to MH i2c: E2 08 00 D9 60 80 13 01 00 00 00 00 00 B6 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:30]Read from MH i2c: E2 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 0E 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: E2 0E 00 D9 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 94 [17:07:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:07:30]wFMCommunicate OK [17:07:30]SAM_PROTO_GetShiftState done [17:07:30]FM_GetShiftState done [17:07:30]req_shift_opened done [17:07:30]requested_item shift.open_date is exist - process it [17:07:30]req_shift_open_date [17:07:30]req_shift_open_date done [17:07:30]produce_requested_data done [17:07:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189249,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:07:30]process_action_free close_receipt [17:07:30]json_value_free [17:07:30]json_value_free done [17:07:30]process_json_proto returns [17:07:30]Send response to host [17:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189249,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:07:30]free response buf [17:07:30]execute_script done [17:07:30]execute_script returns [17:07:30]free content buf [17:07:30]Sock 9.Close socket [17:07:30]Sock 9.Thread stoped [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:04]accept exits with 8 [17:08:04]New connection [17:08:04]New thread 3067071844 created [17:08:04]Thread 3067215204 joined [17:08:04]Waiting for new connection... [17:08:04] Sock 8.Parse request [17:08:04]Sock 8.Check first char [17:08:04]Sock 8.First char is OK [17:08:04]request: POST /json_proto HTTP/1.0 [17:08:04]Method: POST [17:08:04]URL: /json_proto [17:08:04]Method is POST - this is cgi request [17:08:04]url: /json_proto [17:08:04]query_string will be loaded in cgi processing [17:08:04]execute_cgi json_proto POST (null) [17:08:04]execute_cgi path=json_proto method=POST [17:08:04]POST find Content-Length [17:08:04]Host: 172.17.42.131:8080 [17:08:04]Content-Length: 775 [17:08:04]Content-Type: application/json [17:08:04] [17:08:04]POST finish read [17:08:04]Found Content-Length = 775 [17:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:04]execute_script... [17:08: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)211315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:04]POST & json_proto [17:08:04]process_json_proto [17:08:04]json parsed OK: [17:08:04]protocol is kg_v1.0 [17:08:04]action value=close_receipt [17:08:04]process_action close_receipt [17:08:04]cmd_close_receipt [17:08:04]MH_GetDate [17:08:04]Write to MH i2c: F0 00 00 DA 60 29 [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 09 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: F0 09 00 DA 60 00 F8 7E 1A 67 A0 18 CA 66 11 [17:08:04]GetLastDocTimeStamp 1729789650 [17:08:04]current date 1729789688 [17:08:04]FM_GetShiftState [17:08:04]SAM_PROTO_GetShiftState [17:08:04]wFMCommunicate request_size=4 [17:08:04]MH_SAM_APDU [17:08:04]CAPDU: 80 13 01 00 [17:08:04]Write to MH i2c: E2 08 00 DB 60 80 13 01 00 00 00 00 00 B8 [17:08:04]Write i2c OK [17:08:04]MH_I2C_Read... [17:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:04]Read from MH i2c: E2 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: E2 0E 00 [17:08:04]MH_I2C_Read... [17:08:04]Read from MH i2c: E2 0E 00 DB 60 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 96 [17:08:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:08:04]wFMCommunicate OK [17:08:04]SAM_PROTO_GetShiftState done [17:08:04]FM_GetShiftState done [17:08:04]opened in 1729728961 [17:08:04]opened+sec_in_day 1729815361 [17:08:04]quantity*price = 300076 [17:08:04]sum+1 = 300077 [17:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 323 24.10.2024 17:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189250 ФПД: 167972273149879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189250&fm=167972273149879&tin=02508201610067®Number=0000000000100030&sum=300076 [17:08:05]StoreToDocumentArchive [17:08:05]shift 463 fd 189250 [17:08:05]save to /storage/0463/doc_00189250 [17:08:05]save last doc name /storage/0463/doc_00189250 to /storage/kkm_last_doc_name [17:08:05]save OK [17:08:05]Clear old archive folders... [17:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:08:05]tlvbuf is 0154F9A0 [17:08:05]SAM_PROTO_ClearQueue [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 09 00 00 [17:08:05]Write to MH i2c: E2 08 00 E8 60 80 09 00 00 00 00 00 00 BA [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 E8 60 00 90 00 BC [17:08:05]RAPDU: 90 00 [17:08:05]wFMCommunicate OK [17:08:05]SAM_PROTO_ClearQueue done [17:08:05]KKMCreateOFDPacket [17:08:05]OFDProtocolAddRootSTLVToBuf [17:08:05]FM_MakeSignedData [17:08:05]FM_MakeSignedData [17:08:05]SAM_PROTO_SignData [17:08:05]wFMCommunicate request_size=4 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 0D 01 02 [17:08:05]Write to MH i2c: E2 08 00 E9 60 80 0D 01 02 00 00 00 00 C2 [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:05]Read from MH i2c: E2 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 [17:08:05]MH_I2C_Read... [17:08:05]Read from MH i2c: E2 03 00 E9 60 00 90 00 BD [17:08:05]RAPDU: 90 00 [17:08:05]wFMCommunicate OK [17:08:05]wFMCommunicate request_size=255 [17:08:05]MH_SAM_APDU [17:08:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 F8 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E3 02 [17:08:05]Write to MH i2c: E2 02 01 EA 60 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 F8 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E3 02 00 00 CD [17:08:05]Write i2c OK [17:08:05]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 EA 60 00 90 00 BE [17:08:06]RAPDU: 90 00 [17:08:06]wFMCommunicate OK [17:08:06]wFMCommunicate request_size=16 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 98 C5 17 AC 57 B7 [17:08:06]Write to MH i2c: E2 13 00 EB 60 80 0D 02 02 0B 00 00 35 04 06 00 98 C5 17 AC 57 B7 00 00 48 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 03 00 EB 60 00 90 00 BF [17:08:06]RAPDU: 90 00 [17:08:06]wFMCommunicate OK [17:08:06]wFMCommunicate request_size=4 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 0D 03 02 [17:08:06]Write to MH i2c: E2 08 00 EC 60 80 0D 03 02 00 00 00 00 C7 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0B 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0B 00 EC 60 00 67 33 B7 FC C0 C8 C3 28 90 00 88 [17:08:06]RAPDU: 67 33 B7 FC C0 C8 C3 28 90 00 [17:08:06]wFMCommunicate OK [17:08:06]SAM_PROTO_SignData done [17:08:06]FM_MakeSignedData done [17:08:06]CreateOFDProtocolMessage [17:08:06]wFMCommunicate request_size=4 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 11 00 00 [17:08:06]Write to MH i2c: E2 08 00 ED 60 80 11 00 00 00 00 00 00 C7 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 17 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 17 00 ED 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [17:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:08:06]wFMCommunicate OK [17:08:06]CreateOFDProtocolMessage done [17:08:06]OFDSenderStorePacket 189250 [17:08:06]StoreOFDPacket docnum=189250 [17:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B 61 0D 01 7A 96 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 F8 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E3 02 00 35 04 06 00 98 C5 17 AC 57 B7 67 33 B7 FC C0 C8 C3 28 [17:08:06]CheckFolder [17:08:06]dirname=/storage/ofd_packets [17:08:06]CheckFolder done [17:08:06]ProducePacketName [17:08:06]name=ofd_packets/00189250 [17:08:06]NVStorageSaveData ofd_packets/00189250 [17:08:06]File name is /storage/ofd_packets/00189250 [17:08:06]Write 307 bytes [17:08:06]NVStorageSaveData done [17:08:06]OFDSenderStorePacket done [17:08:06]KKMCreateOFDPacket done [17:08:06]NVStorageSaveData kkm_last_timestamp [17:08:06]File name is /storage/kkm_last_timestamp [17:08:06]Write 4 bytes [17:08:06]NVStorageSaveData done [17:08:06]ExternCall_PrintAddStr [17:08:06]wPrintStart [17:08:06]Write to MH i2c: 01 00 00 EE 60 4E [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 EE 60 00 00 00 00 00 FF 0F 63 [17:08:06]RasterBufferAndPrint [17:08:06]line Счет N : (1)211315 [17:08:06]line ИНН: 02508201610067 [17:08:06]line Контрольно-Кассовый Чек [17:08:06]line ПРОДАЖА [17:08:06]line ТРК (МРК, ГНК) : 11 [17:08:06]line Товар: 2710194210 [17:08:06]line D-ENERGY ДТ-К-5 [17:08:06]line 38.870 * 77.20 [17:08:06]line = 3000.76 [17:08:06]line НДС 12% НСП 1% [17:08:06]line > о реализуемом товаре [17:08:06]line ИТОГО: 3000.76 [17:08:06]line НСП 1% : 26.55 [17:08:06]line НДС 12% : 318.66 [17:08:06]line Наличными: 0.00 [17:08:06]line Безнал.: 3000.76 [17:08:06]line Место: АЗС № 86 "Партнер Нефть" [17:08:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:08:06]line СНО: Общий режим [17:08:06]line Чек 323 24.10.2024 17:08 [17:08:06]line Смена: 463 ФФД: 1.0 [17:08:06]line ЗНМ: 0300000155 [17:08:06]line РНМ: 0000000000100030 [17:08:06]line Версия ККМ: 001 [17:08:06]line Платежная система: Mbank [17:08:06]line ФМ: 0000000000965340 [17:08:06]line ФД: 189250 [17:08:06]line ФПД: 167972273149879 [17:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189250&fm=167972273149879&tin=02508201610067®Number=0000000000100030&sum=300076 [17:08:06]written 0, free lines is 4095 [17:08:06]OFD Sender: Processing packet 189250 [packets to send 1062, broken 1061] [17:08:06]ProducePacketName [17:08:06]name=ofd_packets/00189250 [17:08:06]OFD Sender: To server: pG, [17:08:06]CommunicateWithHost lk.salyk.kg:30040 [17:08:06]ConnectInit lk.salyk.kg [17:08:06]Connected sock=10 [17:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B 61 0D 01 7A 96 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 F8 7E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E3 02 00 35 04 06 00 98 C5 17 AC 57 B7 67 33 B7 FC C0 C8 C3 28 [17:08:06]Write to MH i2c: 01 00 00 17 61 78 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: 01 07 00 17 61 00 00 00 00 00 86 0C 11 [17:08:06]RasterBufferAndPrint [17:08:06]line [17:08:06]line [17:08:06]line [17:08:06]line [17:08:06]line [17:08:06]written 0, free lines is 3211 [17:08:06]MH_Cut [17:08:06]Write to MH i2c: D1 01 00 1E 61 01 51 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: D1 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: D1 01 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: D1 01 00 1E 61 00 50 [17:08:06]Write to MH i2c: 01 00 00 1F 61 80 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 72 47 00 77 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E3 02 00 F4 03 04 00 E0 28 1A 67 B6 04 01 00 00 D7 69 DF D8 6E E3 65 8C [17:08:07]CommunicateWithHost err = 0 [17:08:07]CheckOFDResponse [17:08:07]1017 (14) - 77093643461234 [17:08:07]1041 (16) - 0000000000965340 [17:08:07]1040 (4) - 189250 [17:08:07]1012 (4) - 24.10.2024 11:00 [17:08:07]1206 (1) - 0 [17:08:07]OFD Sender: Remove packet 189250 [17:08:07]ProducePacketName [17:08:07]name=ofd_packets/00189250 [17:08:07]NVStorageDeleteData [17:08:07]OFD Sender: No OFD packet to send [17:08:08]*** Cut start [17:08:08]*** Partial cut [17:08:08]*** CUTSNS_PIN = 1 [17:08:08]*** CUTSNS_PIN = 0 [17:08:08]*** Brake cut motor [17:08:08]Read from MH i2c: 01 [17:08:08]MH_I2C_Read... [17:08:08]*** Stop cut motor [17:08:08]*** Cut end [17:08:08]Read from MH i2c: 01 07 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 07 00 1F 61 00 00 00 00 00 FF 0F 95 [17:08:08]process_action close_receipt done [17:08:08]requested_data is exist [17:08:08]produce_requested_data [17:08:08]requested_item fm.sn is exist - process it [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 11 00 00 [17:08:08]Write to MH i2c: E2 08 00 20 61 80 11 00 00 00 00 00 00 FB [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 17 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 17 00 20 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [17:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:08:08]wFMCommunicate OK [17:08:08]requested_item fd.num is exist - process it [17:08:08]SAM_PROTO_GetFieldsCounters [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 13 00 00 [17:08:08]Write to MH i2c: E2 08 00 21 61 80 13 00 00 00 00 00 00 FE [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 62 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 62 00 21 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E3 02 00 0E 04 04 00 CF 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 C8 [17:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E3 02 00 0E 04 04 00 CF 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 [17:08:08]wFMCommunicate OK [17:08:08]SAM_PROTO_GetFieldsCounters done [17:08:08]requested_item shift.num is exist - process it [17:08:08]requested_item shift.opened is exist - process it [17:08:08]req_shift_opened [17:08:08]FM_GetShiftState [17:08:08]SAM_PROTO_GetShiftState [17:08:08]wFMCommunicate request_size=4 [17:08:08]MH_SAM_APDU [17:08:08]CAPDU: 80 13 01 00 [17:08:08]Write to MH i2c: E2 08 00 22 61 80 13 01 00 00 00 00 00 00 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:08]Read from MH i2c: E2 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 0E 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: E2 0E 00 22 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DE [17:08:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:08:08]wFMCommunicate OK [17:08:08]SAM_PROTO_GetShiftState done [17:08:08]FM_GetShiftState done [17:08:08]req_shift_opened done [17:08:08]requested_item shift.open_date is exist - process it [17:08:08]req_shift_open_date [17:08:08]req_shift_open_date done [17:08:08]produce_requested_data done [17:08:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189250,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:08:08]process_action_free close_receipt [17:08:08]json_value_free [17:08:08]json_value_free done [17:08:08]process_json_proto returns [17:08:08]Send response to host [17:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189250,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:08:08]free response buf [17:08:08]execute_script done [17:08:08]execute_script returns [17:08:08]free content buf [17:08:08]Sock 8.Close socket [17:08:08]Sock 8.Thread stoped [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:51]accept exits with 9 [17:08:51]New connection [17:08:51]New thread 3067215204 created [17:08:51]Thread 3067071844 joined [17:08:51]Waiting for new connection... [17:08:51] Sock 9.Parse request [17:08:51]Sock 9.Check first char [17:08:51]Sock 9.First char is OK [17:08:51]request: POST /json_proto HTTP/1.0 [17:08:51]Method: POST [17:08:51]URL: /json_proto [17:08:51]Method is POST - this is cgi request [17:08:51]url: /json_proto [17:08:51]query_string will be loaded in cgi processing [17:08:51]execute_cgi json_proto POST (null) [17:08:51]execute_cgi path=json_proto method=POST [17:08:51]POST find Content-Length [17:08:51]Host: 172.17.42.131:8080 [17:08:51]Content-Length: 677 [17:08:51]Content-Type: application/json [17:08:51] [17:08:51]POST finish read [17:08:51]Found Content-Length = 677 [17:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:08:51]execute_script... [17:08: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)211316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:08:51]POST & json_proto [17:08:51]process_json_proto [17:08:51]json parsed OK: [17:08:51]protocol is kg_v1.0 [17:08:51]action value=close_receipt [17:08:51]process_action close_receipt [17:08:51]cmd_close_receipt [17:08:51]MH_GetDate [17:08:51]Write to MH i2c: F0 00 00 23 61 73 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: F0 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: F0 09 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: F0 09 00 23 61 00 28 7F 1A 67 A0 18 CA 66 8C [17:08:51]GetLastDocTimeStamp 1729789688 [17:08:51]current date 1729789736 [17:08:51]FM_GetShiftState [17:08:51]SAM_PROTO_GetShiftState [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 13 01 00 [17:08:51]Write to MH i2c: E2 08 00 24 61 80 13 01 00 00 00 00 00 02 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0E 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0E 00 24 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E0 [17:08:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:08:51]wFMCommunicate OK [17:08:51]SAM_PROTO_GetShiftState done [17:08:51]FM_GetShiftState done [17:08:51]opened in 1729728961 [17:08:51]opened+sec_in_day 1729815361 [17:08:51]quantity*price = 50041 [17:08:51]sum+1 = 50042 [17:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 324 24.10.2024 17:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189251 ФПД: 71202957487182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170856&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189251&fm=71202957487182&tin=02508201610067®Number=0000000000100030&sum=50000 [17:08:53]StoreToDocumentArchive [17:08:53]shift 463 fd 189251 [17:08:53]save to /storage/0463/doc_00189251 [17:08:53]save last doc name /storage/0463/doc_00189251 to /storage/kkm_last_doc_name [17:08:53]save OK [17:08:53]Clear old archive folders... [17:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:53]tlvbuf is 01675F30 [17:08:53]SAM_PROTO_ClearQueue [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 09 00 00 [17:08:53]Write to MH i2c: E2 08 00 31 61 80 09 00 00 00 00 00 00 04 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 31 61 00 90 00 06 [17:08:53]RAPDU: 90 00 [17:08:53]wFMCommunicate OK [17:08:53]SAM_PROTO_ClearQueue done [17:08:53]KKMCreateOFDPacket [17:08:53]OFDProtocolAddRootSTLVToBuf [17:08:53]FM_MakeSignedData [17:08:53]FM_MakeSignedData [17:08:53]SAM_PROTO_SignData [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 0D 01 02 [17:08:53]Write to MH i2c: E2 08 00 32 61 80 0D 01 02 00 00 00 00 0C [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 32 61 00 90 00 07 [17:08:53]RAPDU: 90 00 [17:08:53]wFMCommunicate OK [17:08:53]wFMCommunicate request_size=255 [17:08:53]MH_SAM_APDU [17:08: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 7F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E3 02 00 35 04 06 00 40 [17:08:53]Write to MH i2c: E2 02 01 33 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 7F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E3 02 00 35 04 06 00 40 00 00 24 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 33 61 00 90 00 08 [17:08:53]RAPDU: 90 00 [17:08:53]wFMCommunicate OK [17:08:53]wFMCommunicate request_size=10 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 0D 02 02 05 C2 3A FC EC 4E [17:08:53]Write to MH i2c: E2 0D 00 34 61 80 0D 02 02 05 00 C2 3A FC EC 4E 00 00 4B [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 03 00 34 61 00 90 00 09 [17:08:53]RAPDU: 90 00 [17:08:53]wFMCommunicate OK [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 0D 03 02 [17:08:53]Write to MH i2c: E2 08 00 35 61 80 0D 03 02 00 00 00 00 11 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0B 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0B 00 35 61 00 23 47 22 7F 8B 98 36 91 90 00 07 [17:08:53]RAPDU: 23 47 22 7F 8B 98 36 91 90 00 [17:08:53]wFMCommunicate OK [17:08:53]SAM_PROTO_SignData done [17:08:53]FM_MakeSignedData done [17:08:53]CreateOFDProtocolMessage [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 11 00 00 [17:08:53]Write to MH i2c: E2 08 00 36 61 80 11 00 00 00 00 00 00 11 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 17 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 17 00 36 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [17:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:08:53]wFMCommunicate OK [17:08:53]CreateOFDProtocolMessage done [17:08:53]OFDSenderStorePacket 189251 [17:08:53]StoreOFDPacket docnum=189251 [17:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 90 92 07 01 73 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 7F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E3 02 00 35 04 06 00 40 C2 3A FC EC 4E 23 47 22 7F 8B 98 36 91 [17:08:53]CheckFolder [17:08:53]dirname=/storage/ofd_packets [17:08:53]CheckFolder done [17:08:53]ProducePacketName [17:08:53]name=ofd_packets/00189251 [17:08:53]NVStorageSaveData ofd_packets/00189251 [17:08:53]File name is /storage/ofd_packets/00189251 [17:08:53]Write 301 bytes [17:08:53]NVStorageSaveData done [17:08:53]OFDSenderStorePacket done [17:08:53]KKMCreateOFDPacket done [17:08:53]NVStorageSaveData kkm_last_timestamp [17:08:53]File name is /storage/kkm_last_timestamp [17:08:53]Write 4 bytes [17:08:53]NVStorageSaveData done [17:08:53]ExternCall_PrintAddStr [17:08:53]wPrintStart [17:08:53]Write to MH i2c: 01 00 00 37 61 98 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: 01 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: 01 07 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: 01 07 00 37 61 00 00 00 00 00 FF 0F AD [17:08:53]RasterBufferAndPrint [17:08:53]line Счет N : (1)211316 [17:08:53]line ИНН: 02508201610067 [17:08:53]line Контрольно-Кассовый Чек [17:08:53]line ПРОДАЖА [17:08:53]line ТРК (МРК, ГНК) : 42 [17:08:53]line Товар: 2710124130 [17:08:53]line Аи-92-К-3 [17:08:53]line 7.480 * 66.90 [17:08:53]line = 500.41 [17:08:53]line НДС 12% НСП 1% [17:08:53]line > о реализуемом товаре [17:08:53]line ОКРУГЛЕНИЕ: -0.41 [17:08:53]line ИТОГО: 500.00 [17:08:53]line Внесено: 500.00 [17:08:53]line СДАЧА: 0.00 [17:08:53]line НСП 1% : 4.43 [17:08:53]line НДС 12% : 53.14 [17:08:53]line Наличными: 500.00 [17:08:53]line Безнал.: 0.00 [17:08:53]line Место: АЗС № 86 "Партнер Нефть" [17:08:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:08:53]line СНО: Общий режим [17:08:53]line Чек 324 24.10.2024 17:08 [17:08:53]line Смена: 463 ФФД: 1.0 [17:08:53]line ЗНМ: 0300000155 [17:08:53]line РНМ: 0000000000100030 [17:08:53]line Версия ККМ: 001 [17:08:53]line ФМ: 0000000000965340 [17:08:53]line ФД: 189251 [17:08:53]line ФПД: 71202957487182 [17:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170856&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189251&fm=71202957487182&tin=02508201610067®Number=0000000000100030&sum=50000 [17:08:53]written 0, free lines is 4095 [17:08:53]OFD Sender: Processing packet 189251 [packets to send 1062, broken 1061] [17:08:53]ProducePacketName [17:08:53]name=ofd_packets/00189251 [17:08:53]OFD Sender: To server: pG, [17:08:53]CommunicateWithHost lk.salyk.kg:30040 [17:08:53]ConnectInit lk.salyk.kg [17:08:53]Connected sock=10 [17:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 90 92 07 01 73 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 7F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E3 02 00 35 04 06 00 40 C2 3A FC EC 4E 23 47 22 7F 8B 98 36 91 [17:08:54]Write to MH i2c: 01 00 00 62 61 C3 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 07 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 07 00 62 61 00 00 00 00 00 53 0C 29 [17:08:54]RasterBufferAndPrint [17:08:54]line [17:08:54]line [17:08:54]line [17:08:54]line [17:08:54]line [17:08:54]written 0, free lines is 3160 [17:08:54]MH_Cut [17:08:54]Write to MH i2c: D1 01 00 69 61 01 9C [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: D1 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: D1 01 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: D1 01 00 69 61 00 9B [17:08:54]Write to MH i2c: 01 00 00 6A 61 CB [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 7C 47 00 69 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 39 36 35 33 34 30 10 04 04 00 43 E3 02 00 F4 03 04 00 0F 29 1A 67 B6 04 01 00 00 F7 F3 60 C3 D3 94 D7 BF [17:08:54]CommunicateWithHost err = 0 [17:08:54]CheckOFDResponse [17:08:54]1017 (14) - 77093643461234 [17:08:54]1041 (16) - 0000000000965340 [17:08:54]1040 (4) - 189251 [17:08:54]1012 (4) - 24.10.2024 11:01 [17:08:54]1206 (1) - 0 [17:08:54]OFD Sender: Remove packet 189251 [17:08:54]ProducePacketName [17:08:54]name=ofd_packets/00189251 [17:08:54]NVStorageDeleteData [17:08:54]OFD Sender: No OFD packet to send [17:08:55]*** Cut start [17:08:55]*** Partial cut [17:08:55]*** CUTSNS_PIN = 1 [17:08:55]*** CUTSNS_PIN = 0 [17:08:55]*** Brake cut motor [17:08:55]Read from MH i2c: 01 [17:08:55]MH_I2C_Read... [17:08:55]*** Stop cut motor [17:08:55]*** Cut end [17:08:55]Read from MH i2c: 01 07 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 07 00 6A 61 00 00 00 00 00 FF 0F E0 [17:08:55]process_action close_receipt done [17:08:55]requested_data is exist [17:08:55]produce_requested_data [17:08:55]requested_item fm.sn is exist - process it [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 11 00 00 [17:08:55]Write to MH i2c: E2 08 00 6B 61 80 11 00 00 00 00 00 00 46 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 17 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 17 00 6B 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [17:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:08:56]wFMCommunicate OK [17:08:56]requested_item fd.num is exist - process it [17:08:56]SAM_PROTO_GetFieldsCounters [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 13 00 00 [17:08:56]Write to MH i2c: E2 08 00 6C 61 80 13 00 00 00 00 00 00 49 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 62 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 62 00 6C 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E3 02 00 0E 04 04 00 CF 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 17 [17:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E3 02 00 0E 04 04 00 CF 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 [17:08:56]wFMCommunicate OK [17:08:56]SAM_PROTO_GetFieldsCounters done [17:08:56]requested_item shift.num is exist - process it [17:08:56]requested_item shift.opened is exist - process it [17:08:56]req_shift_opened [17:08:56]FM_GetShiftState [17:08:56]SAM_PROTO_GetShiftState [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 13 01 00 [17:08:56]Write to MH i2c: E2 08 00 6D 61 80 13 01 00 00 00 00 00 4B [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 0E 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 0E 00 6D 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 29 [17:08:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:08:56]wFMCommunicate OK [17:08:56]SAM_PROTO_GetShiftState done [17:08:56]FM_GetShiftState done [17:08:56]req_shift_opened done [17:08:56]requested_item shift.open_date is exist - process it [17:08:56]req_shift_open_date [17:08:56]req_shift_open_date done [17:08:56]produce_requested_data done [17:08:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189251,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:08:56]process_action_free close_receipt [17:08:56]json_value_free [17:08:56]json_value_free done [17:08:56]process_json_proto returns [17:08:56]Send response to host [17:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189251,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:08:56]free response buf [17:08:56]execute_script done [17:08:56]execute_script returns [17:08:56]free content buf [17:08:56]Sock 9.Close socket [17:08:56]Sock 9.Thread stoped [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]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:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:12]accept exits with 8 [17:13:12]New connection [17:13:12]New thread 3067071844 created [17:13:12]Thread 3067215204 joined [17:13:12]Waiting for new connection... [17:13:12] Sock 8.Parse request [17:13:12]Sock 8.Check first char [17:13:12]Sock 8.First char is OK [17:13:12]request: POST /json_proto HTTP/1.0 [17:13:12]Method: POST [17:13:12]URL: /json_proto [17:13:12]Method is POST - this is cgi request [17:13:12]url: /json_proto [17:13:12]query_string will be loaded in cgi processing [17:13:12]execute_cgi json_proto POST (null) [17:13:12]execute_cgi path=json_proto method=POST [17:13:12]POST find Content-Length [17:13:12]Host: 172.17.42.131:8080 [17:13:12]Content-Length: 688 [17:13:12]Content-Type: application/json [17:13:12] [17:13:12]POST finish read [17:13:12]Found Content-Length = 688 [17:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:13:12]execute_script... [17:13: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)211317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:13:12]POST & json_proto [17:13:12]process_json_proto [17:13:12]json parsed OK: [17:13:12]protocol is kg_v1.0 [17:13:12]action value=close_receipt [17:13:12]process_action close_receipt [17:13:12]cmd_close_receipt [17:13:12]MH_GetDate [17:13:12]Write to MH i2c: F0 00 00 6E 61 BE [17:13:12]Write i2c OK [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: F0 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: F0 09 00 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: F0 09 00 6E 61 00 2C 80 1A 67 A0 18 CA 66 DC [17:13:12]GetLastDocTimeStamp 1729789736 [17:13:12]current date 1729789996 [17:13:12]FM_GetShiftState [17:13:12]SAM_PROTO_GetShiftState [17:13:12]wFMCommunicate request_size=4 [17:13:12]MH_SAM_APDU [17:13:12]CAPDU: 80 13 01 00 [17:13:12]Write to MH i2c: E2 08 00 6F 61 80 13 01 00 00 00 00 00 4D [17:13:12]Write i2c OK [17:13:12]MH_I2C_Read... [17:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:12]Read from MH i2c: E2 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 0E 00 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 0E 00 6F 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2B [17:13:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:13:12]wFMCommunicate OK [17:13:12]SAM_PROTO_GetShiftState done [17:13:12]FM_GetShiftState done [17:13:12]opened in 1729728961 [17:13:12]opened+sec_in_day 1729815361 [17:13:12]quantity*price = 100051 [17:13:12]sum+1 = 100052 [17:13:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 325 24.10.2024 17:13 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189252 ФПД: 58851667944785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189252&fm=58851667944785&tin=02508201610067®Number=0000000000100030&sum=100000 [17:13:13]StoreToDocumentArchive [17:13:13]shift 463 fd 189252 [17:13:13]save to /storage/0463/doc_00189252 [17:13:13]save last doc name /storage/0463/doc_00189252 to /storage/kkm_last_doc_name [17:13:13]save OK [17:13:13]Clear old archive folders... [17:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:13:13]tlvbuf is 014D3A30 [17:13:13]SAM_PROTO_ClearQueue [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 09 00 00 [17:13:13]Write to MH i2c: E2 08 00 7C 61 80 09 00 00 00 00 00 00 4F [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 7C 61 00 90 00 51 [17:13:13]RAPDU: 90 00 [17:13:13]wFMCommunicate OK [17:13:13]SAM_PROTO_ClearQueue done [17:13:13]KKMCreateOFDPacket [17:13:13]OFDProtocolAddRootSTLVToBuf [17:13:13]FM_MakeSignedData [17:13:13]FM_MakeSignedData [17:13:13]SAM_PROTO_SignData [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 0D 01 02 [17:13:13]Write to MH i2c: E2 08 00 7D 61 80 0D 01 02 00 00 00 00 57 [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 7D 61 00 90 00 52 [17:13:13]RAPDU: 90 00 [17:13:13]wFMCommunicate OK [17:13:13]wFMCommunicate request_size=255 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2C 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E3 02 [17:13:13]Write to MH i2c: E2 02 01 7E 61 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2C 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E3 02 00 00 20 [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 03 00 7E 61 00 90 00 53 [17:13:13]RAPDU: 90 00 [17:13:13]wFMCommunicate OK [17:13:13]wFMCommunicate request_size=16 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 35 86 78 C3 25 51 [17:13:14]Write to MH i2c: E2 13 00 7F 61 80 0D 02 02 0B 00 00 35 04 06 00 35 86 78 C3 25 51 00 00 1B [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:14]Read from MH i2c: E2 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 03 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 03 00 7F 61 00 90 00 54 [17:13:14]RAPDU: 90 00 [17:13:14]wFMCommunicate OK [17:13:14]wFMCommunicate request_size=4 [17:13:14]MH_SAM_APDU [17:13:14]CAPDU: 80 0D 03 02 [17:13:14]Write to MH i2c: E2 08 00 80 61 80 0D 03 02 00 00 00 00 5C [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:14]Read from MH i2c: E2 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 0B 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 0B 00 80 61 00 6C 8B F0 30 55 C1 B2 AA 90 00 E6 [17:13:14]RAPDU: 6C 8B F0 30 55 C1 B2 AA 90 00 [17:13:14]wFMCommunicate OK [17:13:14]SAM_PROTO_SignData done [17:13:14]FM_MakeSignedData done [17:13:14]CreateOFDProtocolMessage [17:13:14]wFMCommunicate request_size=4 [17:13:14]MH_SAM_APDU [17:13:14]CAPDU: 80 11 00 00 [17:13:14]Write to MH i2c: E2 08 00 81 61 80 11 00 00 00 00 00 00 5C [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:14]Read from MH i2c: E2 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 17 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 17 00 81 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [17:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:13:14]wFMCommunicate OK [17:13:14]CreateOFDProtocolMessage done [17:13:14]OFDSenderStorePacket 189252 [17:13:14]StoreOFDPacket docnum=189252 [17:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E 55 0D 01 B3 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2C 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E3 02 00 35 04 06 00 35 86 78 C3 25 51 6C 8B F0 30 55 C1 B2 AA [17:13:14]CheckFolder [17:13:14]dirname=/storage/ofd_packets [17:13:14]CheckFolder done [17:13:14]ProducePacketName [17:13:14]name=ofd_packets/00189252 [17:13:14]NVStorageSaveData ofd_packets/00189252 [17:13:14]File name is /storage/ofd_packets/00189252 [17:13:14]Write 307 bytes [17:13:14]NVStorageSaveData done [17:13:14]OFDSenderStorePacket done [17:13:14]KKMCreateOFDPacket done [17:13:14]NVStorageSaveData kkm_last_timestamp [17:13:14]File name is /storage/kkm_last_timestamp [17:13:14]Write 4 bytes [17:13:14]NVStorageSaveData done [17:13:14]ExternCall_PrintAddStr [17:13:14]wPrintStart [17:13:14]Write to MH i2c: 01 00 00 82 61 E3 [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 07 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 07 00 82 61 00 00 00 00 00 FF 0F F8 [17:13:14]RasterBufferAndPrint [17:13:14]line Счет N : (1)211317 [17:13:14]line ИНН: 02508201610067 [17:13:14]line Контрольно-Кассовый Чек [17:13:14]line ПРОДАЖА [17:13:14]line ТРК (МРК, ГНК) : 31 [17:13:14]line Товар: 2710194210 [17:13:14]line D-ENERGY ДТ-К-5 [17:13:14]line 12.960 * 77.20 [17:13:14]line = 1000.51 [17:13:14]line НДС 12% НСП 1% [17:13:14]line > о реализуемом товаре [17:13:14]line ОКРУГЛЕНИЕ: -0.51 [17:13:14]line ИТОГО: 1000.00 [17:13:14]line Внесено: 1000.00 [17:13:14]line СДАЧА: 0.00 [17:13:14]line НСП 1% : 8.85 [17:13:14]line НДС 12% : 106.25 [17:13:14]line Наличными: 1000.00 [17:13:14]line Безнал.: 0.00 [17:13:14]line Место: АЗС № 86 "Партнер Нефть" [17:13:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:13:14]line СНО: Общий режим [17:13:14]line Чек 325 24.10.2024 17:13 [17:13:14]line Смена: 463 ФФД: 1.0 [17:13:14]line ЗНМ: 0300000155 [17:13:14]line РНМ: 0000000000100030 [17:13:14]line Версия ККМ: 001 [17:13:14]line ФМ: 0000000000965340 [17:13:14]line ФД: 189252 [17:13:14]line ФПД: 58851667944785 [17:13:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189252&fm=58851667944785&tin=02508201610067®Number=0000000000100030&sum=100000 [17:13:14]written 0, free lines is 4095 [17:13:14]OFD Sender: Processing packet 189252 [packets to send 1062, broken 1061] [17:13:14]ProducePacketName [17:13:14]name=ofd_packets/00189252 [17:13:14]OFD Sender: To server: pG, [17:13:14]CommunicateWithHost lk.salyk.kg:30040 [17:13:14]ConnectInit lk.salyk.kg [17:13:14]Connected sock=10 [17:13:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E 55 0D 01 B3 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2C 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E3 02 00 35 04 06 00 35 86 78 C3 25 51 6C 8B F0 30 55 C1 B2 AA [17:13:14]Write to MH i2c: 01 00 00 AD 61 0E [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 07 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: 01 07 00 AD 61 00 00 00 00 00 56 0C 77 [17:13:14]RasterBufferAndPrint [17:13:14]line [17:13:14]line [17:13:14]line [17:13:14]line [17:13:14]line [17:13:14]written 0, free lines is 3162 [17:13:14]MH_Cut [17:13:14]Write to MH i2c: D1 01 00 B4 61 01 E7 [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: D1 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: D1 01 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: D1 01 00 B4 61 00 E6 [17:13:14]Write to MH i2c: 01 00 00 B5 61 16 [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE 32 47 00 62 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 39 36 35 33 34 30 10 04 04 00 44 E3 02 00 F4 03 04 00 14 2A 1A 67 B6 04 01 00 00 D9 E8 EA 68 41 6C 9B 7E [17:13:14]CommunicateWithHost err = 0 [17:13:14]CheckOFDResponse [17:13:14]1017 (14) - 77093643461234 [17:13:14]1041 (16) - 0000000000965340 [17:13:14]1040 (4) - 189252 [17:13:14]1012 (4) - 24.10.2024 11:05 [17:13:14]1206 (1) - 0 [17:13:14]OFD Sender: Remove packet 189252 [17:13:14]ProducePacketName [17:13:14]name=ofd_packets/00189252 [17:13:14]NVStorageDeleteData [17:13:15]OFD Sender: No OFD packet to send [17:13:15]*** Cut start [17:13:15]*** Partial cut [17:13:15]*** CUTSNS_PIN = 1 [17:13:15]*** CUTSNS_PIN = 0 [17:13:16]*** Brake cut motor [17:13:16]Read from MH i2c: 01 [17:13:16]MH_I2C_Read... [17:13:16]*** Stop cut motor [17:13:16]*** Cut end [17:13:16]Read from MH i2c: 01 07 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: 01 07 00 B5 61 00 00 00 00 00 FF 0F 2B [17:13:16]process_action close_receipt done [17:13:16]requested_data is exist [17:13:16]produce_requested_data [17:13:16]requested_item fm.sn is exist - process it [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 11 00 00 [17:13:16]Write to MH i2c: E2 08 00 B6 61 80 11 00 00 00 00 00 00 91 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 17 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 17 00 B6 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [17:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:13:16]wFMCommunicate OK [17:13:16]requested_item fd.num is exist - process it [17:13:16]SAM_PROTO_GetFieldsCounters [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 13 00 00 [17:13:16]Write to MH i2c: E2 08 00 B7 61 80 13 00 00 00 00 00 00 94 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 62 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 62 00 B7 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E3 02 00 0E 04 04 00 CF 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 66 [17:13:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E3 02 00 0E 04 04 00 CF 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 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_GetFieldsCounters done [17:13:16]requested_item shift.num is exist - process it [17:13:16]requested_item shift.opened is exist - process it [17:13:16]req_shift_opened [17:13:16]FM_GetShiftState [17:13:16]SAM_PROTO_GetShiftState [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 13 01 00 [17:13:16]Write to MH i2c: E2 08 00 B8 61 80 13 01 00 00 00 00 00 96 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0E 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0E 00 B8 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 74 [17:13:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_GetShiftState done [17:13:16]FM_GetShiftState done [17:13:16]req_shift_opened done [17:13:16]requested_item shift.open_date is exist - process it [17:13:16]req_shift_open_date [17:13:16]req_shift_open_date done [17:13:16]produce_requested_data done [17:13:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189252,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:13:16]process_action_free close_receipt [17:13:16]json_value_free [17:13:16]json_value_free done [17:13:16]process_json_proto returns [17:13:16]Send response to host [17:13:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189252,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:13:16]free response buf [17:13:16]execute_script done [17:13:16]execute_script returns [17:13:16]free content buf [17:13:16]Sock 8.Close socket [17:13:16]Sock 8.Thread stoped [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]accept exits with 9 [17:15:00]New connection [17:15:00]New thread 3067215204 created [17:15:00]Thread 3067071844 joined [17:15:00]Waiting for new connection... [17:15:00] Sock 9.Parse request [17:15:00]Sock 9.Check first char [17:15:00]Sock 9.First char is OK [17:15:00]request: POST /json_proto HTTP/1.0 [17:15:00]Method: POST [17:15:00]URL: /json_proto [17:15:00]Method is POST - this is cgi request [17:15:00]url: /json_proto [17:15:00]query_string will be loaded in cgi processing [17:15:00]execute_cgi json_proto POST (null) [17:15:00]execute_cgi path=json_proto method=POST [17:15:00]POST find Content-Length [17:15:00]Host: 172.17.42.131:8080 [17:15:00]Content-Length: 769 [17:15:00]Content-Type: application/json [17:15:00] [17:15:00]POST finish read [17:15:00]Found Content-Length = 769 [17:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:00]execute_script... [17:15: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)211318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:00]POST & json_proto [17:15:00]process_json_proto [17:15:00]json parsed OK: [17:15:00]protocol is kg_v1.0 [17:15:00]action value=close_receipt [17:15:00]process_action close_receipt [17:15:00]cmd_close_receipt [17:15:00]MH_GetDate [17:15:00]Write to MH i2c: F0 00 00 B9 61 09 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: F0 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: F0 09 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: F0 09 00 B9 61 00 99 80 1A 67 A0 18 CA 66 94 [17:15:00]GetLastDocTimeStamp 1729789996 [17:15:00]current date 1729790105 [17:15:00]FM_GetShiftState [17:15:00]SAM_PROTO_GetShiftState [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 13 01 00 [17:15:00]Write to MH i2c: E2 08 00 BA 61 80 13 01 00 00 00 00 00 98 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0E 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0E 00 BA 61 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 76 [17:15:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:00]wFMCommunicate OK [17:15:00]SAM_PROTO_GetShiftState done [17:15:00]FM_GetShiftState done [17:15:00]opened in 1729728961 [17:15:00]opened+sec_in_day 1729815361 [17:15:00]quantity*price = 100021 [17:15:00]sum+1 = 100023 [17:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 326 24.10.2024 17:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189253 ФПД: 50752631700401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189253&fm=50752631700401&tin=02508201610067®Number=0000000000100030&sum=100022 [17:15:01]StoreToDocumentArchive [17:15:01]shift 463 fd 189253 [17:15:01]save to /storage/0463/doc_00189253 [17:15:01]save last doc name /storage/0463/doc_00189253 to /storage/kkm_last_doc_name [17:15:01]save OK [17:15:01]Clear old archive folders... [17:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:01]tlvbuf is 015E7C90 [17:15:01]SAM_PROTO_ClearQueue [17:15:01]wFMCommunicate request_size=4 [17:15:01]MH_SAM_APDU [17:15:01]CAPDU: 80 09 00 00 [17:15:01]Write to MH i2c: E2 08 00 C7 61 80 09 00 00 00 00 00 00 9A [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 C7 61 00 90 00 9C [17:15:02]RAPDU: 90 00 [17:15:02]wFMCommunicate OK [17:15:02]SAM_PROTO_ClearQueue done [17:15:02]KKMCreateOFDPacket [17:15:02]OFDProtocolAddRootSTLVToBuf [17:15:02]FM_MakeSignedData [17:15:02]FM_MakeSignedData [17:15:02]SAM_PROTO_SignData [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 0D 01 02 [17:15:02]Write to MH i2c: E2 08 00 C8 61 80 0D 01 02 00 00 00 00 A2 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 C8 61 00 90 00 9D [17:15:02]RAPDU: 90 00 [17:15:02]wFMCommunicate OK [17:15:02]wFMCommunicate request_size=255 [17:15:02]MH_SAM_APDU [17:15: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 33 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 46 01 00 00 F4 03 04 00 99 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E3 02 00 35 04 06 00 2E [17:15:02]Write to MH i2c: E2 02 01 C9 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 33 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 46 01 00 00 F4 03 04 00 99 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E3 02 00 35 04 06 00 2E 00 00 67 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 C9 61 00 90 00 9E [17:15:02]RAPDU: 90 00 [17:15:02]wFMCommunicate OK [17:15:02]wFMCommunicate request_size=10 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 0D 02 02 05 28 C4 95 7B B1 [17:15:02]Write to MH i2c: E2 0D 00 CA 61 80 0D 02 02 05 00 28 C4 95 7B B1 00 00 5C [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:02]Read from MH i2c: E2 03 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 03 00 CA 61 00 90 00 9F [17:15:02]RAPDU: 90 00 [17:15:02]wFMCommunicate OK [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 0D 03 02 [17:15:02]Write to MH i2c: E2 08 00 CB 61 80 0D 03 02 00 00 00 00 A7 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 0B 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 0B 00 CB 61 00 AF DC E3 77 4F 90 58 E9 90 00 AD [17:15:02]RAPDU: AF DC E3 77 4F 90 58 E9 90 00 [17:15:02]wFMCommunicate OK [17:15:02]SAM_PROTO_SignData done [17:15:02]FM_MakeSignedData done [17:15:02]CreateOFDProtocolMessage [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 CC 61 80 11 00 00 00 00 00 00 A7 [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 CC 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [17:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:02]wFMCommunicate OK [17:15:02]CreateOFDProtocolMessage done [17:15:02]OFDSenderStorePacket 189253 [17:15:02]StoreOFDPacket docnum=189253 [17:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 00 07 01 48 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 33 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 46 01 00 00 F4 03 04 00 99 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E3 02 00 35 04 06 00 2E 28 C4 95 7B B1 AF DC E3 77 4F 90 58 E9 [17:15:02]CheckFolder [17:15:02]dirname=/storage/ofd_packets [17:15:02]CheckFolder done [17:15:02]ProducePacketName [17:15:02]name=ofd_packets/00189253 [17:15:02]NVStorageSaveData ofd_packets/00189253 [17:15:02]File name is /storage/ofd_packets/00189253 [17:15:02]Write 301 bytes [17:15:02]NVStorageSaveData done [17:15:02]OFDSenderStorePacket done [17:15:02]KKMCreateOFDPacket done [17:15:02]NVStorageSaveData kkm_last_timestamp [17:15:02]File name is /storage/kkm_last_timestamp [17:15:02]Write 4 bytes [17:15:02]NVStorageSaveData done [17:15:02]ExternCall_PrintAddStr [17:15:02]wPrintStart [17:15:02]Write to MH i2c: 01 00 00 CD 61 2E [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: 01 [17:15:02]MH_I2C_Read... [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 CD 61 00 00 00 00 00 FF 0F 43 [17:15:02]RasterBufferAndPrint [17:15:02]line Счет N : (1)211318 [17:15:02]line ИНН: 02508201610067 [17:15:02]line Контрольно-Кассовый Чек [17:15:02]line ПРОДАЖА [17:15:02]line ТРК (МРК, ГНК) : 13 [17:15:02]line Товар: 2710124500 [17:15:02]line Аи-95-К-3 [17:15:02]line 13.480 * 74.20 [17:15:02]line = 1000.22 [17:15:02]line НДС 12% НСП 1% [17:15:02]line > о реализуемом товаре [17:15:02]line ИТОГО: 1000.22 [17:15:02]line НСП 1% : 8.85 [17:15:02]line НДС 12% : 106.22 [17:15:02]line Наличными: 0.00 [17:15:02]line Безнал.: 1000.22 [17:15:02]line Место: АЗС № 86 "Партнер Нефть" [17:15:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:15:02]line СНО: Общий режим [17:15:02]line Чек 326 24.10.2024 17:15 [17:15:02]line Смена: 463 ФФД: 1.0 [17:15:02]line ЗНМ: 0300000155 [17:15:02]line РНМ: 0000000000100030 [17:15:02]line Версия ККМ: 001 [17:15:02]line Платежная система: Mbank [17:15:02]line ФМ: 0000000000965340 [17:15:02]line ФД: 189253 [17:15:02]line ФПД: 50752631700401 [17:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189253&fm=50752631700401&tin=02508201610067®Number=0000000000100030&sum=100022 [17:15:02]written 0, free lines is 4095 [17:15:02]OFD Sender: Processing packet 189253 [packets to send 1062, broken 1061] [17:15:02]ProducePacketName [17:15:02]name=ofd_packets/00189253 [17:15:02]OFD Sender: To server: pG, [17:15:02]CommunicateWithHost lk.salyk.kg:30040 [17:15:02]ConnectInit lk.salyk.kg [17:15:02]Connected sock=11 [17:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 00 07 01 48 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 33 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 46 01 00 00 F4 03 04 00 99 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E3 02 00 35 04 06 00 2E 28 C4 95 7B B1 AF DC E3 77 4F 90 58 E9 [17:15:02]Write to MH i2c: 01 00 00 F6 61 57 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: 01 [17:15:02]MH_I2C_Read... [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 F6 61 00 00 00 00 00 82 0C EC [17:15:02]RasterBufferAndPrint [17:15:02]line [17:15:02]line [17:15:02]line [17:15:02]line [17:15:02]line [17:15:02]written 0, free lines is 3205 [17:15:02]MH_Cut [17:15:02]Write to MH i2c: D1 01 00 FD 61 01 30 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: D1 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: D1 01 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: D1 01 00 FD 61 00 2F [17:15:02]Write to MH i2c: 01 00 00 FE 61 5F [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB 9C 47 00 C8 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 39 36 35 33 34 30 10 04 04 00 45 E3 02 00 F4 03 04 00 80 2A 1A 67 B6 04 01 00 00 79 BD 01 90 0E 96 84 13 [17:15:03]CommunicateWithHost err = 0 [17:15:03]CheckOFDResponse [17:15:03]1017 (14) - 77093643461234 [17:15:03]1041 (16) - 0000000000965340 [17:15:03]1040 (4) - 189253 [17:15:03]1012 (4) - 24.10.2024 11:07 [17:15:03]1206 (1) - 0 [17:15:03]OFD Sender: Remove packet 189253 [17:15:03]ProducePacketName [17:15:03]name=ofd_packets/00189253 [17:15:03]NVStorageDeleteData [17:15:03]OFD Sender: No OFD packet to send [17:15:04]*** Cut start [17:15:04]*** Partial cut [17:15:04]*** CUTSNS_PIN = 1 [17:15:04]*** CUTSNS_PIN = 0 [17:15:04]*** Brake cut motor [17:15:04]Read from MH i2c: 01 [17:15:04]MH_I2C_Read... [17:15:04]*** Stop cut motor [17:15:04]*** Cut end [17:15:04]Read from MH i2c: 01 07 00 [17:15:04]MH_I2C_Read... [17:15:04]Read from MH i2c: 01 07 00 FE 61 00 00 00 00 00 FF 0F 74 [17:15:04]process_action close_receipt done [17:15:04]requested_data is exist [17:15:04]produce_requested_data [17:15:04]requested_item fm.sn is exist - process it [17:15:04]wFMCommunicate request_size=4 [17:15:04]MH_SAM_APDU [17:15:04]CAPDU: 80 11 00 00 [17:15:04]Write to MH i2c: E2 08 00 FF 61 80 11 00 00 00 00 00 00 DA [17:15:04]Write i2c OK [17:15:04]MH_I2C_Read... [17:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:04]Read from MH i2c: E2 [17:15:04]MH_I2C_Read... [17:15:04]Read from MH i2c: E2 17 00 [17:15:04]MH_I2C_Read... [17:15:04]Read from MH i2c: E2 17 00 FF 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [17:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:04]wFMCommunicate OK [17:15:04]requested_item fd.num is exist - process it [17:15:04]SAM_PROTO_GetFieldsCounters [17:15:04]wFMCommunicate request_size=4 [17:15:04]MH_SAM_APDU [17:15:04]CAPDU: 80 13 00 00 [17:15:04]Write to MH i2c: E2 08 00 00 62 80 13 00 00 00 00 00 00 DE [17:15:04]Write i2c OK [17:15:04]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 62 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 62 00 00 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E3 02 00 0E 04 04 00 CF 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 B4 [17:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E3 02 00 0E 04 04 00 CF 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 [17:15:05]wFMCommunicate OK [17:15:05]SAM_PROTO_GetFieldsCounters done [17:15:05]requested_item shift.num is exist - process it [17:15:05]requested_item shift.opened is exist - process it [17:15:05]req_shift_opened [17:15:05]FM_GetShiftState [17:15:05]SAM_PROTO_GetShiftState [17:15:05]wFMCommunicate request_size=4 [17:15:05]MH_SAM_APDU [17:15:05]CAPDU: 80 13 01 00 [17:15:05]Write to MH i2c: E2 08 00 01 62 80 13 01 00 00 00 00 00 E0 [17:15:05]Write i2c OK [17:15:05]MH_I2C_Read... [17:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:05]Read from MH i2c: E2 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 0E 00 [17:15:05]MH_I2C_Read... [17:15:05]Read from MH i2c: E2 0E 00 01 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BE [17:15:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:05]wFMCommunicate OK [17:15:05]SAM_PROTO_GetShiftState done [17:15:05]FM_GetShiftState done [17:15:05]req_shift_opened done [17:15:05]requested_item shift.open_date is exist - process it [17:15:05]req_shift_open_date [17:15:05]req_shift_open_date done [17:15:05]produce_requested_data done [17:15:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189253,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:15:05]process_action_free close_receipt [17:15:05]json_value_free [17:15:05]json_value_free done [17:15:05]process_json_proto returns [17:15:05]Send response to host [17:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189253,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:15:05]free response buf [17:15:05]execute_script done [17:15:05]execute_script returns [17:15:05]free content buf [17:15:05]Sock 9.Close socket [17:15:05]Sock 9.Thread stoped [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:26]accept exits with 8 [17:15:26]New connection [17:15:26]New thread 3067071844 created [17:15:26]Thread 3067215204 joined [17:15:26]Waiting for new connection... [17:15:26] Sock 8.Parse request [17:15:26]Sock 8.Check first char [17:15:26]Sock 8.First char is OK [17:15:26]request: POST /json_proto HTTP/1.0 [17:15:26]Method: POST [17:15:26]URL: /json_proto [17:15:26]Method is POST - this is cgi request [17:15:26]url: /json_proto [17:15:26]query_string will be loaded in cgi processing [17:15:26]execute_cgi json_proto POST (null) [17:15:26]execute_cgi path=json_proto method=POST [17:15:26]POST find Content-Length [17:15:26]Host: 172.17.42.131:8080 [17:15:26]Content-Length: 682 [17:15:26]Content-Type: application/json [17:15:26] [17:15:26]POST finish read [17:15:26]Found Content-Length = 682 [17:15:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:15:26]execute_script... [17:15: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)211319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:15:26]POST & json_proto [17:15:26]process_json_proto [17:15:26]json parsed OK: [17:15:26]protocol is kg_v1.0 [17:15:26]action value=close_receipt [17:15:26]process_action close_receipt [17:15:26]cmd_close_receipt [17:15:26]MH_GetDate [17:15:26]Write to MH i2c: F0 00 00 02 62 53 [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 09 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: F0 09 00 02 62 00 B2 80 1A 67 A0 18 CA 66 F7 [17:15:26]GetLastDocTimeStamp 1729790105 [17:15:26]current date 1729790130 [17:15:26]FM_GetShiftState [17:15:26]SAM_PROTO_GetShiftState [17:15:26]wFMCommunicate request_size=4 [17:15:26]MH_SAM_APDU [17:15:26]CAPDU: 80 13 01 00 [17:15:26]Write to MH i2c: E2 08 00 03 62 80 13 01 00 00 00 00 00 E2 [17:15:26]Write i2c OK [17:15:26]MH_I2C_Read... [17:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:26]Read from MH i2c: E2 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 0E 00 [17:15:26]MH_I2C_Read... [17:15:26]Read from MH i2c: E2 0E 00 03 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C0 [17:15:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:26]wFMCommunicate OK [17:15:26]SAM_PROTO_GetShiftState done [17:15:26]FM_GetShiftState done [17:15:26]opened in 1729728961 [17:15:26]opened+sec_in_day 1729815361 [17:15:26]quantity*price = 100021 [17:15:26]sum+1 = 100023 [17:15: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 327 24.10.2024 17:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189254 ФПД: 38721019647805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189254&fm=38721019647805&tin=02508201610067®Number=0000000000100030&sum=100000 [17:15:27]StoreToDocumentArchive [17:15:27]shift 463 fd 189254 [17:15:27]save to /storage/0463/doc_00189254 [17:15:27]save last doc name /storage/0463/doc_00189254 to /storage/kkm_last_doc_name [17:15:27]save OK [17:15:27]Clear old archive folders... [17:15:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:27]tlvbuf is 01553870 [17:15:27]SAM_PROTO_ClearQueue [17:15:27]wFMCommunicate request_size=4 [17:15:27]MH_SAM_APDU [17:15:27]CAPDU: 80 09 00 00 [17:15:27]Write to MH i2c: E2 08 00 10 62 80 09 00 00 00 00 00 00 E4 [17:15:27]Write i2c OK [17:15:27]MH_I2C_Read... [17:15:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:27]Read from MH i2c: E2 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 03 00 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 03 00 10 62 00 90 00 E6 [17:15:27]RAPDU: 90 00 [17:15:27]wFMCommunicate OK [17:15:27]SAM_PROTO_ClearQueue done [17:15:27]KKMCreateOFDPacket [17:15:27]OFDProtocolAddRootSTLVToBuf [17:15:27]FM_MakeSignedData [17:15:27]FM_MakeSignedData [17:15:27]SAM_PROTO_SignData [17:15:27]wFMCommunicate request_size=4 [17:15:27]MH_SAM_APDU [17:15:27]CAPDU: 80 0D 01 02 [17:15:27]Write to MH i2c: E2 08 00 11 62 80 0D 01 02 00 00 00 00 EC [17:15:27]Write i2c OK [17:15:27]MH_I2C_Read... [17:15:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:27]Read from MH i2c: E2 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 03 00 [17:15:27]MH_I2C_Read... [17:15:27]Read from MH i2c: E2 03 00 11 62 00 90 00 E7 [17:15:27]RAPDU: 90 00 [17:15:27]wFMCommunicate OK [17:15:27]wFMCommunicate request_size=255 [17:15:27]MH_SAM_APDU [17:15: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 33 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 47 01 00 00 F4 03 04 00 B2 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E3 02 00 35 04 06 00 23 [17:15:27]Write to MH i2c: E2 02 01 12 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 47 01 00 00 F4 03 04 00 B2 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E3 02 00 35 04 06 00 23 00 00 95 [17:15:27]Write i2c OK [17:15:27]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 12 62 00 90 00 E8 [17:15:28]RAPDU: 90 00 [17:15:28]wFMCommunicate OK [17:15:28]wFMCommunicate request_size=10 [17:15:28]MH_SAM_APDU [17:15:28]CAPDU: 80 0D 02 02 05 37 70 9F 17 3D [17:15:28]Write to MH i2c: E2 0D 00 13 62 80 0D 02 02 05 00 37 70 9F 17 3D 00 00 93 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 03 00 13 62 00 90 00 E9 [17:15:28]RAPDU: 90 00 [17:15:28]wFMCommunicate OK [17:15:28]wFMCommunicate request_size=4 [17:15:28]MH_SAM_APDU [17:15:28]CAPDU: 80 0D 03 02 [17:15:28]Write to MH i2c: E2 08 00 14 62 80 0D 03 02 00 00 00 00 F1 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 0B 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 0B 00 14 62 00 04 9E 1C C0 09 00 11 B2 90 00 3C [17:15:28]RAPDU: 04 9E 1C C0 09 00 11 B2 90 00 [17:15:28]wFMCommunicate OK [17:15:28]SAM_PROTO_SignData done [17:15:28]FM_MakeSignedData done [17:15:28]CreateOFDProtocolMessage [17:15:28]wFMCommunicate request_size=4 [17:15:28]MH_SAM_APDU [17:15:28]CAPDU: 80 11 00 00 [17:15:28]Write to MH i2c: E2 08 00 15 62 80 11 00 00 00 00 00 00 F1 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:28]Read from MH i2c: E2 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 17 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: E2 17 00 15 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [17:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:28]wFMCommunicate OK [17:15:28]CreateOFDProtocolMessage done [17:15:28]OFDSenderStorePacket 189254 [17:15:28]StoreOFDPacket docnum=189254 [17:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F 46 07 01 43 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 47 01 00 00 F4 03 04 00 B2 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E3 02 00 35 04 06 00 23 37 70 9F 17 3D 04 9E 1C C0 09 00 11 B2 [17:15:28]CheckFolder [17:15:28]dirname=/storage/ofd_packets [17:15:28]CheckFolder done [17:15:28]ProducePacketName [17:15:28]name=ofd_packets/00189254 [17:15:28]NVStorageSaveData ofd_packets/00189254 [17:15:28]File name is /storage/ofd_packets/00189254 [17:15:28]Write 301 bytes [17:15:28]NVStorageSaveData done [17:15:28]OFDSenderStorePacket done [17:15:28]KKMCreateOFDPacket done [17:15:28]NVStorageSaveData kkm_last_timestamp [17:15:28]File name is /storage/kkm_last_timestamp [17:15:28]Write 4 bytes [17:15:28]NVStorageSaveData done [17:15:28]ExternCall_PrintAddStr [17:15:28]wPrintStart [17:15:28]Write to MH i2c: 01 00 00 16 62 78 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 16 62 00 00 00 00 00 FF 0F 8D [17:15:28]RasterBufferAndPrint [17:15:28]line Счет N : (1)211319 [17:15:28]line ИНН: 02508201610067 [17:15:28]line Контрольно-Кассовый Чек [17:15:28]line ПРОДАЖА [17:15:28]line ТРК (МРК, ГНК) : 43 [17:15:28]line Товар: 2710124500 [17:15:28]line Аи-95-К-3 [17:15:28]line 13.480 * 74.20 [17:15:28]line = 1000.22 [17:15:28]line НДС 12% НСП 1% [17:15:28]line > о реализуемом товаре [17:15:28]line ОКРУГЛЕНИЕ: -0.22 [17:15:28]line ИТОГО: 1000.00 [17:15:28]line Внесено: 1000.00 [17:15:28]line СДАЧА: 0.00 [17:15:28]line НСП 1% : 8.85 [17:15:28]line НДС 12% : 106.22 [17:15:28]line Наличными: 1000.00 [17:15:28]line Безнал.: 0.00 [17:15:28]line Место: АЗС № 86 "Партнер Нефть" [17:15:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:15:28]line СНО: Общий режим [17:15:28]line Чек 327 24.10.2024 17:15 [17:15:28]line Смена: 463 ФФД: 1.0 [17:15:28]line ЗНМ: 0300000155 [17:15:28]line РНМ: 0000000000100030 [17:15:28]line Версия ККМ: 001 [17:15:28]line ФМ: 0000000000965340 [17:15:28]line ФД: 189254 [17:15:28]line ФПД: 38721019647805 [17:15:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189254&fm=38721019647805&tin=02508201610067®Number=0000000000100030&sum=100000 [17:15:28]written 0, free lines is 4095 [17:15:28]OFD Sender: Processing packet 189254 [packets to send 1062, broken 1061] [17:15:28]ProducePacketName [17:15:28]name=ofd_packets/00189254 [17:15:28]OFD Sender: To server: pG, [17:15:28]CommunicateWithHost lk.salyk.kg:30040 [17:15:28]ConnectInit lk.salyk.kg [17:15:28]Connected sock=10 [17:15:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F 46 07 01 43 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 47 01 00 00 F4 03 04 00 B2 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E3 02 00 35 04 06 00 23 37 70 9F 17 3D 04 9E 1C C0 09 00 11 B2 [17:15:28]Write to MH i2c: 01 00 00 41 62 A3 [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: 01 07 00 41 62 00 00 00 00 00 5D 0C 13 [17:15:28]RasterBufferAndPrint [17:15:28]line [17:15:28]line [17:15:28]line [17:15:28]line [17:15:28]line [17:15:28]written 0, free lines is 3169 [17:15:28]MH_Cut [17:15:28]Write to MH i2c: D1 01 00 48 62 01 7C [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: D1 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: D1 01 00 [17:15:28]MH_I2C_Read... [17:15:28]Read from MH i2c: D1 01 00 48 62 00 7B [17:15:28]Write to MH i2c: 01 00 00 49 62 AB [17:15:28]Write i2c OK [17:15:28]MH_I2C_Read... [17:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 94 47 00 49 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 39 36 35 33 34 30 10 04 04 00 46 E3 02 00 F4 03 04 00 9A 2A 1A 67 B6 04 01 00 00 56 E0 2D 2D 3D F2 D7 33 [17:15:29]CommunicateWithHost err = 0 [17:15:29]CheckOFDResponse [17:15:29]1017 (14) - 77093643461234 [17:15:29]1041 (16) - 0000000000965340 [17:15:29]1040 (4) - 189254 [17:15:29]1012 (4) - 24.10.2024 11:08 [17:15:29]1206 (1) - 0 [17:15:29]OFD Sender: Remove packet 189254 [17:15:29]ProducePacketName [17:15:29]name=ofd_packets/00189254 [17:15:29]NVStorageDeleteData [17:15:29]OFD Sender: No OFD packet to send [17:15:30]*** Cut start [17:15:30]*** Partial cut [17:15:30]*** CUTSNS_PIN = 1 [17:15:30]*** CUTSNS_PIN = 0 [17:15:30]*** Brake cut motor [17:15:30]Read from MH i2c: 01 [17:15:30]MH_I2C_Read... [17:15:30]*** Stop cut motor [17:15:30]*** Cut end [17:15:30]Read from MH i2c: 01 07 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: 01 07 00 49 62 00 00 00 00 00 FF 0F C0 [17:15:30]process_action close_receipt done [17:15:30]requested_data is exist [17:15:30]produce_requested_data [17:15:30]requested_item fm.sn is exist - process it [17:15:30]wFMCommunicate request_size=4 [17:15:30]MH_SAM_APDU [17:15:30]CAPDU: 80 11 00 00 [17:15:30]Write to MH i2c: E2 08 00 4A 62 80 11 00 00 00 00 00 00 26 [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:30]Read from MH i2c: E2 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 17 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 17 00 4A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [17:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:30]wFMCommunicate OK [17:15:30]requested_item fd.num is exist - process it [17:15:30]SAM_PROTO_GetFieldsCounters [17:15:30]wFMCommunicate request_size=4 [17:15:30]MH_SAM_APDU [17:15:30]CAPDU: 80 13 00 00 [17:15:30]Write to MH i2c: E2 08 00 4B 62 80 13 00 00 00 00 00 00 29 [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:30]Read from MH i2c: E2 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 62 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 62 00 4B 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E3 02 00 0E 04 04 00 CF 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 03 [17:15:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E3 02 00 0E 04 04 00 CF 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 [17:15:30]wFMCommunicate OK [17:15:30]SAM_PROTO_GetFieldsCounters done [17:15:30]requested_item shift.num is exist - process it [17:15:30]requested_item shift.opened is exist - process it [17:15:30]req_shift_opened [17:15:30]FM_GetShiftState [17:15:30]SAM_PROTO_GetShiftState [17:15:30]wFMCommunicate request_size=4 [17:15:30]MH_SAM_APDU [17:15:30]CAPDU: 80 13 01 00 [17:15:30]Write to MH i2c: E2 08 00 4C 62 80 13 01 00 00 00 00 00 2B [17:15:30]Write i2c OK [17:15:30]MH_I2C_Read... [17:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:30]Read from MH i2c: E2 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 0E 00 [17:15:30]MH_I2C_Read... [17:15:30]Read from MH i2c: E2 0E 00 4C 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 09 [17:15:30]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:30]wFMCommunicate OK [17:15:30]SAM_PROTO_GetShiftState done [17:15:30]FM_GetShiftState done [17:15:30]req_shift_opened done [17:15:30]requested_item shift.open_date is exist - process it [17:15:30]req_shift_open_date [17:15:30]req_shift_open_date done [17:15:30]produce_requested_data done [17:15:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189254,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:15:30]process_action_free close_receipt [17:15:30]json_value_free [17:15:30]json_value_free done [17:15:30]process_json_proto returns [17:15:30]Send response to host [17:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189254,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:15:30]free response buf [17:15:30]execute_script done [17:15:30]execute_script returns [17:15:30]free content buf [17:15:30]Sock 8.Close socket [17:15:30]Sock 8.Thread stoped [17:15:32]accept exits with 9 [17:15:32]New connection [17:15:32]New thread 3067215204 created [17:15:32]Thread 3067071844 joined [17:15:32]Waiting for new connection... [17:15:32] Sock 9.Parse request [17:15:32]Sock 9.Check first char [17:15:32]Sock 9.First char is OK [17:15:32]request: POST /json_proto HTTP/1.0 [17:15:32]Method: POST [17:15:32]URL: /json_proto [17:15:32]Method is POST - this is cgi request [17:15:32]url: /json_proto [17:15:32]query_string will be loaded in cgi processing [17:15:32]execute_cgi json_proto POST (null) [17:15:32]execute_cgi path=json_proto method=POST [17:15:32]POST find Content-Length [17:15:32]Host: 172.17.42.131:8080 [17:15:32]Content-Length: 674 [17:15:32]Content-Type: application/json [17:15:32] [17:15:32]POST finish read [17:15:32]Found Content-Length = 674 [17:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [17:15:32]execute_script... [17:15: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)211320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [17:15:32]POST & json_proto [17:15:32]process_json_proto [17:15:32]json parsed OK: [17:15:32]protocol is kg_v1.0 [17:15:32]action value=close_receipt [17:15:32]process_action close_receipt [17:15:32]cmd_close_receipt [17:15:32]MH_GetDate [17:15:32]Write to MH i2c: F0 00 00 4D 62 9E [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: F0 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: F0 09 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: F0 09 00 4D 62 00 B8 80 1A 67 A0 18 CA 66 48 [17:15:32]GetLastDocTimeStamp 1729790130 [17:15:32]current date 1729790136 [17:15:32]FM_GetShiftState [17:15:32]SAM_PROTO_GetShiftState [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 13 01 00 [17:15:32]Write to MH i2c: E2 08 00 4E 62 80 13 01 00 00 00 00 00 2D [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:32]Read from MH i2c: E2 0E 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 0E 00 4E 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0B [17:15:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:32]wFMCommunicate OK [17:15:32]SAM_PROTO_GetShiftState done [17:15:32]FM_GetShiftState done [17:15:32]opened in 1729728961 [17:15:32]opened+sec_in_day 1729815361 [17:15:32]quantity*price = 60045 [17:15:32]sum+1 = 60047 [17:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 328 24.10.2024 17:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189255 ФПД: 71035077250606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189255&fm=71035077250606&tin=02508201610067®Number=0000000000100030&sum=60000 [17:15:33]StoreToDocumentArchive [17:15:33]shift 463 fd 189255 [17:15:33]save to /storage/0463/doc_00189255 [17:15:33]save last doc name /storage/0463/doc_00189255 to /storage/kkm_last_doc_name [17:15:33]save OK [17:15:33]Clear old archive folders... [17:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:15:33]tlvbuf is 015DF990 [17:15:33]SAM_PROTO_ClearQueue [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 09 00 00 [17:15:33]Write to MH i2c: E2 08 00 5B 62 80 09 00 00 00 00 00 00 2F [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 5B 62 00 90 00 31 [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]SAM_PROTO_ClearQueue done [17:15:33]KKMCreateOFDPacket [17:15:33]OFDProtocolAddRootSTLVToBuf [17:15:33]FM_MakeSignedData [17:15:33]FM_MakeSignedData [17:15:33]SAM_PROTO_SignData [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 01 02 [17:15:33]Write to MH i2c: E2 08 00 5C 62 80 0D 01 02 00 00 00 00 37 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 5C 62 00 90 00 32 [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=255 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 01 00 00 F4 03 04 00 B8 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E3 02 00 35 04 06 00 40 9B 24 8B [17:15:33]Write to MH i2c: E2 02 01 5D 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 01 00 00 F4 03 04 00 B8 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E3 02 00 35 04 06 00 40 9B 24 8B 00 00 EB [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 5D 62 00 90 00 33 [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=7 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 02 02 02 CE 2E [17:15:33]Write to MH i2c: E2 0A 00 5E 62 80 0D 02 02 02 00 CE 2E 00 00 3A [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 5E 62 00 90 00 34 [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 03 02 [17:15:33]Write to MH i2c: E2 08 00 5F 62 80 0D 03 02 00 00 00 00 3C [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:34]Read from MH i2c: E2 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 0B 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 0B 00 5F 62 00 09 C7 BC B2 5C 68 48 15 90 00 9C [17:15:34]RAPDU: 09 C7 BC B2 5C 68 48 15 90 00 [17:15:34]wFMCommunicate OK [17:15:34]SAM_PROTO_SignData done [17:15:34]FM_MakeSignedData done [17:15:34]CreateOFDProtocolMessage [17:15:34]wFMCommunicate request_size=4 [17:15:34]MH_SAM_APDU [17:15:34]CAPDU: 80 11 00 00 [17:15:34]Write to MH i2c: E2 08 00 60 62 80 11 00 00 00 00 00 00 3C [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:34]Read from MH i2c: E2 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 17 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: E2 17 00 60 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [17:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:34]wFMCommunicate OK [17:15:34]CreateOFDProtocolMessage done [17:15:34]OFDSenderStorePacket 189255 [17:15:34]StoreOFDPacket docnum=189255 [17:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E6 A9 04 01 DF 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 48 01 00 00 F4 03 04 00 B8 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E3 02 00 35 04 06 00 40 9B 24 8B CE 2E 09 C7 BC B2 5C 68 48 15 [17:15:34]CheckFolder [17:15:34]dirname=/storage/ofd_packets [17:15:34]CheckFolder done [17:15:34]ProducePacketName [17:15:34]name=ofd_packets/00189255 [17:15:34]NVStorageSaveData ofd_packets/00189255 [17:15:34]File name is /storage/ofd_packets/00189255 [17:15:34]Write 298 bytes [17:15:34]NVStorageSaveData done [17:15:34]OFDSenderStorePacket done [17:15:34]KKMCreateOFDPacket done [17:15:34]NVStorageSaveData kkm_last_timestamp [17:15:34]File name is /storage/kkm_last_timestamp [17:15:34]Write 4 bytes [17:15:34]NVStorageSaveData done [17:15:34]ExternCall_PrintAddStr [17:15:34]wPrintStart [17:15:34]Write to MH i2c: 01 00 00 61 62 C3 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 61 62 00 00 00 00 00 FF 0F D8 [17:15:34]RasterBufferAndPrint [17:15:34]line Счет N : (1)211320 [17:15:34]line ИНН: 02508201610067 [17:15:34]line Контрольно-Кассовый Чек [17:15:34]line ПРОДАЖА [17:15:34]line ТРК (МРК, ГНК) : 51 [17:15:34]line Товар: 2710194210 [17:15:34]line ДТ-К-5 [17:15:34]line 7.880 * 76.20 [17:15:34]line = 600.46 [17:15:34]line НДС 12% НСП 1% [17:15:34]line > о реализуемом товаре [17:15:34]line ОКРУГЛЕНИЕ: -0.46 [17:15:34]line ИТОГО: 600.00 [17:15:34]line Внесено: 600.00 [17:15:34]line СДАЧА: 0.00 [17:15:34]line НСП 1% : 5.31 [17:15:34]line НДС 12% : 63.77 [17:15:34]line Наличными: 600.00 [17:15:34]line Безнал.: 0.00 [17:15:34]line Место: АЗС № 86 "Партнер Нефть" [17:15:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:15:34]line СНО: Общий режим [17:15:34]line Чек 328 24.10.2024 17:15 [17:15:34]line Смена: 463 ФФД: 1.0 [17:15:34]line ЗНМ: 0300000155 [17:15:34]line РНМ: 0000000000100030 [17:15:34]line Версия ККМ: 001 [17:15:34]line ФМ: 0000000000965340 [17:15:34]line ФД: 189255 [17:15:34]line ФПД: 71035077250606 [17:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189255&fm=71035077250606&tin=02508201610067®Number=0000000000100030&sum=60000 [17:15:34]written 0, free lines is 4095 [17:15:34]OFD Sender: Processing packet 189255 [packets to send 1062, broken 1061] [17:15:34]ProducePacketName [17:15:34]name=ofd_packets/00189255 [17:15:34]OFD Sender: To server: pG, [17:15:34]CommunicateWithHost lk.salyk.kg:30040 [17:15:34]ConnectInit lk.salyk.kg [17:15:34]Connected sock=10 [17:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E6 A9 04 01 DF 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 48 01 00 00 F4 03 04 00 B8 80 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E3 02 00 35 04 06 00 40 9B 24 8B CE 2E 09 C7 BC B2 5C 68 48 15 [17:15:34]Write to MH i2c: 01 00 00 8C 62 EE [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 8C 62 00 00 00 00 00 5D 0C 5E [17:15:34]RasterBufferAndPrint [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]written 0, free lines is 3174 [17:15:34]MH_Cut [17:15:34]Write to MH i2c: D1 01 00 93 62 01 C7 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 01 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 01 00 93 62 00 C6 [17:15:34]Write to MH i2c: 01 00 00 94 62 F6 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5E 11 47 00 A9 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E3 02 00 F4 03 04 00 A0 2A 1A 67 B6 04 01 00 00 22 78 75 04 40 B4 9E 6F [17:15:34]CommunicateWithHost err = 0 [17:15:34]CheckOFDResponse [17:15:34]1017 (14) - 77093643461234 [17:15:34]1041 (16) - 0000000000965340 [17:15:34]1040 (4) - 189255 [17:15:34]1012 (4) - 24.10.2024 11:08 [17:15:34]1206 (1) - 0 [17:15:34]OFD Sender: Remove packet 189255 [17:15:34]ProducePacketName [17:15:34]name=ofd_packets/00189255 [17:15:34]NVStorageDeleteData [17:15:35]OFD Sender: No OFD packet to send [17:15:35]*** Cut start [17:15:35]*** Partial cut [17:15:35]*** CUTSNS_PIN = 1 [17:15:35]*** CUTSNS_PIN = 0 [17:15:36]*** Brake cut motor [17:15:36]Read from MH i2c: 01 [17:15:36]MH_I2C_Read... [17:15:36]*** Stop cut motor [17:15:36]*** Cut end [17:15:36]Read from MH i2c: 01 07 00 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: 01 07 00 94 62 00 00 00 00 00 FF 0F 0B [17:15:36]process_action close_receipt done [17:15:36]requested_data is exist [17:15:36]produce_requested_data [17:15:36]requested_item fm.sn is exist - process it [17:15:36]wFMCommunicate request_size=4 [17:15:36]MH_SAM_APDU [17:15:36]CAPDU: 80 11 00 00 [17:15:36]Write to MH i2c: E2 08 00 95 62 80 11 00 00 00 00 00 00 71 [17:15:36]Write i2c OK [17:15:36]MH_I2C_Read... [17:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:36]Read from MH i2c: E2 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 17 00 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 17 00 95 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [17:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:36]wFMCommunicate OK [17:15:36]requested_item fd.num is exist - process it [17:15:36]SAM_PROTO_GetFieldsCounters [17:15:36]wFMCommunicate request_size=4 [17:15:36]MH_SAM_APDU [17:15:36]CAPDU: 80 13 00 00 [17:15:36]Write to MH i2c: E2 08 00 96 62 80 13 00 00 00 00 00 00 74 [17:15:36]Write i2c OK [17:15:36]MH_I2C_Read... [17:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:36]Read from MH i2c: E2 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 62 00 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 62 00 96 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E3 02 00 0E 04 04 00 CF 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 52 [17:15:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E3 02 00 0E 04 04 00 CF 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 [17:15:36]wFMCommunicate OK [17:15:36]SAM_PROTO_GetFieldsCounters done [17:15:36]requested_item shift.num is exist - process it [17:15:36]requested_item shift.opened is exist - process it [17:15:36]req_shift_opened [17:15:36]FM_GetShiftState [17:15:36]SAM_PROTO_GetShiftState [17:15:36]wFMCommunicate request_size=4 [17:15:36]MH_SAM_APDU [17:15:36]CAPDU: 80 13 01 00 [17:15:36]Write to MH i2c: E2 08 00 97 62 80 13 01 00 00 00 00 00 76 [17:15:36]Write i2c OK [17:15:36]MH_I2C_Read... [17:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:36]Read from MH i2c: E2 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 0E 00 [17:15:36]MH_I2C_Read... [17:15:36]Read from MH i2c: E2 0E 00 97 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 54 [17:15:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:15:36]wFMCommunicate OK [17:15:36]SAM_PROTO_GetShiftState done [17:15:36]FM_GetShiftState done [17:15:36]req_shift_opened done [17:15:36]requested_item shift.open_date is exist - process it [17:15:36]req_shift_open_date [17:15:36]req_shift_open_date done [17:15:36]produce_requested_data done [17:15:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189255,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:15:36]process_action_free close_receipt [17:15:36]json_value_free [17:15:36]json_value_free done [17:15:36]process_json_proto returns [17:15:36]Send response to host [17:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189255,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:15:36]free response buf [17:15:36]execute_script done [17:15:36]execute_script returns [17:15:36]free content buf [17:15:36]Sock 9.Close socket [17:15:36]Sock 9.Thread stoped [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:40]accept exits with 8 [17:19:40]New connection [17:19:40]New thread 3067071844 created [17:19:40]Thread 3067215204 joined [17:19:40]Waiting for new connection... [17:19:40] Sock 8.Parse request [17:19:40]Sock 8.Check first char [17:19:40]Sock 8.First char is OK [17:19:40]request: POST /json_proto HTTP/1.0 [17:19:40]Method: POST [17:19:40]URL: /json_proto [17:19:40]Method is POST - this is cgi request [17:19:40]url: /json_proto [17:19:40]query_string will be loaded in cgi processing [17:19:40]execute_cgi json_proto POST (null) [17:19:40]execute_cgi path=json_proto method=POST [17:19:40]POST find Content-Length [17:19:40]Host: 172.17.42.131:8080 [17:19:40]Content-Length: 682 [17:19:40]Content-Type: application/json [17:19:40] [17:19:40]POST finish read [17:19:40]Found Content-Length = 682 [17:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:40]execute_script... [17:19: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)211321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:40]POST & json_proto [17:19:40]process_json_proto [17:19:40]json parsed OK: [17:19:40]protocol is kg_v1.0 [17:19:40]action value=close_receipt [17:19:40]process_action close_receipt [17:19:40]cmd_close_receipt [17:19:40]MH_GetDate [17:19:40]Write to MH i2c: F0 00 00 98 62 E9 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: F0 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: F0 09 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: F0 09 00 98 62 00 B0 81 1A 67 A0 18 CA 66 8C [17:19:40]GetLastDocTimeStamp 1729790136 [17:19:40]current date 1729790384 [17:19:40]FM_GetShiftState [17:19:40]SAM_PROTO_GetShiftState [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 13 01 00 [17:19:40]Write to MH i2c: E2 08 00 99 62 80 13 01 00 00 00 00 00 78 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0E 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0E 00 99 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 56 [17:19:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_GetShiftState done [17:19:40]FM_GetShiftState done [17:19:40]opened in 1729728961 [17:19:40]opened+sec_in_day 1729815361 [17:19:40]quantity*price = 135004 [17:19:40]sum+1 = 135005 [17:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 329 24.10.2024 17:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189256 ФПД: 229045746012180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189256&fm=229045746012180&tin=02508201610067®Number=0000000000100030&sum=135000 [17:19:41]StoreToDocumentArchive [17:19:41]shift 463 fd 189256 [17:19:41]save to /storage/0463/doc_00189256 [17:19:41]save last doc name /storage/0463/doc_00189256 to /storage/kkm_last_doc_name [17:19:41]save OK [17:19:41]Clear old archive folders... [17:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:41]tlvbuf is 01531E90 [17:19:41]SAM_PROTO_ClearQueue [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 09 00 00 [17:19:41]Write to MH i2c: E2 08 00 A6 62 80 09 00 00 00 00 00 00 7A [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 A6 62 00 90 00 7C [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]SAM_PROTO_ClearQueue done [17:19:41]KKMCreateOFDPacket [17:19:41]OFDProtocolAddRootSTLVToBuf [17:19:41]FM_MakeSignedData [17:19:41]FM_MakeSignedData [17:19:41]SAM_PROTO_SignData [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 01 02 [17:19:41]Write to MH i2c: E2 08 00 A7 62 80 0D 01 02 00 00 00 00 82 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 A7 62 00 90 00 7D [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=255 [17:19:41]MH_SAM_APDU [17:19: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 33 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 B0 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E3 02 00 35 04 06 00 D0 [17:19:41]Write to MH i2c: E2 02 01 A8 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 33 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 B0 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E3 02 00 35 04 06 00 D0 00 00 BE [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]OFD Sender: No OFD packet to send [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 A8 62 00 90 00 7E [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=10 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 02 02 05 50 DE 54 10 14 [17:19:41]Write to MH i2c: E2 0D 00 A9 62 80 0D 02 02 05 00 50 DE 54 10 14 00 00 35 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 A9 62 00 90 00 7F [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 03 02 [17:19:41]Write to MH i2c: E2 08 00 AA 62 80 0D 03 02 00 00 00 00 87 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 AA 62 00 B9 06 67 65 1E 95 D8 FA 90 00 98 [17:19:41]RAPDU: B9 06 67 65 1E 95 D8 FA 90 00 [17:19:41]wFMCommunicate OK [17:19:41]SAM_PROTO_SignData done [17:19:41]FM_MakeSignedData done [17:19:41]CreateOFDProtocolMessage [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 11 00 00 [17:19:41]Write to MH i2c: E2 08 00 AB 62 80 11 00 00 00 00 00 00 87 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 AB 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [17:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:41]wFMCommunicate OK [17:19:41]CreateOFDProtocolMessage done [17:19:41]OFDSenderStorePacket 189256 [17:19:41]StoreOFDPacket docnum=189256 [17:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 B0 07 01 88 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 33 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 B0 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E3 02 00 35 04 06 00 D0 50 DE 54 10 14 B9 06 67 65 1E 95 D8 FA [17:19:41]CheckFolder [17:19:41]dirname=/storage/ofd_packets [17:19:41]CheckFolder done [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00189256 [17:19:41]NVStorageSaveData ofd_packets/00189256 [17:19:41]File name is /storage/ofd_packets/00189256 [17:19:41]Write 301 bytes [17:19:41]NVStorageSaveData done [17:19:41]OFDSenderStorePacket done [17:19:41]KKMCreateOFDPacket done [17:19:41]NVStorageSaveData kkm_last_timestamp [17:19:41]File name is /storage/kkm_last_timestamp [17:19:41]Write 4 bytes [17:19:41]NVStorageSaveData done [17:19:41]ExternCall_PrintAddStr [17:19:41]wPrintStart [17:19:41]Write to MH i2c: 01 00 00 AC 62 0E [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 AC 62 00 00 00 00 00 FF 0F 23 [17:19:41]RasterBufferAndPrint [17:19:41]line Счет N : (1)211321 [17:19:41]line ИНН: 02508201610067 [17:19:41]line Контрольно-Кассовый Чек [17:19:41]line ПРОДАЖА [17:19:41]line ТРК (МРК, ГНК) : 22 [17:19:41]line Товар: 2710124130 [17:19:41]line Аи-92-К-3 [17:19:41]line 20.180 * 66.90 [17:19:41]line = 1350.04 [17:19:41]line НДС 12% НСП 1% [17:19:41]line > о реализуемом товаре [17:19:41]line ОКРУГЛЕНИЕ: -0.04 [17:19:41]line ИТОГО: 1350.00 [17:19:41]line Внесено: 1350.00 [17:19:41]line СДАЧА: 0.00 [17:19:41]line НСП 1% : 11.95 [17:19:41]line НДС 12% : 143.37 [17:19:41]line Наличными: 1350.00 [17:19:41]line Безнал.: 0.00 [17:19:41]line Место: АЗС № 86 "Партнер Нефть" [17:19:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:19:41]line СНО: Общий режим [17:19:41]line Чек 329 24.10.2024 17:19 [17:19:41]line Смена: 463 ФФД: 1.0 [17:19:41]line ЗНМ: 0300000155 [17:19:41]line РНМ: 0000000000100030 [17:19:41]line Версия ККМ: 001 [17:19:41]line ФМ: 0000000000965340 [17:19:41]line ФД: 189256 [17:19:41]line ФПД: 229045746012180 [17:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189256&fm=229045746012180&tin=02508201610067®Number=0000000000100030&sum=135000 [17:19:41]written 0, free lines is 4095 [17:19:41]OFD Sender: Processing packet 189256 [packets to send 1062, broken 1061] [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00189256 [17:19:41]OFD Sender: To server: pG, [17:19:41]CommunicateWithHost lk.salyk.kg:30040 [17:19:41]ConnectInit lk.salyk.kg [17:19:42]Connected sock=10 [17:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 B0 07 01 88 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 33 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 B0 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E3 02 00 35 04 06 00 D0 50 DE 54 10 14 B9 06 67 65 1E 95 D8 FA [17:19:42]Write to MH i2c: 01 00 00 D7 62 39 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 D7 62 00 00 00 00 00 5D 0C A9 [17:19:42]RasterBufferAndPrint [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]written 0, free lines is 3169 [17:19:42]MH_Cut [17:19:42]Write to MH i2c: D1 01 00 DE 62 01 12 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 01 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 01 00 DE 62 00 11 [17:19:42]Write to MH i2c: 01 00 00 DF 62 41 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A 8E 47 00 5F 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 39 36 35 33 34 30 10 04 04 00 48 E3 02 00 F4 03 04 00 97 2B 1A 67 B6 04 01 00 00 FB 8B 59 2F 6E 77 F2 38 [17:19:42]CommunicateWithHost err = 0 [17:19:42]CheckOFDResponse [17:19:42]1017 (14) - 77093643461234 [17:19:42]1041 (16) - 0000000000965340 [17:19:42]1040 (4) - 189256 [17:19:42]1012 (4) - 24.10.2024 11:12 [17:19:42]1206 (1) - 0 [17:19:42]OFD Sender: Remove packet 189256 [17:19:42]ProducePacketName [17:19:42]name=ofd_packets/00189256 [17:19:42]NVStorageDeleteData [17:19:42]OFD Sender: No OFD packet to send [17:19:43]*** Cut start [17:19:43]*** Partial cut [17:19:43]*** CUTSNS_PIN = 1 [17:19:43]*** CUTSNS_PIN = 0 [17:19:43]*** Brake cut motor [17:19:44]Read from MH i2c: 01 [17:19:44]MH_I2C_Read... [17:19:44]*** Stop cut motor [17:19:44]*** Cut end [17:19:44]Read from MH i2c: 01 07 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: 01 07 00 DF 62 00 00 00 00 00 FF 0F 56 [17:19:44]process_action close_receipt done [17:19:44]requested_data is exist [17:19:44]produce_requested_data [17:19:44]requested_item fm.sn is exist - process it [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 11 00 00 [17:19:44]Write to MH i2c: E2 08 00 E0 62 80 11 00 00 00 00 00 00 BC [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 17 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 17 00 E0 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [17:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:44]wFMCommunicate OK [17:19:44]requested_item fd.num is exist - process it [17:19:44]SAM_PROTO_GetFieldsCounters [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 13 00 00 [17:19:44]Write to MH i2c: E2 08 00 E1 62 80 13 00 00 00 00 00 00 BF [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 62 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 62 00 E1 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E3 02 00 0E 04 04 00 CF 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 A1 [17:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E3 02 00 0E 04 04 00 CF 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 [17:19:44]wFMCommunicate OK [17:19:44]SAM_PROTO_GetFieldsCounters done [17:19:44]requested_item shift.num is exist - process it [17:19:44]requested_item shift.opened is exist - process it [17:19:44]req_shift_opened [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 E2 62 80 13 01 00 00 00 00 00 C1 [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 E2 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9F [17:19:44]RAPDU: 09 00 01 C1 91 19 67 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]req_shift_opened done [17:19:44]requested_item shift.open_date is exist - process it [17:19:44]req_shift_open_date [17:19:44]req_shift_open_date done [17:19:44]produce_requested_data done [17:19:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189256,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:19:44]process_action_free close_receipt [17:19:44]json_value_free [17:19:44]json_value_free done [17:19:44]process_json_proto returns [17:19:44]Send response to host [17:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189256,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:19:44]free response buf [17:19:44]execute_script done [17:19:44]execute_script returns [17:19:44]free content buf [17:19:44]Sock 8.Close socket [17:19:44]Sock 8.Thread stoped [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:02]accept exits with 9 [17:20:02]New connection [17:20:02]New thread 3067215204 created [17:20:02]Thread 3067071844 joined [17:20:02]Waiting for new connection... [17:20:02] Sock 9.Parse request [17:20:02]Sock 9.Check first char [17:20:02]Sock 9.First char is OK [17:20:02]request: POST /json_proto HTTP/1.0 [17:20:02]Method: POST [17:20:02]URL: /json_proto [17:20:02]Method is POST - this is cgi request [17:20:02]url: /json_proto [17:20:02]query_string will be loaded in cgi processing [17:20:02]execute_cgi json_proto POST (null) [17:20:02]execute_cgi path=json_proto method=POST [17:20:02]POST find Content-Length [17:20:02]Host: 172.17.42.131:8080 [17:20:02]Content-Length: 769 [17:20:02]Content-Type: application/json [17:20:02] [17:20:02]POST finish read [17:20:02]Found Content-Length = 769 [17:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:02]execute_script... [17:20: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)211322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:02]POST & json_proto [17:20:02]process_json_proto [17:20:02]json parsed OK: [17:20:02]protocol is kg_v1.0 [17:20:02]action value=close_receipt [17:20:02]process_action close_receipt [17:20:02]cmd_close_receipt [17:20:02]MH_GetDate [17:20:02]Write to MH i2c: F0 00 00 E3 62 34 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 09 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 09 00 E3 62 00 C6 81 1A 67 A0 18 CA 66 ED [17:20:02]GetLastDocTimeStamp 1729790384 [17:20:02]current date 1729790406 [17:20:02]FM_GetShiftState [17:20:02]SAM_PROTO_GetShiftState [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 13 01 00 [17:20:02]Write to MH i2c: E2 08 00 E4 62 80 13 01 00 00 00 00 00 C3 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0E 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0E 00 E4 62 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A1 [17:20:02]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:20:02]wFMCommunicate OK [17:20:02]SAM_PROTO_GetShiftState done [17:20:02]FM_GetShiftState done [17:20:02]opened in 1729728961 [17:20:02]opened+sec_in_day 1729815361 [17:20:02]quantity*price = 100015 [17:20:02]sum+1 = 100017 [17:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 330 24.10.2024 17:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189257 ФПД: 65868311309374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189257&fm=65868311309374&tin=02508201610067®Number=0000000000100030&sum=100016 [17:20:03]StoreToDocumentArchive [17:20:03]shift 463 fd 189257 [17:20:03]save to /storage/0463/doc_00189257 [17:20:03]save last doc name /storage/0463/doc_00189257 to /storage/kkm_last_doc_name [17:20:03]save OK [17:20:03]Clear old archive folders... [17:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:03]tlvbuf is 014B40E0 [17:20:03]SAM_PROTO_ClearQueue [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 09 00 00 [17:20:03]Write to MH i2c: E2 08 00 F1 62 80 09 00 00 00 00 00 00 C5 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 F1 62 00 90 00 C7 [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_ClearQueue done [17:20:03]KKMCreateOFDPacket [17:20:03]OFDProtocolAddRootSTLVToBuf [17:20:03]FM_MakeSignedData [17:20:03]FM_MakeSignedData [17:20:03]SAM_PROTO_SignData [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 01 02 [17:20:03]Write to MH i2c: E2 08 00 F2 62 80 0D 01 02 00 00 00 00 CD [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 F2 62 00 90 00 C8 [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=255 [17:20:03]MH_SAM_APDU [17:20: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 C6 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E3 02 00 35 04 06 00 3B [17:20:03]Write to MH i2c: E2 02 01 F3 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 C6 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E3 02 00 35 04 06 00 3B 00 00 A6 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 F3 62 00 90 00 C9 [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=10 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 02 02 05 E8 29 4C 2C 3E [17:20:03]Write to MH i2c: E2 0D 00 F4 62 80 0D 02 02 05 00 E8 29 4C 2C 3E 00 00 A1 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 F4 62 00 90 00 CA [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 03 02 [17:20:03]Write to MH i2c: E2 08 00 F5 62 80 0D 03 02 00 00 00 00 D2 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 F5 62 00 57 82 FB 34 59 3D B9 F7 90 00 21 [17:20:03]RAPDU: 57 82 FB 34 59 3D B9 F7 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_SignData done [17:20:03]FM_MakeSignedData done [17:20:03]CreateOFDProtocolMessage [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 11 00 00 [17:20:03]Write to MH i2c: E2 08 00 F6 62 80 11 00 00 00 00 00 00 D2 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 F6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [17:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:20:04]wFMCommunicate OK [17:20:04]CreateOFDProtocolMessage done [17:20:04]OFDSenderStorePacket 189257 [17:20:04]StoreOFDPacket docnum=189257 [17:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 09 07 01 42 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 C6 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E3 02 00 35 04 06 00 3B E8 29 4C 2C 3E 57 82 FB 34 59 3D B9 F7 [17:20:04]CheckFolder [17:20:04]dirname=/storage/ofd_packets [17:20:04]CheckFolder done [17:20:04]ProducePacketName [17:20:04]name=ofd_packets/00189257 [17:20:04]NVStorageSaveData ofd_packets/00189257 [17:20:04]File name is /storage/ofd_packets/00189257 [17:20:04]Write 301 bytes [17:20:04]NVStorageSaveData done [17:20:04]OFDSenderStorePacket done [17:20:04]KKMCreateOFDPacket done [17:20:04]NVStorageSaveData kkm_last_timestamp [17:20:04]File name is /storage/kkm_last_timestamp [17:20:04]Write 4 bytes [17:20:04]NVStorageSaveData done [17:20:04]ExternCall_PrintAddStr [17:20:04]wPrintStart [17:20:04]Write to MH i2c: 01 00 00 F7 62 59 [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 F7 62 00 00 00 00 00 FF 0F 6E [17:20:04]RasterBufferAndPrint [17:20:04]line Счет N : (1)211322 [17:20:04]line ИНН: 02508201610067 [17:20:04]line Контрольно-Кассовый Чек [17:20:04]line ПРОДАЖА [17:20:04]line ТРК (МРК, ГНК) : 32 [17:20:04]line Товар: 2710124130 [17:20:04]line Аи-92-К-3 [17:20:04]line 14.950 * 66.90 [17:20:04]line = 1000.16 [17:20:04]line НДС 12% НСП 1% [17:20:04]line > о реализуемом товаре [17:20:04]line ИТОГО: 1000.16 [17:20:04]line НСП 1% : 8.85 [17:20:04]line НДС 12% : 106.21 [17:20:04]line Наличными: 0.00 [17:20:04]line Безнал.: 1000.16 [17:20:04]line Место: АЗС № 86 "Партнер Нефть" [17:20:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:20:04]line СНО: Общий режим [17:20:04]line Чек 330 24.10.2024 17:20 [17:20:04]line Смена: 463 ФФД: 1.0 [17:20:04]line ЗНМ: 0300000155 [17:20:04]line РНМ: 0000000000100030 [17:20:04]line Версия ККМ: 001 [17:20:04]line Платежная система: Mbank [17:20:04]line ФМ: 0000000000965340 [17:20:04]line ФД: 189257 [17:20:04]line ФПД: 65868311309374 [17:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189257&fm=65868311309374&tin=02508201610067®Number=0000000000100030&sum=100016 [17:20:04]written 0, free lines is 4095 [17:20:04]OFD Sender: Processing packet 189257 [packets to send 1062, broken 1061] [17:20:04]ProducePacketName [17:20:04]name=ofd_packets/00189257 [17:20:04]OFD Sender: To server: pG, [17:20:04]CommunicateWithHost lk.salyk.kg:30040 [17:20:04]ConnectInit lk.salyk.kg [17:20:04]Connected sock=8 [17:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 09 07 01 42 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 C6 81 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E3 02 00 35 04 06 00 3B E8 29 4C 2C 3E 57 82 FB 34 59 3D B9 F7 [17:20:04]Write to MH i2c: 01 00 00 20 63 83 [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 20 63 00 00 00 00 00 82 0C 18 [17:20:04]RasterBufferAndPrint [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]written 0, free lines is 3207 [17:20:04]MH_Cut [17:20:04]Write to MH i2c: D1 01 00 27 63 01 5C [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 01 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 01 00 27 63 00 5B [17:20:04]Write to MH i2c: 01 00 00 28 63 8B [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 39 47 00 08 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 39 36 35 33 34 30 10 04 04 00 49 E3 02 00 F4 03 04 00 AE 2B 1A 67 B6 04 01 00 00 08 F2 BE F1 FF D2 9A 83 [17:20:04]CommunicateWithHost err = 0 [17:20:04]CheckOFDResponse [17:20:04]1017 (14) - 77093643461234 [17:20:04]1041 (16) - 0000000000965340 [17:20:04]1040 (4) - 189257 [17:20:04]1012 (4) - 24.10.2024 11:12 [17:20:04]1206 (1) - 0 [17:20:04]OFD Sender: Remove packet 189257 [17:20:04]ProducePacketName [17:20:04]name=ofd_packets/00189257 [17:20:04]NVStorageDeleteData [17:20:05]OFD Sender: No OFD packet to send [17:20:05]*** Cut start [17:20:05]*** Partial cut [17:20:05]*** CUTSNS_PIN = 1 [17:20:05]*** CUTSNS_PIN = 0 [17:20:06]*** Brake cut motor [17:20:06]Read from MH i2c: 01 [17:20:06]MH_I2C_Read... [17:20:06]*** Stop cut motor [17:20:06]*** Cut end [17:20:06]Read from MH i2c: 01 07 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 07 00 28 63 00 00 00 00 00 FF 0F A0 [17:20:06]process_action close_receipt done [17:20:06]requested_data is exist [17:20:06]produce_requested_data [17:20:06]requested_item fm.sn is exist - process it [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 11 00 00 [17:20:06]Write to MH i2c: E2 08 00 29 63 80 11 00 00 00 00 00 00 06 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 29 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [17:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:20:06]wFMCommunicate OK [17:20:06]requested_item fd.num is exist - process it [17:20:06]SAM_PROTO_GetFieldsCounters [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 00 00 [17:20:06]Write to MH i2c: E2 08 00 2A 63 80 13 00 00 00 00 00 00 09 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 2A 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E3 02 00 0E 04 04 00 CF 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 EF [17:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E3 02 00 0E 04 04 00 CF 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 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetFieldsCounters done [17:20:06]requested_item shift.num is exist - process it [17:20:06]requested_item shift.opened is exist - process it [17:20:06]req_shift_opened [17:20:06]FM_GetShiftState [17:20:06]SAM_PROTO_GetShiftState [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 01 00 [17:20:06]Write to MH i2c: E2 08 00 2B 63 80 13 01 00 00 00 00 00 0B [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 2B 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E9 [17:20:06]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetShiftState done [17:20:06]FM_GetShiftState done [17:20:06]req_shift_opened done [17:20:06]requested_item shift.open_date is exist - process it [17:20:06]req_shift_open_date [17:20:06]req_shift_open_date done [17:20:06]produce_requested_data done [17:20:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189257,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:20:06]process_action_free close_receipt [17:20:06]json_value_free [17:20:06]json_value_free done [17:20:06]process_json_proto returns [17:20:06]Send response to host [17:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189257,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:20:06]free response buf [17:20:06]execute_script done [17:20:06]execute_script returns [17:20:06]free content buf [17:20:06]Sock 9.Close socket [17:20:06]Sock 9.Thread stoped [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:21:57]accept exits with 10 [17:21:57]New connection [17:21:57]New thread 3067071844 created [17:21:57]Thread 3067215204 joined [17:21:57]Waiting for new connection... [17:21:57] Sock 10.Parse request [17:21:57]Sock 10.Check first char [17:21:57]Sock 10.First char is OK [17:21:57]request: POST /json_proto HTTP/1.0 [17:21:57]Method: POST [17:21:57]URL: /json_proto [17:21:57]Method is POST - this is cgi request [17:21:57]url: /json_proto [17:21:57]query_string will be loaded in cgi processing [17:21:57]execute_cgi json_proto POST (null) [17:21:57]execute_cgi path=json_proto method=POST [17:21:57]POST find Content-Length [17:21:57]Host: 172.17.42.131:8080 [17:21:57]Content-Length: 677 [17:21:57]Content-Type: application/json [17:21:57] [17:21:57]POST finish read [17:21:57]Found Content-Length = 677 [17:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:21:57]execute_script... [17:21: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)211323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:21:57]POST & json_proto [17:21:57]process_json_proto [17:21:57]json parsed OK: [17:21:57]protocol is kg_v1.0 [17:21:57]action value=close_receipt [17:21:57]process_action close_receipt [17:21:57]cmd_close_receipt [17:21:57]MH_GetDate [17:21:57]Write to MH i2c: F0 00 00 2C 63 7E [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: F0 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: F0 09 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: F0 09 00 2C 63 00 39 82 1A 67 A0 18 CA 66 AB [17:21:57]GetLastDocTimeStamp 1729790406 [17:21:57]current date 1729790521 [17:21:57]FM_GetShiftState [17:21:57]SAM_PROTO_GetShiftState [17:21:57]wFMCommunicate request_size=4 [17:21:57]MH_SAM_APDU [17:21:57]CAPDU: 80 13 01 00 [17:21:57]Write to MH i2c: E2 08 00 2D 63 80 13 01 00 00 00 00 00 0D [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:57]Read from MH i2c: E2 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 0E 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: E2 0E 00 2D 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EB [17:21:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:21:57]wFMCommunicate OK [17:21:57]SAM_PROTO_GetShiftState done [17:21:57]FM_GetShiftState done [17:21:57]opened in 1729728961 [17:21:57]opened+sec_in_day 1729815361 [17:21:57]quantity*price = 30038 [17:21:57]sum+1 = 30039 [17:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 331 24.10.2024 17:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189258 ФПД: 169091661261939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189258&fm=169091661261939&tin=02508201610067®Number=0000000000100030&sum=30000 [17:21:58]StoreToDocumentArchive [17:21:58]shift 463 fd 189258 [17:21:58]save to /storage/0463/doc_00189258 [17:21:58]save last doc name /storage/0463/doc_00189258 to /storage/kkm_last_doc_name [17:21:58]save OK [17:21:58]Clear old archive folders... [17:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:58]tlvbuf is 016C6A20 [17:21:58]SAM_PROTO_ClearQueue [17:21:58]wFMCommunicate request_size=4 [17:21:58]MH_SAM_APDU [17:21:58]CAPDU: 80 09 00 00 [17:21:58]Write to MH i2c: E2 08 00 3A 63 80 09 00 00 00 00 00 00 0F [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 3A 63 00 90 00 11 [17:21:58]RAPDU: 90 00 [17:21:58]wFMCommunicate OK [17:21:58]SAM_PROTO_ClearQueue done [17:21:58]KKMCreateOFDPacket [17:21:58]OFDProtocolAddRootSTLVToBuf [17:21:58]FM_MakeSignedData [17:21:58]FM_MakeSignedData [17:21:58]SAM_PROTO_SignData [17:21:58]wFMCommunicate request_size=4 [17:21:58]MH_SAM_APDU [17:21:58]CAPDU: 80 0D 01 02 [17:21:58]Write to MH i2c: E2 08 00 3B 63 80 0D 01 02 00 00 00 00 17 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 3B 63 00 90 00 12 [17:21:58]RAPDU: 90 00 [17:21:58]wFMCommunicate OK [17:21:58]wFMCommunicate request_size=255 [17:21:58]MH_SAM_APDU [17:21: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 4B 01 00 00 F4 03 04 00 39 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E3 02 00 35 04 06 00 99 [17:21:58]Write to MH i2c: E2 02 01 3C 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 4B 01 00 00 F4 03 04 00 39 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E3 02 00 35 04 06 00 99 00 00 9E [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 3C 63 00 90 00 13 [17:21:58]RAPDU: 90 00 [17:21:58]wFMCommunicate OK [17:21:58]wFMCommunicate request_size=10 [17:21:58]MH_SAM_APDU [17:21:58]CAPDU: 80 0D 02 02 05 C9 B8 67 6C 73 [17:21:58]Write to MH i2c: E2 0D 00 3D 63 80 0D 02 02 05 00 C9 B8 67 6C 73 00 00 EB [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 03 00 3D 63 00 90 00 14 [17:21:58]RAPDU: 90 00 [17:21:58]wFMCommunicate OK [17:21:58]wFMCommunicate request_size=4 [17:21:58]MH_SAM_APDU [17:21:58]CAPDU: 80 0D 03 02 [17:21:58]Write to MH i2c: E2 08 00 3E 63 80 0D 03 02 00 00 00 00 1C [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 0B 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 0B 00 3E 63 00 95 B7 C4 A6 75 0A A0 C2 90 00 B4 [17:21:58]RAPDU: 95 B7 C4 A6 75 0A A0 C2 90 00 [17:21:58]wFMCommunicate OK [17:21:58]SAM_PROTO_SignData done [17:21:58]FM_MakeSignedData done [17:21:58]CreateOFDProtocolMessage [17:21:58]wFMCommunicate request_size=4 [17:21:58]MH_SAM_APDU [17:21:58]CAPDU: 80 11 00 00 [17:21:58]Write to MH i2c: E2 08 00 3F 63 80 11 00 00 00 00 00 00 1C [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:58]Read from MH i2c: E2 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 17 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: E2 17 00 3F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [17:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:58]wFMCommunicate OK [17:21:58]CreateOFDProtocolMessage done [17:21:58]OFDSenderStorePacket 189258 [17:21:58]StoreOFDPacket docnum=189258 [17:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 BD 07 01 DC 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 4B 01 00 00 F4 03 04 00 39 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E3 02 00 35 04 06 00 99 C9 B8 67 6C 73 95 B7 C4 A6 75 0A A0 C2 [17:21:58]CheckFolder [17:21:58]dirname=/storage/ofd_packets [17:21:58]CheckFolder done [17:21:58]ProducePacketName [17:21:58]name=ofd_packets/00189258 [17:21:58]NVStorageSaveData ofd_packets/00189258 [17:21:58]File name is /storage/ofd_packets/00189258 [17:21:58]Write 301 bytes [17:21:58]NVStorageSaveData done [17:21:58]OFDSenderStorePacket done [17:21:58]KKMCreateOFDPacket done [17:21:58]NVStorageSaveData kkm_last_timestamp [17:21:58]File name is /storage/kkm_last_timestamp [17:21:58]Write 4 bytes [17:21:58]NVStorageSaveData done [17:21:58]ExternCall_PrintAddStr [17:21:58]wPrintStart [17:21:58]Write to MH i2c: 01 00 00 40 63 A3 [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 40 63 00 00 00 00 00 FF 0F B8 [17:21:58]RasterBufferAndPrint [17:21:58]line Счет N : (1)211323 [17:21:58]line ИНН: 02508201610067 [17:21:58]line Контрольно-Кассовый Чек [17:21:58]line ПРОДАЖА [17:21:58]line ТРК (МРК, ГНК) : 22 [17:21:58]line Товар: 2710124130 [17:21:58]line Аи-92-К-3 [17:21:58]line 4.490 * 66.90 [17:21:58]line = 300.38 [17:21:58]line НДС 12% НСП 1% [17:21:58]line > о реализуемом товаре [17:21:58]line ОКРУГЛЕНИЕ: -0.38 [17:21:58]line ИТОГО: 300.00 [17:21:58]line Внесено: 300.00 [17:21:58]line СДАЧА: 0.00 [17:21:58]line НСП 1% : 2.66 [17:21:58]line НДС 12% : 31.90 [17:21:58]line Наличными: 300.00 [17:21:58]line Безнал.: 0.00 [17:21:58]line Место: АЗС № 86 "Партнер Нефть" [17:21:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:21:58]line СНО: Общий режим [17:21:58]line Чек 331 24.10.2024 17:22 [17:21:58]line Смена: 463 ФФД: 1.0 [17:21:58]line ЗНМ: 0300000155 [17:21:58]line РНМ: 0000000000100030 [17:21:58]line Версия ККМ: 001 [17:21:58]line ФМ: 0000000000965340 [17:21:58]line ФД: 189258 [17:21:58]line ФПД: 169091661261939 [17:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189258&fm=169091661261939&tin=02508201610067®Number=0000000000100030&sum=30000 [17:21:58]written 0, free lines is 4095 [17:21:58]OFD Sender: Processing packet 189258 [packets to send 1062, broken 1061] [17:21:58]ProducePacketName [17:21:58]name=ofd_packets/00189258 [17:21:58]OFD Sender: To server: pG, [17:21:58]CommunicateWithHost lk.salyk.kg:30040 [17:21:58]ConnectInit lk.salyk.kg [17:21:59]Connected sock=9 [17:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 BD 07 01 DC 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 4B 01 00 00 F4 03 04 00 39 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E3 02 00 35 04 06 00 99 C9 B8 67 6C 73 95 B7 C4 A6 75 0A A0 C2 [17:21:59]Write to MH i2c: 01 00 00 6B 63 CE [17:21:59]Write i2c OK [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: 01 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: 01 07 00 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: 01 07 00 6B 63 00 00 00 00 00 59 0C 3A [17:21:59]RasterBufferAndPrint [17:21:59]line [17:21:59]line [17:21:59]line [17:21:59]line [17:21:59]line [17:21:59]written 0, free lines is 3164 [17:21:59]MH_Cut [17:21:59]Write to MH i2c: D1 01 00 72 63 01 A7 [17:21:59]Write i2c OK [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: D1 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: D1 01 00 [17:21:59]MH_I2C_Read... [17:21:59]Read from MH i2c: D1 01 00 72 63 00 A6 [17:21:59]Write to MH i2c: 01 00 00 73 63 D6 [17:21:59]Write i2c OK [17:21:59]MH_I2C_Read... [17:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A DB 47 00 0C 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 39 36 35 33 34 30 10 04 04 00 4A E3 02 00 F4 03 04 00 21 2C 1A 67 B6 04 01 00 00 D0 C0 FC 20 C1 6E EC 39 [17:21:59]CommunicateWithHost err = 0 [17:21:59]CheckOFDResponse [17:21:59]1017 (14) - 77093643461234 [17:21:59]1041 (16) - 0000000000965340 [17:21:59]1040 (4) - 189258 [17:21:59]1012 (4) - 24.10.2024 11:14 [17:21:59]1206 (1) - 0 [17:21:59]OFD Sender: Remove packet 189258 [17:21:59]ProducePacketName [17:21:59]name=ofd_packets/00189258 [17:21:59]NVStorageDeleteData [17:22:00]OFD Sender: No OFD packet to send [17:22:00]*** Cut start [17:22:00]*** Partial cut [17:22:00]*** CUTSNS_PIN = 1 [17:22:00]*** CUTSNS_PIN = 0 [17:22:00]*** Brake cut motor [17:22:01]Read from MH i2c: 01 [17:22:01]MH_I2C_Read... [17:22:01]*** Stop cut motor [17:22:01]*** Cut end [17:22:01]Read from MH i2c: 01 07 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 73 63 00 00 00 00 00 FF 0F EB [17:22:01]process_action close_receipt done [17:22:01]requested_data is exist [17:22:01]produce_requested_data [17:22:01]requested_item fm.sn is exist - process it [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 11 00 00 [17:22:01]Write to MH i2c: E2 08 00 74 63 80 11 00 00 00 00 00 00 51 [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 17 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 17 00 74 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [17:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:01]wFMCommunicate OK [17:22:01]requested_item fd.num is exist - process it [17:22:01]SAM_PROTO_GetFieldsCounters [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 13 00 00 [17:22:01]Write to MH i2c: E2 08 00 75 63 80 13 00 00 00 00 00 00 54 [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 62 00 75 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E3 02 00 0E 04 04 00 CF 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 3E [17:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E3 02 00 0E 04 04 00 CF 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 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetFieldsCounters done [17:22:01]requested_item shift.num is exist - process it [17:22:01]requested_item shift.opened is exist - process it [17:22:01]req_shift_opened [17:22:01]FM_GetShiftState [17:22:01]SAM_PROTO_GetShiftState [17:22:01]wFMCommunicate request_size=4 [17:22:01]MH_SAM_APDU [17:22:01]CAPDU: 80 13 01 00 [17:22:01]Write to MH i2c: E2 08 00 76 63 80 13 01 00 00 00 00 00 56 [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:01]Read from MH i2c: E2 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: E2 0E 00 76 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 34 [17:22:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:22:01]wFMCommunicate OK [17:22:01]SAM_PROTO_GetShiftState done [17:22:01]FM_GetShiftState done [17:22:01]req_shift_opened done [17:22:01]requested_item shift.open_date is exist - process it [17:22:01]req_shift_open_date [17:22:01]req_shift_open_date done [17:22:01]produce_requested_data done [17:22:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189258,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:22:01]process_action_free close_receipt [17:22:01]json_value_free [17:22:01]json_value_free done [17:22:01]process_json_proto returns [17:22:01]Send response to host [17:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189258,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:22:01]free response buf [17:22:01]execute_script done [17:22:01]execute_script returns [17:22:01]free content buf [17:22:01]Sock 10.Close socket [17:22:01]Sock 10.Thread stoped [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:23]accept exits with 8 [17:22:23]New connection [17:22:23]New thread 3067215204 created [17:22:23]Thread 3067071844 joined [17:22:23]Waiting for new connection... [17:22:23] Sock 8.Parse request [17:22:23]Sock 8.Check first char [17:22:23]Sock 8.First char is OK [17:22:23]request: POST /json_proto HTTP/1.0 [17:22:23]Method: POST [17:22:23]URL: /json_proto [17:22:23]Method is POST - this is cgi request [17:22:23]url: /json_proto [17:22:23]query_string will be loaded in cgi processing [17:22:23]execute_cgi json_proto POST (null) [17:22:23]execute_cgi path=json_proto method=POST [17:22:23]POST find Content-Length [17:22:23]Host: 172.17.42.131:8080 [17:22:23]Content-Length: 677 [17:22:23]Content-Type: application/json [17:22:23] [17:22:23]POST finish read [17:22:23]Found Content-Length = 677 [17:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "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" ] } } [17:22:23]execute_script... [17:22: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)211324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "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" ] } } [17:22:23]POST & json_proto [17:22:23]process_json_proto [17:22:23]json parsed OK: [17:22:23]protocol is kg_v1.0 [17:22:23]action value=close_receipt [17:22:23]process_action close_receipt [17:22:23]cmd_close_receipt [17:22:23]MH_GetDate [17:22:23]Write to MH i2c: F0 00 00 77 63 C9 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 09 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: F0 09 00 77 63 00 53 82 1A 67 A0 18 CA 66 10 [17:22:23]GetLastDocTimeStamp 1729790521 [17:22:23]current date 1729790547 [17:22:23]FM_GetShiftState [17:22:23]SAM_PROTO_GetShiftState [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 13 01 00 [17:22:23]Write to MH i2c: E2 08 00 78 63 80 13 01 00 00 00 00 00 58 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 78 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 36 [17:22:23]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_GetShiftState done [17:22:23]FM_GetShiftState done [17:22:23]opened in 1729728961 [17:22:23]opened+sec_in_day 1729815361 [17:22:23]quantity*price = 58002 [17:22:23]sum+1 = 58003 [17:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.13 НДС 12% : 61.59 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 332 24.10.2024 17:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189259 ФПД: 86153682048166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189259&fm=86153682048166&tin=02508201610067®Number=0000000000100030&sum=58000 [17:22:24]StoreToDocumentArchive [17:22:24]shift 463 fd 189259 [17:22:24]save to /storage/0463/doc_00189259 [17:22:24]save last doc name /storage/0463/doc_00189259 to /storage/kkm_last_doc_name [17:22:24]save OK [17:22:24]Clear old archive folders... [17:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:24]tlvbuf is B6F1ACC0 [17:22:24]SAM_PROTO_ClearQueue [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 09 00 00 [17:22:24]Write to MH i2c: E2 08 00 85 63 80 09 00 00 00 00 00 00 5A [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 85 63 00 90 00 5C [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]SAM_PROTO_ClearQueue done [17:22:24]KKMCreateOFDPacket [17:22:24]OFDProtocolAddRootSTLVToBuf [17:22:24]FM_MakeSignedData [17:22:24]FM_MakeSignedData [17:22:24]SAM_PROTO_SignData [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 0D 01 02 [17:22:24]Write to MH i2c: E2 08 00 86 63 80 0D 01 02 00 00 00 00 62 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 86 63 00 90 00 5D [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=255 [17:22:24]MH_SAM_APDU [17:22: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 33 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 4C 01 00 00 F4 03 04 00 53 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E3 02 00 35 04 06 00 4E [17:22:24]Write to MH i2c: E2 02 01 87 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 33 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 4C 01 00 00 F4 03 04 00 53 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E3 02 00 35 04 06 00 4E 00 00 FE [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 03 00 87 63 00 90 00 5E [17:22:24]RAPDU: 90 00 [17:22:24]wFMCommunicate OK [17:22:24]wFMCommunicate request_size=10 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 0D 02 02 05 5B 37 9D 54 A6 [17:22:24]Write to MH i2c: E2 0D 00 88 63 80 0D 02 02 05 00 5B 37 9D 54 A6 00 00 98 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 03 00 88 63 00 90 00 5F [17:22:25]RAPDU: 90 00 [17:22:25]wFMCommunicate OK [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 0D 03 02 [17:22:25]Write to MH i2c: E2 08 00 89 63 80 0D 03 02 00 00 00 00 67 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0B 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0B 00 89 63 00 B9 39 1D E1 F2 77 97 00 90 00 58 [17:22:25]RAPDU: B9 39 1D E1 F2 77 97 00 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_SignData done [17:22:25]FM_MakeSignedData done [17:22:25]CreateOFDProtocolMessage [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 11 00 00 [17:22:25]Write to MH i2c: E2 08 00 8A 63 80 11 00 00 00 00 00 00 67 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 8A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [17:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:25]wFMCommunicate OK [17:22:25]CreateOFDProtocolMessage done [17:22:25]OFDSenderStorePacket 189259 [17:22:25]StoreOFDPacket docnum=189259 [17:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 52 07 01 C6 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 33 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 4C 01 00 00 F4 03 04 00 53 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E3 02 00 35 04 06 00 4E 5B 37 9D 54 A6 B9 39 1D E1 F2 77 97 00 [17:22:25]CheckFolder [17:22:25]dirname=/storage/ofd_packets [17:22:25]CheckFolder done [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00189259 [17:22:25]NVStorageSaveData ofd_packets/00189259 [17:22:25]File name is /storage/ofd_packets/00189259 [17:22:25]Write 301 bytes [17:22:25]NVStorageSaveData done [17:22:25]OFDSenderStorePacket done [17:22:25]KKMCreateOFDPacket done [17:22:25]NVStorageSaveData kkm_last_timestamp [17:22:25]File name is /storage/kkm_last_timestamp [17:22:25]Write 4 bytes [17:22:25]NVStorageSaveData done [17:22:25]ExternCall_PrintAddStr [17:22:25]wPrintStart [17:22:25]Write to MH i2c: 01 00 00 8B 63 EE [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 8B 63 00 00 00 00 00 FF 0F 03 [17:22:25]RasterBufferAndPrint [17:22:25]line Счет N : (1)211324 [17:22:25]line ИНН: 02508201610067 [17:22:25]line Контрольно-Кассовый Чек [17:22:25]line ПРОДАЖА [17:22:25]line ТРК (МРК, ГНК) : 12 [17:22:25]line Товар: 2710124130 [17:22:25]line Аи-92-К-3 [17:22:25]line 8.670 * 66.90 [17:22:25]line = 580.02 [17:22:25]line НДС 12% НСП 1% [17:22:25]line > о реализуемом товаре [17:22:25]line ОКРУГЛЕНИЕ: -0.02 [17:22:25]line ИТОГО: 580.00 [17:22:25]line Внесено: 580.00 [17:22:25]line СДАЧА: 0.00 [17:22:25]line НСП 1% : 5.13 [17:22:25]line НДС 12% : 61.59 [17:22:25]line Наличными: 580.00 [17:22:25]line Безнал.: 0.00 [17:22:25]line Место: АЗС № 86 "Партнер Нефть" [17:22:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:22:25]line СНО: Общий режим [17:22:25]line Чек 332 24.10.2024 17:22 [17:22:25]line Смена: 463 ФФД: 1.0 [17:22:25]line ЗНМ: 0300000155 [17:22:25]line РНМ: 0000000000100030 [17:22:25]line Версия ККМ: 001 [17:22:25]line ФМ: 0000000000965340 [17:22:25]line ФД: 189259 [17:22:25]line ФПД: 86153682048166 [17:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189259&fm=86153682048166&tin=02508201610067®Number=0000000000100030&sum=58000 [17:22:25]written 0, free lines is 4095 [17:22:25]OFD Sender: Processing packet 189259 [packets to send 1062, broken 1061] [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00189259 [17:22:25]OFD Sender: To server: pG, [17:22:25]CommunicateWithHost lk.salyk.kg:30040 [17:22:25]ConnectInit lk.salyk.kg [17:22:25]Connected sock=10 [17:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 52 07 01 C6 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 33 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 4C 01 00 00 F4 03 04 00 53 82 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E3 02 00 35 04 06 00 4E 5B 37 9D 54 A6 B9 39 1D E1 F2 77 97 00 [17:22:25]Write to MH i2c: 01 00 00 B6 63 19 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 B6 63 00 00 00 00 00 5C 0C 88 [17:22:25]RasterBufferAndPrint [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]line [17:22:25]written 0, free lines is 3167 [17:22:25]MH_Cut [17:22:25]Write to MH i2c: D1 01 00 BD 63 01 F2 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 01 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: D1 01 00 BD 63 00 F1 [17:22:25]Write to MH i2c: 01 00 00 BE 63 21 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 78 47 00 A3 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 39 36 35 33 34 30 10 04 04 00 4B E3 02 00 F4 03 04 00 3B 2C 1A 67 B6 04 01 00 00 A7 2D 7A 4F 02 D6 C2 20 [17:22:25]CommunicateWithHost err = 0 [17:22:25]CheckOFDResponse [17:22:25]1017 (14) - 77093643461234 [17:22:25]1041 (16) - 0000000000965340 [17:22:25]1040 (4) - 189259 [17:22:25]1012 (4) - 24.10.2024 11:15 [17:22:25]1206 (1) - 0 [17:22:25]OFD Sender: Remove packet 189259 [17:22:25]ProducePacketName [17:22:25]name=ofd_packets/00189259 [17:22:25]NVStorageDeleteData [17:22:26]OFD Sender: No OFD packet to send [17:22:26]*** Cut start [17:22:26]*** Partial cut [17:22:26]*** CUTSNS_PIN = 1 [17:22:26]*** CUTSNS_PIN = 0 [17:22:27]*** Brake cut motor [17:22:27]Read from MH i2c: 01 [17:22:27]MH_I2C_Read... [17:22:27]*** Stop cut motor [17:22:27]*** Cut end [17:22:27]Read from MH i2c: 01 07 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 07 00 BE 63 00 00 00 00 00 FF 0F 36 [17:22:27]process_action close_receipt done [17:22:27]requested_data is exist [17:22:27]produce_requested_data [17:22:27]requested_item fm.sn is exist - process it [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 11 00 00 [17:22:27]Write to MH i2c: E2 08 00 BF 63 80 11 00 00 00 00 00 00 9C [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 17 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 17 00 BF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [17:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:22:27]wFMCommunicate OK [17:22:27]requested_item fd.num is exist - process it [17:22:27]SAM_PROTO_GetFieldsCounters [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 13 00 00 [17:22:27]Write to MH i2c: E2 08 00 C0 63 80 13 00 00 00 00 00 00 9F [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 62 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 62 00 C0 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E3 02 00 0E 04 04 00 CF 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 8D [17:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E3 02 00 0E 04 04 00 CF 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 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetFieldsCounters done [17:22:27]requested_item shift.num is exist - process it [17:22:27]requested_item shift.opened is exist - process it [17:22:27]req_shift_opened [17:22:27]FM_GetShiftState [17:22:27]SAM_PROTO_GetShiftState [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 13 01 00 [17:22:27]Write to MH i2c: E2 08 00 C1 63 80 13 01 00 00 00 00 00 A1 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 C1 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7F [17:22:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetShiftState done [17:22:27]FM_GetShiftState done [17:22:27]req_shift_opened done [17:22:27]requested_item shift.open_date is exist - process it [17:22:27]req_shift_open_date [17:22:27]req_shift_open_date done [17:22:27]produce_requested_data done [17:22:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189259,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:22:27]process_action_free close_receipt [17:22:27]json_value_free [17:22:27]json_value_free done [17:22:27]process_json_proto returns [17:22:27]Send response to host [17:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189259,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:22:27]free response buf [17:22:27]execute_script done [17:22:27]execute_script returns [17:22:27]free content buf [17:22:27]Sock 8.Close socket [17:22:27]Sock 8.Thread stoped [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:35]accept exits with 9 [17:26:35]New connection [17:26:35]New thread 3067071844 created [17:26:35]Thread 3067215204 joined [17:26:35]Waiting for new connection... [17:26:35] Sock 9.Parse request [17:26:35]Sock 9.Check first char [17:26:35]Sock 9.First char is OK [17:26:35]request: POST /json_proto HTTP/1.0 [17:26:35]Method: POST [17:26:35]URL: /json_proto [17:26:35]Method is POST - this is cgi request [17:26:35]url: /json_proto [17:26:35]query_string will be loaded in cgi processing [17:26:35]execute_cgi json_proto POST (null) [17:26:35]execute_cgi path=json_proto method=POST [17:26:35]POST find Content-Length [17:26:35]Host: 172.17.42.131:8080 [17:26:35]Content-Length: 754 [17:26:35]Content-Type: application/json [17:26:35] [17:26:35]POST finish read [17:26:35]Found Content-Length = 754 [17:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:35]execute_script... [17:26: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)211325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30097846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:35]POST & json_proto [17:26:35]process_json_proto [17:26:35]json parsed OK: [17:26:35]protocol is kg_v1.0 [17:26:35]action value=close_receipt [17:26:35]process_action close_receipt [17:26:35]cmd_close_receipt [17:26:35]MH_GetDate [17:26:35]Write to MH i2c: F0 00 00 C2 63 14 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 09 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 09 00 C2 63 00 4F 83 1A 67 A0 18 CA 66 58 [17:26:35]GetLastDocTimeStamp 1729790547 [17:26:35]current date 1729790799 [17:26:35]FM_GetShiftState [17:26:35]SAM_PROTO_GetShiftState [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 01 00 [17:26:35]Write to MH i2c: E2 08 00 C3 63 80 13 01 00 00 00 00 00 A3 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 C3 63 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 81 [17:26:35]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetShiftState done [17:26:35]FM_GetShiftState done [17:26:35]opened in 1729728961 [17:26:35]opened+sec_in_day 1729815361 [17:26:35]quantity*price = 0 [17:26:35]sum+1 = 1 [17:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 333 24.10.2024 17:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097846 ФМ: 0000000000965340 ФД: 189260 ФПД: 16298799159825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189260&fm=16298799159825&tin=02508201610067®Number=0000000000100030&sum=0 [17:26:36]StoreToDocumentArchive [17:26:36]shift 463 fd 189260 [17:26:36]save to /storage/0463/doc_00189260 [17:26:36]save last doc name /storage/0463/doc_00189260 to /storage/kkm_last_doc_name [17:26:36]save OK [17:26:36]Clear old archive folders... [17:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:36]tlvbuf is 015B9560 [17:26:36]SAM_PROTO_ClearQueue [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 09 00 00 [17:26:36]Write to MH i2c: E2 08 00 D0 63 80 09 00 00 00 00 00 00 A5 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 D0 63 00 90 00 A7 [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_ClearQueue done [17:26:36]KKMCreateOFDPacket [17:26:36]OFDProtocolAddRootSTLVToBuf [17:26:36]FM_MakeSignedData [17:26:36]FM_MakeSignedData [17:26:36]SAM_PROTO_SignData [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 01 02 [17:26:36]Write to MH i2c: E2 08 00 D1 63 80 0D 01 02 00 00 00 00 AD [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 D1 63 00 90 00 A8 [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=255 [17:26:36]MH_SAM_APDU [17:26: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 33 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 4D 01 00 00 F4 03 04 00 4F 83 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E3 02 00 35 04 06 00 0E [17:26:36]Write to MH i2c: E2 02 01 D2 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 33 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 4D 01 00 00 F4 03 04 00 4F 83 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E3 02 00 35 04 06 00 0E 00 00 F0 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 D2 63 00 90 00 A9 [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=10 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 02 02 05 D2 DC 22 5A 11 [17:26:36]Write to MH i2c: E2 0D 00 D3 63 80 0D 02 02 05 00 D2 DC 22 5A 11 00 00 F5 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 03 00 D3 63 00 90 00 AA [17:26:36]RAPDU: 90 00 [17:26:36]wFMCommunicate OK [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 0D 03 02 [17:26:36]Write to MH i2c: E2 08 00 D4 63 80 0D 03 02 00 00 00 00 B2 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0B 00 D4 63 00 EC B9 B3 B7 DD 4A 2B 26 90 00 3A [17:26:36]RAPDU: EC B9 B3 B7 DD 4A 2B 26 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_SignData done [17:26:36]FM_MakeSignedData done [17:26:36]CreateOFDProtocolMessage [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 11 00 00 [17:26:36]Write to MH i2c: E2 08 00 D5 63 80 11 00 00 00 00 00 00 B2 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 D5 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [17:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:37]wFMCommunicate OK [17:26:37]CreateOFDProtocolMessage done [17:26:37]OFDSenderStorePacket 189260 [17:26:37]StoreOFDPacket docnum=189260 [17:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 C9 07 01 3E 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 33 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 4D 01 00 00 F4 03 04 00 4F 83 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E3 02 00 35 04 06 00 0E D2 DC 22 5A 11 EC B9 B3 B7 DD 4A 2B 26 [17:26:37]CheckFolder [17:26:37]dirname=/storage/ofd_packets [17:26:37]CheckFolder done [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00189260 [17:26:37]NVStorageSaveData ofd_packets/00189260 [17:26:37]File name is /storage/ofd_packets/00189260 [17:26:37]Write 301 bytes [17:26:37]NVStorageSaveData done [17:26:37]OFDSenderStorePacket done [17:26:37]KKMCreateOFDPacket done [17:26:37]NVStorageSaveData kkm_last_timestamp [17:26:37]File name is /storage/kkm_last_timestamp [17:26:37]Write 4 bytes [17:26:37]NVStorageSaveData done [17:26:37]ExternCall_PrintAddStr [17:26:37]wPrintStart [17:26:37]Write to MH i2c: 01 00 00 D6 63 39 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 D6 63 00 00 00 00 00 FF 0F 4E [17:26:37]RasterBufferAndPrint [17:26:37]line Счет N : (1)211325 [17:26:37]line ИНН: 02508201610067 [17:26:37]line Контрольно-Кассовый Чек [17:26:37]line ПРОДАЖА [17:26:37]line ТРК (МРК, ГНК) : 42 [17:26:37]line Товар: 2710124130 [17:26:37]line Аи-92-К-3 [17:26:37]line 30.000 * 0.00 [17:26:37]line = 0.00 [17:26:37]line НДС 12% НСП 1% [17:26:37]line > о реализуемом товаре [17:26:37]line ИТОГО: 0.00 [17:26:37]line НСП 1% : 0.00 [17:26:37]line НДС 12% : 0.00 [17:26:37]line Наличными: 0.00 [17:26:37]line Безнал.: 0.00 [17:26:37]line Место: АЗС № 86 "Партнер Нефть" [17:26:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:26:37]line СНО: Общий режим [17:26:37]line Чек 333 24.10.2024 17:26 [17:26:37]line Смена: 463 ФФД: 1.0 [17:26:37]line ЗНМ: 0300000155 [17:26:37]line РНМ: 0000000000100030 [17:26:37]line Версия ККМ: 001 [17:26:37]line Талоны: ТК ГПНА Online [17:26:37]line 30097846 [17:26:37]line ФМ: 0000000000965340 [17:26:37]line ФД: 189260 [17:26:37]line ФПД: 16298799159825 [17:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172639&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189260&fm=16298799159825&tin=02508201610067®Number=0000000000100030&sum=0 [17:26:37]written 0, free lines is 4095 [17:26:37]OFD Sender: Processing packet 189260 [packets to send 1062, broken 1061] [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00189260 [17:26:37]OFD Sender: To server: pG, [17:26:37]CommunicateWithHost lk.salyk.kg:30040 [17:26:37]ConnectInit lk.salyk.kg [17:26:37]Connected sock=10 [17:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 C9 07 01 3E 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 33 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 4D 01 00 00 F4 03 04 00 4F 83 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E3 02 00 35 04 06 00 0E D2 DC 22 5A 11 EC B9 B3 B7 DD 4A 2B 26 [17:26:37]Write to MH i2c: 01 00 00 00 64 64 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 00 64 00 00 00 00 00 6B 0C E2 [17:26:37]RasterBufferAndPrint [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]line [17:26:37]written 0, free lines is 3185 [17:26:37]MH_Cut [17:26:37]Write to MH i2c: D1 01 00 07 64 01 3D [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: D1 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: D1 01 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: D1 01 00 07 64 00 3C [17:26:37]Write to MH i2c: 01 00 00 08 64 6C [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 B6 47 00 E2 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 39 36 35 33 34 30 10 04 04 00 4C E3 02 00 F4 03 04 00 37 2D 1A 67 B6 04 01 00 00 9A 32 2C 45 13 51 FD 10 [17:26:37]CommunicateWithHost err = 0 [17:26:37]CheckOFDResponse [17:26:37]1017 (14) - 77093643461234 [17:26:37]1041 (16) - 0000000000965340 [17:26:37]1040 (4) - 189260 [17:26:37]1012 (4) - 24.10.2024 11:19 [17:26:37]1206 (1) - 0 [17:26:37]OFD Sender: Remove packet 189260 [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00189260 [17:26:37]NVStorageDeleteData [17:26:38]OFD Sender: No OFD packet to send [17:26:38]*** Cut start [17:26:38]*** Partial cut [17:26:38]*** CUTSNS_PIN = 1 [17:26:38]*** CUTSNS_PIN = 0 [17:26:39]*** Brake cut motor [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]*** Stop cut motor [17:26:39]*** Cut end [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 08 64 00 00 00 00 00 FF 0F 81 [17:26:39]process_action close_receipt done [17:26:39]requested_data is exist [17:26:39]produce_requested_data [17:26:39]requested_item fm.sn is exist - process it [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 11 00 00 [17:26:39]Write to MH i2c: E2 08 00 09 64 80 11 00 00 00 00 00 00 E7 [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 09 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [17:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:39]wFMCommunicate OK [17:26:39]requested_item fd.num is exist - process it [17:26:39]SAM_PROTO_GetFieldsCounters [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 13 00 00 [17:26:39]Write to MH i2c: E2 08 00 0A 64 80 13 00 00 00 00 00 00 EA [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 62 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 62 00 0A 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E3 02 00 0E 04 04 00 CF 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 DC [17:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E3 02 00 0E 04 04 00 CF 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 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_GetFieldsCounters done [17:26:39]requested_item shift.num is exist - process it [17:26:39]requested_item shift.opened is exist - process it [17:26:39]req_shift_opened [17:26:39]FM_GetShiftState [17:26:39]SAM_PROTO_GetShiftState [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 13 01 00 [17:26:39]Write to MH i2c: E2 08 00 0B 64 80 13 01 00 00 00 00 00 EC [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0E 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 0E 00 0B 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [17:26:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:26:39]wFMCommunicate OK [17:26:39]SAM_PROTO_GetShiftState done [17:26:39]FM_GetShiftState done [17:26:39]req_shift_opened done [17:26:39]requested_item shift.open_date is exist - process it [17:26:39]req_shift_open_date [17:26:39]req_shift_open_date done [17:26:39]produce_requested_data done [17:26:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189260,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:26:39]process_action_free close_receipt [17:26:39]json_value_free [17:26:39]json_value_free done [17:26:39]process_json_proto returns [17:26:39]Send response to host [17:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189260,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:26:39]free response buf [17:26:39]execute_script done [17:26:39]execute_script returns [17:26:39]free content buf [17:26:39]Sock 9.Close socket [17:26:39]Sock 9.Thread stoped [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:29:59]accept exits with 8 [17:29:59]New connection [17:29:59]New thread 3067215204 created [17:29:59]Thread 3067071844 joined [17:29:59]Waiting for new connection... [17:29:59] Sock 8.Parse request [17:29:59]Sock 8.Check first char [17:29:59]Sock 8.First char is OK [17:29:59]request: POST /json_proto HTTP/1.0 [17:29:59]Method: POST [17:29:59]URL: /json_proto [17:29:59]Method is POST - this is cgi request [17:29:59]url: /json_proto [17:29:59]query_string will be loaded in cgi processing [17:29:59]execute_cgi json_proto POST (null) [17:29:59]execute_cgi path=json_proto method=POST [17:29:59]POST find Content-Length [17:29:59]Host: 172.17.42.131:8080 [17:29:59]Content-Length: 754 [17:29:59]Content-Type: application/json [17:29:59] [17:29:59]POST finish read [17:29:59]Found Content-Length = 754 [17:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30001681", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:59]execute_script... [17:29: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)211326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30001681", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:59]POST & json_proto [17:29:59]process_json_proto [17:29:59]json parsed OK: [17:29:59]protocol is kg_v1.0 [17:29:59]action value=close_receipt [17:29:59]process_action close_receipt [17:29:59]cmd_close_receipt [17:29:59]MH_GetDate [17:29:59]Write to MH i2c: F0 00 00 0C 64 5F [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 09 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 09 00 0C 64 00 1C 84 1A 67 A0 18 CA 66 71 [17:29:59]GetLastDocTimeStamp 1729790799 [17:29:59]current date 1729791004 [17:29:59]FM_GetShiftState [17:29:59]SAM_PROTO_GetShiftState [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 13 01 00 [17:29:59]Write to MH i2c: E2 08 00 0D 64 80 13 01 00 00 00 00 00 EE [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0E 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0E 00 0D 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CC [17:29:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:29:59]wFMCommunicate OK [17:29:59]SAM_PROTO_GetShiftState done [17:29:59]FM_GetShiftState done [17:29:59]opened in 1729728961 [17:29:59]opened+sec_in_day 1729815361 [17:29:59]quantity*price = 0 [17:29:59]sum+1 = 1 [17:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 334 24.10.2024 17:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30001681 ФМ: 0000000000965340 ФД: 189261 ФПД: 185649803902525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189261&fm=185649803902525&tin=02508201610067®Number=0000000000100030&sum=0 [17:30:00]StoreToDocumentArchive [17:30:00]shift 463 fd 189261 [17:30:00]save to /storage/0463/doc_00189261 [17:30:00]save last doc name /storage/0463/doc_00189261 to /storage/kkm_last_doc_name [17:30:00]save OK [17:30:00]Clear old archive folders... [17:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:01]tlvbuf is 0160C980 [17:30:01]SAM_PROTO_ClearQueue [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 09 00 00 [17:30:01]Write to MH i2c: E2 08 00 1A 64 80 09 00 00 00 00 00 00 F0 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 1A 64 00 90 00 F2 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]SAM_PROTO_ClearQueue done [17:30:01]KKMCreateOFDPacket [17:30:01]OFDProtocolAddRootSTLVToBuf [17:30:01]FM_MakeSignedData [17:30:01]FM_MakeSignedData [17:30:01]SAM_PROTO_SignData [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 0D 01 02 [17:30:01]Write to MH i2c: E2 08 00 1B 64 80 0D 01 02 00 00 00 00 F8 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]wFMCommunicate request_size=255 [17:30:01]MH_SAM_APDU [17: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 33 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 4E 01 00 00 F4 03 04 00 1C 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E3 02 00 35 04 06 00 A8 [17:30:01]Write to MH i2c: E2 02 01 1C 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 33 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 4E 01 00 00 F4 03 04 00 1C 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E3 02 00 35 04 06 00 A8 00 00 6E [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]wFMCommunicate request_size=10 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 0D 02 02 05 D8 F6 9D 3E 3D [17:30:01]Write to MH i2c: E2 0D 00 1D 64 80 0D 02 02 05 00 D8 F6 9D 3E 3D 00 00 EB [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 1D 64 00 90 00 F5 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 0D 03 02 [17:30:01]Write to MH i2c: E2 08 00 1E 64 80 0D 03 02 00 00 00 00 FD [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0B 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0B 00 1E 64 00 F4 CE 79 70 6E 45 6E 8C 90 00 56 [17:30:01]RAPDU: F4 CE 79 70 6E 45 6E 8C 90 00 [17:30:01]wFMCommunicate OK [17:30:01]SAM_PROTO_SignData done [17:30:01]FM_MakeSignedData done [17:30:01]CreateOFDProtocolMessage [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 11 00 00 [17:30:01]Write to MH i2c: E2 08 00 1F 64 80 11 00 00 00 00 00 00 FD [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 1F 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [17:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:01]wFMCommunicate OK [17:30:01]CreateOFDProtocolMessage done [17:30:01]OFDSenderStorePacket 189261 [17:30:01]StoreOFDPacket docnum=189261 [17:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 3F 07 01 2B 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 33 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 4E 01 00 00 F4 03 04 00 1C 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E3 02 00 35 04 06 00 A8 D8 F6 9D 3E 3D F4 CE 79 70 6E 45 6E 8C [17:30:01]CheckFolder [17:30:01]dirname=/storage/ofd_packets [17:30:01]CheckFolder done [17:30:01]ProducePacketName [17:30:01]name=ofd_packets/00189261 [17:30:01]NVStorageSaveData ofd_packets/00189261 [17:30:01]File name is /storage/ofd_packets/00189261 [17:30:01]Write 301 bytes [17:30:01]NVStorageSaveData done [17:30:01]OFDSenderStorePacket done [17:30:01]KKMCreateOFDPacket done [17:30:01]NVStorageSaveData kkm_last_timestamp [17:30:01]File name is /storage/kkm_last_timestamp [17:30:01]Write 4 bytes [17:30:01]NVStorageSaveData done [17:30:01]ExternCall_PrintAddStr [17:30:01]wPrintStart [17:30:01]Write to MH i2c: 01 00 00 20 64 84 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 20 64 00 00 00 00 00 FF 0F 99 [17:30:01]RasterBufferAndPrint [17:30:01]line Счет N : (1)211326 [17:30:01]line ИНН: 02508201610067 [17:30:01]line Контрольно-Кассовый Чек [17:30:01]line ПРОДАЖА [17:30:01]line ТРК (МРК, ГНК) : 12 [17:30:01]line Товар: 2710124130 [17:30:01]line Аи-92-К-3 [17:30:01]line 20.000 * 0.00 [17:30:01]line = 0.00 [17:30:01]line НДС 12% НСП 1% [17:30:01]line > о реализуемом товаре [17:30:01]line ИТОГО: 0.00 [17:30:01]line НСП 1% : 0.00 [17:30:01]line НДС 12% : 0.00 [17:30:01]line Наличными: 0.00 [17:30:01]line Безнал.: 0.00 [17:30:01]line Место: АЗС № 86 "Партнер Нефть" [17:30:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:30:01]line СНО: Общий режим [17:30:01]line Чек 334 24.10.2024 17:30 [17:30:01]line Смена: 463 ФФД: 1.0 [17:30:01]line ЗНМ: 0300000155 [17:30:01]line РНМ: 0000000000100030 [17:30:01]line Версия ККМ: 001 [17:30:01]line Талоны: ТК ГПНА Online [17:30:01]line 30001681 [17:30:01]line ФМ: 0000000000965340 [17:30:01]line ФД: 189261 [17:30:01]line ФПД: 185649803902525 [17:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189261&fm=185649803902525&tin=02508201610067®Number=0000000000100030&sum=0 [17:30:01]written 0, free lines is 4095 [17:30:01]OFD Sender: Processing packet 189261 [packets to send 1062, broken 1061] [17:30:01]ProducePacketName [17:30:01]name=ofd_packets/00189261 [17:30:01]OFD Sender: To server: pG, [17:30:01]CommunicateWithHost lk.salyk.kg:30040 [17:30:01]ConnectInit lk.salyk.kg [17:30:01]Connected sock=10 [17:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 3F 07 01 2B 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 33 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 4E 01 00 00 F4 03 04 00 1C 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E3 02 00 35 04 06 00 A8 D8 F6 9D 3E 3D F4 CE 79 70 6E 45 6E 8C [17:30:01]Write to MH i2c: 01 00 00 4A 64 AE [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 4A 64 00 00 00 00 00 6D 0C 2E [17:30:01]RasterBufferAndPrint [17:30:01]line [17:30:01]line [17:30:01]line [17:30:01]line [17:30:01]line [17:30:01]written 0, free lines is 3186 [17:30:02]MH_Cut [17:30:02]Write to MH i2c: D1 01 00 51 64 01 87 [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 01 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 01 00 51 64 00 86 [17:30:02]Write to MH i2c: 01 00 00 52 64 B6 [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2C 63 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 4D E3 02 00 F4 03 04 00 03 2E 1A 67 B6 04 01 00 00 B4 A6 72 4D 00 0C A0 3D [17:30:02]CommunicateWithHost err = 0 [17:30:02]CheckOFDResponse [17:30:02]1017 (14) - 77093643461234 [17:30:02]1041 (16) - 0000000000965340 [17:30:02]1040 (4) - 189261 [17:30:02]1012 (4) - 24.10.2024 11:22 [17:30:02]1206 (1) - 0 [17:30:02]OFD Sender: Remove packet 189261 [17:30:02]ProducePacketName [17:30:02]name=ofd_packets/00189261 [17:30:02]NVStorageDeleteData [17:30:02]OFD Sender: No OFD packet to send [17:30:03]*** Cut start [17:30:03]*** Partial cut [17:30:03]*** CUTSNS_PIN = 1 [17:30:03]*** CUTSNS_PIN = 0 [17:30:03]*** Brake cut motor [17:30:03]Read from MH i2c: 01 [17:30:03]MH_I2C_Read... [17:30:03]*** Stop cut motor [17:30:03]*** Cut end [17:30:03]Read from MH i2c: 01 07 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: 01 07 00 52 64 00 00 00 00 00 FF 0F CB [17:30:03]process_action close_receipt done [17:30:03]requested_data is exist [17:30:03]produce_requested_data [17:30:03]requested_item fm.sn is exist - process it [17:30:03]wFMCommunicate request_size=4 [17:30:03]MH_SAM_APDU [17:30:03]CAPDU: 80 11 00 00 [17:30:03]Write to MH i2c: E2 08 00 53 64 80 11 00 00 00 00 00 00 31 [17:30:03]Write i2c OK [17:30:03]MH_I2C_Read... [17:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:03]Read from MH i2c: E2 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 17 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 17 00 53 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [17:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:03]wFMCommunicate OK [17:30:03]requested_item fd.num is exist - process it [17:30:03]SAM_PROTO_GetFieldsCounters [17:30:03]wFMCommunicate request_size=4 [17:30:03]MH_SAM_APDU [17:30:03]CAPDU: 80 13 00 00 [17:30:03]Write to MH i2c: E2 08 00 54 64 80 13 00 00 00 00 00 00 34 [17:30:03]Write i2c OK [17:30:03]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 62 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 62 00 54 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E3 02 00 0E 04 04 00 CF 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 2A [17:30:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E3 02 00 0E 04 04 00 CF 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 [17:30:04]wFMCommunicate OK [17:30:04]SAM_PROTO_GetFieldsCounters done [17:30:04]requested_item shift.num is exist - process it [17:30:04]requested_item shift.opened is exist - process it [17:30:04]req_shift_opened [17:30:04]FM_GetShiftState [17:30:04]SAM_PROTO_GetShiftState [17:30:04]wFMCommunicate request_size=4 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 13 01 00 [17:30:04]Write to MH i2c: E2 08 00 55 64 80 13 01 00 00 00 00 00 36 [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 0E 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 0E 00 55 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 14 [17:30:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:30:04]wFMCommunicate OK [17:30:04]SAM_PROTO_GetShiftState done [17:30:04]FM_GetShiftState done [17:30:04]req_shift_opened done [17:30:04]requested_item shift.open_date is exist - process it [17:30:04]req_shift_open_date [17:30:04]req_shift_open_date done [17:30:04]produce_requested_data done [17:30:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189261,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:30:04]process_action_free close_receipt [17:30:04]json_value_free [17:30:04]json_value_free done [17:30:04]process_json_proto returns [17:30:04]Send response to host [17:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189261,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:30:04]free response buf [17:30:04]execute_script done [17:30:04]execute_script returns [17:30:04]free content buf [17:30:04]Sock 8.Close socket [17:30:04]Sock 8.Thread stoped [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]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:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:56]accept exits with 9 [17:31:56]New connection [17:31:56]New thread 3067071844 created [17:31:56]Thread 3067215204 joined [17:31:56]Waiting for new connection... [17:31:56] Sock 9.Parse request [17:31:56]Sock 9.Check first char [17:31:56]Sock 9.First char is OK [17:31:56]request: POST /json_proto HTTP/1.0 [17:31:56]Method: POST [17:31:56]URL: /json_proto [17:31:56]Method is POST - this is cgi request [17:31:56]url: /json_proto [17:31:56]query_string will be loaded in cgi processing [17:31:56]execute_cgi json_proto POST (null) [17:31:56]execute_cgi path=json_proto method=POST [17:31:56]POST find Content-Length [17:31:56]Host: 172.17.42.131:8080 [17:31:56]Content-Length: 754 [17:31:56]Content-Type: application/json [17:31:56] [17:31:56]POST finish read [17:31:56]Found Content-Length = 754 [17:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089116", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:56]execute_script... [17: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)211327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089116", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:56]POST & json_proto [17:31:56]process_json_proto [17:31:56]json parsed OK: [17:31:56]protocol is kg_v1.0 [17:31:56]action value=close_receipt [17:31:56]process_action close_receipt [17:31:56]cmd_close_receipt [17:31:56]MH_GetDate [17:31:56]Write to MH i2c: F0 00 00 56 64 A9 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: F0 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: F0 09 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: F0 09 00 56 64 00 90 84 1A 67 A0 18 CA 66 2F [17:31:56]GetLastDocTimeStamp 1729791004 [17:31:56]current date 1729791120 [17:31:56]FM_GetShiftState [17:31:56]SAM_PROTO_GetShiftState [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 13 01 00 [17:31:56]Write to MH i2c: E2 08 00 57 64 80 13 01 00 00 00 00 00 38 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0E 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0E 00 57 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 16 [17:31:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:31:56]wFMCommunicate OK [17:31:56]SAM_PROTO_GetShiftState done [17:31:56]FM_GetShiftState done [17:31:56]opened in 1729728961 [17:31:56]opened+sec_in_day 1729815361 [17:31:56]quantity*price = 0 [17:31:56]sum+1 = 1 [17:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 335 24.10.2024 17:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089116 ФМ: 0000000000965340 ФД: 189262 ФПД: 6090763725209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189262&fm=6090763725209&tin=02508201610067®Number=0000000000100030&sum=0 [17:31:57]StoreToDocumentArchive [17:31:57]shift 463 fd 189262 [17:31:57]save to /storage/0463/doc_00189262 [17:31:57]save last doc name /storage/0463/doc_00189262 to /storage/kkm_last_doc_name [17:31:57]save OK [17:31:57]Clear old archive folders... [17:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:57]tlvbuf is 0160C3D0 [17:31:57]SAM_PROTO_ClearQueue [17:31:57]wFMCommunicate request_size=4 [17:31:57]MH_SAM_APDU [17:31:57]CAPDU: 80 09 00 00 [17:31:57]Write to MH i2c: E2 08 00 64 64 80 09 00 00 00 00 00 00 3A [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:57]Read from MH i2c: E2 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 03 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 03 00 64 64 00 90 00 3C [17:31:57]RAPDU: 90 00 [17:31:57]wFMCommunicate OK [17:31:57]SAM_PROTO_ClearQueue done [17:31:57]KKMCreateOFDPacket [17:31:57]OFDProtocolAddRootSTLVToBuf [17:31:57]FM_MakeSignedData [17:31:57]FM_MakeSignedData [17:31:57]SAM_PROTO_SignData [17:31:57]wFMCommunicate request_size=4 [17:31:57]MH_SAM_APDU [17:31:57]CAPDU: 80 0D 01 02 [17:31:57]Write to MH i2c: E2 08 00 65 64 80 0D 01 02 00 00 00 00 42 [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:57]Read from MH i2c: E2 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 03 00 [17:31:57]MH_I2C_Read... [17:31:57]Read from MH i2c: E2 03 00 65 64 00 90 00 3D [17:31:57]RAPDU: 90 00 [17:31:57]wFMCommunicate OK [17:31:57]wFMCommunicate request_size=255 [17:31:57]MH_SAM_APDU [17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 4F 01 00 00 F4 03 04 00 91 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E3 02 00 35 04 06 00 05 [17:31:57]Write to MH i2c: E2 02 01 66 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 33 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 4F 01 00 00 F4 03 04 00 91 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E3 02 00 35 04 06 00 05 00 00 F4 [17:31:57]Write i2c OK [17:31:57]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 03 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 03 00 66 64 00 90 00 3E [17:31:58]RAPDU: 90 00 [17:31:58]wFMCommunicate OK [17:31:58]wFMCommunicate request_size=10 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 0D 02 02 05 8A 1D CE E9 99 [17:31:58]Write to MH i2c: E2 0D 00 67 64 80 0D 02 02 05 00 8A 1D CE E9 99 00 00 46 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 03 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 03 00 67 64 00 90 00 3F [17:31:58]RAPDU: 90 00 [17:31:58]wFMCommunicate OK [17:31:58]wFMCommunicate request_size=4 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 0D 03 02 [17:31:58]Write to MH i2c: E2 08 00 68 64 80 0D 03 02 00 00 00 00 47 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 0B 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 0B 00 68 64 00 C6 53 E8 5E E3 E1 10 CD 90 00 48 [17:31:58]RAPDU: C6 53 E8 5E E3 E1 10 CD 90 00 [17:31:58]wFMCommunicate OK [17:31:58]SAM_PROTO_SignData done [17:31:58]FM_MakeSignedData done [17:31:58]CreateOFDProtocolMessage [17:31:58]wFMCommunicate request_size=4 [17:31:58]MH_SAM_APDU [17:31:58]CAPDU: 80 11 00 00 [17:31:58]Write to MH i2c: E2 08 00 69 64 80 11 00 00 00 00 00 00 47 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:58]Read from MH i2c: E2 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 17 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: E2 17 00 69 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [17:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:31:58]wFMCommunicate OK [17:31:58]CreateOFDProtocolMessage done [17:31:58]OFDSenderStorePacket 189262 [17:31:58]StoreOFDPacket docnum=189262 [17:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C6 3D 07 01 54 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 33 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 4F 01 00 00 F4 03 04 00 91 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E3 02 00 35 04 06 00 05 8A 1D CE E9 99 C6 53 E8 5E E3 E1 10 CD [17:31:58]CheckFolder [17:31:58]dirname=/storage/ofd_packets [17:31:58]CheckFolder done [17:31:58]ProducePacketName [17:31:58]name=ofd_packets/00189262 [17:31:58]NVStorageSaveData ofd_packets/00189262 [17:31:58]File name is /storage/ofd_packets/00189262 [17:31:58]Write 301 bytes [17:31:58]NVStorageSaveData done [17:31:58]OFDSenderStorePacket done [17:31:58]KKMCreateOFDPacket done [17:31:58]NVStorageSaveData kkm_last_timestamp [17:31:58]File name is /storage/kkm_last_timestamp [17:31:58]Write 4 bytes [17:31:58]NVStorageSaveData done [17:31:58]ExternCall_PrintAddStr [17:31:58]wPrintStart [17:31:58]Write to MH i2c: 01 00 00 6A 64 CE [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 07 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 07 00 6A 64 00 00 00 00 00 FF 0F E3 [17:31:58]RasterBufferAndPrint [17:31:58]line Счет N : (1)211327 [17:31:58]line ИНН: 02508201610067 [17:31:58]line Контрольно-Кассовый Чек [17:31:58]line ПРОДАЖА [17:31:58]line ТРК (МРК, ГНК) : 33 [17:31:58]line Товар: 2710124500 [17:31:58]line Аи-95-К-3 [17:31:58]line 15.000 * 0.00 [17:31:58]line = 0.00 [17:31:58]line НДС 12% НСП 1% [17:31:58]line > о реализуемом товаре [17:31:58]line ИТОГО: 0.00 [17:31:58]line НСП 1% : 0.00 [17:31:58]line НДС 12% : 0.00 [17:31:58]line Наличными: 0.00 [17:31:58]line Безнал.: 0.00 [17:31:58]line Место: АЗС № 86 "Партнер Нефть" [17:31:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:31:58]line СНО: Общий режим [17:31:58]line Чек 335 24.10.2024 17:32 [17:31:58]line Смена: 463 ФФД: 1.0 [17:31:58]line ЗНМ: 0300000155 [17:31:58]line РНМ: 0000000000100030 [17:31:58]line Версия ККМ: 001 [17:31:58]line Талоны: ТК ГПНА Online [17:31:58]line 30089116 [17:31:58]line ФМ: 0000000000965340 [17:31:58]line ФД: 189262 [17:31:58]line ФПД: 6090763725209 [17:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189262&fm=6090763725209&tin=02508201610067®Number=0000000000100030&sum=0 [17:31:58]written 0, free lines is 4095 [17:31:58]OFD Sender: Processing packet 189262 [packets to send 1062, broken 1061] [17:31:58]ProducePacketName [17:31:58]name=ofd_packets/00189262 [17:31:58]OFD Sender: To server: pG, [17:31:58]CommunicateWithHost lk.salyk.kg:30040 [17:31:58]ConnectInit lk.salyk.kg [17:31:58]Connected sock=10 [17:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C6 3D 07 01 54 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 33 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 4F 01 00 00 F4 03 04 00 91 84 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E3 02 00 35 04 06 00 05 8A 1D CE E9 99 C6 53 E8 5E E3 E1 10 CD [17:31:58]Write to MH i2c: 01 00 00 94 64 F8 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 07 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: 01 07 00 94 64 00 00 00 00 00 74 0C 7F [17:31:58]RasterBufferAndPrint [17:31:58]line [17:31:58]line [17:31:58]line [17:31:58]line [17:31:58]line [17:31:58]written 0, free lines is 3193 [17:31:58]MH_Cut [17:31:58]Write to MH i2c: D1 01 00 9B 64 01 D1 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: D1 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: D1 01 00 [17:31:58]MH_I2C_Read... [17:31:58]Read from MH i2c: D1 01 00 9B 64 00 D0 [17:31:58]Write to MH i2c: 01 00 00 9C 64 00 [17:31:58]Write i2c OK [17:31:58]MH_I2C_Read... [17:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 23 47 00 91 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E3 02 00 F4 03 04 00 78 2E 1A 67 B6 04 01 00 00 D3 76 9C 5D EF E7 DA 26 [17:31:58]CommunicateWithHost err = 0 [17:31:58]CheckOFDResponse [17:31:58]1017 (14) - 77093643461234 [17:31:58]1041 (16) - 0000000000965340 [17:31:58]1040 (4) - 189262 [17:31:58]1012 (4) - 24.10.2024 11:24 [17:31:58]1206 (1) - 0 [17:31:58]OFD Sender: Remove packet 189262 [17:31:58]ProducePacketName [17:31:58]name=ofd_packets/00189262 [17:31:58]NVStorageDeleteData [17:31:59]OFD Sender: No OFD packet to send [17:31:59]*** Cut start [17:31:59]*** Partial cut [17:31:59]*** CUTSNS_PIN = 1 [17:31:59]*** CUTSNS_PIN = 0 [17:32:00]*** Brake cut motor [17:32:00]Read from MH i2c: 01 [17:32:00]MH_I2C_Read... [17:32:00]*** Stop cut motor [17:32:00]*** Cut end [17:32:00]Read from MH i2c: 01 07 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: 01 07 00 9C 64 00 00 00 00 00 FF 0F 15 [17:32:00]process_action close_receipt done [17:32:00]requested_data is exist [17:32:00]produce_requested_data [17:32:00]requested_item fm.sn is exist - process it [17:32:00]wFMCommunicate request_size=4 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 11 00 00 [17:32:00]Write to MH i2c: E2 08 00 9D 64 80 11 00 00 00 00 00 00 7B [17:32:00]Write i2c OK [17:32:00]MH_I2C_Read... [17:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:00]Read from MH i2c: E2 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 17 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 17 00 9D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [17:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:32:00]wFMCommunicate OK [17:32:00]requested_item fd.num is exist - process it [17:32:00]SAM_PROTO_GetFieldsCounters [17:32:00]wFMCommunicate request_size=4 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 13 00 00 [17:32:00]Write to MH i2c: E2 08 00 9E 64 80 13 00 00 00 00 00 00 7E [17:32:00]Write i2c OK [17:32:00]MH_I2C_Read... [17:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:00]Read from MH i2c: E2 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 62 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 62 00 9E 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E3 02 00 0E 04 04 00 CF 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 78 [17:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E3 02 00 0E 04 04 00 CF 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 [17:32:00]wFMCommunicate OK [17:32:00]SAM_PROTO_GetFieldsCounters done [17:32:00]requested_item shift.num is exist - process it [17:32:00]requested_item shift.opened is exist - process it [17:32:00]req_shift_opened [17:32:00]FM_GetShiftState [17:32:00]SAM_PROTO_GetShiftState [17:32:00]wFMCommunicate request_size=4 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 13 01 00 [17:32:00]Write to MH i2c: E2 08 00 9F 64 80 13 01 00 00 00 00 00 80 [17:32:00]Write i2c OK [17:32:00]MH_I2C_Read... [17:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:00]Read from MH i2c: E2 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 0E 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 0E 00 9F 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [17:32:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:32:00]wFMCommunicate OK [17:32:00]SAM_PROTO_GetShiftState done [17:32:00]FM_GetShiftState done [17:32:00]req_shift_opened done [17:32:00]requested_item shift.open_date is exist - process it [17:32:00]req_shift_open_date [17:32:00]req_shift_open_date done [17:32:00]produce_requested_data done [17:32:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189262,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:32:00]process_action_free close_receipt [17:32:00]json_value_free [17:32:00]json_value_free done [17:32:00]process_json_proto returns [17:32:00]Send response to host [17:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189262,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:32:00]free response buf [17:32:00]execute_script done [17:32:00]execute_script returns [17:32:00]free content buf [17:32:00]Sock 9.Close socket [17:32:00]Sock 9.Thread stoped [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]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:35:56]accept exits with 8 [17:35:56]New connection [17:35:56]New thread 3067215204 created [17:35:56]Thread 3067071844 joined [17:35:56]Waiting for new connection... [17:35:56] Sock 8.Parse request [17:35:56]Sock 8.Check first char [17:35:56]Sock 8.First char is OK [17:35:56]request: POST /json_proto HTTP/1.0 [17:35:56]Method: POST [17:35:56]URL: /json_proto [17:35:56]Method is POST - this is cgi request [17:35:56]url: /json_proto [17:35:56]query_string will be loaded in cgi processing [17:35:56]execute_cgi json_proto POST (null) [17:35:56]execute_cgi path=json_proto method=POST [17:35:56]POST find Content-Length [17:35:56]Host: 172.17.42.131:8080 [17:35:56]Content-Length: 688 [17:35:56]Content-Type: application/json [17:35:56] [17:35:56]POST finish read [17:35:56]Found Content-Length = 688 [17:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [17:35:56]execute_script... [17:35: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)211328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [17:35:56]POST & json_proto [17:35:56]process_json_proto [17:35:56]json parsed OK: [17:35:56]protocol is kg_v1.0 [17:35:56]action value=close_receipt [17:35:56]process_action close_receipt [17:35:56]cmd_close_receipt [17:35:56]MH_GetDate [17:35:56]Write to MH i2c: F0 00 00 A0 64 F3 [17:35:56]Write i2c OK [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 09 00 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 09 00 A0 64 00 80 85 1A 67 A0 18 CA 66 6A [17:35:56]GetLastDocTimeStamp 1729791121 [17:35:56]current date 1729791360 [17:35:56]FM_GetShiftState [17:35:56]SAM_PROTO_GetShiftState [17:35:56]wFMCommunicate request_size=4 [17:35:56]MH_SAM_APDU [17:35:56]CAPDU: 80 13 01 00 [17:35:56]Write to MH i2c: E2 08 00 A1 64 80 13 01 00 00 00 00 00 82 [17:35:56]Write i2c OK [17:35:56]MH_I2C_Read... [17:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:56]Read from MH i2c: E2 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: E2 0E 00 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: E2 0E 00 A1 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [17:35:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:35:56]wFMCommunicate OK [17:35:56]SAM_PROTO_GetShiftState done [17:35:56]FM_GetShiftState done [17:35:56]opened in 1729728961 [17:35:56]opened+sec_in_day 1729815361 [17:35:56]quantity*price = 300076 [17:35:56]sum+1 = 300077 [17:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 336 24.10.2024 17:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189263 ФПД: 109358915552099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173601&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189263&fm=109358915552099&tin=02508201610067®Number=0000000000100030&sum=300000 [17:35:57]StoreToDocumentArchive [17:35:57]shift 463 fd 189263 [17:35:57]save to /storage/0463/doc_00189263 [17:35:57]save last doc name /storage/0463/doc_00189263 to /storage/kkm_last_doc_name [17:35:57]save OK [17:35:57]Clear old archive folders... [17:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:35:57]tlvbuf is 01567260 [17:35:57]SAM_PROTO_ClearQueue [17:35:57]wFMCommunicate request_size=4 [17:35:57]MH_SAM_APDU [17:35:57]CAPDU: 80 09 00 00 [17:35:57]Write to MH i2c: E2 08 00 AE 64 80 09 00 00 00 00 00 00 84 [17:35:57]Write i2c OK [17:35:57]MH_I2C_Read... [17:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:57]Read from MH i2c: E2 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 03 00 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 03 00 AE 64 00 90 00 86 [17:35:57]RAPDU: 90 00 [17:35:57]wFMCommunicate OK [17:35:57]SAM_PROTO_ClearQueue done [17:35:57]KKMCreateOFDPacket [17:35:57]OFDProtocolAddRootSTLVToBuf [17:35:57]FM_MakeSignedData [17:35:57]FM_MakeSignedData [17:35:57]SAM_PROTO_SignData [17:35:57]wFMCommunicate request_size=4 [17:35:57]MH_SAM_APDU [17:35:57]CAPDU: 80 0D 01 02 [17:35:57]Write to MH i2c: E2 08 00 AF 64 80 0D 01 02 00 00 00 00 8C [17:35:57]Write i2c OK [17:35:57]MH_I2C_Read... [17:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:57]Read from MH i2c: E2 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 03 00 [17:35:57]MH_I2C_Read... [17:35:57]Read from MH i2c: E2 03 00 AF 64 00 90 00 87 [17:35:57]RAPDU: 90 00 [17:35:57]wFMCommunicate OK [17:35:57]wFMCommunicate request_size=255 [17:35:57]MH_SAM_APDU [17:35:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 50 01 00 00 F4 03 04 00 81 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E3 02 [17:35:57]Write to MH i2c: E2 02 01 B0 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 50 01 00 00 F4 03 04 00 81 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E3 02 00 00 A7 [17:35:57]Write i2c OK [17:35:57]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 B0 64 00 90 00 88 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]wFMCommunicate request_size=16 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 63 76 1B 50 83 63 [17:35:58]Write to MH i2c: E2 13 00 B1 64 80 0D 02 02 0B 00 00 35 04 06 00 63 76 1B 50 83 63 00 00 0E [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 B1 64 00 90 00 89 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 03 02 [17:35:58]Write to MH i2c: E2 08 00 B2 64 80 0D 03 02 00 00 00 00 91 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 0B 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 0B 00 B2 64 00 02 E6 21 9A 5C 83 0F A6 90 00 C9 [17:35:58]RAPDU: 02 E6 21 9A 5C 83 0F A6 90 00 [17:35:58]wFMCommunicate OK [17:35:58]SAM_PROTO_SignData done [17:35:58]FM_MakeSignedData done [17:35:58]CreateOFDProtocolMessage [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 11 00 00 [17:35:58]Write to MH i2c: E2 08 00 B3 64 80 11 00 00 00 00 00 00 91 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 17 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 17 00 B3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [17:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:35:58]wFMCommunicate OK [17:35:58]CreateOFDProtocolMessage done [17:35:58]OFDSenderStorePacket 189263 [17:35:58]StoreOFDPacket docnum=189263 [17:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AE D3 0D 01 DA 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 50 01 00 00 F4 03 04 00 81 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E3 02 00 35 04 06 00 63 76 1B 50 83 63 02 E6 21 9A 5C 83 0F A6 [17:35:58]CheckFolder [17:35:58]dirname=/storage/ofd_packets [17:35:58]CheckFolder done [17:35:58]ProducePacketName [17:35:58]name=ofd_packets/00189263 [17:35:58]NVStorageSaveData ofd_packets/00189263 [17:35:58]File name is /storage/ofd_packets/00189263 [17:35:58]Write 307 bytes [17:35:58]NVStorageSaveData done [17:35:58]OFDSenderStorePacket done [17:35:58]KKMCreateOFDPacket done [17:35:58]NVStorageSaveData kkm_last_timestamp [17:35:58]File name is /storage/kkm_last_timestamp [17:35:58]Write 4 bytes [17:35:58]NVStorageSaveData done [17:35:58]ExternCall_PrintAddStr [17:35:58]wPrintStart [17:35:58]Write to MH i2c: 01 00 00 B4 64 18 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 B4 64 00 00 00 00 00 FF 0F 2D [17:35:58]RasterBufferAndPrint [17:35:58]line Счет N : (1)211328 [17:35:58]line ИНН: 02508201610067 [17:35:58]line Контрольно-Кассовый Чек [17:35:58]line ПРОДАЖА [17:35:58]line ТРК (МРК, ГНК) : 21 [17:35:58]line Товар: 2710194210 [17:35:58]line D-ENERGY ДТ-К-5 [17:35:58]line 38.870 * 77.20 [17:35:58]line = 3000.76 [17:35:58]line НДС 12% НСП 1% [17:35:58]line > о реализуемом товаре [17:35:58]line ОКРУГЛЕНИЕ: -0.76 [17:35:58]line ИТОГО: 3000.00 [17:35:58]line Внесено: 3000.00 [17:35:58]line СДАЧА: 0.00 [17:35:58]line НСП 1% : 26.55 [17:35:58]line НДС 12% : 318.66 [17:35:58]line Наличными: 3000.00 [17:35:58]line Безнал.: 0.00 [17:35:58]line Место: АЗС № 86 "Партнер Нефть" [17:35:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:35:58]line СНО: Общий режим [17:35:58]line Чек 336 24.10.2024 17:36 [17:35:58]line Смена: 463 ФФД: 1.0 [17:35:58]line ЗНМ: 0300000155 [17:35:58]line РНМ: 0000000000100030 [17:35:58]line Версия ККМ: 001 [17:35:58]line ФМ: 0000000000965340 [17:35:58]line ФД: 189263 [17:35:58]line ФПД: 109358915552099 [17:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173601&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189263&fm=109358915552099&tin=02508201610067®Number=0000000000100030&sum=300000 [17:35:58]written 0, free lines is 4095 [17:35:58]OFD Sender: Processing packet 189263 [packets to send 1062, broken 1061] [17:35:58]ProducePacketName [17:35:58]name=ofd_packets/00189263 [17:35:58]OFD Sender: To server: pG, [17:35:58]CommunicateWithHost lk.salyk.kg:30040 [17:35:58]ConnectInit lk.salyk.kg [17:35:58]Connected sock=10 [17:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AE D3 0D 01 DA 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 50 01 00 00 F4 03 04 00 81 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E3 02 00 35 04 06 00 63 76 1B 50 83 63 02 E6 21 9A 5C 83 0F A6 [17:35:58]Write to MH i2c: 01 00 00 DF 64 43 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 DF 64 00 00 00 00 00 60 0C B6 [17:35:58]RasterBufferAndPrint [17:35:58]line [17:35:58]line [17:35:58]line [17:35:58]line [17:35:58]line [17:35:58]written 0, free lines is 3172 [17:35:58]MH_Cut [17:35:58]Write to MH i2c: D1 01 00 E6 64 01 1C [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: D1 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: D1 01 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: D1 01 00 E6 64 00 1B [17:35:58]Write to MH i2c: 01 00 00 E7 64 4B [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 73 47 00 75 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E3 02 00 F4 03 04 00 68 2F 1A 67 B6 04 01 00 00 45 DA 1B 34 DE AD AB B8 [17:35:58]CommunicateWithHost err = 0 [17:35:58]CheckOFDResponse [17:35:58]1017 (14) - 77093643461234 [17:35:58]1041 (16) - 0000000000965340 [17:35:58]1040 (4) - 189263 [17:35:58]1012 (4) - 24.10.2024 11:28 [17:35:58]1206 (1) - 0 [17:35:58]OFD Sender: Remove packet 189263 [17:35:58]ProducePacketName [17:35:58]name=ofd_packets/00189263 [17:35:58]NVStorageDeleteData [17:35:59]OFD Sender: No OFD packet to send [17:36:00]*** Cut start [17:36:00]*** Partial cut [17:36:00]*** CUTSNS_PIN = 1 [17:36:00]*** CUTSNS_PIN = 0 [17:36:00]*** Brake cut motor [17:36:00]Read from MH i2c: 01 [17:36:00]MH_I2C_Read... [17:36:00]*** Stop cut motor [17:36:00]*** Cut end [17:36:00]Read from MH i2c: 01 07 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: 01 07 00 E7 64 00 00 00 00 00 FF 0F 60 [17:36:00]process_action close_receipt done [17:36:00]requested_data is exist [17:36:00]produce_requested_data [17:36:00]requested_item fm.sn is exist - process it [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 11 00 00 [17:36:00]Write to MH i2c: E2 08 00 E8 64 80 11 00 00 00 00 00 00 C6 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 17 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 17 00 E8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [17:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:36:00]wFMCommunicate OK [17:36:00]requested_item fd.num is exist - process it [17:36:00]SAM_PROTO_GetFieldsCounters [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 13 00 00 [17:36:00]Write to MH i2c: E2 08 00 E9 64 80 13 00 00 00 00 00 00 C9 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 62 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 62 00 E9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E3 02 00 0E 04 04 00 CF 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 C7 [17:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E3 02 00 0E 04 04 00 CF 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 [17:36:00]wFMCommunicate OK [17:36:00]SAM_PROTO_GetFieldsCounters done [17:36:00]requested_item shift.num is exist - process it [17:36:00]requested_item shift.opened is exist - process it [17:36:00]req_shift_opened [17:36:00]FM_GetShiftState [17:36:00]SAM_PROTO_GetShiftState [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 13 01 00 [17:36:00]Write to MH i2c: E2 08 00 EA 64 80 13 01 00 00 00 00 00 CB [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0E 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0E 00 EA 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A9 [17:36:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:36:00]wFMCommunicate OK [17:36:00]SAM_PROTO_GetShiftState done [17:36:00]FM_GetShiftState done [17:36:00]req_shift_opened done [17:36:00]requested_item shift.open_date is exist - process it [17:36:00]req_shift_open_date [17:36:00]req_shift_open_date done [17:36:00]produce_requested_data done [17:36:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189263,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:36:00]process_action_free close_receipt [17:36:00]json_value_free [17:36:00]json_value_free done [17:36:00]process_json_proto returns [17:36:00]Send response to host [17:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189263,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:36:00]free response buf [17:36:00]execute_script done [17:36:00]execute_script returns [17:36:00]free content buf [17:36:00]Sock 8.Close socket [17:36:00]Sock 8.Thread stoped [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:03]accept exits with 9 [17:37:03]New connection [17:37:03]New thread 3067071844 created [17:37:03]Thread 3067215204 joined [17:37:03]Waiting for new connection... [17:37:03] Sock 9.Parse request [17:37:03]Sock 9.Check first char [17:37:03]Sock 9.First char is OK [17:37:03]request: POST /json_proto HTTP/1.0 [17:37:03]Method: POST [17:37:03]URL: /json_proto [17:37:03]Method is POST - this is cgi request [17:37:03]url: /json_proto [17:37:03]query_string will be loaded in cgi processing [17:37:03]execute_cgi json_proto POST (null) [17:37:03]execute_cgi path=json_proto method=POST [17:37:03]POST find Content-Length [17:37:03]Host: 172.17.42.131:8080 [17:37:03]Content-Length: 775 [17:37:03]Content-Type: application/json [17:37:03] [17:37:03]POST finish read [17:37:03]Found Content-Length = 775 [17:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:03]execute_script... [17:37: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)211329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:03]POST & json_proto [17:37:03]process_json_proto [17:37:03]json parsed OK: [17:37:03]protocol is kg_v1.0 [17:37:03]action value=close_receipt [17:37:03]process_action close_receipt [17:37:03]cmd_close_receipt [17:37:03]MH_GetDate [17:37:03]Write to MH i2c: F0 00 00 EB 64 3E [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: F0 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: F0 09 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: F0 09 00 EB 64 00 C3 85 1A 67 A0 18 CA 66 F8 [17:37:03]GetLastDocTimeStamp 1729791361 [17:37:03]current date 1729791427 [17:37:03]FM_GetShiftState [17:37:03]SAM_PROTO_GetShiftState [17:37:03]wFMCommunicate request_size=4 [17:37:03]MH_SAM_APDU [17:37:03]CAPDU: 80 13 01 00 [17:37:03]Write to MH i2c: E2 08 00 EC 64 80 13 01 00 00 00 00 00 CD [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:03]Read from MH i2c: E2 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 0E 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 0E 00 EC 64 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AB [17:37:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:37:03]wFMCommunicate OK [17:37:03]SAM_PROTO_GetShiftState done [17:37:03]FM_GetShiftState done [17:37:03]opened in 1729728961 [17:37:03]opened+sec_in_day 1729815361 [17:37:03]quantity*price = 250050 [17:37:03]sum+1 = 250052 [17:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 337 24.10.2024 17:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189264 ФПД: 9376468535083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189264&fm=9376468535083&tin=02508201610067®Number=0000000000100030&sum=250051 [17:37:04]StoreToDocumentArchive [17:37:04]shift 463 fd 189264 [17:37:04]save to /storage/0463/doc_00189264 [17:37:04]save last doc name /storage/0463/doc_00189264 to /storage/kkm_last_doc_name [17:37:04]save OK [17:37:04]Clear old archive folders... [17:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:37:04]tlvbuf is 016C64F0 [17:37:04]SAM_PROTO_ClearQueue [17:37:04]wFMCommunicate request_size=4 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 09 00 00 [17:37:04]Write to MH i2c: E2 08 00 F9 64 80 09 00 00 00 00 00 00 CF [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:04]Read from MH i2c: E2 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 03 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 03 00 F9 64 00 90 00 D1 [17:37:04]RAPDU: 90 00 [17:37:04]wFMCommunicate OK [17:37:04]SAM_PROTO_ClearQueue done [17:37:04]KKMCreateOFDPacket [17:37:04]OFDProtocolAddRootSTLVToBuf [17:37:04]FM_MakeSignedData [17:37:04]FM_MakeSignedData [17:37:04]SAM_PROTO_SignData [17:37:04]wFMCommunicate request_size=4 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 0D 01 02 [17:37:04]Write to MH i2c: E2 08 00 FA 64 80 0D 01 02 00 00 00 00 D7 [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:04]OFD Sender: No OFD packet to send [17:37:04]Read from MH i2c: E2 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 03 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 03 00 FA 64 00 90 00 D2 [17:37:04]RAPDU: 90 00 [17:37:04]wFMCommunicate OK [17:37:04]wFMCommunicate request_size=255 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 C4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E3 02 [17:37:04]Write to MH i2c: E2 02 01 FB 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 C4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E3 02 00 00 4D [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 03 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 03 00 FB 64 00 90 00 D3 [17:37:05]RAPDU: 90 00 [17:37:05]wFMCommunicate OK [17:37:05]wFMCommunicate request_size=16 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 08 87 21 13 87 2B [17:37:05]Write to MH i2c: E2 13 00 FC 64 80 0D 02 02 0B 00 00 35 04 06 00 08 87 21 13 87 2B 00 00 A4 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 03 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 03 00 FC 64 00 90 00 D4 [17:37:05]RAPDU: 90 00 [17:37:05]wFMCommunicate OK [17:37:05]wFMCommunicate request_size=4 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 0D 03 02 [17:37:05]Write to MH i2c: E2 08 00 FD 64 80 0D 03 02 00 00 00 00 DC [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 0B 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 0B 00 FD 64 00 4E 55 B8 6F CE 2D 2B B0 90 00 7D [17:37:05]RAPDU: 4E 55 B8 6F CE 2D 2B B0 90 00 [17:37:05]wFMCommunicate OK [17:37:05]SAM_PROTO_SignData done [17:37:05]FM_MakeSignedData done [17:37:05]CreateOFDProtocolMessage [17:37:05]wFMCommunicate request_size=4 [17:37:05]MH_SAM_APDU [17:37:05]CAPDU: 80 11 00 00 [17:37:05]Write to MH i2c: E2 08 00 FE 64 80 11 00 00 00 00 00 00 DC [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:05]Read from MH i2c: E2 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 17 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: E2 17 00 FE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [17:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:37:05]wFMCommunicate OK [17:37:05]CreateOFDProtocolMessage done [17:37:05]OFDSenderStorePacket 189264 [17:37:05]StoreOFDPacket docnum=189264 [17:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 CE 0D 01 4A 38 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 C4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E3 02 00 35 04 06 00 08 87 21 13 87 2B 4E 55 B8 6F CE 2D 2B B0 [17:37:05]CheckFolder [17:37:05]dirname=/storage/ofd_packets [17:37:05]CheckFolder done [17:37:05]ProducePacketName [17:37:05]name=ofd_packets/00189264 [17:37:05]NVStorageSaveData ofd_packets/00189264 [17:37:05]File name is /storage/ofd_packets/00189264 [17:37:05]Write 307 bytes [17:37:05]NVStorageSaveData done [17:37:05]OFDSenderStorePacket done [17:37:05]KKMCreateOFDPacket done [17:37:05]NVStorageSaveData kkm_last_timestamp [17:37:05]File name is /storage/kkm_last_timestamp [17:37:05]Write 4 bytes [17:37:05]NVStorageSaveData done [17:37:05]ExternCall_PrintAddStr [17:37:05]wPrintStart [17:37:05]Write to MH i2c: 01 00 00 FF 64 63 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 07 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 07 00 FF 64 00 00 00 00 00 FF 0F 78 [17:37:05]RasterBufferAndPrint [17:37:05]line Счет N : (1)211329 [17:37:05]line ИНН: 02508201610067 [17:37:05]line Контрольно-Кассовый Чек [17:37:05]line ПРОДАЖА [17:37:05]line ТРК (МРК, ГНК) : 11 [17:37:05]line Товар: 2710194210 [17:37:05]line D-ENERGY ДТ-К-5 [17:37:05]line 32.390 * 77.20 [17:37:05]line = 2500.51 [17:37:05]line НДС 12% НСП 1% [17:37:05]line > о реализуемом товаре [17:37:05]line ИТОГО: 2500.51 [17:37:05]line НСП 1% : 22.13 [17:37:05]line НДС 12% : 265.54 [17:37:05]line Наличными: 0.00 [17:37:05]line Безнал.: 2500.51 [17:37:05]line Место: АЗС № 86 "Партнер Нефть" [17:37:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:37:05]line СНО: Общий режим [17:37:05]line Чек 337 24.10.2024 17:37 [17:37:05]line Смена: 463 ФФД: 1.0 [17:37:05]line ЗНМ: 0300000155 [17:37:05]line РНМ: 0000000000100030 [17:37:05]line Версия ККМ: 001 [17:37:05]line Платежная система: Mbank [17:37:05]line ФМ: 0000000000965340 [17:37:05]line ФД: 189264 [17:37:05]line ФПД: 9376468535083 [17:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189264&fm=9376468535083&tin=02508201610067®Number=0000000000100030&sum=250051 [17:37:05]written 0, free lines is 4095 [17:37:05]OFD Sender: Processing packet 189264 [packets to send 1062, broken 1061] [17:37:05]ProducePacketName [17:37:05]name=ofd_packets/00189264 [17:37:05]OFD Sender: To server: pG, [17:37:05]CommunicateWithHost lk.salyk.kg:30040 [17:37:05]ConnectInit lk.salyk.kg [17:37:05]Connected sock=10 [17:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 CE 0D 01 4A 38 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 C4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E3 02 00 35 04 06 00 08 87 21 13 87 2B 4E 55 B8 6F CE 2D 2B B0 [17:37:05]Write to MH i2c: 01 00 00 28 65 8D [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 07 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: 01 07 00 28 65 00 00 00 00 00 87 0C 27 [17:37:05]RasterBufferAndPrint [17:37:05]line [17:37:05]line [17:37:05]line [17:37:05]line [17:37:05]line [17:37:05]written 0, free lines is 3212 [17:37:05]MH_Cut [17:37:05]Write to MH i2c: D1 01 00 2F 65 01 66 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: D1 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: D1 01 00 [17:37:05]MH_I2C_Read... [17:37:05]Read from MH i2c: D1 01 00 2F 65 00 65 [17:37:05]Write to MH i2c: 01 00 00 30 65 95 [17:37:05]Write i2c OK [17:37:05]MH_I2C_Read... [17:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 40 47 00 1D 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 39 36 35 33 34 30 10 04 04 00 50 E3 02 00 F4 03 04 00 AB 2F 1A 67 B6 04 01 00 00 EE 2F 1F B5 92 43 0A 57 [17:37:06]CommunicateWithHost err = 0 [17:37:06]CheckOFDResponse [17:37:06]1017 (14) - 77093643461234 [17:37:06]1041 (16) - 0000000000965340 [17:37:06]1040 (4) - 189264 [17:37:06]1012 (4) - 24.10.2024 11:29 [17:37:06]1206 (1) - 0 [17:37:06]OFD Sender: Remove packet 189264 [17:37:06]ProducePacketName [17:37:06]name=ofd_packets/00189264 [17:37:06]NVStorageDeleteData [17:37:06]OFD Sender: No OFD packet to send [17:37:06]*** Cut start [17:37:06]*** Partial cut [17:37:06]*** CUTSNS_PIN = 1 [17:37:07]*** CUTSNS_PIN = 0 [17:37:07]*** Brake cut motor [17:37:07]Read from MH i2c: 01 [17:37:07]MH_I2C_Read... [17:37:07]*** Stop cut motor [17:37:07]*** Cut end [17:37:07]Read from MH i2c: 01 07 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: 01 07 00 30 65 00 00 00 00 00 FF 0F AA [17:37:07]process_action close_receipt done [17:37:07]requested_data is exist [17:37:07]produce_requested_data [17:37:07]requested_item fm.sn is exist - process it [17:37:07]wFMCommunicate request_size=4 [17:37:07]MH_SAM_APDU [17:37:07]CAPDU: 80 11 00 00 [17:37:07]Write to MH i2c: E2 08 00 31 65 80 11 00 00 00 00 00 00 10 [17:37:07]Write i2c OK [17:37:07]MH_I2C_Read... [17:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:07]Read from MH i2c: E2 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 17 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 17 00 31 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [17:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:37:07]wFMCommunicate OK [17:37:07]requested_item fd.num is exist - process it [17:37:07]SAM_PROTO_GetFieldsCounters [17:37:07]wFMCommunicate request_size=4 [17:37:07]MH_SAM_APDU [17:37:07]CAPDU: 80 13 00 00 [17:37:07]Write to MH i2c: E2 08 00 32 65 80 13 00 00 00 00 00 00 13 [17:37:07]Write i2c OK [17:37:07]MH_I2C_Read... [17:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:07]Read from MH i2c: E2 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 62 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 62 00 32 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E3 02 00 0E 04 04 00 CF 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 15 [17:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E3 02 00 0E 04 04 00 CF 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 [17:37:07]wFMCommunicate OK [17:37:07]SAM_PROTO_GetFieldsCounters done [17:37:07]requested_item shift.num is exist - process it [17:37:07]requested_item shift.opened is exist - process it [17:37:07]req_shift_opened [17:37:07]FM_GetShiftState [17:37:07]SAM_PROTO_GetShiftState [17:37:07]wFMCommunicate request_size=4 [17:37:07]MH_SAM_APDU [17:37:07]CAPDU: 80 13 01 00 [17:37:07]Write to MH i2c: E2 08 00 33 65 80 13 01 00 00 00 00 00 15 [17:37:07]Write i2c OK [17:37:07]MH_I2C_Read... [17:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:07]Read from MH i2c: E2 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 0E 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 0E 00 33 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F3 [17:37:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:37:07]wFMCommunicate OK [17:37:07]SAM_PROTO_GetShiftState done [17:37:07]FM_GetShiftState done [17:37:07]req_shift_opened done [17:37:07]requested_item shift.open_date is exist - process it [17:37:07]req_shift_open_date [17:37:07]req_shift_open_date done [17:37:07]produce_requested_data done [17:37:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189264,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:37:07]process_action_free close_receipt [17:37:07]json_value_free [17:37:07]json_value_free done [17:37:07]process_json_proto returns [17:37:07]Send response to host [17:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189264,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:37:07]free response buf [17:37:07]execute_script done [17:37:07]execute_script returns [17:37:07]free content buf [17:37:07]Sock 9.Close socket [17:37:07]Sock 9.Thread stoped [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:20]accept exits with 8 [17:37:20]New connection [17:37:20]New thread 3067215204 created [17:37:20]Thread 3067071844 joined [17:37:20]Waiting for new connection... [17:37:20] Sock 8.Parse request [17:37:20]Sock 8.Check first char [17:37:20]Sock 8.First char is OK [17:37:20]request: POST /json_proto HTTP/1.0 [17:37:20]Method: POST [17:37:20]URL: /json_proto [17:37:20]Method is POST - this is cgi request [17:37:20]url: /json_proto [17:37:20]query_string will be loaded in cgi processing [17:37:20]execute_cgi json_proto POST (null) [17:37:20]execute_cgi path=json_proto method=POST [17:37:20]POST find Content-Length [17:37:20]Host: 172.17.42.131:8080 [17:37:20]Content-Length: 677 [17:37:20]Content-Type: application/json [17:37:20] [17:37:20]POST finish read [17:37:20]Found Content-Length = 677 [17:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:37:20]execute_script... [17:37: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)211330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:37:20]POST & json_proto [17:37:20]process_json_proto [17:37:20]json parsed OK: [17:37:20]protocol is kg_v1.0 [17:37:20]action value=close_receipt [17:37:20]process_action close_receipt [17:37:20]cmd_close_receipt [17:37:20]MH_GetDate [17:37:20]Write to MH i2c: F0 00 00 34 65 88 [17:37:20]Write i2c OK [17:37:20]MH_I2C_Read... [17:37:20]Read from MH i2c: F0 [17:37:20]MH_I2C_Read... [17:37:20]Read from MH i2c: F0 09 00 [17:37:20]MH_I2C_Read... [17:37:20]Read from MH i2c: F0 09 00 34 65 00 D4 85 1A 67 A0 18 CA 66 53 [17:37:20]GetLastDocTimeStamp 1729791428 [17:37:20]current date 1729791444 [17:37:20]FM_GetShiftState [17:37:20]SAM_PROTO_GetShiftState [17:37:20]wFMCommunicate request_size=4 [17:37:20]MH_SAM_APDU [17:37:20]CAPDU: 80 13 01 00 [17:37:20]Write to MH i2c: E2 08 00 35 65 80 13 01 00 00 00 00 00 17 [17:37:20]Write i2c OK [17:37:20]MH_I2C_Read... [17:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:20]Read from MH i2c: E2 [17:37:20]MH_I2C_Read... [17:37:20]Read from MH i2c: E2 0E 00 [17:37:20]MH_I2C_Read... [17:37:20]Read from MH i2c: E2 0E 00 35 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F5 [17:37:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:37:20]wFMCommunicate OK [17:37:20]SAM_PROTO_GetShiftState done [17:37:20]FM_GetShiftState done [17:37:20]opened in 1729728961 [17:37:20]opened+sec_in_day 1729815361 [17:37:20]quantity*price = 50041 [17:37:20]sum+1 = 50042 [17:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 338 24.10.2024 17:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189265 ФПД: 181438619228793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173724&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189265&fm=181438619228793&tin=02508201610067®Number=0000000000100030&sum=50000 [17:37:21]StoreToDocumentArchive [17:37:21]shift 463 fd 189265 [17:37:21]save to /storage/0463/doc_00189265 [17:37:21]save last doc name /storage/0463/doc_00189265 to /storage/kkm_last_doc_name [17:37:21]save OK [17:37:21]Clear old archive folders... [17:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:21]tlvbuf is 0154F760 [17:37:21]SAM_PROTO_ClearQueue [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 09 00 00 [17:37:21]Write to MH i2c: E2 08 00 42 65 80 09 00 00 00 00 00 00 19 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 42 65 00 90 00 1B [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]SAM_PROTO_ClearQueue done [17:37:21]KKMCreateOFDPacket [17:37:21]OFDProtocolAddRootSTLVToBuf [17:37:21]FM_MakeSignedData [17:37:21]FM_MakeSignedData [17:37:21]SAM_PROTO_SignData [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 01 02 [17:37:21]Write to MH i2c: E2 08 00 43 65 80 0D 01 02 00 00 00 00 21 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 43 65 00 90 00 1C [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=255 [17:37:21]MH_SAM_APDU [17:37: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E3 02 00 35 04 06 00 A5 [17:37:21]Write to MH i2c: E2 02 01 44 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E3 02 00 35 04 06 00 A5 00 00 6C [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]OFD Sender: No OFD packet to send [17:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 44 65 00 90 00 1D [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=10 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 02 02 05 04 78 72 9A 79 [17:37:21]Write to MH i2c: E2 0D 00 45 65 80 0D 02 02 05 00 04 78 72 9A 79 00 00 2F [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 45 65 00 90 00 1E [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 03 02 [17:37:21]Write to MH i2c: E2 08 00 46 65 80 0D 03 02 00 00 00 00 26 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:22]Read from MH i2c: E2 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0B 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0B 00 46 65 00 72 34 08 31 6B 0B 6A D0 90 00 B6 [17:37:22]RAPDU: 72 34 08 31 6B 0B 6A D0 90 00 [17:37:22]wFMCommunicate OK [17:37:22]SAM_PROTO_SignData done [17:37:22]FM_MakeSignedData done [17:37:22]CreateOFDProtocolMessage [17:37:22]wFMCommunicate request_size=4 [17:37:22]MH_SAM_APDU [17:37:22]CAPDU: 80 11 00 00 [17:37:22]Write to MH i2c: E2 08 00 47 65 80 11 00 00 00 00 00 00 26 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:22]Read from MH i2c: E2 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 17 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 17 00 47 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [17:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:37:22]wFMCommunicate OK [17:37:22]CreateOFDProtocolMessage done [17:37:22]OFDSenderStorePacket 189265 [17:37:22]StoreOFDPacket docnum=189265 [17:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 03 07 01 B8 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E3 02 00 35 04 06 00 A5 04 78 72 9A 79 72 34 08 31 6B 0B 6A D0 [17:37:22]CheckFolder [17:37:22]dirname=/storage/ofd_packets [17:37:22]CheckFolder done [17:37:22]ProducePacketName [17:37:22]name=ofd_packets/00189265 [17:37:22]NVStorageSaveData ofd_packets/00189265 [17:37:22]File name is /storage/ofd_packets/00189265 [17:37:22]Write 301 bytes [17:37:22]NVStorageSaveData done [17:37:22]OFDSenderStorePacket done [17:37:22]KKMCreateOFDPacket done [17:37:22]NVStorageSaveData kkm_last_timestamp [17:37:22]File name is /storage/kkm_last_timestamp [17:37:22]Write 4 bytes [17:37:22]NVStorageSaveData done [17:37:22]ExternCall_PrintAddStr [17:37:22]wPrintStart [17:37:22]Write to MH i2c: 01 00 00 48 65 AD [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 48 65 00 00 00 00 00 FF 0F C2 [17:37:22]RasterBufferAndPrint [17:37:22]line Счет N : (1)211330 [17:37:22]line ИНН: 02508201610067 [17:37:22]line Контрольно-Кассовый Чек [17:37:22]line ПРОДАЖА [17:37:22]line ТРК (МРК, ГНК) : 32 [17:37:22]line Товар: 2710124130 [17:37:22]line Аи-92-К-3 [17:37:22]line 7.480 * 66.90 [17:37:22]line = 500.41 [17:37:22]line НДС 12% НСП 1% [17:37:22]line > о реализуемом товаре [17:37:22]line ОКРУГЛЕНИЕ: -0.41 [17:37:22]line ИТОГО: 500.00 [17:37:22]line Внесено: 500.00 [17:37:22]line СДАЧА: 0.00 [17:37:22]line НСП 1% : 4.43 [17:37:22]line НДС 12% : 53.14 [17:37:22]line Наличными: 500.00 [17:37:22]line Безнал.: 0.00 [17:37:22]line Место: АЗС № 86 "Партнер Нефть" [17:37:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:37:22]line СНО: Общий режим [17:37:22]line Чек 338 24.10.2024 17:37 [17:37:22]line Смена: 463 ФФД: 1.0 [17:37:22]line ЗНМ: 0300000155 [17:37:22]line РНМ: 0000000000100030 [17:37:22]line Версия ККМ: 001 [17:37:22]line ФМ: 0000000000965340 [17:37:22]line ФД: 189265 [17:37:22]line ФПД: 181438619228793 [17:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173724&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189265&fm=181438619228793&tin=02508201610067®Number=0000000000100030&sum=50000 [17:37:22]written 0, free lines is 4095 [17:37:22]OFD Sender: Processing packet 189265 [packets to send 1062, broken 1061] [17:37:22]ProducePacketName [17:37:22]name=ofd_packets/00189265 [17:37:22]OFD Sender: To server: pG, [17:37:22]CommunicateWithHost lk.salyk.kg:30040 [17:37:22]ConnectInit lk.salyk.kg [17:37:22]Write to MH i2c: 01 00 00 73 65 D8 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 73 65 00 00 00 00 00 5C 0C 47 [17:37:22]RasterBufferAndPrint [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]written 0, free lines is 3167 [17:37:22]MH_Cut [17:37:22]Write to MH i2c: D1 01 00 7A 65 01 B1 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 01 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 01 00 7A 65 00 B0 [17:37:22]Write to MH i2c: 01 00 00 7B 65 E0 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Connected sock=10 [17:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E 03 07 01 B8 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 85 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E3 02 00 35 04 06 00 A5 04 78 72 9A 79 72 34 08 31 6B 0B 6A D0 [17:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B3 7D 47 00 0C 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 39 36 35 33 34 30 10 04 04 00 51 E3 02 00 F4 03 04 00 BC 2F 1A 67 B6 04 01 00 00 42 58 C8 03 5B EB 19 8B [17:37:23]CommunicateWithHost err = 0 [17:37:23]CheckOFDResponse [17:37:23]1017 (14) - 77093643461234 [17:37:23]1041 (16) - 0000000000965340 [17:37:23]1040 (4) - 189265 [17:37:23]1012 (4) - 24.10.2024 11:30 [17:37:23]1206 (1) - 0 [17:37:23]OFD Sender: Remove packet 189265 [17:37:23]ProducePacketName [17:37:23]name=ofd_packets/00189265 [17:37:23]NVStorageDeleteData [17:37:23]OFD Sender: No OFD packet to send [17:37:23]*** Cut start [17:37:23]*** Partial cut [17:37:23]*** CUTSNS_PIN = 1 [17:37:23]*** CUTSNS_PIN = 0 [17:37:24]*** Brake cut motor [17:37:24]Read from MH i2c: 01 [17:37:24]MH_I2C_Read... [17:37:24]*** Stop cut motor [17:37:24]*** Cut end [17:37:24]Read from MH i2c: 01 07 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: 01 07 00 7B 65 00 00 00 00 00 FF 0F F5 [17:37:24]process_action close_receipt done [17:37:24]requested_data is exist [17:37:24]produce_requested_data [17:37:24]requested_item fm.sn is exist - process it [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 11 00 00 [17:37:24]Write to MH i2c: E2 08 00 7C 65 80 11 00 00 00 00 00 00 5B [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 7C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [17:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:37:24]wFMCommunicate OK [17:37:24]requested_item fd.num is exist - process it [17:37:24]SAM_PROTO_GetFieldsCounters [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 00 00 [17:37:24]Write to MH i2c: E2 08 00 7D 65 80 13 00 00 00 00 00 00 5E [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 62 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 62 00 7D 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E3 02 00 0E 04 04 00 CF 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 64 [17:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E3 02 00 0E 04 04 00 CF 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 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetFieldsCounters done [17:37:24]requested_item shift.num is exist - process it [17:37:24]requested_item shift.opened is exist - process it [17:37:24]req_shift_opened [17:37:24]FM_GetShiftState [17:37:24]SAM_PROTO_GetShiftState [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 01 00 [17:37:24]Write to MH i2c: E2 08 00 7E 65 80 13 01 00 00 00 00 00 60 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 7E 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3E [17:37:24]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetShiftState done [17:37:24]FM_GetShiftState done [17:37:24]req_shift_opened done [17:37:24]requested_item shift.open_date is exist - process it [17:37:24]req_shift_open_date [17:37:24]req_shift_open_date done [17:37:24]produce_requested_data done [17:37:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189265,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:37:24]process_action_free close_receipt [17:37:24]json_value_free [17:37:24]json_value_free done [17:37:24]process_json_proto returns [17:37:24]Send response to host [17:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189265,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:37:24]free response buf [17:37:24]execute_script done [17:37:24]execute_script returns [17:37:24]free content buf [17:37:24]Sock 8.Close socket [17:37:24]Sock 8.Thread stoped [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]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:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]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:28]accept exits with 9 [17:42:28]New connection [17:42:28]New thread 3067071844 created [17:42:28]Thread 3067215204 joined [17:42:28]Waiting for new connection... [17:42:28] Sock 9.Parse request [17:42:28]Sock 9.Check first char [17:42:28]Sock 9.First char is OK [17:42:28]request: POST /json_proto HTTP/1.0 [17:42:28]Method: POST [17:42:28]URL: /json_proto [17:42:28]Method is POST - this is cgi request [17:42:28]url: /json_proto [17:42:28]query_string will be loaded in cgi processing [17:42:28]execute_cgi json_proto POST (null) [17:42:28]execute_cgi path=json_proto method=POST [17:42:28]POST find Content-Length [17:42:28]Host: 172.17.42.131:8080 [17:42:28]Content-Length: 677 [17:42:28]Content-Type: application/json [17:42:28] [17:42:28]POST finish read [17:42:28]Found Content-Length = 677 [17:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [17:42:28]execute_script... [17:42: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)211331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [17:42:28]POST & json_proto [17:42:28]process_json_proto [17:42:28]json parsed OK: [17:42:28]protocol is kg_v1.0 [17:42:28]action value=close_receipt [17:42:28]process_action close_receipt [17:42:28]cmd_close_receipt [17:42:28]MH_GetDate [17:42:28]Write to MH i2c: F0 00 00 7F 65 D3 [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 09 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 09 00 7F 65 00 09 87 1A 67 A0 18 CA 66 D5 [17:42:28]GetLastDocTimeStamp 1729791444 [17:42:28]current date 1729791753 [17:42:28]FM_GetShiftState [17:42:28]SAM_PROTO_GetShiftState [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 13 01 00 [17:42:28]Write to MH i2c: E2 08 00 80 65 80 13 01 00 00 00 00 00 62 [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0E 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0E 00 80 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 40 [17:42:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:42:29]wFMCommunicate OK [17:42:29]SAM_PROTO_GetShiftState done [17:42:29]FM_GetShiftState done [17:42:29]opened in 1729728961 [17:42:29]opened+sec_in_day 1729815361 [17:42:29]quantity*price = 40006 [17:42:29]sum+1 = 40007 [17:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 339 24.10.2024 17:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189266 ФПД: 2253021523412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189266&fm=2253021523412&tin=02508201610067®Number=0000000000100030&sum=40000 [17:42:30]StoreToDocumentArchive [17:42:30]shift 463 fd 189266 [17:42:30]save to /storage/0463/doc_00189266 [17:42:30]save last doc name /storage/0463/doc_00189266 to /storage/kkm_last_doc_name [17:42:30]save OK [17:42:30]Clear old archive folders... [17:42:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:30]tlvbuf is 015321A0 [17:42:30]SAM_PROTO_ClearQueue [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 09 00 00 [17:42:30]Write to MH i2c: E2 08 00 8D 65 80 09 00 00 00 00 00 00 64 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 8D 65 00 90 00 66 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]SAM_PROTO_ClearQueue done [17:42:30]KKMCreateOFDPacket [17:42:30]OFDProtocolAddRootSTLVToBuf [17:42:30]FM_MakeSignedData [17:42:30]FM_MakeSignedData [17:42:30]SAM_PROTO_SignData [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 01 02 [17:42:30]Write to MH i2c: E2 08 00 8E 65 80 0D 01 02 00 00 00 00 6C [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 8E 65 00 90 00 67 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=255 [17:42:30]MH_SAM_APDU [17:42: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 53 01 00 00 F4 03 04 00 09 87 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E3 02 00 35 04 06 00 02 [17:42:30]Write to MH i2c: E2 02 01 8F 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 53 01 00 00 F4 03 04 00 09 87 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E3 02 00 35 04 06 00 02 00 00 1C [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 8F 65 00 90 00 68 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=10 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 02 02 05 0C 92 8C 2D D4 [17:42:30]Write to MH i2c: E2 0D 00 90 65 80 0D 02 02 05 00 0C 92 8C 2D D4 00 00 A4 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 03 00 90 65 00 90 00 69 [17:42:30]RAPDU: 90 00 [17:42:30]wFMCommunicate OK [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 0D 03 02 [17:42:30]Write to MH i2c: E2 08 00 91 65 80 0D 03 02 00 00 00 00 71 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 0B 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 0B 00 91 65 00 F6 DB 2C 03 15 2A 76 3E 90 00 65 [17:42:30]RAPDU: F6 DB 2C 03 15 2A 76 3E 90 00 [17:42:30]wFMCommunicate OK [17:42:30]SAM_PROTO_SignData done [17:42:30]FM_MakeSignedData done [17:42:30]CreateOFDProtocolMessage [17:42:30]wFMCommunicate request_size=4 [17:42:30]MH_SAM_APDU [17:42:30]CAPDU: 80 11 00 00 [17:42:30]Write to MH i2c: E2 08 00 92 65 80 11 00 00 00 00 00 00 71 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 92 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [17:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:30]wFMCommunicate OK [17:42:30]CreateOFDProtocolMessage done [17:42:30]OFDSenderStorePacket 189266 [17:42:30]StoreOFDPacket docnum=189266 [17:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 9F 07 01 8D 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 53 01 00 00 F4 03 04 00 09 87 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E3 02 00 35 04 06 00 02 0C 92 8C 2D D4 F6 DB 2C 03 15 2A 76 3E [17:42:30]CheckFolder [17:42:30]dirname=/storage/ofd_packets [17:42:30]CheckFolder done [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00189266 [17:42:30]NVStorageSaveData ofd_packets/00189266 [17:42:30]File name is /storage/ofd_packets/00189266 [17:42:30]Write 301 bytes [17:42:30]NVStorageSaveData done [17:42:30]OFDSenderStorePacket done [17:42:30]KKMCreateOFDPacket done [17:42:30]NVStorageSaveData kkm_last_timestamp [17:42:30]File name is /storage/kkm_last_timestamp [17:42:30]Write 4 bytes [17:42:30]NVStorageSaveData done [17:42:30]ExternCall_PrintAddStr [17:42:30]wPrintStart [17:42:30]Write to MH i2c: 01 00 00 93 65 F8 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 93 65 00 00 00 00 00 FF 0F 0D [17:42:30]RasterBufferAndPrint [17:42:30]line Счет N : (1)211331 [17:42:30]line ИНН: 02508201610067 [17:42:30]line Контрольно-Кассовый Чек [17:42:30]line ПРОДАЖА [17:42:30]line ТРК (МРК, ГНК) : 42 [17:42:30]line Товар: 2710124130 [17:42:30]line Аи-92-К-3 [17:42:30]line 5.980 * 66.90 [17:42:30]line = 400.06 [17:42:30]line НДС 12% НСП 1% [17:42:30]line > о реализуемом товаре [17:42:30]line ОКРУГЛЕНИЕ: -0.06 [17:42:30]line ИТОГО: 400.00 [17:42:30]line Внесено: 400.00 [17:42:30]line СДАЧА: 0.00 [17:42:30]line НСП 1% : 3.54 [17:42:30]line НДС 12% : 42.48 [17:42:30]line Наличными: 400.00 [17:42:30]line Безнал.: 0.00 [17:42:30]line Место: АЗС № 86 "Партнер Нефть" [17:42:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:42:30]line СНО: Общий режим [17:42:30]line Чек 339 24.10.2024 17:42 [17:42:30]line Смена: 463 ФФД: 1.0 [17:42:30]line ЗНМ: 0300000155 [17:42:30]line РНМ: 0000000000100030 [17:42:30]line Версия ККМ: 001 [17:42:30]line ФМ: 0000000000965340 [17:42:30]line ФД: 189266 [17:42:30]line ФПД: 2253021523412 [17:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189266&fm=2253021523412&tin=02508201610067®Number=0000000000100030&sum=40000 [17:42:30]written 0, free lines is 4095 [17:42:30]OFD Sender: Processing packet 189266 [packets to send 1062, broken 1061] [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00189266 [17:42:30]OFD Sender: To server: pG, [17:42:30]CommunicateWithHost lk.salyk.kg:30040 [17:42:30]ConnectInit lk.salyk.kg [17:42:31]Connected sock=11 [17:42:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 9F 07 01 8D 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 53 01 00 00 F4 03 04 00 09 87 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E3 02 00 35 04 06 00 02 0C 92 8C 2D D4 F6 DB 2C 03 15 2A 76 3E [17:42:31]Write to MH i2c: 01 00 00 BE 65 23 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 07 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 07 00 BE 65 00 00 00 00 00 5D 0C 93 [17:42:31]RasterBufferAndPrint [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]line [17:42:31]written 0, free lines is 3168 [17:42:31]MH_Cut [17:42:31]Write to MH i2c: D1 01 00 C5 65 01 FC [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: D1 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: D1 01 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: D1 01 00 C5 65 00 FB [17:42:31]Write to MH i2c: 01 00 00 C6 65 2B [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 1D 47 00 68 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 39 36 35 33 34 30 10 04 04 00 52 E3 02 00 F4 03 04 00 F1 30 1A 67 B6 04 01 00 00 0C B6 68 7B E0 A1 C9 B2 [17:42:31]CommunicateWithHost err = 0 [17:42:31]CheckOFDResponse [17:42:31]1017 (14) - 77093643461234 [17:42:31]1041 (16) - 0000000000965340 [17:42:31]1040 (4) - 189266 [17:42:31]1012 (4) - 24.10.2024 11:35 [17:42:31]1206 (1) - 0 [17:42:31]OFD Sender: Remove packet 189266 [17:42:31]ProducePacketName [17:42:31]name=ofd_packets/00189266 [17:42:31]NVStorageDeleteData [17:42:32]OFD Sender: No OFD packet to send [17:42:32]*** Cut start [17:42:32]*** Partial cut [17:42:32]*** CUTSNS_PIN = 1 [17:42:32]*** CUTSNS_PIN = 0 [17:42:32]*** Brake cut motor [17:42:33]Read from MH i2c: 01 [17:42:33]MH_I2C_Read... [17:42:33]*** Stop cut motor [17:42:33]*** Cut end [17:42:33]Read from MH i2c: 01 07 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: 01 07 00 C6 65 00 00 00 00 00 FF 0F 40 [17:42:33]process_action close_receipt done [17:42:33]requested_data is exist [17:42:33]produce_requested_data [17:42:33]requested_item fm.sn is exist - process it [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 11 00 00 [17:42:33]Write to MH i2c: E2 08 00 C7 65 80 11 00 00 00 00 00 00 A6 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 17 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 17 00 C7 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [17:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:42:33]wFMCommunicate OK [17:42:33]requested_item fd.num is exist - process it [17:42:33]SAM_PROTO_GetFieldsCounters [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 13 00 00 [17:42:33]Write to MH i2c: E2 08 00 C8 65 80 13 00 00 00 00 00 00 A9 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 62 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 62 00 C8 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E3 02 00 0E 04 04 00 CF 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 B3 [17:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E3 02 00 0E 04 04 00 CF 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 [17:42:33]wFMCommunicate OK [17:42:33]SAM_PROTO_GetFieldsCounters done [17:42:33]requested_item shift.num is exist - process it [17:42:33]requested_item shift.opened is exist - process it [17:42:33]req_shift_opened [17:42:33]FM_GetShiftState [17:42:33]SAM_PROTO_GetShiftState [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 13 01 00 [17:42:33]Write to MH i2c: E2 08 00 C9 65 80 13 01 00 00 00 00 00 AB [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0E 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0E 00 C9 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 89 [17:42:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:42:33]wFMCommunicate OK [17:42:33]SAM_PROTO_GetShiftState done [17:42:33]FM_GetShiftState done [17:42:33]req_shift_opened done [17:42:33]requested_item shift.open_date is exist - process it [17:42:33]req_shift_open_date [17:42:33]req_shift_open_date done [17:42:33]produce_requested_data done [17:42:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189266,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:42:33]process_action_free close_receipt [17:42:33]json_value_free [17:42:33]json_value_free done [17:42:33]process_json_proto returns [17:42:33]Send response to host [17:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189266,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:42:33]free response buf [17:42:33]execute_script done [17:42:33]execute_script returns [17:42:33]free content buf [17:42:33]Sock 9.Close socket [17:42:33]Sock 9.Thread stoped [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]accept exits with 8 [17:47:08]New connection [17:47:08]New thread 3067215204 created [17:47:08]Thread 3067071844 joined [17:47:08]Waiting for new connection... [17:47:08] Sock 8.Parse request [17:47:08]Sock 8.Check first char [17:47:08]Sock 8.First char is OK [17:47:08]request: POST /json_proto HTTP/1.0 [17:47:08]Method: POST [17:47:08]URL: /json_proto [17:47:08]Method is POST - this is cgi request [17:47:08]url: /json_proto [17:47:08]query_string will be loaded in cgi processing [17:47:08]execute_cgi json_proto POST (null) [17:47:08]execute_cgi path=json_proto method=POST [17:47:08]POST find Content-Length [17:47:08]Host: 172.17.42.131:8080 [17:47:08]Content-Length: 679 [17:47:08]Content-Type: application/json [17:47:08] [17:47:08]POST finish read [17:47:08]Found Content-Length = 679 [17:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:08]execute_script... [17:47: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)211332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:08]POST & json_proto [17:47:08]process_json_proto [17:47:08]json parsed OK: [17:47:08]protocol is kg_v1.0 [17:47:08]action value=close_receipt [17:47:08]process_action close_receipt [17:47:08]cmd_close_receipt [17:47:08]MH_GetDate [17:47:08]Write to MH i2c: F0 00 00 CA 65 1E [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 09 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 09 00 CA 65 00 20 88 1A 67 A0 18 CA 66 38 [17:47:08]GetLastDocTimeStamp 1729791753 [17:47:08]current date 1729792032 [17:47:08]FM_GetShiftState [17:47:08]SAM_PROTO_GetShiftState [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 13 01 00 [17:47:08]Write to MH i2c: E2 08 00 CB 65 80 13 01 00 00 00 00 00 AD [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 CB 65 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8B [17:47:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_GetShiftState done [17:47:08]FM_GetShiftState done [17:47:08]opened in 1729728961 [17:47:08]opened+sec_in_day 1729815361 [17:47:08]quantity*price = 150037 [17:47:08]sum+1 = 150039 [17:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 340 24.10.2024 17:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189267 ФПД: 204270786559852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174712&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189267&fm=204270786559852&tin=02508201610067®Number=0000000000100030&sum=150000 [17:47:09]StoreToDocumentArchive [17:47:09]shift 463 fd 189267 [17:47:09]save to /storage/0463/doc_00189267 [17:47:09]save last doc name /storage/0463/doc_00189267 to /storage/kkm_last_doc_name [17:47:09]save OK [17:47:09]Clear old archive folders... [17:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:47:09]tlvbuf is 015E7550 [17:47:09]SAM_PROTO_ClearQueue [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 09 00 00 [17:47:09]Write to MH i2c: E2 08 00 D8 65 80 09 00 00 00 00 00 00 AF [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 D8 65 00 90 00 B1 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_ClearQueue done [17:47:09]KKMCreateOFDPacket [17:47:09]OFDProtocolAddRootSTLVToBuf [17:47:09]FM_MakeSignedData [17:47:09]FM_MakeSignedData [17:47:09]SAM_PROTO_SignData [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 01 02 [17:47:09]Write to MH i2c: E2 08 00 D9 65 80 0D 01 02 00 00 00 00 B7 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 D9 65 00 90 00 B2 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=255 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 20 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E3 02 00 35 04 06 00 B9 C8 7F AB [17:47:09]Write to MH i2c: E2 02 01 DA 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 20 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E3 02 00 35 04 06 00 B9 C8 7F AB 00 00 CA [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 DA 65 00 90 00 B3 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=7 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 02 02 02 BF 6C [17:47:09]Write to MH i2c: E2 0A 00 DB 65 80 0D 02 02 02 00 BF 6C 00 00 E9 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 DB 65 00 90 00 B4 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 03 02 [17:47:09]Write to MH i2c: E2 08 00 DC 65 80 0D 03 02 00 00 00 00 BC [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0B 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0B 00 DC 65 00 C0 D4 82 91 63 0E D0 44 90 00 E9 [17:47:09]RAPDU: C0 D4 82 91 63 0E D0 44 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_SignData done [17:47:09]FM_MakeSignedData done [17:47:09]CreateOFDProtocolMessage [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 11 00 00 [17:47:09]Write to MH i2c: E2 08 00 DD 65 80 11 00 00 00 00 00 00 BC [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 17 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 17 00 DD 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [17:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:09]wFMCommunicate OK [17:47:09]CreateOFDProtocolMessage done [17:47:09]OFDSenderStorePacket 189267 [17:47:09]StoreOFDPacket docnum=189267 [17:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 46 0C 04 01 50 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 20 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E3 02 00 35 04 06 00 B9 C8 7F AB BF 6C C0 D4 82 91 63 0E D0 44 [17:47:09]CheckFolder [17:47:09]dirname=/storage/ofd_packets [17:47:09]CheckFolder done [17:47:09]ProducePacketName [17:47:09]name=ofd_packets/00189267 [17:47:09]NVStorageSaveData ofd_packets/00189267 [17:47:09]File name is /storage/ofd_packets/00189267 [17:47:09]Write 298 bytes [17:47:09]NVStorageSaveData done [17:47:09]OFDSenderStorePacket done [17:47:09]KKMCreateOFDPacket done [17:47:09]NVStorageSaveData kkm_last_timestamp [17:47:09]File name is /storage/kkm_last_timestamp [17:47:09]Write 4 bytes [17:47:09]NVStorageSaveData done [17:47:09]ExternCall_PrintAddStr [17:47:09]wPrintStart [17:47:09]Write to MH i2c: 01 00 00 DE 65 43 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 DE 65 00 00 00 00 00 FF 0F 58 [17:47:09]RasterBufferAndPrint [17:47:09]line Счет N : (1)211332 [17:47:09]line ИНН: 02508201610067 [17:47:09]line Контрольно-Кассовый Чек [17:47:09]line ПРОДАЖА [17:47:09]line ТРК (МРК, ГНК) : 51 [17:47:09]line Товар: 2710194210 [17:47:09]line ДТ-К-5 [17:47:09]line 19.690 * 76.20 [17:47:09]line = 1500.38 [17:47:09]line НДС 12% НСП 1% [17:47:09]line > о реализуемом товаре [17:47:09]line ОКРУГЛЕНИЕ: -0.38 [17:47:09]line ИТОГО: 1500.00 [17:47:09]line Внесено: 1500.00 [17:47:09]line СДАЧА: 0.00 [17:47:09]line НСП 1% : 13.28 [17:47:09]line НДС 12% : 159.33 [17:47:09]line Наличными: 1500.00 [17:47:09]line Безнал.: 0.00 [17:47:09]line Место: АЗС № 86 "Партнер Нефть" [17:47:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:47:09]line СНО: Общий режим [17:47:09]line Чек 340 24.10.2024 17:47 [17:47:09]line Смена: 463 ФФД: 1.0 [17:47:09]line ЗНМ: 0300000155 [17:47:09]line РНМ: 0000000000100030 [17:47:09]line Версия ККМ: 001 [17:47:09]line ФМ: 0000000000965340 [17:47:09]line ФД: 189267 [17:47:09]line ФПД: 204270786559852 [17:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174712&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189267&fm=204270786559852&tin=02508201610067®Number=0000000000100030&sum=150000 [17:47:10]OFD Sender: Processing packet 189267 [packets to send 1062, broken 1061] [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00189267 [17:47:10]OFD Sender: To server: pG, [17:47:10]CommunicateWithHost lk.salyk.kg:30040 [17:47:10]ConnectInit lk.salyk.kg [17:47:10]written 0, free lines is 4095 [17:47:10]Connected sock=10 [17:47:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 46 0C 04 01 50 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 20 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E3 02 00 35 04 06 00 B9 C8 7F AB BF 6C C0 D4 82 91 63 0E D0 44 [17:47:10]Write to MH i2c: 01 00 00 09 66 6F [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 09 66 00 00 00 00 00 5F 0C E1 [17:47:10]RasterBufferAndPrint [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]written 0, free lines is 3169 [17:47:10]MH_Cut [17:47:10]Write to MH i2c: D1 01 00 10 66 01 48 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: D1 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: D1 01 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: D1 01 00 10 66 00 47 [17:47:10]Write to MH i2c: 01 00 00 11 66 77 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F8 9C 47 00 6C 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 39 36 35 33 34 30 10 04 04 00 53 E3 02 00 F4 03 04 00 08 32 1A 67 B6 04 01 00 00 F3 52 5F 60 78 BA C5 95 [17:47:10]CommunicateWithHost err = 0 [17:47:10]CheckOFDResponse [17:47:10]1017 (14) - 77093643461234 [17:47:10]1041 (16) - 0000000000965340 [17:47:10]1040 (4) - 189267 [17:47:10]1012 (4) - 24.10.2024 11:39 [17:47:10]1206 (1) - 0 [17:47:10]OFD Sender: Remove packet 189267 [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00189267 [17:47:10]NVStorageDeleteData [17:47:11]OFD Sender: No OFD packet to send [17:47:12]*** Cut start [17:47:12]*** Partial cut [17:47:12]*** CUTSNS_PIN = 1 [17:47:12]*** CUTSNS_PIN = 0 [17:47:12]*** Brake cut motor [17:47:12]Read from MH i2c: 01 [17:47:12]MH_I2C_Read... [17:47:12]*** Stop cut motor [17:47:12]*** Cut end [17:47:12]Read from MH i2c: 01 07 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 11 66 00 00 00 00 00 FF 0F 8C [17:47:12]process_action close_receipt done [17:47:12]requested_data is exist [17:47:12]produce_requested_data [17:47:12]requested_item fm.sn is exist - process it [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 11 00 00 [17:47:12]Write to MH i2c: E2 08 00 12 66 80 11 00 00 00 00 00 00 F2 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 17 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 17 00 12 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [17:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:12]wFMCommunicate OK [17:47:12]requested_item fd.num is exist - process it [17:47:12]SAM_PROTO_GetFieldsCounters [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 13 00 00 [17:47:12]Write to MH i2c: E2 08 00 13 66 80 13 00 00 00 00 00 00 F5 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 62 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 62 00 13 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E3 02 00 0E 04 04 00 CF 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 03 [17:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E3 02 00 0E 04 04 00 CF 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 [17:47:12]wFMCommunicate OK [17:47:12]SAM_PROTO_GetFieldsCounters done [17:47:12]requested_item shift.num is exist - process it [17:47:12]requested_item shift.opened is exist - process it [17:47:12]req_shift_opened [17:47:12]FM_GetShiftState [17:47:12]SAM_PROTO_GetShiftState [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 13 01 00 [17:47:12]Write to MH i2c: E2 08 00 14 66 80 13 01 00 00 00 00 00 F7 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 0E 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 0E 00 14 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D5 [17:47:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:47:12]wFMCommunicate OK [17:47:12]SAM_PROTO_GetShiftState done [17:47:12]FM_GetShiftState done [17:47:12]req_shift_opened done [17:47:12]requested_item shift.open_date is exist - process it [17:47:12]req_shift_open_date [17:47:12]req_shift_open_date done [17:47:12]produce_requested_data done [17:47:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189267,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:47:12]process_action_free close_receipt [17:47:12]json_value_free [17:47:12]json_value_free done [17:47:12]process_json_proto returns [17:47:12]Send response to host [17:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189267,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:47:12]free response buf [17:47:12]execute_script done [17:47:12]execute_script returns [17:47:12]free content buf [17:47:12]Sock 8.Close socket [17:47:12]Sock 8.Thread stoped [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:42]accept exits with 9 [17:48:42]New connection [17:48:42]New thread 3067071844 created [17:48:42]Thread 3067215204 joined [17:48:42]Waiting for new connection... [17:48:42] Sock 9.Parse request [17:48:42]Sock 9.Check first char [17:48:42]Sock 9.First char is OK [17:48:42]request: POST /json_proto HTTP/1.0 [17:48:42]Method: POST [17:48:42]URL: /json_proto [17:48:42]Method is POST - this is cgi request [17:48:42]url: /json_proto [17:48:42]query_string will be loaded in cgi processing [17:48:42]execute_cgi json_proto POST (null) [17:48:42]execute_cgi path=json_proto method=POST [17:48:42]POST find Content-Length [17:48:42]Host: 172.17.42.131:8080 [17:48:42]Content-Length: 688 [17:48:42]Content-Type: application/json [17:48:42] [17:48:42]POST finish read [17:48:42]Found Content-Length = 688 [17:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:48:42]execute_script... [17:48: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)211333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [17:48:42]POST & json_proto [17:48:42]process_json_proto [17:48:42]json parsed OK: [17:48:42]protocol is kg_v1.0 [17:48:42]action value=close_receipt [17:48:42]process_action close_receipt [17:48:42]cmd_close_receipt [17:48:42]MH_GetDate [17:48:42]Write to MH i2c: F0 00 00 15 66 6A [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 09 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 09 00 15 66 00 7E 88 1A 67 A0 18 CA 66 E2 [17:48:42]GetLastDocTimeStamp 1729792032 [17:48:42]current date 1729792126 [17:48:42]FM_GetShiftState [17:48:42]SAM_PROTO_GetShiftState [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 01 00 [17:48:42]Write to MH i2c: E2 08 00 16 66 80 13 01 00 00 00 00 00 F9 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 16 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D7 [17:48:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetShiftState done [17:48:42]FM_GetShiftState done [17:48:42]opened in 1729728961 [17:48:42]opened+sec_in_day 1729815361 [17:48:42]quantity*price = 200025 [17:48:42]sum+1 = 200026 [17:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 341 24.10.2024 17:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189268 ФПД: 177650919554173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189268&fm=177650919554173&tin=02508201610067®Number=0000000000100030&sum=200000 [17:48:43]StoreToDocumentArchive [17:48:43]shift 463 fd 189268 [17:48:43]save to /storage/0463/doc_00189268 [17:48:43]save last doc name /storage/0463/doc_00189268 to /storage/kkm_last_doc_name [17:48:43]save OK [17:48:43]Clear old archive folders... [17:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:48:43]tlvbuf is 014B42C0 [17:48:43]SAM_PROTO_ClearQueue [17:48:43]wFMCommunicate request_size=4 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 09 00 00 [17:48:43]Write to MH i2c: E2 08 00 23 66 80 09 00 00 00 00 00 00 FB [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:43]Read from MH i2c: E2 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 23 66 00 90 00 FD [17:48:43]RAPDU: 90 00 [17:48:43]wFMCommunicate OK [17:48:43]SAM_PROTO_ClearQueue done [17:48:43]KKMCreateOFDPacket [17:48:43]OFDProtocolAddRootSTLVToBuf [17:48:43]FM_MakeSignedData [17:48:43]FM_MakeSignedData [17:48:43]SAM_PROTO_SignData [17:48:43]wFMCommunicate request_size=4 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 0D 01 02 [17:48:43]Write to MH i2c: E2 08 00 24 66 80 0D 01 02 00 00 00 00 03 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:43]Read from MH i2c: E2 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 24 66 00 90 00 FE [17:48:43]RAPDU: 90 00 [17:48:43]wFMCommunicate OK [17:48:43]wFMCommunicate request_size=255 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 55 01 00 00 F4 03 04 00 7F 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E3 02 [17:48:43]Write to MH i2c: E2 02 01 25 66 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 55 01 00 00 F4 03 04 00 7F 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E3 02 00 00 8B [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 25 66 00 90 00 FF [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=16 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A1 92 93 F4 3C 7D [17:48:44]Write to MH i2c: E2 13 00 26 66 80 0D 02 02 0B 00 00 35 04 06 00 A1 92 93 F4 3C 7D 00 00 CE [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 26 66 00 90 00 00 [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 03 02 [17:48:44]Write to MH i2c: E2 08 00 27 66 80 0D 03 02 00 00 00 00 08 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0B 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0B 00 27 66 00 7B 9E 2D 49 C8 82 C3 7C 90 00 21 [17:48:44]RAPDU: 7B 9E 2D 49 C8 82 C3 7C 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_SignData done [17:48:44]FM_MakeSignedData done [17:48:44]CreateOFDProtocolMessage [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 11 00 00 [17:48:44]Write to MH i2c: E2 08 00 28 66 80 11 00 00 00 00 00 00 08 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 28 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [17:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:48:44]wFMCommunicate OK [17:48:44]CreateOFDProtocolMessage done [17:48:44]OFDSenderStorePacket 189268 [17:48:44]StoreOFDPacket docnum=189268 [17:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A6 C6 0D 01 54 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 55 01 00 00 F4 03 04 00 7F 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E3 02 00 35 04 06 00 A1 92 93 F4 3C 7D 7B 9E 2D 49 C8 82 C3 7C [17:48:44]CheckFolder [17:48:44]dirname=/storage/ofd_packets [17:48:44]CheckFolder done [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00189268 [17:48:44]NVStorageSaveData ofd_packets/00189268 [17:48:44]File name is /storage/ofd_packets/00189268 [17:48:44]Write 307 bytes [17:48:44]NVStorageSaveData done [17:48:44]OFDSenderStorePacket done [17:48:44]KKMCreateOFDPacket done [17:48:44]NVStorageSaveData kkm_last_timestamp [17:48:44]File name is /storage/kkm_last_timestamp [17:48:44]Write 4 bytes [17:48:44]NVStorageSaveData done [17:48:44]ExternCall_PrintAddStr [17:48:44]wPrintStart [17:48:44]Write to MH i2c: 01 00 00 29 66 8F [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 29 66 00 00 00 00 00 FF 0F A4 [17:48:44]RasterBufferAndPrint [17:48:44]line Счет N : (1)211333 [17:48:44]line ИНН: 02508201610067 [17:48:44]line Контрольно-Кассовый Чек [17:48:44]line ПРОДАЖА [17:48:44]line ТРК (МРК, ГНК) : 41 [17:48:44]line Товар: 2710194210 [17:48:44]line D-ENERGY ДТ-К-5 [17:48:44]line 25.910 * 77.20 [17:48:44]line = 2000.25 [17:48:44]line НДС 12% НСП 1% [17:48:44]line > о реализуемом товаре [17:48:44]line ОКРУГЛЕНИЕ: -0.25 [17:48:44]line ИТОГО: 2000.00 [17:48:44]line Внесено: 2000.00 [17:48:44]line СДАЧА: 0.00 [17:48:44]line НСП 1% : 17.70 [17:48:44]line НДС 12% : 212.42 [17:48:44]line Наличными: 2000.00 [17:48:44]line Безнал.: 0.00 [17:48:44]line Место: АЗС № 86 "Партнер Нефть" [17:48:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:48:44]line СНО: Общий режим [17:48:44]line Чек 341 24.10.2024 17:48 [17:48:44]line Смена: 463 ФФД: 1.0 [17:48:44]line ЗНМ: 0300000155 [17:48:44]line РНМ: 0000000000100030 [17:48:44]line Версия ККМ: 001 [17:48:44]line ФМ: 0000000000965340 [17:48:44]line ФД: 189268 [17:48:44]line ФПД: 177650919554173 [17:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189268&fm=177650919554173&tin=02508201610067®Number=0000000000100030&sum=200000 [17:48:44]written 0, free lines is 4095 [17:48:44]OFD Sender: Processing packet 189268 [packets to send 1062, broken 1061] [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00189268 [17:48:44]OFD Sender: To server: pG, [17:48:44]CommunicateWithHost lk.salyk.kg:30040 [17:48:44]ConnectInit lk.salyk.kg [17:48:44]Connected sock=10 [17:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A6 C6 0D 01 54 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 55 01 00 00 F4 03 04 00 7F 88 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E3 02 00 35 04 06 00 A1 92 93 F4 3C 7D 7B 9E 2D 49 C8 82 C3 7C [17:48:44]Write to MH i2c: 01 00 00 54 66 BA [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 54 66 00 00 00 00 00 61 0C 2E [17:48:44]RasterBufferAndPrint [17:48:44]line [17:48:44]line [17:48:44]line [17:48:44]line [17:48:44]line [17:48:44]written 0, free lines is 3173 [17:48:44]MH_Cut [17:48:44]Write to MH i2c: D1 01 00 5B 66 01 93 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: D1 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: D1 01 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: D1 01 00 5B 66 00 92 [17:48:44]Write to MH i2c: 01 00 00 5C 66 C2 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D8 3E 47 00 6F 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 39 36 35 33 34 30 10 04 04 00 54 E3 02 00 F4 03 04 00 66 32 1A 67 B6 04 01 00 00 89 75 C5 81 80 C7 E3 06 [17:48:44]CommunicateWithHost err = 0 [17:48:44]CheckOFDResponse [17:48:44]1017 (14) - 77093643461234 [17:48:44]1041 (16) - 0000000000965340 [17:48:44]1040 (4) - 189268 [17:48:44]1012 (4) - 24.10.2024 11:41 [17:48:44]1206 (1) - 0 [17:48:44]OFD Sender: Remove packet 189268 [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00189268 [17:48:44]NVStorageDeleteData [17:48:45]OFD Sender: No OFD packet to send [17:48:45]*** Cut start [17:48:45]*** Partial cut [17:48:45]*** CUTSNS_PIN = 1 [17:48:46]*** CUTSNS_PIN = 0 [17:48:46]*** Brake cut motor [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]*** Stop cut motor [17:48:46]*** Cut end [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 5C 66 00 00 00 00 00 FF 0F D7 [17:48:46]process_action close_receipt done [17:48:46]requested_data is exist [17:48:46]produce_requested_data [17:48:46]requested_item fm.sn is exist - process it [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 11 00 00 [17:48:46]Write to MH i2c: E2 08 00 5D 66 80 11 00 00 00 00 00 00 3D [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 5D 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [17:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:48:46]wFMCommunicate OK [17:48:46]requested_item fd.num is exist - process it [17:48:46]SAM_PROTO_GetFieldsCounters [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 13 00 00 [17:48:46]Write to MH i2c: E2 08 00 5E 66 80 13 00 00 00 00 00 00 40 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 62 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 62 00 5E 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E3 02 00 0E 04 04 00 CF 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 52 [17:48:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E3 02 00 0E 04 04 00 CF 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 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_GetFieldsCounters done [17:48:46]requested_item shift.num is exist - process it [17:48:46]requested_item shift.opened is exist - process it [17:48:46]req_shift_opened [17:48:46]FM_GetShiftState [17:48:46]SAM_PROTO_GetShiftState [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 13 01 00 [17:48:46]Write to MH i2c: E2 08 00 5F 66 80 13 01 00 00 00 00 00 42 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0E 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0E 00 5F 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 20 [17:48:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_GetShiftState done [17:48:46]FM_GetShiftState done [17:48:46]req_shift_opened done [17:48:46]requested_item shift.open_date is exist - process it [17:48:46]req_shift_open_date [17:48:46]req_shift_open_date done [17:48:46]produce_requested_data done [17:48:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189268,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:48:46]process_action_free close_receipt [17:48:46]json_value_free [17:48:46]json_value_free done [17:48:46]process_json_proto returns [17:48:46]Send response to host [17:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189268,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:48:46]free response buf [17:48:46]execute_script done [17:48:46]execute_script returns [17:48:46]free content buf [17:48:46]Sock 9.Close socket [17:48:46]Sock 9.Thread stoped [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:01]accept exits with 8 [17:51:01]New connection [17:51:01]New thread 3067215204 created [17:51:01]Thread 3067071844 joined [17:51:01]Waiting for new connection... [17:51:01] Sock 8.Parse request [17:51:01]Sock 8.Check first char [17:51:01]Sock 8.First char is OK [17:51:01]request: POST /json_proto HTTP/1.0 [17:51:01]Method: POST [17:51:01]URL: /json_proto [17:51:01]Method is POST - this is cgi request [17:51:01]url: /json_proto [17:51:01]query_string will be loaded in cgi processing [17:51:01]execute_cgi json_proto POST (null) [17:51:01]execute_cgi path=json_proto method=POST [17:51:01]POST find Content-Length [17:51:01]Host: 172.17.42.131:8080 [17:51:01]Content-Length: 682 [17:51:01]Content-Type: application/json [17:51:01] [17:51:01]POST finish read [17:51:01]Found Content-Length = 682 [17:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:01]execute_script... [17:51: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)211334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:01]POST & json_proto [17:51:01]process_json_proto [17:51:01]json parsed OK: [17:51:01]protocol is kg_v1.0 [17:51:01]action value=close_receipt [17:51:01]process_action close_receipt [17:51:01]cmd_close_receipt [17:51:01]MH_GetDate [17:51:01]Write to MH i2c: F0 00 00 60 66 B5 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 09 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 09 00 60 66 00 0A 89 1A 67 A0 18 CA 66 BA [17:51:01]GetLastDocTimeStamp 1729792127 [17:51:01]current date 1729792266 [17:51:01]FM_GetShiftState [17:51:01]SAM_PROTO_GetShiftState [17:51:01]wFMCommunicate request_size=4 [17:51:01]MH_SAM_APDU [17:51:01]CAPDU: 80 13 01 00 [17:51:01]Write to MH i2c: E2 08 00 61 66 80 13 01 00 00 00 00 00 44 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:01]Read from MH i2c: E2 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 61 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 22 [17:51:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:51:01]wFMCommunicate OK [17:51:01]SAM_PROTO_GetShiftState done [17:51:01]FM_GetShiftState done [17:51:01]opened in 1729728961 [17:51:01]opened+sec_in_day 1729815361 [17:51:01]quantity*price = 100015 [17:51:01]sum+1 = 100017 [17:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 342 24.10.2024 17:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189269 ФПД: 4562157907549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189269&fm=4562157907549&tin=02508201610067®Number=0000000000100030&sum=100000 [17:51:02]StoreToDocumentArchive [17:51:02]shift 463 fd 189269 [17:51:02]save to /storage/0463/doc_00189269 [17:51:02]save last doc name /storage/0463/doc_00189269 to /storage/kkm_last_doc_name [17:51:02]save OK [17:51:02]Clear old archive folders... [17:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:02]tlvbuf is B6F1A4D0 [17:51:02]SAM_PROTO_ClearQueue [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 09 00 00 [17:51:02]Write to MH i2c: E2 08 00 6E 66 80 09 00 00 00 00 00 00 46 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 6E 66 00 90 00 48 [17:51:02]RAPDU: 90 00 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_ClearQueue done [17:51:02]KKMCreateOFDPacket [17:51:02]OFDProtocolAddRootSTLVToBuf [17:51:02]FM_MakeSignedData [17:51:02]FM_MakeSignedData [17:51:02]SAM_PROTO_SignData [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 0D 01 02 [17:51:02]Write to MH i2c: E2 08 00 6F 66 80 0D 01 02 00 00 00 00 4E [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 6F 66 00 90 00 49 [17:51:03]RAPDU: 90 00 [17:51:03]wFMCommunicate OK [17:51:03]wFMCommunicate request_size=255 [17:51:03]MH_SAM_APDU [17:51: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 0A 89 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E3 02 00 35 04 06 00 04 [17:51:03]Write to MH i2c: E2 02 01 70 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 0A 89 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E3 02 00 35 04 06 00 04 00 00 34 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 70 66 00 90 00 4A [17:51:03]RAPDU: 90 00 [17:51:03]wFMCommunicate OK [17:51:03]wFMCommunicate request_size=10 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 0D 02 02 05 26 35 CD 2E 5D [17:51:03]Write to MH i2c: E2 0D 00 71 66 80 0D 02 02 05 00 26 35 CD 2E 5D 00 00 0E [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 71 66 00 90 00 4B [17:51:03]RAPDU: 90 00 [17:51:03]wFMCommunicate OK [17:51:03]wFMCommunicate request_size=4 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 0D 03 02 [17:51:03]Write to MH i2c: E2 08 00 72 66 80 0D 03 02 00 00 00 00 53 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0B 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0B 00 72 66 00 8B 5E 71 57 51 D4 48 13 90 00 85 [17:51:03]RAPDU: 8B 5E 71 57 51 D4 48 13 90 00 [17:51:03]wFMCommunicate OK [17:51:03]SAM_PROTO_SignData done [17:51:03]FM_MakeSignedData done [17:51:03]CreateOFDProtocolMessage [17:51:03]wFMCommunicate request_size=4 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 11 00 00 [17:51:03]Write to MH i2c: E2 08 00 73 66 80 11 00 00 00 00 00 00 53 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 17 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 17 00 73 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [17:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:03]wFMCommunicate OK [17:51:03]CreateOFDProtocolMessage done [17:51:03]OFDSenderStorePacket 189269 [17:51:03]StoreOFDPacket docnum=189269 [17:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B F1 07 01 BF 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 0A 89 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E3 02 00 35 04 06 00 04 26 35 CD 2E 5D 8B 5E 71 57 51 D4 48 13 [17:51:03]CheckFolder [17:51:03]dirname=/storage/ofd_packets [17:51:03]CheckFolder done [17:51:03]ProducePacketName [17:51:03]name=ofd_packets/00189269 [17:51:03]NVStorageSaveData ofd_packets/00189269 [17:51:03]File name is /storage/ofd_packets/00189269 [17:51:03]Write 301 bytes [17:51:03]NVStorageSaveData done [17:51:03]OFDSenderStorePacket done [17:51:03]KKMCreateOFDPacket done [17:51:03]NVStorageSaveData kkm_last_timestamp [17:51:03]File name is /storage/kkm_last_timestamp [17:51:03]Write 4 bytes [17:51:03]NVStorageSaveData done [17:51:03]ExternCall_PrintAddStr [17:51:03]wPrintStart [17:51:03]Write to MH i2c: 01 00 00 74 66 DA [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 74 66 00 00 00 00 00 FF 0F EF [17:51:03]RasterBufferAndPrint [17:51:03]line Счет N : (1)211334 [17:51:03]line ИНН: 02508201610067 [17:51:03]line Контрольно-Кассовый Чек [17:51:03]line ПРОДАЖА [17:51:03]line ТРК (МРК, ГНК) : 42 [17:51:03]line Товар: 2710124130 [17:51:03]line Аи-92-К-3 [17:51:03]line 14.950 * 66.90 [17:51:03]line = 1000.16 [17:51:03]line НДС 12% НСП 1% [17:51:03]line > о реализуемом товаре [17:51:03]line ОКРУГЛЕНИЕ: -0.16 [17:51:03]line ИТОГО: 1000.00 [17:51:03]line Внесено: 1000.00 [17:51:03]line СДАЧА: 0.00 [17:51:03]line НСП 1% : 8.85 [17:51:03]line НДС 12% : 106.21 [17:51:03]line Наличными: 1000.00 [17:51:03]line Безнал.: 0.00 [17:51:03]line Место: АЗС № 86 "Партнер Нефть" [17:51:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:51:03]line СНО: Общий режим [17:51:03]line Чек 342 24.10.2024 17:51 [17:51:03]line Смена: 463 ФФД: 1.0 [17:51:03]line ЗНМ: 0300000155 [17:51:03]line РНМ: 0000000000100030 [17:51:03]line Версия ККМ: 001 [17:51:03]line ФМ: 0000000000965340 [17:51:03]line ФД: 189269 [17:51:03]line ФПД: 4562157907549 [17:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189269&fm=4562157907549&tin=02508201610067®Number=0000000000100030&sum=100000 [17:51:03]written 0, free lines is 4095 [17:51:03]OFD Sender: Processing packet 189269 [packets to send 1062, broken 1061] [17:51:03]ProducePacketName [17:51:03]name=ofd_packets/00189269 [17:51:03]OFD Sender: To server: pG, [17:51:03]CommunicateWithHost lk.salyk.kg:30040 [17:51:03]ConnectInit lk.salyk.kg [17:51:03]Connected sock=10 [17:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B F1 07 01 BF 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 0A 89 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E3 02 00 35 04 06 00 04 26 35 CD 2E 5D 8B 5E 71 57 51 D4 48 13 [17:51:03]Write to MH i2c: 01 00 00 9F 66 05 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 9F 66 00 00 00 00 00 61 0C 79 [17:51:03]RasterBufferAndPrint [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]written 0, free lines is 3174 [17:51:03]MH_Cut [17:51:03]Write to MH i2c: D1 01 00 A6 66 01 DE [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 01 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 01 00 A6 66 00 DD [17:51:03]Write to MH i2c: 01 00 00 A7 66 0D [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9A C7 47 00 02 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 39 36 35 33 34 30 10 04 04 00 55 E3 02 00 F4 03 04 00 F1 32 1A 67 B6 04 01 00 00 12 A3 05 16 BF 51 14 2D [17:51:04]CommunicateWithHost err = 0 [17:51:04]CheckOFDResponse [17:51:04]1017 (14) - 77093643461234 [17:51:04]1041 (16) - 0000000000965340 [17:51:04]1040 (4) - 189269 [17:51:04]1012 (4) - 24.10.2024 11:43 [17:51:04]1206 (1) - 0 [17:51:04]OFD Sender: Remove packet 189269 [17:51:04]ProducePacketName [17:51:04]name=ofd_packets/00189269 [17:51:04]NVStorageDeleteData [17:51:04]OFD Sender: No OFD packet to send [17:51:05]*** Cut start [17:51:05]*** Partial cut [17:51:05]*** CUTSNS_PIN = 1 [17:51:05]*** CUTSNS_PIN = 0 [17:51:05]*** Brake cut motor [17:51:05]Read from MH i2c: 01 [17:51:05]MH_I2C_Read... [17:51:05]*** Stop cut motor [17:51:05]*** Cut end [17:51:05]Read from MH i2c: 01 07 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: 01 07 00 A7 66 00 00 00 00 00 FF 0F 22 [17:51:05]process_action close_receipt done [17:51:05]requested_data is exist [17:51:05]produce_requested_data [17:51:05]requested_item fm.sn is exist - process it [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 11 00 00 [17:51:05]Write to MH i2c: E2 08 00 A8 66 80 11 00 00 00 00 00 00 88 [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 17 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 17 00 A8 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [17:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:05]wFMCommunicate OK [17:51:05]requested_item fd.num is exist - process it [17:51:05]SAM_PROTO_GetFieldsCounters [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 13 00 00 [17:51:05]Write to MH i2c: E2 08 00 A9 66 80 13 00 00 00 00 00 00 8B [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 62 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 62 00 A9 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E3 02 00 0E 04 04 00 CF 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 A1 [17:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E3 02 00 0E 04 04 00 CF 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 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_GetFieldsCounters done [17:51:06]requested_item shift.num is exist - process it [17:51:06]requested_item shift.opened is exist - process it [17:51:06]req_shift_opened [17:51:06]FM_GetShiftState [17:51:06]SAM_PROTO_GetShiftState [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 13 01 00 [17:51:06]Write to MH i2c: E2 08 00 AA 66 80 13 01 00 00 00 00 00 8D [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 AA 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6B [17:51:06]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_GetShiftState done [17:51:06]FM_GetShiftState done [17:51:06]req_shift_opened done [17:51:06]requested_item shift.open_date is exist - process it [17:51:06]req_shift_open_date [17:51:06]req_shift_open_date done [17:51:06]produce_requested_data done [17:51:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189269,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:51:06]process_action_free close_receipt [17:51:06]json_value_free [17:51:06]json_value_free done [17:51:06]process_json_proto returns [17:51:06]Send response to host [17:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189269,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:51:06]free response buf [17:51:06]execute_script done [17:51:06]execute_script returns [17:51:06]free content buf [17:51:06]Sock 8.Close socket [17:51:06]Sock 8.Thread stoped [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]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:52]accept exits with 9 [17:56:52]New connection [17:56:52]New thread 3067071844 created [17:56:52]Thread 3067215204 joined [17:56:52]Waiting for new connection... [17:56:52] Sock 9.Parse request [17:56:52]Sock 9.Check first char [17:56:52]Sock 9.First char is OK [17:56:52]request: POST /json_proto HTTP/1.0 [17:56:52]Method: POST [17:56:52]URL: /json_proto [17:56:52]Method is POST - this is cgi request [17:56:52]url: /json_proto [17:56:52]query_string will be loaded in cgi processing [17:56:52]execute_cgi json_proto POST (null) [17:56:52]execute_cgi path=json_proto method=POST [17:56:52]POST find Content-Length [17:56:52]Host: 172.17.42.131:8080 [17:56:52]Content-Length: 682 [17:56:52]Content-Type: application/json [17:56:52] [17:56:52]POST finish read [17:56:52]Found Content-Length = 682 [17:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [17:56:52]execute_script... [17:56: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)211335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [17:56:52]POST & json_proto [17:56:52]process_json_proto [17:56:52]json parsed OK: [17:56:52]protocol is kg_v1.0 [17:56:52]action value=close_receipt [17:56:52]process_action close_receipt [17:56:52]cmd_close_receipt [17:56:52]MH_GetDate [17:56:52]Write to MH i2c: F0 00 00 AB 66 00 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: F0 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: F0 09 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: F0 09 00 AB 66 00 68 8A 1A 67 A0 18 CA 66 64 [17:56:52]GetLastDocTimeStamp 1729792266 [17:56:52]current date 1729792616 [17:56:52]FM_GetShiftState [17:56:52]SAM_PROTO_GetShiftState [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 13 01 00 [17:56:52]Write to MH i2c: E2 08 00 AC 66 80 13 01 00 00 00 00 00 8F [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0E 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0E 00 AC 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6D [17:56:52]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:56:52]wFMCommunicate OK [17:56:52]SAM_PROTO_GetShiftState done [17:56:52]FM_GetShiftState done [17:56:52]opened in 1729728961 [17:56:52]opened+sec_in_day 1729815361 [17:56:52]quantity*price = 300064 [17:56:52]sum+1 = 300066 [17:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 343 24.10.2024 17:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189270 ФПД: 31074105500527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189270&fm=31074105500527&tin=02508201610067®Number=0000000000100030&sum=300000 [17:56:53]StoreToDocumentArchive [17:56:53]shift 463 fd 189270 [17:56:53]save to /storage/0463/doc_00189270 [17:56:53]save last doc name /storage/0463/doc_00189270 to /storage/kkm_last_doc_name [17:56:53]save OK [17:56:53]Clear old archive folders... [17:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:53]tlvbuf is 01577E80 [17:56:53]SAM_PROTO_ClearQueue [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 09 00 00 [17:56:53]Write to MH i2c: E2 08 00 B9 66 80 09 00 00 00 00 00 00 91 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 B9 66 00 90 00 93 [17:56:53]RAPDU: 90 00 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_ClearQueue done [17:56:53]KKMCreateOFDPacket [17:56:53]OFDProtocolAddRootSTLVToBuf [17:56:53]FM_MakeSignedData [17:56:53]FM_MakeSignedData [17:56:53]SAM_PROTO_SignData [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 0D 01 02 [17:56:53]Write to MH i2c: E2 08 00 BA 66 80 0D 01 02 00 00 00 00 99 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 BA 66 00 90 00 94 [17:56:53]RAPDU: 90 00 [17:56:53]wFMCommunicate OK [17:56:53]wFMCommunicate request_size=255 [17:56:53]MH_SAM_APDU [17:56: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 33 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 57 01 00 00 F4 03 04 00 68 8A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E3 02 00 35 04 06 00 1C [17:56:53]Write to MH i2c: E2 02 01 BB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 57 01 00 00 F4 03 04 00 68 8A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E3 02 00 35 04 06 00 1C 00 00 2F [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 BB 66 00 90 00 95 [17:56:53]RAPDU: 90 00 [17:56:53]wFMCommunicate OK [17:56:53]wFMCommunicate request_size=10 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 0D 02 02 05 43 01 05 23 6F [17:56:53]Write to MH i2c: E2 0D 00 BC 66 80 0D 02 02 05 00 43 01 05 23 6F 00 00 81 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 03 00 BC 66 00 90 00 96 [17:56:53]RAPDU: 90 00 [17:56:53]wFMCommunicate OK [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 0D 03 02 [17:56:53]Write to MH i2c: E2 08 00 BD 66 80 0D 03 02 00 00 00 00 9E [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0B 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 0B 00 BD 66 00 1B 60 78 E0 39 DD A8 6F 90 00 9F [17:56:53]RAPDU: 1B 60 78 E0 39 DD A8 6F 90 00 [17:56:53]wFMCommunicate OK [17:56:53]SAM_PROTO_SignData done [17:56:53]FM_MakeSignedData done [17:56:53]CreateOFDProtocolMessage [17:56:53]wFMCommunicate request_size=4 [17:56:53]MH_SAM_APDU [17:56:53]CAPDU: 80 11 00 00 [17:56:53]Write to MH i2c: E2 08 00 BE 66 80 11 00 00 00 00 00 00 9E [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:53]Read from MH i2c: E2 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: E2 17 00 BE 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [17:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:56:53]wFMCommunicate OK [17:56:53]CreateOFDProtocolMessage done [17:56:53]OFDSenderStorePacket 189270 [17:56:53]StoreOFDPacket docnum=189270 [17:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 A1 07 01 BE 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 33 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 57 01 00 00 F4 03 04 00 68 8A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E3 02 00 35 04 06 00 1C 43 01 05 23 6F 1B 60 78 E0 39 DD A8 6F [17:56:53]CheckFolder [17:56:53]dirname=/storage/ofd_packets [17:56:53]CheckFolder done [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00189270 [17:56:53]NVStorageSaveData ofd_packets/00189270 [17:56:53]File name is /storage/ofd_packets/00189270 [17:56:53]Write 301 bytes [17:56:53]NVStorageSaveData done [17:56:53]OFDSenderStorePacket done [17:56:53]KKMCreateOFDPacket done [17:56:53]NVStorageSaveData kkm_last_timestamp [17:56:53]File name is /storage/kkm_last_timestamp [17:56:53]Write 4 bytes [17:56:53]NVStorageSaveData done [17:56:53]ExternCall_PrintAddStr [17:56:53]wPrintStart [17:56:53]Write to MH i2c: 01 00 00 BF 66 25 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 BF 66 00 00 00 00 00 FF 0F 3A [17:56:53]RasterBufferAndPrint [17:56:53]line Счет N : (1)211335 [17:56:53]line ИНН: 02508201610067 [17:56:53]line Контрольно-Кассовый Чек [17:56:53]line ПРОДАЖА [17:56:53]line ТРК (МРК, ГНК) : 13 [17:56:53]line Товар: 2710124500 [17:56:53]line Аи-95-К-3 [17:56:53]line 40.440 * 74.20 [17:56:53]line = 3000.65 [17:56:53]line НДС 12% НСП 1% [17:56:53]line > о реализуемом товаре [17:56:53]line ОКРУГЛЕНИЕ: -0.65 [17:56:53]line ИТОГО: 3000.00 [17:56:53]line Внесено: 3000.00 [17:56:53]line СДАЧА: 0.00 [17:56:53]line НСП 1% : 26.55 [17:56:53]line НДС 12% : 318.65 [17:56:53]line Наличными: 3000.00 [17:56:53]line Безнал.: 0.00 [17:56:53]line Место: АЗС № 86 "Партнер Нефть" [17:56:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:56:53]line СНО: Общий режим [17:56:53]line Чек 343 24.10.2024 17:56 [17:56:53]line Смена: 463 ФФД: 1.0 [17:56:53]line ЗНМ: 0300000155 [17:56:53]line РНМ: 0000000000100030 [17:56:53]line Версия ККМ: 001 [17:56:53]line ФМ: 0000000000965340 [17:56:53]line ФД: 189270 [17:56:53]line ФПД: 31074105500527 [17:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189270&fm=31074105500527&tin=02508201610067®Number=0000000000100030&sum=300000 [17:56:53]written 0, free lines is 4095 [17:56:53]OFD Sender: Processing packet 189270 [packets to send 1062, broken 1061] [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00189270 [17:56:53]OFD Sender: To server: pG, [17:56:53]CommunicateWithHost lk.salyk.kg:30040 [17:56:53]ConnectInit lk.salyk.kg [17:56:54]Connected sock=10 [17:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 A1 07 01 BE 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 33 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 57 01 00 00 F4 03 04 00 68 8A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E3 02 00 35 04 06 00 1C 43 01 05 23 6F 1B 60 78 E0 39 DD A8 6F [17:56:54]Write to MH i2c: 01 00 00 EA 66 50 [17:56:54]Write i2c OK [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: 01 [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: 01 07 00 [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: 01 07 00 EA 66 00 00 00 00 00 61 0C C4 [17:56:54]RasterBufferAndPrint [17:56:54]line [17:56:54]line [17:56:54]line [17:56:54]line [17:56:54]line [17:56:54]written 0, free lines is 3173 [17:56:54]MH_Cut [17:56:54]Write to MH i2c: D1 01 00 F1 66 01 29 [17:56:54]Write i2c OK [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: D1 [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: D1 01 00 [17:56:54]MH_I2C_Read... [17:56:54]Read from MH i2c: D1 01 00 F1 66 00 28 [17:56:54]Write to MH i2c: 01 00 00 F2 66 58 [17:56:54]Write i2c OK [17:56:54]MH_I2C_Read... [17:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 EA 47 00 71 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 E3 02 00 F4 03 04 00 50 34 1A 67 B6 04 01 00 00 48 E5 3C F2 21 BE 73 3D [17:56:54]CommunicateWithHost err = 0 [17:56:54]CheckOFDResponse [17:56:54]1017 (14) - 77093643461234 [17:56:54]1041 (16) - 0000000000965340 [17:56:54]1040 (4) - 189270 [17:56:54]1012 (4) - 24.10.2024 11:49 [17:56:54]1206 (1) - 0 [17:56:54]OFD Sender: Remove packet 189270 [17:56:54]ProducePacketName [17:56:54]name=ofd_packets/00189270 [17:56:54]NVStorageDeleteData [17:56:55]OFD Sender: No OFD packet to send [17:56:55]*** Cut start [17:56:55]*** Partial cut [17:56:55]*** CUTSNS_PIN = 1 [17:56:55]*** CUTSNS_PIN = 0 [17:56:55]*** Brake cut motor [17:56:56]Read from MH i2c: 01 [17:56:56]MH_I2C_Read... [17:56:56]*** Stop cut motor [17:56:56]*** Cut end [17:56:56]Read from MH i2c: 01 07 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: 01 07 00 F2 66 00 00 00 00 00 FF 0F 6D [17:56:56]process_action close_receipt done [17:56:56]requested_data is exist [17:56:56]produce_requested_data [17:56:56]requested_item fm.sn is exist - process it [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 11 00 00 [17:56:56]Write to MH i2c: E2 08 00 F3 66 80 11 00 00 00 00 00 00 D3 [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 17 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 17 00 F3 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [17:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:56:56]wFMCommunicate OK [17:56:56]requested_item fd.num is exist - process it [17:56:56]SAM_PROTO_GetFieldsCounters [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 13 00 00 [17:56:56]Write to MH i2c: E2 08 00 F4 66 80 13 00 00 00 00 00 00 D6 [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 62 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 62 00 F4 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E3 02 00 0E 04 04 00 CF 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 F0 [17:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E3 02 00 0E 04 04 00 CF 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 [17:56:56]wFMCommunicate OK [17:56:56]SAM_PROTO_GetFieldsCounters done [17:56:56]requested_item shift.num is exist - process it [17:56:56]requested_item shift.opened is exist - process it [17:56:56]req_shift_opened [17:56:56]FM_GetShiftState [17:56:56]SAM_PROTO_GetShiftState [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 13 01 00 [17:56:56]Write to MH i2c: E2 08 00 F5 66 80 13 01 00 00 00 00 00 D8 [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 0E 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 0E 00 F5 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B6 [17:56:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [17:56:56]wFMCommunicate OK [17:56:56]SAM_PROTO_GetShiftState done [17:56:56]FM_GetShiftState done [17:56:56]req_shift_opened done [17:56:56]requested_item shift.open_date is exist - process it [17:56:56]req_shift_open_date [17:56:56]req_shift_open_date done [17:56:56]produce_requested_data done [17:56:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189270,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [17:56:56]process_action_free close_receipt [17:56:56]json_value_free [17:56:56]json_value_free done [17:56:56]process_json_proto returns [17:56:56]Send response to host [17:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189270,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [17:56:56]free response buf [17:56:56]execute_script done [17:56:56]execute_script returns [17:56:56]free content buf [17:56:56]Sock 9.Close socket [17:56:56]Sock 9.Thread stoped [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:07]accept exits with 8 [18:01:07]New connection [18:01:07]New thread 3067215204 created [18:01:07]Thread 3067071844 joined [18:01:07]Waiting for new connection... [18:01:07] Sock 8.Parse request [18:01:07]Sock 8.Check first char [18:01:07]Sock 8.First char is OK [18:01:07]request: POST /json_proto HTTP/1.0 [18:01:07]Method: POST [18:01:07]URL: /json_proto [18:01:07]Method is POST - this is cgi request [18:01:07]url: /json_proto [18:01:07]query_string will be loaded in cgi processing [18:01:07]execute_cgi json_proto POST (null) [18:01:07]execute_cgi path=json_proto method=POST [18:01:07]POST find Content-Length [18:01:07]Host: 172.17.42.131:8080 [18:01:07]Content-Length: 767 [18:01:07]Content-Type: application/json [18:01:07] [18:01:07]POST finish read [18:01:07]Found Content-Length = 767 [18:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:07]execute_script... [18:01: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)211336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:07]POST & json_proto [18:01:07]process_json_proto [18:01:07]json parsed OK: [18:01:07]protocol is kg_v1.0 [18:01:07]action value=close_receipt [18:01:07]process_action close_receipt [18:01:07]cmd_close_receipt [18:01:07]MH_GetDate [18:01:07]Write to MH i2c: F0 00 00 F6 66 4B [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 09 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: F0 09 00 F6 66 00 67 8B 1A 67 A0 18 CA 66 AF [18:01:07]GetLastDocTimeStamp 1729792616 [18:01:07]current date 1729792871 [18:01:07]FM_GetShiftState [18:01:07]SAM_PROTO_GetShiftState [18:01:07]wFMCommunicate request_size=4 [18:01:07]MH_SAM_APDU [18:01:07]CAPDU: 80 13 01 00 [18:01:07]Write to MH i2c: E2 08 00 F7 66 80 13 01 00 00 00 00 00 DA [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0E 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0E 00 F7 66 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B8 [18:01:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:01:07]wFMCommunicate OK [18:01:07]SAM_PROTO_GetShiftState done [18:01:07]FM_GetShiftState done [18:01:07]opened in 1729728961 [18:01:07]opened+sec_in_day 1729815361 [18:01:07]quantity*price = 80012 [18:01:07]sum+1 = 80013 [18:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 344 24.10.2024 18:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189271 ФПД: 196927461776489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189271&fm=196927461776489&tin=02508201610067®Number=0000000000100030&sum=80012 [18:01:08]StoreToDocumentArchive [18:01:08]shift 463 fd 189271 [18:01:08]save to /storage/0463/doc_00189271 [18:01:08]save last doc name /storage/0463/doc_00189271 to /storage/kkm_last_doc_name [18:01:08]save OK [18:01:08]Clear old archive folders... [18:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:08]tlvbuf is B6DE8070 [18:01:08]SAM_PROTO_ClearQueue [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 09 00 00 [18:01:08]Write to MH i2c: E2 08 00 04 67 80 09 00 00 00 00 00 00 DD [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 04 67 00 90 00 DF [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]SAM_PROTO_ClearQueue done [18:01:08]KKMCreateOFDPacket [18:01:08]OFDProtocolAddRootSTLVToBuf [18:01:08]FM_MakeSignedData [18:01:08]FM_MakeSignedData [18:01:08]SAM_PROTO_SignData [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 01 02 [18:01:08]Write to MH i2c: E2 08 00 05 67 80 0D 01 02 00 00 00 00 E5 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 05 67 00 90 00 E0 [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=255 [18:01:08]MH_SAM_APDU [18:01: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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 67 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E3 02 00 35 04 06 00 B3 [18:01:08]Write to MH i2c: E2 02 01 06 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 67 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E3 02 00 35 04 06 00 B3 00 00 E7 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 06 67 00 90 00 E1 [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=10 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 02 02 05 1A BF 67 DC 69 [18:01:08]Write to MH i2c: E2 0D 00 07 67 80 0D 02 02 05 00 1A BF 67 DC 69 00 00 77 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 03 00 07 67 00 90 00 E2 [18:01:08]RAPDU: 90 00 [18:01:08]wFMCommunicate OK [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 0D 03 02 [18:01:08]Write to MH i2c: E2 08 00 08 67 80 0D 03 02 00 00 00 00 EA [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:08]Read from MH i2c: E2 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 0B 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: E2 0B 00 08 67 00 1B 20 DF AF BE 1C 55 F5 90 00 D8 [18:01:08]RAPDU: 1B 20 DF AF BE 1C 55 F5 90 00 [18:01:08]wFMCommunicate OK [18:01:08]SAM_PROTO_SignData done [18:01:08]FM_MakeSignedData done [18:01:08]CreateOFDProtocolMessage [18:01:08]wFMCommunicate request_size=4 [18:01:08]MH_SAM_APDU [18:01:08]CAPDU: 80 11 00 00 [18:01:08]Write to MH i2c: E2 08 00 09 67 80 11 00 00 00 00 00 00 EA [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:09]Read from MH i2c: E2 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 17 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 17 00 09 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [18:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:01:09]wFMCommunicate OK [18:01:09]CreateOFDProtocolMessage done [18:01:09]OFDSenderStorePacket 189271 [18:01:09]StoreOFDPacket docnum=189271 [18:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 2D 07 01 ED B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 67 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E3 02 00 35 04 06 00 B3 1A BF 67 DC 69 1B 20 DF AF BE 1C 55 F5 [18:01:09]CheckFolder [18:01:09]dirname=/storage/ofd_packets [18:01:09]CheckFolder done [18:01:09]ProducePacketName [18:01:09]name=ofd_packets/00189271 [18:01:09]NVStorageSaveData ofd_packets/00189271 [18:01:09]File name is /storage/ofd_packets/00189271 [18:01:09]Write 301 bytes [18:01:09]NVStorageSaveData done [18:01:09]OFDSenderStorePacket done [18:01:09]KKMCreateOFDPacket done [18:01:09]NVStorageSaveData kkm_last_timestamp [18:01:09]File name is /storage/kkm_last_timestamp [18:01:09]Write 4 bytes [18:01:09]NVStorageSaveData done [18:01:09]ExternCall_PrintAddStr [18:01:09]wPrintStart [18:01:09]Write to MH i2c: 01 00 00 0A 67 71 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 0A 67 00 00 00 00 00 FF 0F 86 [18:01:09]RasterBufferAndPrint [18:01:09]line Счет N : (1)211336 [18:01:09]line ИНН: 02508201610067 [18:01:09]line Контрольно-Кассовый Чек [18:01:09]line ПРОДАЖА [18:01:09]line ТРК (МРК, ГНК) : 42 [18:01:09]line Товар: 2710124130 [18:01:09]line Аи-92-К-3 [18:01:09]line 11.960 * 66.90 [18:01:09]line = 800.12 [18:01:09]line НДС 12% НСП 1% [18:01:09]line > о реализуемом товаре [18:01:09]line ИТОГО: 800.12 [18:01:09]line НСП 1% : 7.08 [18:01:09]line НДС 12% : 84.97 [18:01:09]line Наличными: 0.00 [18:01:09]line Безнал.: 800.12 [18:01:09]line Место: АЗС № 86 "Партнер Нефть" [18:01:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:01:09]line СНО: Общий режим [18:01:09]line Чек 344 24.10.2024 18:01 [18:01:09]line Смена: 463 ФФД: 1.0 [18:01:09]line ЗНМ: 0300000155 [18:01:09]line РНМ: 0000000000100030 [18:01:09]line Версия ККМ: 001 [18:01:09]line Платежная система: Mbank [18:01:09]line ФМ: 0000000000965340 [18:01:09]line ФД: 189271 [18:01:09]line ФПД: 196927461776489 [18:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189271&fm=196927461776489&tin=02508201610067®Number=0000000000100030&sum=80012 [18:01:09]written 0, free lines is 4095 [18:01:09]OFD Sender: Processing packet 189271 [packets to send 1062, broken 1061] [18:01:09]ProducePacketName [18:01:09]name=ofd_packets/00189271 [18:01:09]OFD Sender: To server: pG, [18:01:09]CommunicateWithHost lk.salyk.kg:30040 [18:01:09]ConnectInit lk.salyk.kg [18:01:09]Connected sock=10 [18:01:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 2D 07 01 ED B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 67 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E3 02 00 35 04 06 00 B3 1A BF 67 DC 69 1B 20 DF AF BE 1C 55 F5 [18:01:09]Write to MH i2c: 01 00 00 33 67 9A [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 33 67 00 00 00 00 00 86 0C 33 [18:01:09]RasterBufferAndPrint [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]line [18:01:09]written 0, free lines is 3211 [18:01:09]MH_Cut [18:01:09]Write to MH i2c: D1 01 00 3A 67 01 73 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 01 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: D1 01 00 3A 67 00 72 [18:01:09]Write to MH i2c: 01 00 00 3B 67 A2 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 24 47 00 63 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 39 36 35 33 34 30 10 04 04 00 57 E3 02 00 F4 03 04 00 4F 35 1A 67 B6 04 01 00 00 38 58 A2 55 B2 6E 55 BA [18:01:09]CommunicateWithHost err = 0 [18:01:09]CheckOFDResponse [18:01:09]1017 (14) - 77093643461234 [18:01:09]1041 (16) - 0000000000965340 [18:01:09]1040 (4) - 189271 [18:01:09]1012 (4) - 24.10.2024 11:53 [18:01:09]1206 (1) - 0 [18:01:09]OFD Sender: Remove packet 189271 [18:01:09]ProducePacketName [18:01:09]name=ofd_packets/00189271 [18:01:09]NVStorageDeleteData [18:01:10]OFD Sender: No OFD packet to send [18:01:10]*** Cut start [18:01:10]*** Partial cut [18:01:10]*** CUTSNS_PIN = 1 [18:01:10]*** CUTSNS_PIN = 0 [18:01:11]*** Brake cut motor [18:01:11]Read from MH i2c: 01 [18:01:11]MH_I2C_Read... [18:01:11]*** Stop cut motor [18:01:11]*** Cut end [18:01:11]Read from MH i2c: 01 07 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 07 00 3B 67 00 00 00 00 00 FF 0F B7 [18:01:11]process_action close_receipt done [18:01:11]requested_data is exist [18:01:11]produce_requested_data [18:01:11]requested_item fm.sn is exist - process it [18:01:11]wFMCommunicate request_size=4 [18:01:11]MH_SAM_APDU [18:01:11]CAPDU: 80 11 00 00 [18:01:11]Write to MH i2c: E2 08 00 3C 67 80 11 00 00 00 00 00 00 1D [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:11]Read from MH i2c: E2 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 17 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 17 00 3C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [18:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:01:11]wFMCommunicate OK [18:01:11]requested_item fd.num is exist - process it [18:01:11]SAM_PROTO_GetFieldsCounters [18:01:11]wFMCommunicate request_size=4 [18:01:11]MH_SAM_APDU [18:01:11]CAPDU: 80 13 00 00 [18:01:11]Write to MH i2c: E2 08 00 3D 67 80 13 00 00 00 00 00 00 20 [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:11]Read from MH i2c: E2 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 62 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 62 00 3D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E3 02 00 0E 04 04 00 CF 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 3E [18:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E3 02 00 0E 04 04 00 CF 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 [18:01:11]wFMCommunicate OK [18:01:11]SAM_PROTO_GetFieldsCounters done [18:01:11]requested_item shift.num is exist - process it [18:01:11]requested_item shift.opened is exist - process it [18:01:11]req_shift_opened [18:01:11]FM_GetShiftState [18:01:11]SAM_PROTO_GetShiftState [18:01:11]wFMCommunicate request_size=4 [18:01:11]MH_SAM_APDU [18:01:11]CAPDU: 80 13 01 00 [18:01:11]Write to MH i2c: E2 08 00 3E 67 80 13 01 00 00 00 00 00 22 [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:11]Read from MH i2c: E2 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 0E 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: E2 0E 00 3E 67 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 00 [18:01:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:01:11]wFMCommunicate OK [18:01:11]SAM_PROTO_GetShiftState done [18:01:11]FM_GetShiftState done [18:01:11]req_shift_opened done [18:01:11]requested_item shift.open_date is exist - process it [18:01:11]req_shift_open_date [18:01:11]req_shift_open_date done [18:01:11]produce_requested_data done [18:01:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189271,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:01:11]process_action_free close_receipt [18:01:11]json_value_free [18:01:11]json_value_free done [18:01:11]process_json_proto returns [18:01:11]Send response to host [18:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189271,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:01:11]free response buf [18:01:11]execute_script done [18:01:11]execute_script returns [18:01:11]free content buf [18:01:11]Sock 8.Close socket [18:01:11]Sock 8.Thread stoped [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:50]accept exits with 9 [18:01:50]New connection [18:01:50]New thread 3067071844 created [18:01:50]Thread 3067215204 joined [18:01:50]Waiting for new connection... [18:01:50] Sock 9.Parse request [18:01:50]Sock 9.Check first char [18:01:50]Sock 9.First char is OK [18:01:50]request: POST /json_proto HTTP/1.0 [18:01:50]Method: POST [18:01:50]URL: /json_proto [18:01:50]Method is POST - this is cgi request [18:01:50]url: /json_proto [18:01:50]query_string will be loaded in cgi processing [18:01:50]execute_cgi json_proto POST (null) [18:01:50]execute_cgi path=json_proto method=POST [18:01:50]POST find Content-Length [18:01:50]Host: 172.17.42.131:8080 [18:01:50]Content-Length: 682 [18:01:50]Content-Type: application/json [18:01:50] [18:01:50]POST finish read [18:01:50]Found Content-Length = 682 [18:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:01:50]execute_script... [18:01: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)211337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:01:50]POST & json_proto [18:01:50]process_json_proto [18:01:50]json parsed OK: [18:01:50]protocol is kg_v1.0 [18:01:50]action value=close_receipt [18:01:50]process_action close_receipt [18:01:50]cmd_close_receipt [18:01:50]MH_GetDate [18:01:50]Write to MH i2c: F0 00 00 3F 67 95 [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 09 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 09 00 3F 67 00 93 8B 1A 67 A0 18 CA 66 25 [18:01:50]GetLastDocTimeStamp 1729792871 [18:01:50]current date 1729792915 [18:01:50]FM_GetShiftState [18:01:50]SAM_PROTO_GetShiftState [18:01:50]wFMCommunicate request_size=4 [18:01:50]MH_SAM_APDU [18:01:50]CAPDU: 80 13 01 00 [18:01:50]Write to MH i2c: E2 08 00 40 67 80 13 01 00 00 00 00 00 24 [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:50]Read from MH i2c: E2 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 0E 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 0E 00 40 67 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 02 [18:01:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:01:50]wFMCommunicate OK [18:01:50]SAM_PROTO_GetShiftState done [18:01:50]FM_GetShiftState done [18:01:50]opened in 1729728961 [18:01:50]opened+sec_in_day 1729815361 [18:01:50]quantity*price = 100021 [18:01:50]sum+1 = 100023 [18:01: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 345 24.10.2024 18:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189272 ФПД: 60165555531570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189272&fm=60165555531570&tin=02508201610067®Number=0000000000100030&sum=100000 [18:01:51]StoreToDocumentArchive [18:01:51]shift 463 fd 189272 [18:01:51]save to /storage/0463/doc_00189272 [18:01:51]save last doc name /storage/0463/doc_00189272 to /storage/kkm_last_doc_name [18:01:51]save OK [18:01:51]Clear old archive folders... [18:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:51]tlvbuf is 01577EA0 [18:01:51]SAM_PROTO_ClearQueue [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 09 00 00 [18:01:51]Write to MH i2c: E2 08 00 4D 67 80 09 00 00 00 00 00 00 26 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 4D 67 00 90 00 28 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_ClearQueue done [18:01:51]KKMCreateOFDPacket [18:01:51]OFDProtocolAddRootSTLVToBuf [18:01:51]FM_MakeSignedData [18:01:51]FM_MakeSignedData [18:01:51]SAM_PROTO_SignData [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 01 02 [18:01:51]Write to MH i2c: E2 08 00 4E 67 80 0D 01 02 00 00 00 00 2E [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 4E 67 00 90 00 29 [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=255 [18:01:52]MH_SAM_APDU [18:01: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 33 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 59 01 00 00 F4 03 04 00 93 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E3 02 00 35 04 06 00 36 [18:01:52]Write to MH i2c: E2 02 01 4F 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 33 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 59 01 00 00 F4 03 04 00 93 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E3 02 00 35 04 06 00 36 00 00 FA [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 4F 67 00 90 00 2A [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=10 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 02 02 05 B8 62 90 AF 32 [18:01:52]Write to MH i2c: E2 0D 00 50 67 80 0D 02 02 05 00 B8 62 90 AF 32 00 00 C6 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 50 67 00 90 00 2B [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 03 02 [18:01:52]Write to MH i2c: E2 08 00 51 67 80 0D 03 02 00 00 00 00 33 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0B 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0B 00 51 67 00 DD 9A 5A FB 90 71 3B 68 90 00 A4 [18:01:52]RAPDU: DD 9A 5A FB 90 71 3B 68 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_SignData done [18:01:52]FM_MakeSignedData done [18:01:52]CreateOFDProtocolMessage [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 11 00 00 [18:01:52]Write to MH i2c: E2 08 00 52 67 80 11 00 00 00 00 00 00 33 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 52 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [18:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:01:52]wFMCommunicate OK [18:01:52]CreateOFDProtocolMessage done [18:01:52]OFDSenderStorePacket 189272 [18:01:52]StoreOFDPacket docnum=189272 [18:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 69 07 01 54 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 33 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 59 01 00 00 F4 03 04 00 93 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E3 02 00 35 04 06 00 36 B8 62 90 AF 32 DD 9A 5A FB 90 71 3B 68 [18:01:52]CheckFolder [18:01:52]dirname=/storage/ofd_packets [18:01:52]CheckFolder done [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00189272 [18:01:52]NVStorageSaveData ofd_packets/00189272 [18:01:52]File name is /storage/ofd_packets/00189272 [18:01:52]Write 301 bytes [18:01:52]NVStorageSaveData done [18:01:52]OFDSenderStorePacket done [18:01:52]KKMCreateOFDPacket done [18:01:52]NVStorageSaveData kkm_last_timestamp [18:01:52]File name is /storage/kkm_last_timestamp [18:01:52]Write 4 bytes [18:01:52]NVStorageSaveData done [18:01:52]ExternCall_PrintAddStr [18:01:52]wPrintStart [18:01:52]Write to MH i2c: 01 00 00 53 67 BA [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 53 67 00 00 00 00 00 FF 0F CF [18:01:52]RasterBufferAndPrint [18:01:52]line Счет N : (1)211337 [18:01:52]line ИНН: 02508201610067 [18:01:52]line Контрольно-Кассовый Чек [18:01:52]line ПРОДАЖА [18:01:52]line ТРК (МРК, ГНК) : 23 [18:01:52]line Товар: 2710124500 [18:01:52]line Аи-95-К-3 [18:01:52]line 13.480 * 74.20 [18:01:52]line = 1000.22 [18:01:52]line НДС 12% НСП 1% [18:01:52]line > о реализуемом товаре [18:01:52]line ОКРУГЛЕНИЕ: -0.22 [18:01:52]line ИТОГО: 1000.00 [18:01:52]line Внесено: 1000.00 [18:01:52]line СДАЧА: 0.00 [18:01:52]line НСП 1% : 8.85 [18:01:52]line НДС 12% : 106.22 [18:01:52]line Наличными: 1000.00 [18:01:52]line Безнал.: 0.00 [18:01:52]line Место: АЗС № 86 "Партнер Нефть" [18:01:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:01:52]line СНО: Общий режим [18:01:52]line Чек 345 24.10.2024 18:01 [18:01:52]line Смена: 463 ФФД: 1.0 [18:01:52]line ЗНМ: 0300000155 [18:01:52]line РНМ: 0000000000100030 [18:01:52]line Версия ККМ: 001 [18:01:52]line ФМ: 0000000000965340 [18:01:52]line ФД: 189272 [18:01:52]line ФПД: 60165555531570 [18:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189272&fm=60165555531570&tin=02508201610067®Number=0000000000100030&sum=100000 [18:01:52]written 0, free lines is 4095 [18:01:52]OFD Sender: Processing packet 189272 [packets to send 1062, broken 1061] [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00189272 [18:01:52]OFD Sender: To server: pG, [18:01:52]CommunicateWithHost lk.salyk.kg:30040 [18:01:52]ConnectInit lk.salyk.kg [18:01:52]Connected sock=10 [18:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 69 07 01 54 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 33 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 59 01 00 00 F4 03 04 00 93 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E3 02 00 35 04 06 00 36 B8 62 90 AF 32 DD 9A 5A FB 90 71 3B 68 [18:01:52]Write to MH i2c: 01 00 00 7E 67 E5 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 7E 67 00 00 00 00 00 5C 0C 54 [18:01:52]RasterBufferAndPrint [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]written 0, free lines is 3168 [18:01:52]MH_Cut [18:01:52]Write to MH i2c: D1 01 00 85 67 01 BE [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 85 67 00 BD [18:01:52]Write to MH i2c: 01 00 00 86 67 ED [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F2 06 47 00 04 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 39 36 35 33 34 30 10 04 04 00 58 E3 02 00 F4 03 04 00 7A 35 1A 67 B6 04 01 00 00 90 85 C9 0C EB EC 84 FC [18:01:53]CommunicateWithHost err = 0 [18:01:53]CheckOFDResponse [18:01:53]1017 (14) - 77093643461234 [18:01:53]1041 (16) - 0000000000965340 [18:01:53]1040 (4) - 189272 [18:01:53]1012 (4) - 24.10.2024 11:54 [18:01:53]1206 (1) - 0 [18:01:53]OFD Sender: Remove packet 189272 [18:01:53]ProducePacketName [18:01:53]name=ofd_packets/00189272 [18:01:53]NVStorageDeleteData [18:01:53]OFD Sender: No OFD packet to send [18:01:54]*** Cut start [18:01:54]*** Partial cut [18:01:54]*** CUTSNS_PIN = 1 [18:01:54]*** CUTSNS_PIN = 0 [18:01:54]*** Brake cut motor [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]*** Stop cut motor [18:01:54]*** Cut end [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 86 67 00 00 00 00 00 FF 0F 02 [18:01:54]process_action close_receipt done [18:01:54]requested_data is exist [18:01:54]produce_requested_data [18:01:54]requested_item fm.sn is exist - process it [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 87 67 80 11 00 00 00 00 00 00 68 [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:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 87 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [18:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:01:54]wFMCommunicate OK [18:01:54]requested_item fd.num is exist - process it [18:01:54]SAM_PROTO_GetFieldsCounters [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 13 00 00 [18:01:54]Write to MH i2c: E2 08 00 88 67 80 13 00 00 00 00 00 00 6B [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 62 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 62 00 88 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E3 02 00 0E 04 04 00 CF 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 8D [18:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E3 02 00 0E 04 04 00 CF 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 [18:01:55]wFMCommunicate OK [18:01:55]SAM_PROTO_GetFieldsCounters done [18:01:55]requested_item shift.num is exist - process it [18:01:55]requested_item shift.opened is exist - process it [18:01:55]req_shift_opened [18:01:55]FM_GetShiftState [18:01:55]SAM_PROTO_GetShiftState [18:01:55]wFMCommunicate request_size=4 [18:01:55]MH_SAM_APDU [18:01:55]CAPDU: 80 13 01 00 [18:01:55]Write to MH i2c: E2 08 00 89 67 80 13 01 00 00 00 00 00 6D [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 0E 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 0E 00 89 67 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4B [18:01:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:01:55]wFMCommunicate OK [18:01:55]SAM_PROTO_GetShiftState done [18:01:55]FM_GetShiftState done [18:01:55]req_shift_opened done [18:01:55]requested_item shift.open_date is exist - process it [18:01:55]req_shift_open_date [18:01:55]req_shift_open_date done [18:01:55]produce_requested_data done [18:01:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189272,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:01:55]process_action_free close_receipt [18:01:55]json_value_free [18:01:55]json_value_free done [18:01:55]process_json_proto returns [18:01:55]Send response to host [18:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189272,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:01:55]free response buf [18:01:55]execute_script done [18:01:55]execute_script returns [18:01:55]free content buf [18:01:55]Sock 9.Close socket [18:01:55]Sock 9.Thread stoped [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:03:21]Write to MH i2c: E2 0E 00 93 67 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 AC [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 93 67 00 90 00 6E [18:03:21]RAPDU: 90 00 [18:03:21]wFMCommunicate OK [18:03:21]wFMCommunicate request_size=13 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 15 02 00 08 F4 03 04 00 ED 8B 1A 67 [18:03:21]Write to MH i2c: E2 10 00 94 67 80 15 02 00 08 00 F4 03 04 00 ED 8B 1A 67 00 00 7F [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 94 67 00 90 00 6F [18:03:21]RAPDU: 90 00 [18:03:21]wFMCommunicate OK [18:03:21]wFMCommunicate request_size=25 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [18:03:21]Write to MH i2c: E2 1C 00 95 67 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 C9 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 95 67 00 90 00 70 [18:03:21]RAPDU: 90 00 [18:03:21]wFMCommunicate OK [18:03:21]wFMCommunicate request_size=4 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 15 03 00 [18:03:21]Write to MH i2c: E2 08 00 96 67 80 15 03 00 00 00 00 00 7E [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 40 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 40 00 96 67 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 5A 01 00 00 35 04 06 00 1A 3B 67 D6 A3 67 90 00 74 [18:03:21]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 5A 01 00 00 35 04 06 00 1A 3B 67 D6 A3 67 90 00 [18:03:21]wFMCommunicate OK [18:03:21]SAM_PROTO_ProcessDocument answer len = 59 [18:03:21]SAM_PROTO_ProcessDocument done [18:03:21]SetTLVBufToDocument [18:03:21]Processing tag 1209 (04B9) [18:03:21]Malloc new data [18:03:21]Processing tag 1041 (0411) [18:03:21]Processing tag 1040 (0410) [18:03:21]Malloc new data [18:03:21]Processing tag 1038 (040E) [18:03:21]Malloc new data [18:03:21]Processing tag 1042 (0412) [18:03:21]Malloc new data [18:03:21]Processing tag 1077 (0435) [18:03:21]Malloc new data [18:03:21]SetTLVBufToDocument err=0 [18:03:21]KKMLoadAndSignReceiptData store KKM data [18:03:21]KKMLoadAndSignReceiptData err=0 [18:03:21]wFMCommunicate request_size=4 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 11 00 00 [18:03:21]Write to MH i2c: E2 08 00 97 67 80 11 00 00 00 00 00 00 78 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 17 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 17 00 97 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [18:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:03:21]wFMCommunicate OK [18:03:21]Счет N : (1)211338 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-3 8.840 * 66.90 = 591.40 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 591.00 Внесено: 600.00 СДАЧА: 9.00 НСП 1% : 5.23 НДС 12% : 62.80 Наличными: 591.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 346 24.10.2024 18:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189273 ФПД: 28842447512423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189273&fm=28842447512423&tin=02508201610067®Number=0000000000100030&sum=59100 [18:03:21]StoreToDocumentArchive [18:03:21]shift 463 fd 189273 [18:03:21]save to /storage/0463/doc_00189273 [18:03:21]save last doc name /storage/0463/doc_00189273 to /storage/kkm_last_doc_name [18:03:21]save OK [18:03:21]Clear old archive folders... [18:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:21]tlvbuf is 01578090 [18:03:21]SAM_PROTO_ClearQueue [18:03:21]wFMCommunicate request_size=4 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 09 00 00 [18:03:21]Write to MH i2c: E2 08 00 98 67 80 09 00 00 00 00 00 00 71 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 98 67 00 90 00 73 [18:03:21]RAPDU: 90 00 [18:03:21]wFMCommunicate OK [18:03:21]SAM_PROTO_ClearQueue done [18:03:21]KKMCreateOFDPacket [18:03:21]OFDProtocolAddRootSTLVToBuf [18:03:21]FM_MakeSignedData [18:03:21]FM_MakeSignedData [18:03:21]SAM_PROTO_SignData [18:03:21]wFMCommunicate request_size=4 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 0D 01 02 [18:03:21]Write to MH i2c: E2 08 00 99 67 80 0D 01 02 00 00 00 00 79 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 03 00 99 67 00 90 00 74 [18:03:21]RAPDU: 90 00 [18:03:21]wFMCommunicate OK [18:03:21]wFMCommunicate request_size=255 [18:03:21]MH_SAM_APDU [18: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 33 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 18 00 00 00 00 07 04 06 00 DC E6 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 ED 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 35 04 06 00 1A [18:03:21]Write to MH i2c: E2 02 01 9A 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 33 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 18 00 00 00 00 07 04 06 00 DC E6 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 ED 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 35 04 06 00 1A 00 00 E5 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 03 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 03 00 9A 67 00 90 00 75 [18:03:22]RAPDU: 90 00 [18:03:22]wFMCommunicate OK [18:03:22]wFMCommunicate request_size=10 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 0D 02 02 05 3B 67 D6 A3 67 [18:03:22]Write to MH i2c: E2 0D 00 9B 67 80 0D 02 02 05 00 3B 67 D6 A3 67 00 00 08 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 03 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 03 00 9B 67 00 90 00 76 [18:03:22]RAPDU: 90 00 [18:03:22]wFMCommunicate OK [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 0D 03 02 [18:03:22]Write to MH i2c: E2 08 00 9C 67 80 0D 03 02 00 00 00 00 7E [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0B 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0B 00 9C 67 00 FF 99 CB 5A 28 5A FE D1 90 00 8D [18:03:22]RAPDU: FF 99 CB 5A 28 5A FE D1 90 00 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_SignData done [18:03:22]FM_MakeSignedData done [18:03:22]CreateOFDProtocolMessage [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 11 00 00 [18:03:22]Write to MH i2c: E2 08 00 9D 67 80 11 00 00 00 00 00 00 7E [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 9D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [18:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:03:22]wFMCommunicate OK [18:03:22]CreateOFDProtocolMessage done [18:03:22]OFDSenderStorePacket 189273 [18:03:22]StoreOFDPacket docnum=189273 [18:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 1D 07 01 87 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 18 00 00 00 00 07 04 06 00 DC E6 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 ED 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 35 04 06 00 1A 3B 67 D6 A3 67 FF 99 CB 5A 28 5A FE D1 [18:03:22]CheckFolder [18:03:22]dirname=/storage/ofd_packets [18:03:22]CheckFolder done [18:03:22]ProducePacketName [18:03:22]name=ofd_packets/00189273 [18:03:22]NVStorageSaveData ofd_packets/00189273 [18:03:22]File name is /storage/ofd_packets/00189273 [18:03:22]Write 301 bytes [18:03:22]NVStorageSaveData done [18:03:22]OFDSenderStorePacket done [18:03:22]KKMCreateOFDPacket done [18:03:22]NVStorageSaveData kkm_last_timestamp [18:03:22]File name is /storage/kkm_last_timestamp [18:03:22]Write 4 bytes [18:03:22]NVStorageSaveData done [18:03:22]ExternCall_PrintAddStr [18:03:22]wPrintStart [18:03:22]Write to MH i2c: 01 00 00 9E 67 05 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 9E 67 00 00 00 00 00 FF 0F 1A [18:03:22]RasterBufferAndPrint [18:03:22]line Счет N : (1)211338 [18:03:22]line ИНН: 02508201610067 [18:03:22]line Контрольно-Кассовый Чек [18:03:22]line ПРОДАЖА [18:03:22]line ТРК (МРК, ГНК) : 22 [18:03:22]line Товар: 2710124130 [18:03:22]line Аи-92-К-3 [18:03:22]line 8.840 * 66.90 [18:03:22]line = 591.40 [18:03:22]line НДС 12% НСП 1% [18:03:22]line > о реализуемом товаре [18:03:22]line ОКРУГЛЕНИЕ: -0.40 [18:03:22]line ИТОГО: 591.00 [18:03:22]line Внесено: 600.00 [18:03:22]line СДАЧА: 9.00 [18:03:22]line НСП 1% : 5.23 [18:03:22]line НДС 12% : 62.80 [18:03:22]line Наличными: 591.00 [18:03:22]line Безнал.: 0.00 [18:03:22]line Место: АЗС № 86 "Партнер Нефть" [18:03:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:03:22]line СНО: Общий режим [18:03:22]line Чек 346 24.10.2024 18:03 [18:03:22]line Смена: 463 ФФД: 1.0 [18:03:22]line ЗНМ: 0300000155 [18:03:22]line РНМ: 0000000000100030 [18:03:22]line Версия ККМ: 001 [18:03:22]line ФМ: 0000000000965340 [18:03:22]line ФД: 189273 [18:03:22]line ФПД: 28842447512423 [18:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189273&fm=28842447512423&tin=02508201610067®Number=0000000000100030&sum=59100 [18:03:22]written 0, free lines is 4095 [18:03:22]OFD Sender: Processing packet 189273 [packets to send 1062, broken 1061] [18:03:22]ProducePacketName [18:03:22]name=ofd_packets/00189273 [18:03:22]OFD Sender: To server: pG, [18:03:22]CommunicateWithHost lk.salyk.kg:30040 [18:03:22]ConnectInit lk.salyk.kg [18:03:22]Connected sock=11 [18:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 1D 07 01 87 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 18 00 00 00 00 07 04 06 00 DC E6 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 ED 8B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 35 04 06 00 1A 3B 67 D6 A3 67 FF 99 CB 5A 28 5A FE D1 [18:03:22]Write to MH i2c: 01 00 00 C9 67 30 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 C9 67 00 00 00 00 00 60 0C A3 [18:03:22]RasterBufferAndPrint [18:03:22]line [18:03:22]line [18:03:22]line [18:03:22]line [18:03:22]line [18:03:22]written 0, free lines is 3172 [18:03:22]MH_Cut [18:03:22]Write to MH i2c: D1 01 00 D0 67 01 09 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: D1 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: D1 01 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: D1 01 00 D0 67 00 08 [18:03:22]Write to MH i2c: 01 00 00 D1 67 38 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A 9D 47 00 A0 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 39 36 35 33 34 30 10 04 04 00 59 E3 02 00 F4 03 04 00 D4 35 1A 67 B6 04 01 00 00 6E D0 9C 26 70 58 8F DE [18:03:23]CommunicateWithHost err = 0 [18:03:23]CheckOFDResponse [18:03:23]1017 (14) - 77093643461234 [18:03:23]1041 (16) - 0000000000965340 [18:03:23]1040 (4) - 189273 [18:03:23]1012 (4) - 24.10.2024 11:56 [18:03:23]1206 (1) - 0 [18:03:23]OFD Sender: Remove packet 189273 [18:03:23]ProducePacketName [18:03:23]name=ofd_packets/00189273 [18:03:23]NVStorageDeleteData [18:03:23]OFD Sender: No OFD packet to send [18:03:24]*** Cut start [18:03:24]*** Partial cut [18:03:24]*** CUTSNS_PIN = 1 [18:03:24]*** CUTSNS_PIN = 0 [18:03:24]*** Brake cut motor [18:03:24]Read from MH i2c: 01 [18:03:24]MH_I2C_Read... [18:03:24]*** Stop cut motor [18:03:24]*** Cut end [18:03:24]Read from MH i2c: 01 07 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 07 00 D1 67 00 00 00 00 00 FF 0F 4D [18:03:24]process_action close_receipt done [18:03:24]requested_data is exist [18:03:24]produce_requested_data [18:03:24]requested_item fm.sn is exist - process it [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 11 00 00 [18:03:24]Write to MH i2c: E2 08 00 D2 67 80 11 00 00 00 00 00 00 B3 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 17 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 17 00 D2 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [18:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:03:24]wFMCommunicate OK [18:03:24]requested_item fd.num is exist - process it [18:03:24]SAM_PROTO_GetFieldsCounters [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 13 00 00 [18:03:24]Write to MH i2c: E2 08 00 D3 67 80 13 00 00 00 00 00 00 B6 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 62 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 62 00 D3 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E3 02 00 0E 04 04 00 CF 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 DC [18:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E3 02 00 0E 04 04 00 CF 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 [18:03:24]wFMCommunicate OK [18:03:24]SAM_PROTO_GetFieldsCounters done [18:03:24]requested_item shift.num is exist - process it [18:03:24]requested_item shift.opened is exist - process it [18:03:24]req_shift_opened [18:03:24]FM_GetShiftState [18:03:24]SAM_PROTO_GetShiftState [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 13 01 00 [18:03:24]Write to MH i2c: E2 08 00 D4 67 80 13 01 00 00 00 00 00 B8 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 D4 67 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 96 [18:03:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:03:25]wFMCommunicate OK [18:03:25]SAM_PROTO_GetShiftState done [18:03:25]FM_GetShiftState done [18:03:25]req_shift_opened done [18:03:25]requested_item shift.open_date is exist - process it [18:03:25]req_shift_open_date [18:03:25]req_shift_open_date done [18:03:25]produce_requested_data done [18:03:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189273,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:03:25]process_action_free close_receipt [18:03:25]json_value_free [18:03:25]json_value_free done [18:03:25]process_json_proto returns [18:03:25]Send response to host [18:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189273,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:03:25]free response buf [18:03:25]execute_script done [18:03:25]execute_script returns [18:03:25]free content buf [18:03:25]Sock 8.Close socket [18:03:25]Sock 8.Thread stoped [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:47]ConnectInit Can't connect to host [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:17]accept exits with 10 [18:09:17]New connection [18:09:17]New thread 3067071844 created [18:09:17]Thread 3067215204 joined [18:09:17]Waiting for new connection... [18:09:17] Sock 10.Parse request [18:09:17]Sock 10.Check first char [18:09:17]Sock 10.First char is OK [18:09:17]request: POST /json_proto HTTP/1.0 [18:09:17]Method: POST [18:09:17]URL: /json_proto [18:09:17]Method is POST - this is cgi request [18:09:17]url: /json_proto [18:09:17]query_string will be loaded in cgi processing [18:09:17]execute_cgi json_proto POST (null) [18:09:17]execute_cgi path=json_proto method=POST [18:09:17]POST find Content-Length [18:09:17]Host: 172.17.42.131:8080 [18:09:17]Content-Length: 983 [18:09:17]Content-Type: application/json [18:09:17] [18:09:17]POST finish read [18:09:17]Found Content-Length = 983 [18:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 33.390, "sum" : 2200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.39 \u0441\u043E\u043C", "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" ] } } [18:09:17]execute_script... [18:09: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)211340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 33.390, "sum" : 2200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.39 \u0441\u043E\u043C", "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" ] } } [18:09:17]POST & json_proto [18:09:17]process_json_proto [18:09:17]json parsed OK: [18:09:17]protocol is kg_v1.0 [18:09:17]action value=close_receipt [18:09:17]process_action close_receipt [18:09:17]cmd_close_receipt [18:09:17]MH_GetDate [18:09:17]Write to MH i2c: F0 00 00 D5 67 2B [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 D5 67 00 52 8D 1A 67 A0 18 CA 66 7C [18:09:17]GetLastDocTimeStamp 1729793005 [18:09:17]current date 1729793362 [18:09:17]FM_GetShiftState [18:09:17]SAM_PROTO_GetShiftState [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 13 01 00 [18:09:17]Write to MH i2c: E2 08 00 D6 67 80 13 01 00 00 00 00 00 BA [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:18]Read from MH i2c: E2 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 0E 00 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 0E 00 D6 67 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 98 [18:09:18]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:09:18]wFMCommunicate OK [18:09:18]SAM_PROTO_GetShiftState done [18:09:18]FM_GetShiftState done [18:09:18]opened in 1729728961 [18:09:18]opened+sec_in_day 1729815361 [18:09:18]quantity*price = 220040 [18:09:18]sum+1 = 220041 [18:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.67 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 347 24.10.2024 18:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 33.39 сом ФМ: 0000000000965340 ФД: 189274 ФПД: 254455014744869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180922&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189274&fm=254455014744869&tin=02508201610067®Number=0000000000100030&sum=220000 [18:09:19]StoreToDocumentArchive [18:09:19]shift 463 fd 189274 [18:09:19]save to /storage/0463/doc_00189274 [18:09:19]save last doc name /storage/0463/doc_00189274 to /storage/kkm_last_doc_name [18:09:19]save OK [18:09:19]Clear old archive folders... [18:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:19]tlvbuf is 015EA360 [18:09:19]SAM_PROTO_ClearQueue [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 09 00 00 [18:09:19]Write to MH i2c: E2 08 00 E3 67 80 09 00 00 00 00 00 00 BC [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 E3 67 00 90 00 BE [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_ClearQueue done [18:09:19]KKMCreateOFDPacket [18:09:19]OFDProtocolAddRootSTLVToBuf [18:09:19]FM_MakeSignedData [18:09:19]FM_MakeSignedData [18:09:19]SAM_PROTO_SignData [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 01 02 [18:09:19]Write to MH i2c: E2 08 00 E4 67 80 0D 01 02 00 00 00 00 C4 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 E4 67 00 90 00 BF [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=255 [18:09:19]MH_SAM_APDU [18:09: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 33 FF 03 08 00 03 6E 82 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 88 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 47 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 5B 01 00 00 F4 03 04 00 52 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E3 02 00 35 04 06 00 E7 [18:09:19]Write to MH i2c: E2 02 01 E5 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 33 FF 03 08 00 03 6E 82 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 88 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 47 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 5B 01 00 00 F4 03 04 00 52 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E3 02 00 35 04 06 00 E7 00 00 D1 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 E5 67 00 90 00 C0 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=10 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 02 02 05 6C EC C3 E3 25 [18:09:19]Write to MH i2c: E2 0D 00 E6 67 80 0D 02 02 05 00 6C EC C3 E3 25 00 00 F4 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 03 00 E6 67 00 90 00 C1 [18:09:19]RAPDU: 90 00 [18:09:19]wFMCommunicate OK [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 0D 03 02 [18:09:19]Write to MH i2c: E2 08 00 E7 67 80 0D 03 02 00 00 00 00 C9 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 E7 67 00 B6 C0 36 36 4D B6 2E A0 90 00 7D [18:09:19]RAPDU: B6 C0 36 36 4D B6 2E A0 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_SignData done [18:09:19]FM_MakeSignedData done [18:09:19]CreateOFDProtocolMessage [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 11 00 00 [18:09:19]Write to MH i2c: E2 08 00 E8 67 80 11 00 00 00 00 00 00 C9 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 E8 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [18:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:09:19]wFMCommunicate OK [18:09:19]CreateOFDProtocolMessage done [18:09:19]OFDSenderStorePacket 189274 [18:09:19]StoreOFDPacket docnum=189274 [18:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 40 07 01 A4 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 33 FF 03 08 00 03 6E 82 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 88 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 47 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 5B 01 00 00 F4 03 04 00 52 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E3 02 00 35 04 06 00 E7 6C EC C3 E3 25 B6 C0 36 36 4D B6 2E A0 [18:09:19]CheckFolder [18:09:19]dirname=/storage/ofd_packets [18:09:19]CheckFolder done [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00189274 [18:09:19]NVStorageSaveData ofd_packets/00189274 [18:09:19]File name is /storage/ofd_packets/00189274 [18:09:19]Write 301 bytes [18:09:19]NVStorageSaveData done [18:09:19]OFDSenderStorePacket done [18:09:19]KKMCreateOFDPacket done [18:09:19]NVStorageSaveData kkm_last_timestamp [18:09:19]File name is /storage/kkm_last_timestamp [18:09:19]Write 4 bytes [18:09:19]NVStorageSaveData done [18:09:19]ExternCall_PrintAddStr [18:09:19]wPrintStart [18:09:19]Write to MH i2c: 01 00 00 E9 67 50 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 E9 67 00 00 00 00 00 FF 0F 65 [18:09:19]RasterBufferAndPrint [18:09:19]line Счет N : (1)211340 [18:09:19]line ИНН: 02508201610067 [18:09:19]line Контрольно-Кассовый Чек [18:09:19]line ПРОДАЖА [18:09:19]line ТРК (МРК, ГНК) : 42 [18:09:19]line Товар: 2710124130 [18:09:19]line Аи-92-К-3 [18:09:19]line 33.390 * 65.90 [18:09:19]line = 2200.40 [18:09:19]line НДС 12% НСП 1% [18:09:19]line > о реализуемом товаре [18:09:19]line ОКРУГЛЕНИЕ: -0.40 [18:09:19]line ИТОГО: 2200.00 [18:09:19]line Внесено: 2200.00 [18:09:19]line СДАЧА: 0.00 [18:09:19]line НСП 1% : 19.47 [18:09:19]line НДС 12% : 233.67 [18:09:19]line Наличными: 2200.00 [18:09:19]line Безнал.: 0.00 [18:09:19]line Место: АЗС № 86 "Партнер Нефть" [18:09:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:09:19]line СНО: Общий режим [18:09:19]line Чек 347 24.10.2024 18:09 [18:09:19]line Смена: 463 ФФД: 1.0 [18:09:19]line ЗНМ: 0300000155 [18:09:19]line РНМ: 0000000000100030 [18:09:19]line Версия ККМ: 001 [18:09:19]line [18:09:19]line Дисконтная программа [18:09:19]line АИ-92 [18:09:19]line номер 86 [18:09:19]line сэкономлено 33.39 сом [18:09:19]line ФМ: 0000000000965340 [18:09:19]line ФД: 189274 [18:09:19]line ФПД: 254455014744869 [18:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180922&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189274&fm=254455014744869&tin=02508201610067®Number=0000000000100030&sum=220000 [18:09:19]written 0, free lines is 4095 [18:09:19]OFD Sender: Processing packet 189274 [packets to send 1062, broken 1061] [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00189274 [18:09:19]OFD Sender: To server: pG, [18:09:19]CommunicateWithHost lk.salyk.kg:30040 [18:09:19]ConnectInit lk.salyk.kg [18:09:20]Connected sock=8 [18:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 40 07 01 A4 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 33 FF 03 08 00 03 6E 82 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 88 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 47 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 5B 01 00 00 F4 03 04 00 52 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E3 02 00 35 04 06 00 E7 6C EC C3 E3 25 B6 C0 36 36 4D B6 2E A0 [18:09:20]Write to MH i2c: 01 00 00 19 68 81 [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 07 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 07 00 19 68 00 00 00 00 00 E2 0B 75 [18:09:20]RasterBufferAndPrint [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]line [18:09:20]written 0, free lines is 3045 [18:09:20]MH_Cut [18:09:20]Write to MH i2c: D1 01 00 20 68 01 5A [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 01 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: D1 01 00 20 68 00 59 [18:09:20]Write to MH i2c: 01 00 00 21 68 89 [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 01 47 00 0F 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 39 36 35 33 34 30 10 04 04 00 5A E3 02 00 F4 03 04 00 39 37 1A 67 B6 04 01 00 00 BB 58 E2 B5 8A 73 7C 35 [18:09:20]CommunicateWithHost err = 0 [18:09:20]CheckOFDResponse [18:09:20]1017 (14) - 77093643461234 [18:09:20]1041 (16) - 0000000000965340 [18:09:20]1040 (4) - 189274 [18:09:20]1012 (4) - 24.10.2024 12:02 [18:09:20]1206 (1) - 0 [18:09:20]OFD Sender: Remove packet 189274 [18:09:20]ProducePacketName [18:09:20]name=ofd_packets/00189274 [18:09:20]NVStorageDeleteData [18:09:20]OFD Sender: No OFD packet to send [18:09:21]*** Cut start [18:09:21]*** Partial cut [18:09:21]*** CUTSNS_PIN = 1 [18:09:21]*** CUTSNS_PIN = 0 [18:09:21]*** Brake cut motor [18:09:22]Read from MH i2c: 01 [18:09:22]MH_I2C_Read... [18:09:22]*** Stop cut motor [18:09:22]*** Cut end [18:09:22]Read from MH i2c: 01 07 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 21 68 00 00 00 00 00 FF 0F 9E [18:09:22]process_action close_receipt done [18:09:22]requested_data is exist [18:09:22]produce_requested_data [18:09:22]requested_item fm.sn is exist - process it [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 11 00 00 [18:09:22]Write to MH i2c: E2 08 00 22 68 80 11 00 00 00 00 00 00 04 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 22 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [18:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:09:22]wFMCommunicate OK [18:09:22]requested_item fd.num is exist - process it [18:09:22]SAM_PROTO_GetFieldsCounters [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 13 00 00 [18:09:22]Write to MH i2c: E2 08 00 23 68 80 13 00 00 00 00 00 00 07 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 62 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 62 00 23 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E3 02 00 0E 04 04 00 CF 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 31 [18:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E3 02 00 0E 04 04 00 CF 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 [18:09:22]wFMCommunicate OK [18:09:22]SAM_PROTO_GetFieldsCounters done [18:09:22]requested_item shift.num is exist - process it [18:09:22]requested_item shift.opened is exist - process it [18:09:22]req_shift_opened [18:09:22]FM_GetShiftState [18:09:22]SAM_PROTO_GetShiftState [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 13 01 00 [18:09:22]Write to MH i2c: E2 08 00 24 68 80 13 01 00 00 00 00 00 09 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0E 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0E 00 24 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E7 [18:09:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:09:22]wFMCommunicate OK [18:09:22]SAM_PROTO_GetShiftState done [18:09:22]FM_GetShiftState done [18:09:22]req_shift_opened done [18:09:22]requested_item shift.open_date is exist - process it [18:09:22]req_shift_open_date [18:09:22]req_shift_open_date done [18:09:22]produce_requested_data done [18:09:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189274,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:09:22]process_action_free close_receipt [18:09:22]json_value_free [18:09:22]json_value_free done [18:09:22]process_json_proto returns [18:09:22]Send response to host [18:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189274,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:09:22]free response buf [18:09:22]execute_script done [18:09:22]execute_script returns [18:09:22]free content buf [18:09:22]Sock 10.Close socket [18:09:22]Sock 10.Thread stoped [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:09]accept exits with 9 [18:11:09]New connection [18:11:09]New thread 3067215204 created [18:11:09]Thread 3067071844 joined [18:11:09]Waiting for new connection... [18:11:09] Sock 9.Parse request [18:11:09]Sock 9.Check first char [18:11:09]Sock 9.First char is OK [18:11:09]request: POST /json_proto HTTP/1.0 [18:11:09]Method: POST [18:11:09]URL: /json_proto [18:11:09]Method is POST - this is cgi request [18:11:09]url: /json_proto [18:11:09]query_string will be loaded in cgi processing [18:11:09]execute_cgi json_proto POST (null) [18:11:09]execute_cgi path=json_proto method=POST [18:11:09]POST find Content-Length [18:11:09]Host: 172.17.42.131:8080 [18:11:09]Content-Length: 754 [18:11:09]Content-Type: application/json [18:11:09] [18:11:09]POST finish read [18:11:09]Found Content-Length = 754 [18:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:09]execute_script... [18:11: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)211339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:09]POST & json_proto [18:11:09]process_json_proto [18:11:09]json parsed OK: [18:11:09]protocol is kg_v1.0 [18:11:09]action value=close_receipt [18:11:09]process_action close_receipt [18:11:09]cmd_close_receipt [18:11:09]MH_GetDate [18:11:09]Write to MH i2c: F0 00 00 25 68 7C [18:11:09]Write i2c OK [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: F0 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: F0 09 00 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: F0 09 00 25 68 00 C1 8D 1A 67 A0 18 CA 66 3C [18:11:09]GetLastDocTimeStamp 1729793362 [18:11:09]current date 1729793473 [18:11:09]FM_GetShiftState [18:11:09]SAM_PROTO_GetShiftState [18:11:09]wFMCommunicate request_size=4 [18:11:09]MH_SAM_APDU [18:11:09]CAPDU: 80 13 01 00 [18:11:09]Write to MH i2c: E2 08 00 26 68 80 13 01 00 00 00 00 00 0B [18:11:09]Write i2c OK [18:11:09]MH_I2C_Read... [18:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:09]Read from MH i2c: E2 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: E2 0E 00 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: E2 0E 00 26 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E9 [18:11:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:11:09]wFMCommunicate OK [18:11:09]SAM_PROTO_GetShiftState done [18:11:09]FM_GetShiftState done [18:11:09]opened in 1729728961 [18:11:09]opened+sec_in_day 1729815361 [18:11:09]quantity*price = 0 [18:11:09]sum+1 = 1 [18:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 348 24.10.2024 18:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074712 ФМ: 0000000000965340 ФД: 189275 ФПД: 174750591621971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181113&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189275&fm=174750591621971&tin=02508201610067®Number=0000000000100030&sum=0 [18:11:10]StoreToDocumentArchive [18:11:10]shift 463 fd 189275 [18:11:10]save to /storage/0463/doc_00189275 [18:11:10]save last doc name /storage/0463/doc_00189275 to /storage/kkm_last_doc_name [18:11:10]save OK [18:11:10]Clear old archive folders... [18:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:10]tlvbuf is 016E4D60 [18:11:10]SAM_PROTO_ClearQueue [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 09 00 00 [18:11:10]Write to MH i2c: E2 08 00 33 68 80 09 00 00 00 00 00 00 0D [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 33 68 00 90 00 0F [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_ClearQueue done [18:11:10]KKMCreateOFDPacket [18:11:10]OFDProtocolAddRootSTLVToBuf [18:11:10]FM_MakeSignedData [18:11:10]FM_MakeSignedData [18:11:10]SAM_PROTO_SignData [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 01 02 [18:11:10]Write to MH i2c: E2 08 00 34 68 80 0D 01 02 00 00 00 00 15 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 34 68 00 90 00 10 [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=255 [18:11:10]MH_SAM_APDU [18:11: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 33 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 5C 01 00 00 F4 03 04 00 C1 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E3 02 00 35 04 06 00 9E [18:11:10]Write to MH i2c: E2 02 01 35 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 33 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 5C 01 00 00 F4 03 04 00 C1 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E3 02 00 35 04 06 00 9E 00 00 AF [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 35 68 00 90 00 11 [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=10 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 02 02 05 EF 4A F0 1B 53 [18:11:10]Write to MH i2c: E2 0D 00 36 68 80 0D 02 02 05 00 EF 4A F0 1B 53 00 00 B9 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 36 68 00 90 00 12 [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 03 02 [18:11:10]Write to MH i2c: E2 08 00 37 68 80 0D 03 02 00 00 00 00 1A [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 0B 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 0B 00 37 68 00 3D 46 10 9A 5F C0 BC 45 90 00 68 [18:11:10]RAPDU: 3D 46 10 9A 5F C0 BC 45 90 00 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_SignData done [18:11:10]FM_MakeSignedData done [18:11:10]CreateOFDProtocolMessage [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 11 00 00 [18:11:10]Write to MH i2c: E2 08 00 38 68 80 11 00 00 00 00 00 00 1A [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 17 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 17 00 38 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [18:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:10]wFMCommunicate OK [18:11:10]CreateOFDProtocolMessage done [18:11:10]OFDSenderStorePacket 189275 [18:11:10]StoreOFDPacket docnum=189275 [18:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CE 2B 07 01 F6 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 33 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 5C 01 00 00 F4 03 04 00 C1 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E3 02 00 35 04 06 00 9E EF 4A F0 1B 53 3D 46 10 9A 5F C0 BC 45 [18:11:10]CheckFolder [18:11:10]dirname=/storage/ofd_packets [18:11:10]CheckFolder done [18:11:10]ProducePacketName [18:11:10]name=ofd_packets/00189275 [18:11:10]NVStorageSaveData ofd_packets/00189275 [18:11:10]File name is /storage/ofd_packets/00189275 [18:11:10]Write 301 bytes [18:11:10]NVStorageSaveData done [18:11:10]OFDSenderStorePacket done [18:11:10]KKMCreateOFDPacket done [18:11:10]NVStorageSaveData kkm_last_timestamp [18:11:10]File name is /storage/kkm_last_timestamp [18:11:10]Write 4 bytes [18:11:10]NVStorageSaveData done [18:11:10]ExternCall_PrintAddStr [18:11:10]wPrintStart [18:11:10]Write to MH i2c: 01 00 00 39 68 A1 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 07 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 07 00 39 68 00 00 00 00 00 FF 0F B6 [18:11:10]RasterBufferAndPrint [18:11:10]line Счет N : (1)211339 [18:11:10]line ИНН: 02508201610067 [18:11:10]line Контрольно-Кассовый Чек [18:11:10]line ПРОДАЖА [18:11:10]line ТРК (МРК, ГНК) : 12 [18:11:10]line Товар: 2710124130 [18:11:10]line Аи-92-К-3 [18:11:10]line 15.000 * 0.00 [18:11:10]line = 0.00 [18:11:10]line НДС 12% НСП 1% [18:11:10]line > о реализуемом товаре [18:11:10]line ИТОГО: 0.00 [18:11:10]line НСП 1% : 0.00 [18:11:10]line НДС 12% : 0.00 [18:11:10]line Наличными: 0.00 [18:11:10]line Безнал.: 0.00 [18:11:10]line Место: АЗС № 86 "Партнер Нефть" [18:11:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:11:10]line СНО: Общий режим [18:11:10]line Чек 348 24.10.2024 18:11 [18:11:10]line Смена: 463 ФФД: 1.0 [18:11:10]line ЗНМ: 0300000155 [18:11:10]line РНМ: 0000000000100030 [18:11:10]line Версия ККМ: 001 [18:11:10]line Талоны: ТК ГПНА Online [18:11:10]line 30074712 [18:11:10]line ФМ: 0000000000965340 [18:11:10]line ФД: 189275 [18:11:10]line ФПД: 174750591621971 [18:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181113&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189275&fm=174750591621971&tin=02508201610067®Number=0000000000100030&sum=0 [18:11:11]OFD Sender: Processing packet 189275 [packets to send 1062, broken 1061] [18:11:11]ProducePacketName [18:11:11]name=ofd_packets/00189275 [18:11:11]OFD Sender: To server: pG, [18:11:11]CommunicateWithHost lk.salyk.kg:30040 [18:11:11]ConnectInit lk.salyk.kg [18:11:11]written 0, free lines is 4095 [18:11:11]Connected sock=10 [18:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CE 2B 07 01 F6 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 33 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 5C 01 00 00 F4 03 04 00 C1 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E3 02 00 35 04 06 00 9E EF 4A F0 1B 53 3D 46 10 9A 5F C0 BC 45 [18:11:11]Write to MH i2c: 01 00 00 63 68 CB [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 07 00 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 07 00 63 68 00 00 00 00 00 77 0C 55 [18:11:11]RasterBufferAndPrint [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]written 0, free lines is 3195 [18:11:11]MH_Cut [18:11:11]Write to MH i2c: D1 01 00 6A 68 01 A4 [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 01 00 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 01 00 6A 68 00 A3 [18:11:11]Write to MH i2c: 01 00 00 6B 68 D3 [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 5D 47 00 B8 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 39 36 35 33 34 30 10 04 04 00 5B E3 02 00 F4 03 04 00 A9 37 1A 67 B6 04 01 00 00 EE 22 AD DA 37 A0 2A 14 [18:11:11]CommunicateWithHost err = 0 [18:11:11]CheckOFDResponse [18:11:11]1017 (14) - 77093643461234 [18:11:11]1041 (16) - 0000000000965340 [18:11:11]1040 (4) - 189275 [18:11:11]1012 (4) - 24.10.2024 12:03 [18:11:11]1206 (1) - 0 [18:11:11]OFD Sender: Remove packet 189275 [18:11:11]ProducePacketName [18:11:11]name=ofd_packets/00189275 [18:11:11]NVStorageDeleteData [18:11:12]OFD Sender: No OFD packet to send [18:11:12]*** Cut start [18:11:12]*** Partial cut [18:11:12]*** CUTSNS_PIN = 1 [18:11:12]*** CUTSNS_PIN = 0 [18:11:13]*** Brake cut motor [18:11:13]Read from MH i2c: 01 [18:11:13]MH_I2C_Read... [18:11:13]*** Stop cut motor [18:11:13]*** Cut end [18:11:13]Read from MH i2c: 01 07 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: 01 07 00 6B 68 00 00 00 00 00 FF 0F E8 [18:11:13]process_action close_receipt done [18:11:13]requested_data is exist [18:11:13]produce_requested_data [18:11:13]requested_item fm.sn is exist - process it [18:11:13]wFMCommunicate request_size=4 [18:11:13]MH_SAM_APDU [18:11:13]CAPDU: 80 11 00 00 [18:11:13]Write to MH i2c: E2 08 00 6C 68 80 11 00 00 00 00 00 00 4E [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:13]Read from MH i2c: E2 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 17 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 17 00 6C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [18:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:13]wFMCommunicate OK [18:11:13]requested_item fd.num is exist - process it [18:11:13]SAM_PROTO_GetFieldsCounters [18:11:13]wFMCommunicate request_size=4 [18:11:13]MH_SAM_APDU [18:11:13]CAPDU: 80 13 00 00 [18:11:13]Write to MH i2c: E2 08 00 6D 68 80 13 00 00 00 00 00 00 51 [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:13]Read from MH i2c: E2 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 62 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 62 00 6D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E3 02 00 0E 04 04 00 CF 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 7F [18:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E3 02 00 0E 04 04 00 CF 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 [18:11:13]wFMCommunicate OK [18:11:13]SAM_PROTO_GetFieldsCounters done [18:11:13]requested_item shift.num is exist - process it [18:11:13]requested_item shift.opened is exist - process it [18:11:13]req_shift_opened [18:11:13]FM_GetShiftState [18:11:13]SAM_PROTO_GetShiftState [18:11:13]wFMCommunicate request_size=4 [18:11:13]MH_SAM_APDU [18:11:13]CAPDU: 80 13 01 00 [18:11:13]Write to MH i2c: E2 08 00 6E 68 80 13 01 00 00 00 00 00 53 [18:11:13]Write i2c OK [18:11:13]MH_I2C_Read... [18:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:13]Read from MH i2c: E2 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 0E 00 [18:11:13]MH_I2C_Read... [18:11:13]Read from MH i2c: E2 0E 00 6E 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 31 [18:11:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:11:13]wFMCommunicate OK [18:11:13]SAM_PROTO_GetShiftState done [18:11:13]FM_GetShiftState done [18:11:13]req_shift_opened done [18:11:13]requested_item shift.open_date is exist - process it [18:11:13]req_shift_open_date [18:11:13]req_shift_open_date done [18:11:13]produce_requested_data done [18:11:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189275,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:11:13]process_action_free close_receipt [18:11:13]json_value_free [18:11:13]json_value_free done [18:11:13]process_json_proto returns [18:11:13]Send response to host [18:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189275,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:11:13]free response buf [18:11:13]execute_script done [18:11:13]execute_script returns [18:11:13]free content buf [18:11:13]Sock 9.Close socket [18:11:13]Sock 9.Thread stoped [18:11:17]OFD Sender: No OFD packet to send [18:11:22]accept exits with 8 [18:11:22]New connection [18:11:22]New thread 3067071844 created [18:11:22]Thread 3067215204 joined [18:11:22]Waiting for new connection... [18:11:22] Sock 8.Parse request [18:11:22]Sock 8.Check first char [18:11:22]Sock 8.First char is OK [18:11:22]request: POST /json_proto HTTP/1.0 [18:11:22]Method: POST [18:11:22]URL: /json_proto [18:11:22]Method is POST - this is cgi request [18:11:22]url: /json_proto [18:11:22]query_string will be loaded in cgi processing [18:11:22]execute_cgi json_proto POST (null) [18:11:22]execute_cgi path=json_proto method=POST [18:11:22]POST find Content-Length [18:11:22]Host: 172.17.42.131:8080 [18:11:22]Content-Length: 682 [18:11:22]Content-Type: application/json [18:11:22] [18:11:22]POST finish read [18:11:22]Found Content-Length = 682 [18:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [18:11:22]execute_script... [18:11: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)211341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [18:11:22]POST & json_proto [18:11:22]process_json_proto [18:11:22]json parsed OK: [18:11:22]protocol is kg_v1.0 [18:11:22]action value=close_receipt [18:11:22]process_action close_receipt [18:11:22]cmd_close_receipt [18:11:22]MH_GetDate [18:11:22]Write to MH i2c: F0 00 00 6F 68 C6 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 09 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 09 00 6F 68 00 CE 8D 1A 67 A0 18 CA 66 93 [18:11:22]GetLastDocTimeStamp 1729793473 [18:11:22]current date 1729793486 [18:11:22]FM_GetShiftState [18:11:22]SAM_PROTO_GetShiftState [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 01 00 [18:11:22]Write to MH i2c: E2 08 00 70 68 80 13 01 00 00 00 00 00 55 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 70 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 33 [18:11:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetShiftState done [18:11:22]FM_GetShiftState done [18:11:22]opened in 1729728961 [18:11:22]opened+sec_in_day 1729815361 [18:11:22]quantity*price = 140021 [18:11:22]sum+1 = 140023 [18:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 349 24.10.2024 18:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189276 ФПД: 20258522470514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181126&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189276&fm=20258522470514&tin=02508201610067®Number=0000000000100030&sum=140000 [18:11:23]StoreToDocumentArchive [18:11:23]shift 463 fd 189276 [18:11:23]save to /storage/0463/doc_00189276 [18:11:23]save last doc name /storage/0463/doc_00189276 to /storage/kkm_last_doc_name [18:11:23]save OK [18:11:23]Clear old archive folders... [18:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:23]tlvbuf is 0154FF80 [18:11:23]SAM_PROTO_ClearQueue [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 09 00 00 [18:11:23]Write to MH i2c: E2 08 00 7D 68 80 09 00 00 00 00 00 00 57 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 7D 68 00 90 00 59 [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_ClearQueue done [18:11:23]KKMCreateOFDPacket [18:11:23]OFDProtocolAddRootSTLVToBuf [18:11:23]FM_MakeSignedData [18:11:23]FM_MakeSignedData [18:11:23]SAM_PROTO_SignData [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 0D 01 02 [18:11:23]Write to MH i2c: E2 08 00 7E 68 80 0D 01 02 00 00 00 00 5F [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 7E 68 00 90 00 5A [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]wFMCommunicate request_size=255 [18:11:23]MH_SAM_APDU [18:11: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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 CE 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E3 02 00 35 04 06 00 12 [18:11:23]Write to MH i2c: E2 02 01 7F 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 CE 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E3 02 00 35 04 06 00 12 00 00 46 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 7F 68 00 90 00 5B [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]wFMCommunicate request_size=10 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 0D 02 02 05 6C CE 09 18 72 [18:11:23]Write to MH i2c: E2 0D 00 80 68 80 0D 02 02 05 00 6C CE 09 18 72 00 00 39 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 80 68 00 90 00 5C [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 0D 03 02 [18:11:23]Write to MH i2c: E2 08 00 81 68 80 0D 03 02 00 00 00 00 64 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0B 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0B 00 81 68 00 98 F4 50 2F CF 4E 08 12 90 00 A7 [18:11:23]RAPDU: 98 F4 50 2F CF 4E 08 12 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_SignData done [18:11:23]FM_MakeSignedData done [18:11:23]CreateOFDProtocolMessage [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 11 00 00 [18:11:23]Write to MH i2c: E2 08 00 82 68 80 11 00 00 00 00 00 00 64 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 17 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 17 00 82 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [18:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:23]wFMCommunicate OK [18:11:23]CreateOFDProtocolMessage done [18:11:23]OFDSenderStorePacket 189276 [18:11:23]StoreOFDPacket docnum=189276 [18:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD A7 07 01 BA 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 CE 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E3 02 00 35 04 06 00 12 6C CE 09 18 72 98 F4 50 2F CF 4E 08 12 [18:11:23]CheckFolder [18:11:23]dirname=/storage/ofd_packets [18:11:23]CheckFolder done [18:11:23]ProducePacketName [18:11:23]name=ofd_packets/00189276 [18:11:23]NVStorageSaveData ofd_packets/00189276 [18:11:23]File name is /storage/ofd_packets/00189276 [18:11:23]Write 301 bytes [18:11:23]NVStorageSaveData done [18:11:23]OFDSenderStorePacket done [18:11:23]KKMCreateOFDPacket done [18:11:23]NVStorageSaveData kkm_last_timestamp [18:11:23]File name is /storage/kkm_last_timestamp [18:11:23]Write 4 bytes [18:11:23]NVStorageSaveData done [18:11:23]ExternCall_PrintAddStr [18:11:23]wPrintStart [18:11:23]Write to MH i2c: 01 00 00 83 68 EB [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: 01 07 00 83 68 00 00 00 00 00 FF 0F 00 [18:11:23]RasterBufferAndPrint [18:11:23]line Счет N : (1)211341 [18:11:23]line ИНН: 02508201610067 [18:11:23]line Контрольно-Кассовый Чек [18:11:23]line ПРОДАЖА [18:11:23]line ТРК (МРК, ГНК) : 22 [18:11:23]line Товар: 2710124130 [18:11:23]line Аи-92-К-3 [18:11:23]line 20.930 * 66.90 [18:11:23]line = 1400.22 [18:11:23]line НДС 12% НСП 1% [18:11:23]line > о реализуемом товаре [18:11:23]line ОКРУГЛЕНИЕ: -0.22 [18:11:23]line ИТОГО: 1400.00 [18:11:23]line Внесено: 1400.00 [18:11:23]line СДАЧА: 0.00 [18:11:23]line НСП 1% : 12.39 [18:11:23]line НДС 12% : 148.70 [18:11:23]line Наличными: 1400.00 [18:11:23]line Безнал.: 0.00 [18:11:23]line Место: АЗС № 86 "Партнер Нефть" [18:11:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:11:23]line СНО: Общий режим [18:11:23]line Чек 349 24.10.2024 18:11 [18:11:23]line Смена: 463 ФФД: 1.0 [18:11:23]line ЗНМ: 0300000155 [18:11:23]line РНМ: 0000000000100030 [18:11:23]line Версия ККМ: 001 [18:11:23]line ФМ: 0000000000965340 [18:11:23]line ФД: 189276 [18:11:23]line ФПД: 20258522470514 [18:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181126&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189276&fm=20258522470514&tin=02508201610067®Number=0000000000100030&sum=140000 [18:11:23]written 0, free lines is 4095 [18:11:23]OFD Sender: Processing packet 189276 [packets to send 1062, broken 1061] [18:11:23]ProducePacketName [18:11:23]name=ofd_packets/00189276 [18:11:23]OFD Sender: To server: pG, [18:11:23]CommunicateWithHost lk.salyk.kg:30040 [18:11:23]ConnectInit lk.salyk.kg [18:11:24]Connected sock=10 [18:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD A7 07 01 BA 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 CE 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E3 02 00 35 04 06 00 12 6C CE 09 18 72 98 F4 50 2F CF 4E 08 12 [18:11:24]Write to MH i2c: 01 00 00 AE 68 16 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 AE 68 00 00 00 00 00 5E 0C 87 [18:11:24]RasterBufferAndPrint [18:11:24]line [18:11:24]line [18:11:24]line [18:11:24]line [18:11:24]line [18:11:24]written 0, free lines is 3170 [18:11:24]MH_Cut [18:11:24]Write to MH i2c: D1 01 00 B5 68 01 EF [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: D1 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: D1 01 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: D1 01 00 B5 68 00 EE [18:11:24]Write to MH i2c: 01 00 00 B6 68 1E [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 1C 47 00 9E 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 39 36 35 33 34 30 10 04 04 00 5C E3 02 00 F4 03 04 00 B5 37 1A 67 B6 04 01 00 00 74 D1 59 52 5B 0B 9F CD [18:11:24]CommunicateWithHost err = 0 [18:11:24]CheckOFDResponse [18:11:24]1017 (14) - 77093643461234 [18:11:24]1041 (16) - 0000000000965340 [18:11:24]1040 (4) - 189276 [18:11:24]1012 (4) - 24.10.2024 12:04 [18:11:24]1206 (1) - 0 [18:11:24]OFD Sender: Remove packet 189276 [18:11:24]ProducePacketName [18:11:24]name=ofd_packets/00189276 [18:11:24]NVStorageDeleteData [18:11:24]OFD Sender: No OFD packet to send [18:11:25]*** Cut start [18:11:25]*** Partial cut [18:11:25]*** CUTSNS_PIN = 1 [18:11:25]*** CUTSNS_PIN = 0 [18:11:25]*** Brake cut motor [18:11:26]Read from MH i2c: 01 [18:11:26]MH_I2C_Read... [18:11:26]*** Stop cut motor [18:11:26]*** Cut end [18:11:26]Read from MH i2c: 01 07 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: 01 07 00 B6 68 00 00 00 00 00 FF 0F 33 [18:11:26]process_action close_receipt done [18:11:26]requested_data is exist [18:11:26]produce_requested_data [18:11:26]requested_item fm.sn is exist - process it [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 11 00 00 [18:11:26]Write to MH i2c: E2 08 00 B7 68 80 11 00 00 00 00 00 00 99 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 B7 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [18:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:26]wFMCommunicate OK [18:11:26]requested_item fd.num is exist - process it [18:11:26]SAM_PROTO_GetFieldsCounters [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 13 00 00 [18:11:26]Write to MH i2c: E2 08 00 B8 68 80 13 00 00 00 00 00 00 9C [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 62 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 62 00 B8 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E3 02 00 0E 04 04 00 CF 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 CE [18:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E3 02 00 0E 04 04 00 CF 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 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_GetFieldsCounters done [18:11:26]requested_item shift.num is exist - process it [18:11:26]requested_item shift.opened is exist - process it [18:11:26]req_shift_opened [18:11:26]FM_GetShiftState [18:11:26]SAM_PROTO_GetShiftState [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 13 01 00 [18:11:26]Write to MH i2c: E2 08 00 B9 68 80 13 01 00 00 00 00 00 9E [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 B9 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7C [18:11:26]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_GetShiftState done [18:11:26]FM_GetShiftState done [18:11:26]req_shift_opened done [18:11:26]requested_item shift.open_date is exist - process it [18:11:26]req_shift_open_date [18:11:26]req_shift_open_date done [18:11:26]produce_requested_data done [18:11:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189276,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:11:26]process_action_free close_receipt [18:11:26]json_value_free [18:11:26]json_value_free done [18:11:26]process_json_proto returns [18:11:26]Send response to host [18:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189276,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:11:26]free response buf [18:11:26]execute_script done [18:11:26]execute_script returns [18:11:26]free content buf [18:11:26]Sock 8.Close socket [18:11:26]Sock 8.Thread stoped [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:11:55]accept exits with 9 [18:11:55]New connection [18:11:55]New thread 3067215204 created [18:11:55]Thread 3067071844 joined [18:11:55]Waiting for new connection... [18:11:55] Sock 9.Parse request [18:11:55]Sock 9.Check first char [18:11:55]Sock 9.First char is OK [18:11:55]request: POST /json_proto HTTP/1.0 [18:11:55]Method: POST [18:11:55]URL: /json_proto [18:11:55]Method is POST - this is cgi request [18:11:55]url: /json_proto [18:11:55]query_string will be loaded in cgi processing [18:11:55]execute_cgi json_proto POST (null) [18:11:55]execute_cgi path=json_proto method=POST [18:11:55]POST find Content-Length [18:11:55]Host: 172.17.42.131:8080 [18:11:55]Content-Length: 682 [18:11:55]Content-Type: application/json [18:11:55] [18:11:55]POST finish read [18:11:55]Found Content-Length = 682 [18:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:55]execute_script... [18:11: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)211342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:55]POST & json_proto [18:11:55]process_json_proto [18:11:55]json parsed OK: [18:11:55]protocol is kg_v1.0 [18:11:55]action value=close_receipt [18:11:55]process_action close_receipt [18:11:55]cmd_close_receipt [18:11:55]MH_GetDate [18:11:55]Write to MH i2c: F0 00 00 BA 68 11 [18:11:55]Write i2c OK [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 09 00 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 09 00 BA 68 00 F0 8D 1A 67 A0 18 CA 66 00 [18:11:55]GetLastDocTimeStamp 1729793486 [18:11:55]current date 1729793520 [18:11:55]FM_GetShiftState [18:11:55]SAM_PROTO_GetShiftState [18:11:55]wFMCommunicate request_size=4 [18:11:55]MH_SAM_APDU [18:11:55]CAPDU: 80 13 01 00 [18:11:55]Write to MH i2c: E2 08 00 BB 68 80 13 01 00 00 00 00 00 A0 [18:11:55]Write i2c OK [18:11:55]MH_I2C_Read... [18:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:55]Read from MH i2c: E2 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: E2 0E 00 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: E2 0E 00 BB 68 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7E [18:11:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:11:55]wFMCommunicate OK [18:11:55]SAM_PROTO_GetShiftState done [18:11:55]FM_GetShiftState done [18:11:55]opened in 1729728961 [18:11:55]opened+sec_in_day 1729815361 [18:11:55]quantity*price = 100015 [18:11:55]sum+1 = 100017 [18:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 350 24.10.2024 18:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189277 ФПД: 20864441431441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189277&fm=20864441431441&tin=02508201610067®Number=0000000000100030&sum=100000 [18:11:56]StoreToDocumentArchive [18:11:56]shift 463 fd 189277 [18:11:56]save to /storage/0463/doc_00189277 [18:11:56]save last doc name /storage/0463/doc_00189277 to /storage/kkm_last_doc_name [18:11:56]save OK [18:11:56]Clear old archive folders... [18:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:56]tlvbuf is 01567350 [18:11:56]SAM_PROTO_ClearQueue [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 09 00 00 [18:11:56]Write to MH i2c: E2 08 00 C8 68 80 09 00 00 00 00 00 00 A2 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 C8 68 00 90 00 A4 [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]SAM_PROTO_ClearQueue done [18:11:56]KKMCreateOFDPacket [18:11:56]OFDProtocolAddRootSTLVToBuf [18:11:56]FM_MakeSignedData [18:11:56]FM_MakeSignedData [18:11:56]SAM_PROTO_SignData [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 0D 01 02 [18:11:56]Write to MH i2c: E2 08 00 C9 68 80 0D 01 02 00 00 00 00 AA [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 C9 68 00 90 00 A5 [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]wFMCommunicate request_size=255 [18:11:56]MH_SAM_APDU [18:11: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F0 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E3 02 00 35 04 06 00 12 [18:11:56]Write to MH i2c: E2 02 01 CA 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F0 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E3 02 00 35 04 06 00 12 00 00 98 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:57]Read from MH i2c: E2 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 03 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 03 00 CA 68 00 90 00 A6 [18:11:57]RAPDU: 90 00 [18:11:57]wFMCommunicate OK [18:11:57]wFMCommunicate request_size=10 [18:11:57]MH_SAM_APDU [18:11:57]CAPDU: 80 0D 02 02 05 F9 E1 9E B5 91 [18:11:57]Write to MH i2c: E2 0D 00 CB 68 80 0D 02 02 05 00 F9 E1 9E B5 91 00 00 75 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:57]Read from MH i2c: E2 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 03 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 03 00 CB 68 00 90 00 A7 [18:11:57]RAPDU: 90 00 [18:11:57]wFMCommunicate OK [18:11:57]wFMCommunicate request_size=4 [18:11:57]MH_SAM_APDU [18:11:57]CAPDU: 80 0D 03 02 [18:11:57]Write to MH i2c: E2 08 00 CC 68 80 0D 03 02 00 00 00 00 AF [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:57]Read from MH i2c: E2 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 0B 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 0B 00 CC 68 00 6B 56 72 3A 03 34 99 3F 90 00 2C [18:11:57]RAPDU: 6B 56 72 3A 03 34 99 3F 90 00 [18:11:57]wFMCommunicate OK [18:11:57]SAM_PROTO_SignData done [18:11:57]FM_MakeSignedData done [18:11:57]CreateOFDProtocolMessage [18:11:57]wFMCommunicate request_size=4 [18:11:57]MH_SAM_APDU [18:11:57]CAPDU: 80 11 00 00 [18:11:57]Write to MH i2c: E2 08 00 CD 68 80 11 00 00 00 00 00 00 AF [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:57]Read from MH i2c: E2 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 17 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: E2 17 00 CD 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [18:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:57]wFMCommunicate OK [18:11:57]CreateOFDProtocolMessage done [18:11:57]OFDSenderStorePacket 189277 [18:11:57]StoreOFDPacket docnum=189277 [18:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 88 07 01 02 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F0 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E3 02 00 35 04 06 00 12 F9 E1 9E B5 91 6B 56 72 3A 03 34 99 3F [18:11:57]CheckFolder [18:11:57]dirname=/storage/ofd_packets [18:11:57]CheckFolder done [18:11:57]ProducePacketName [18:11:57]name=ofd_packets/00189277 [18:11:57]NVStorageSaveData ofd_packets/00189277 [18:11:57]File name is /storage/ofd_packets/00189277 [18:11:57]Write 301 bytes [18:11:57]NVStorageSaveData done [18:11:57]OFDSenderStorePacket done [18:11:57]KKMCreateOFDPacket done [18:11:57]NVStorageSaveData kkm_last_timestamp [18:11:57]File name is /storage/kkm_last_timestamp [18:11:57]Write 4 bytes [18:11:57]NVStorageSaveData done [18:11:57]ExternCall_PrintAddStr [18:11:57]wPrintStart [18:11:57]Write to MH i2c: 01 00 00 CE 68 36 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 CE 68 00 00 00 00 00 FF 0F 4B [18:11:57]RasterBufferAndPrint [18:11:57]line Счет N : (1)211342 [18:11:57]line ИНН: 02508201610067 [18:11:57]line Контрольно-Кассовый Чек [18:11:57]line ПРОДАЖА [18:11:57]line ТРК (МРК, ГНК) : 32 [18:11:57]line Товар: 2710124130 [18:11:57]line Аи-92-К-3 [18:11:57]line 14.950 * 66.90 [18:11:57]line = 1000.16 [18:11:57]line НДС 12% НСП 1% [18:11:57]line > о реализуемом товаре [18:11:57]line ОКРУГЛЕНИЕ: -0.16 [18:11:57]line ИТОГО: 1000.00 [18:11:57]line Внесено: 1000.00 [18:11:57]line СДАЧА: 0.00 [18:11:57]line НСП 1% : 8.85 [18:11:57]line НДС 12% : 106.21 [18:11:57]line Наличными: 1000.00 [18:11:57]line Безнал.: 0.00 [18:11:57]line Место: АЗС № 86 "Партнер Нефть" [18:11:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:11:57]line СНО: Общий режим [18:11:57]line Чек 350 24.10.2024 18:12 [18:11:57]line Смена: 463 ФФД: 1.0 [18:11:57]line ЗНМ: 0300000155 [18:11:57]line РНМ: 0000000000100030 [18:11:57]line Версия ККМ: 001 [18:11:57]line ФМ: 0000000000965340 [18:11:57]line ФД: 189277 [18:11:57]line ФПД: 20864441431441 [18:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189277&fm=20864441431441&tin=02508201610067®Number=0000000000100030&sum=100000 [18:11:57]written 0, free lines is 4095 [18:11:57]OFD Sender: Processing packet 189277 [packets to send 1062, broken 1061] [18:11:57]ProducePacketName [18:11:57]name=ofd_packets/00189277 [18:11:57]OFD Sender: To server: pG, [18:11:57]CommunicateWithHost lk.salyk.kg:30040 [18:11:57]ConnectInit lk.salyk.kg [18:11:57]Write to MH i2c: 01 00 00 F9 68 61 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 F9 68 00 00 00 00 00 5D 0C D1 [18:11:57]RasterBufferAndPrint [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]written 0, free lines is 3168 [18:11:57]MH_Cut [18:11:57]Write to MH i2c: D1 01 00 00 69 01 3B [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 01 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 01 00 00 69 00 3A [18:11:57]Write to MH i2c: 01 00 00 01 69 6A [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:59]Connected sock=10 [18:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 88 07 01 02 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 F0 8D 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E3 02 00 35 04 06 00 12 F9 E1 9E B5 91 6B 56 72 3A 03 34 99 3F [18:11:59]*** Cut start [18:11:59]*** Partial cut [18:11:59]*** CUTSNS_PIN = 1 [18:11:59]*** CUTSNS_PIN = 0 [18:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 01 47 00 40 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 39 36 35 33 34 30 10 04 04 00 5D E3 02 00 F4 03 04 00 D8 37 1A 67 B6 04 01 00 00 DC 95 F2 BC 64 43 AF 97 [18:11:59]CommunicateWithHost err = 0 [18:11:59]CheckOFDResponse [18:11:59]1017 (14) - 77093643461234 [18:11:59]1041 (16) - 0000000000965340 [18:11:59]1040 (4) - 189277 [18:11:59]1012 (4) - 24.10.2024 12:04 [18:11:59]1206 (1) - 0 [18:11:59]OFD Sender: Remove packet 189277 [18:11:59]ProducePacketName [18:11:59]name=ofd_packets/00189277 [18:11:59]NVStorageDeleteData [18:11:59]*** Brake cut motor [18:11:59]Read from MH i2c: 01 [18:11:59]MH_I2C_Read... [18:11:59]*** Stop cut motor [18:11:59]*** Cut end [18:11:59]Read from MH i2c: 01 07 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: 01 07 00 01 69 00 00 00 00 00 FF 0F 7F [18:11:59]process_action close_receipt done [18:11:59]requested_data is exist [18:11:59]produce_requested_data [18:11:59]requested_item fm.sn is exist - process it [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 11 00 00 [18:11:59]Write to MH i2c: E2 08 00 02 69 80 11 00 00 00 00 00 00 E5 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 02 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [18:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:59]wFMCommunicate OK [18:11:59]requested_item fd.num is exist - process it [18:11:59]SAM_PROTO_GetFieldsCounters [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 13 00 00 [18:11:59]Write to MH i2c: E2 08 00 03 69 80 13 00 00 00 00 00 00 E8 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]OFD Sender: No OFD packet to send [18:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 62 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 62 00 03 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E3 02 00 0E 04 04 00 CF 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 1E [18:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E3 02 00 0E 04 04 00 CF 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 [18:11:59]wFMCommunicate OK [18:11:59]SAM_PROTO_GetFieldsCounters done [18:11:59]requested_item shift.num is exist - process it [18:11:59]requested_item shift.opened is exist - process it [18:11:59]req_shift_opened [18:11:59]FM_GetShiftState [18:11:59]SAM_PROTO_GetShiftState [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 13 01 00 [18:11:59]Write to MH i2c: E2 08 00 04 69 80 13 01 00 00 00 00 00 EA [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:00]Read from MH i2c: E2 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: E2 0E 00 [18:12:00]MH_I2C_Read... [18:12:00]Read from MH i2c: E2 0E 00 04 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C8 [18:12:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:12:00]wFMCommunicate OK [18:12:00]SAM_PROTO_GetShiftState done [18:12:00]FM_GetShiftState done [18:12:00]req_shift_opened done [18:12:00]requested_item shift.open_date is exist - process it [18:12:00]req_shift_open_date [18:12:00]req_shift_open_date done [18:12:00]produce_requested_data done [18:12:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189277,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:12:00]process_action_free close_receipt [18:12:00]json_value_free [18:12:00]json_value_free done [18:12:00]process_json_proto returns [18:12:00]Send response to host [18:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189277,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:12:00]free response buf [18:12:00]execute_script done [18:12:00]execute_script returns [18:12:00]free content buf [18:12:00]Sock 9.Close socket [18:12:00]Sock 9.Thread stoped [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:28]accept exits with 8 [18:14:28]New connection [18:14:28]New thread 3067071844 created [18:14:28]Thread 3067215204 joined [18:14:28]Waiting for new connection... [18:14:28] Sock 8.Parse request [18:14:28]Sock 8.Check first char [18:14:28]Sock 8.First char is OK [18:14:28]request: POST /json_proto HTTP/1.0 [18:14:28]Method: POST [18:14:28]URL: /json_proto [18:14:28]Method is POST - this is cgi request [18:14:28]url: /json_proto [18:14:28]query_string will be loaded in cgi processing [18:14:28]execute_cgi json_proto POST (null) [18:14:28]execute_cgi path=json_proto method=POST [18:14:28]POST find Content-Length [18:14:28]Host: 172.17.42.131:8080 [18:14:28]Content-Length: 677 [18:14:28]Content-Type: application/json [18:14:28] [18:14:28]POST finish read [18:14:28]Found Content-Length = 677 [18:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:28]execute_script... [18:14: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)211344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:28]POST & json_proto [18:14:28]process_json_proto [18:14:28]json parsed OK: [18:14:28]protocol is kg_v1.0 [18:14:28]action value=close_receipt [18:14:28]process_action close_receipt [18:14:28]cmd_close_receipt [18:14:28]MH_GetDate [18:14:28]Write to MH i2c: F0 00 00 05 69 5D [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: F0 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: F0 09 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: F0 09 00 05 69 00 88 8E 1A 67 A0 18 CA 66 E5 [18:14:28]GetLastDocTimeStamp 1729793520 [18:14:28]current date 1729793672 [18:14:28]FM_GetShiftState [18:14:28]SAM_PROTO_GetShiftState [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 13 01 00 [18:14:28]Write to MH i2c: E2 08 00 06 69 80 13 01 00 00 00 00 00 EC [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 06 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [18:14:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:14:28]wFMCommunicate OK [18:14:28]SAM_PROTO_GetShiftState done [18:14:28]FM_GetShiftState done [18:14:28]opened in 1729728961 [18:14:28]opened+sec_in_day 1729815361 [18:14:28]quantity*price = 50041 [18:14:28]sum+1 = 50042 [18:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 351 24.10.2024 18:14 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189278 ФПД: 164982578283327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189278&fm=164982578283327&tin=02508201610067®Number=0000000000100030&sum=50000 [18:14:29]StoreToDocumentArchive [18:14:29]shift 463 fd 189278 [18:14:29]save to /storage/0463/doc_00189278 [18:14:29]save last doc name /storage/0463/doc_00189278 to /storage/kkm_last_doc_name [18:14:29]save OK [18:14:29]Clear old archive folders... [18:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:29]tlvbuf is 01567260 [18:14:29]SAM_PROTO_ClearQueue [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 09 00 00 [18:14:29]Write to MH i2c: E2 08 00 13 69 80 09 00 00 00 00 00 00 EE [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 13 69 00 90 00 F0 [18:14:29]RAPDU: 90 00 [18:14:29]wFMCommunicate OK [18:14:29]SAM_PROTO_ClearQueue done [18:14:29]KKMCreateOFDPacket [18:14:29]OFDProtocolAddRootSTLVToBuf [18:14:29]FM_MakeSignedData [18:14:29]FM_MakeSignedData [18:14:29]SAM_PROTO_SignData [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 0D 01 02 [18:14:29]Write to MH i2c: E2 08 00 14 69 80 0D 01 02 00 00 00 00 F6 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 14 69 00 90 00 F1 [18:14:29]RAPDU: 90 00 [18:14:29]wFMCommunicate OK [18:14:29]wFMCommunicate request_size=255 [18:14:29]MH_SAM_APDU [18:14: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E3 02 00 35 04 06 00 96 [18:14:29]Write to MH i2c: E2 02 01 15 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E3 02 00 35 04 06 00 96 00 00 09 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 15 69 00 90 00 F2 [18:14:29]RAPDU: 90 00 [18:14:29]wFMCommunicate OK [18:14:29]wFMCommunicate request_size=10 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 0D 02 02 05 0C FF F9 03 3F [18:14:29]Write to MH i2c: E2 0D 00 16 69 80 0D 02 02 05 00 0C FF F9 03 3F 00 00 49 [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 03 00 16 69 00 90 00 F3 [18:14:29]RAPDU: 90 00 [18:14:29]wFMCommunicate OK [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 0D 03 02 [18:14:29]Write to MH i2c: E2 08 00 17 69 80 0D 03 02 00 00 00 00 FB [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:29]Read from MH i2c: E2 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 0B 00 [18:14:29]MH_I2C_Read... [18:14:29]Read from MH i2c: E2 0B 00 17 69 00 1C 04 54 BD B4 6D 49 CC 90 00 63 [18:14:29]RAPDU: 1C 04 54 BD B4 6D 49 CC 90 00 [18:14:29]wFMCommunicate OK [18:14:29]SAM_PROTO_SignData done [18:14:29]FM_MakeSignedData done [18:14:29]CreateOFDProtocolMessage [18:14:29]wFMCommunicate request_size=4 [18:14:29]MH_SAM_APDU [18:14:29]CAPDU: 80 11 00 00 [18:14:29]Write to MH i2c: E2 08 00 18 69 80 11 00 00 00 00 00 00 FB [18:14:29]Write i2c OK [18:14:29]MH_I2C_Read... [18:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:30]Read from MH i2c: E2 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: E2 17 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: E2 17 00 18 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [18:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:14:30]wFMCommunicate OK [18:14:30]CreateOFDProtocolMessage done [18:14:30]OFDSenderStorePacket 189278 [18:14:30]StoreOFDPacket docnum=189278 [18:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 ED 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E3 02 00 35 04 06 00 96 0C FF F9 03 3F 1C 04 54 BD B4 6D 49 CC [18:14:30]CheckFolder [18:14:30]dirname=/storage/ofd_packets [18:14:30]CheckFolder done [18:14:30]ProducePacketName [18:14:30]name=ofd_packets/00189278 [18:14:30]NVStorageSaveData ofd_packets/00189278 [18:14:30]File name is /storage/ofd_packets/00189278 [18:14:30]Write 301 bytes [18:14:30]NVStorageSaveData done [18:14:30]OFDSenderStorePacket done [18:14:30]KKMCreateOFDPacket done [18:14:30]NVStorageSaveData kkm_last_timestamp [18:14:30]File name is /storage/kkm_last_timestamp [18:14:30]Write 4 bytes [18:14:30]NVStorageSaveData done [18:14:30]ExternCall_PrintAddStr [18:14:30]wPrintStart [18:14:30]Write to MH i2c: 01 00 00 19 69 82 [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 07 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 07 00 19 69 00 00 00 00 00 FF 0F 97 [18:14:30]RasterBufferAndPrint [18:14:30]line Счет N : (1)211344 [18:14:30]line ИНН: 02508201610067 [18:14:30]line Контрольно-Кассовый Чек [18:14:30]line ПРОДАЖА [18:14:30]line ТРК (МРК, ГНК) : 42 [18:14:30]line Товар: 2710124130 [18:14:30]line Аи-92-К-3 [18:14:30]line 7.480 * 66.90 [18:14:30]line = 500.41 [18:14:30]line НДС 12% НСП 1% [18:14:30]line > о реализуемом товаре [18:14:30]line ОКРУГЛЕНИЕ: -0.41 [18:14:30]line ИТОГО: 500.00 [18:14:30]line Внесено: 500.00 [18:14:30]line СДАЧА: 0.00 [18:14:30]line НСП 1% : 4.43 [18:14:30]line НДС 12% : 53.14 [18:14:30]line Наличными: 500.00 [18:14:30]line Безнал.: 0.00 [18:14:30]line Место: АЗС № 86 "Партнер Нефть" [18:14:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:14:30]line СНО: Общий режим [18:14:30]line Чек 351 24.10.2024 18:14 [18:14:30]line Смена: 463 ФФД: 1.0 [18:14:30]line ЗНМ: 0300000155 [18:14:30]line РНМ: 0000000000100030 [18:14:30]line Версия ККМ: 001 [18:14:30]line ФМ: 0000000000965340 [18:14:30]line ФД: 189278 [18:14:30]line ФПД: 164982578283327 [18:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189278&fm=164982578283327&tin=02508201610067®Number=0000000000100030&sum=50000 [18:14:30]written 0, free lines is 4095 [18:14:30]OFD Sender: Processing packet 189278 [packets to send 1062, broken 1061] [18:14:30]ProducePacketName [18:14:30]name=ofd_packets/00189278 [18:14:30]OFD Sender: To server: pG, [18:14:30]CommunicateWithHost lk.salyk.kg:30040 [18:14:30]ConnectInit lk.salyk.kg [18:14:30]Connected sock=10 [18:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 ED 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E3 02 00 35 04 06 00 96 0C FF F9 03 3F 1C 04 54 BD B4 6D 49 CC [18:14:30]Write to MH i2c: 01 00 00 44 69 AD [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 07 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: 01 07 00 44 69 00 00 00 00 00 63 0C 23 [18:14:30]RasterBufferAndPrint [18:14:30]line [18:14:30]line [18:14:30]line [18:14:30]line [18:14:30]line [18:14:30]written 0, free lines is 3175 [18:14:30]MH_Cut [18:14:30]Write to MH i2c: D1 01 00 4B 69 01 86 [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: D1 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: D1 01 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: D1 01 00 4B 69 00 85 [18:14:30]Write to MH i2c: 01 00 00 4C 69 B5 [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 8C 47 00 46 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 39 36 35 33 34 30 10 04 04 00 5E E3 02 00 F4 03 04 00 70 38 1A 67 B6 04 01 00 00 31 5C 83 F4 CD AB 43 DA [18:14:30]CommunicateWithHost err = 0 [18:14:30]CheckOFDResponse [18:14:30]1017 (14) - 77093643461234 [18:14:30]1041 (16) - 0000000000965340 [18:14:30]1040 (4) - 189278 [18:14:30]1012 (4) - 24.10.2024 12:07 [18:14:30]1206 (1) - 0 [18:14:30]OFD Sender: Remove packet 189278 [18:14:30]ProducePacketName [18:14:30]name=ofd_packets/00189278 [18:14:30]NVStorageDeleteData [18:14:31]OFD Sender: No OFD packet to send [18:14:31]*** Cut start [18:14:31]*** Partial cut [18:14:31]*** CUTSNS_PIN = 1 [18:14:31]*** CUTSNS_PIN = 0 [18:14:32]*** Brake cut motor [18:14:32]Read from MH i2c: 01 [18:14:32]MH_I2C_Read... [18:14:32]*** Stop cut motor [18:14:32]*** Cut end [18:14:32]Read from MH i2c: 01 07 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 07 00 4C 69 00 00 00 00 00 FF 0F CA [18:14:32]process_action close_receipt done [18:14:32]requested_data is exist [18:14:32]produce_requested_data [18:14:32]requested_item fm.sn is exist - process it [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 11 00 00 [18:14:32]Write to MH i2c: E2 08 00 4D 69 80 11 00 00 00 00 00 00 30 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 17 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 17 00 4D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [18:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:14:32]wFMCommunicate OK [18:14:32]requested_item fd.num is exist - process it [18:14:32]SAM_PROTO_GetFieldsCounters [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 13 00 00 [18:14:32]Write to MH i2c: E2 08 00 4E 69 80 13 00 00 00 00 00 00 33 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 62 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 62 00 4E 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E3 02 00 0E 04 04 00 CF 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 6D [18:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E3 02 00 0E 04 04 00 CF 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 [18:14:32]wFMCommunicate OK [18:14:32]SAM_PROTO_GetFieldsCounters done [18:14:32]requested_item shift.num is exist - process it [18:14:32]requested_item shift.opened is exist - process it [18:14:32]req_shift_opened [18:14:32]FM_GetShiftState [18:14:32]SAM_PROTO_GetShiftState [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 13 01 00 [18:14:32]Write to MH i2c: E2 08 00 4F 69 80 13 01 00 00 00 00 00 35 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 4F 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 13 [18:14:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:14:32]wFMCommunicate OK [18:14:32]SAM_PROTO_GetShiftState done [18:14:32]FM_GetShiftState done [18:14:32]req_shift_opened done [18:14:32]requested_item shift.open_date is exist - process it [18:14:32]req_shift_open_date [18:14:32]req_shift_open_date done [18:14:32]produce_requested_data done [18:14:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189278,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:14:32]process_action_free close_receipt [18:14:32]json_value_free [18:14:32]json_value_free done [18:14:32]process_json_proto returns [18:14:32]Send response to host [18:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189278,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:14:32]free response buf [18:14:32]execute_script done [18:14:32]execute_script returns [18:14:32]free content buf [18:14:32]Sock 8.Close socket [18:14:32]Sock 8.Thread stoped [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:12]accept exits with 9 [18:15:12]New connection [18:15:12]New thread 3067215204 created [18:15:12]Thread 3067071844 joined [18:15:12]Waiting for new connection... [18:15:12] Sock 9.Parse request [18:15:12]Sock 9.Check first char [18:15:12]Sock 9.First char is OK [18:15:12]request: POST /json_proto HTTP/1.0 [18:15:12]Method: POST [18:15:12]URL: /json_proto [18:15:12]Method is POST - this is cgi request [18:15:12]url: /json_proto [18:15:12]query_string will be loaded in cgi processing [18:15:12]execute_cgi json_proto POST (null) [18:15:12]execute_cgi path=json_proto method=POST [18:15:12]POST find Content-Length [18:15:12]Host: 172.17.42.131:8080 [18:15:12]Content-Length: 688 [18:15:12]Content-Type: application/json [18:15:12] [18:15:12]POST finish read [18:15:12]Found Content-Length = 688 [18:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [18:15:12]execute_script... [18:15: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)211343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [18:15:12]POST & json_proto [18:15:12]process_json_proto [18:15:12]json parsed OK: [18:15:12]protocol is kg_v1.0 [18:15:12]action value=close_receipt [18:15:12]process_action close_receipt [18:15:12]cmd_close_receipt [18:15:12]MH_GetDate [18:15:12]Write to MH i2c: F0 00 00 50 69 A8 [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: F0 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: F0 09 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: F0 09 00 50 69 00 B4 8E 1A 67 A0 18 CA 66 5C [18:15:12]GetLastDocTimeStamp 1729793672 [18:15:12]current date 1729793716 [18:15:12]FM_GetShiftState [18:15:12]SAM_PROTO_GetShiftState [18:15:12]wFMCommunicate request_size=4 [18:15:12]MH_SAM_APDU [18:15:12]CAPDU: 80 13 01 00 [18:15:12]Write to MH i2c: E2 08 00 51 69 80 13 01 00 00 00 00 00 37 [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:12]Read from MH i2c: E2 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 51 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [18:15:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:15:12]wFMCommunicate OK [18:15:12]SAM_PROTO_GetShiftState done [18:15:12]FM_GetShiftState done [18:15:12]opened in 1729728961 [18:15:12]opened+sec_in_day 1729815361 [18:15:12]quantity*price = 160035 [18:15:12]sum+1 = 160037 [18:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 352 24.10.2024 18:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189279 ФПД: 275832342995124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181516&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189279&fm=275832342995124&tin=02508201610067®Number=0000000000100030&sum=160000 [18:15:13]StoreToDocumentArchive [18:15:13]shift 463 fd 189279 [18:15:13]save to /storage/0463/doc_00189279 [18:15:13]save last doc name /storage/0463/doc_00189279 to /storage/kkm_last_doc_name [18:15:13]save OK [18:15:13]Clear old archive folders... [18:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:15:13]tlvbuf is 01648700 [18:15:13]SAM_PROTO_ClearQueue [18:15:13]wFMCommunicate request_size=4 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 09 00 00 [18:15:13]Write to MH i2c: E2 08 00 5E 69 80 09 00 00 00 00 00 00 39 [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 5E 69 00 90 00 3B [18:15:13]RAPDU: 90 00 [18:15:13]wFMCommunicate OK [18:15:13]SAM_PROTO_ClearQueue done [18:15:13]KKMCreateOFDPacket [18:15:13]OFDProtocolAddRootSTLVToBuf [18:15:13]FM_MakeSignedData [18:15:13]FM_MakeSignedData [18:15:13]SAM_PROTO_SignData [18:15:13]wFMCommunicate request_size=4 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 0D 01 02 [18:15:13]Write to MH i2c: E2 08 00 5F 69 80 0D 01 02 00 00 00 00 41 [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 5F 69 00 90 00 3C [18:15:13]RAPDU: 90 00 [18:15:13]wFMCommunicate OK [18:15:13]wFMCommunicate request_size=255 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 60 01 00 00 F4 03 04 00 B4 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E3 02 [18:15:13]Write to MH i2c: E2 02 01 60 69 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 60 01 00 00 F4 03 04 00 B4 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E3 02 00 00 33 [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 60 69 00 90 00 3D [18:15:13]RAPDU: 90 00 [18:15:13]wFMCommunicate OK [18:15:13]wFMCommunicate request_size=16 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FA DE 38 D2 60 B4 [18:15:13]Write to MH i2c: E2 13 00 61 69 80 0D 02 02 0B 00 00 35 04 06 00 FA DE 38 D2 60 B4 00 00 8F [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 03 00 61 69 00 90 00 3E [18:15:13]RAPDU: 90 00 [18:15:13]wFMCommunicate OK [18:15:13]wFMCommunicate request_size=4 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 0D 03 02 [18:15:13]Write to MH i2c: E2 08 00 62 69 80 0D 03 02 00 00 00 00 46 [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 0B 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 0B 00 62 69 00 3F 17 0B BA 6F B1 8B 6A 90 00 77 [18:15:13]RAPDU: 3F 17 0B BA 6F B1 8B 6A 90 00 [18:15:13]wFMCommunicate OK [18:15:13]SAM_PROTO_SignData done [18:15:13]FM_MakeSignedData done [18:15:13]CreateOFDProtocolMessage [18:15:13]wFMCommunicate request_size=4 [18:15:13]MH_SAM_APDU [18:15:13]CAPDU: 80 11 00 00 [18:15:13]Write to MH i2c: E2 08 00 63 69 80 11 00 00 00 00 00 00 46 [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:13]Read from MH i2c: E2 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 17 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: E2 17 00 63 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [18:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:13]wFMCommunicate OK [18:15:13]CreateOFDProtocolMessage done [18:15:13]OFDSenderStorePacket 189279 [18:15:13]StoreOFDPacket docnum=189279 [18:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 99 4B 0D 01 DA C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 60 01 00 00 F4 03 04 00 B4 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E3 02 00 35 04 06 00 FA DE 38 D2 60 B4 3F 17 0B BA 6F B1 8B 6A [18:15:13]CheckFolder [18:15:13]dirname=/storage/ofd_packets [18:15:13]CheckFolder done [18:15:13]ProducePacketName [18:15:13]name=ofd_packets/00189279 [18:15:13]NVStorageSaveData ofd_packets/00189279 [18:15:13]File name is /storage/ofd_packets/00189279 [18:15:13]Write 307 bytes [18:15:13]NVStorageSaveData done [18:15:13]OFDSenderStorePacket done [18:15:13]KKMCreateOFDPacket done [18:15:13]NVStorageSaveData kkm_last_timestamp [18:15:13]File name is /storage/kkm_last_timestamp [18:15:13]Write 4 bytes [18:15:13]NVStorageSaveData done [18:15:13]ExternCall_PrintAddStr [18:15:13]wPrintStart [18:15:13]Write to MH i2c: 01 00 00 64 69 CD [18:15:13]Write i2c OK [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: 01 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: 01 07 00 [18:15:13]MH_I2C_Read... [18:15:13]Read from MH i2c: 01 07 00 64 69 00 00 00 00 00 FF 0F E2 [18:15:14]RasterBufferAndPrint [18:15:14]line Счет N : (1)211343 [18:15:14]line ИНН: 02508201610067 [18:15:14]line Контрольно-Кассовый Чек [18:15:14]line ПРОДАЖА [18:15:14]line ТРК (МРК, ГНК) : 11 [18:15:14]line Товар: 2710194210 [18:15:14]line D-ENERGY ДТ-К-5 [18:15:14]line 20.730 * 77.20 [18:15:14]line = 1600.36 [18:15:14]line НДС 12% НСП 1% [18:15:14]line > о реализуемом товаре [18:15:14]line ОКРУГЛЕНИЕ: -0.36 [18:15:14]line ИТОГО: 1600.00 [18:15:14]line Внесено: 1600.00 [18:15:14]line СДАЧА: 0.00 [18:15:14]line НСП 1% : 14.16 [18:15:14]line НДС 12% : 169.95 [18:15:14]line Наличными: 1600.00 [18:15:14]line Безнал.: 0.00 [18:15:14]line Место: АЗС № 86 "Партнер Нефть" [18:15:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:15:14]line СНО: Общий режим [18:15:14]line Чек 352 24.10.2024 18:15 [18:15:14]line Смена: 463 ФФД: 1.0 [18:15:14]line ЗНМ: 0300000155 [18:15:14]line РНМ: 0000000000100030 [18:15:14]line Версия ККМ: 001 [18:15:14]line ФМ: 0000000000965340 [18:15:14]line ФД: 189279 [18:15:14]line ФПД: 275832342995124 [18:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181516&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189279&fm=275832342995124&tin=02508201610067®Number=0000000000100030&sum=160000 [18:15:14]written 0, free lines is 4095 [18:15:14]OFD Sender: Processing packet 189279 [packets to send 1062, broken 1061] [18:15:14]ProducePacketName [18:15:14]name=ofd_packets/00189279 [18:15:14]OFD Sender: To server: pG, [18:15:14]CommunicateWithHost lk.salyk.kg:30040 [18:15:14]ConnectInit lk.salyk.kg [18:15:14]Connected sock=10 [18:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 99 4B 0D 01 DA C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 60 01 00 00 F4 03 04 00 B4 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E3 02 00 35 04 06 00 FA DE 38 D2 60 B4 3F 17 0B BA 6F B1 8B 6A [18:15:14]Write to MH i2c: 01 00 00 8F 69 F8 [18:15:14]Write i2c OK [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: 01 [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: 01 07 00 [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: 01 07 00 8F 69 00 00 00 00 00 5F 0C 6A [18:15:14]RasterBufferAndPrint [18:15:14]line [18:15:14]line [18:15:14]line [18:15:14]line [18:15:14]line [18:15:14]written 0, free lines is 3170 [18:15:14]MH_Cut [18:15:14]Write to MH i2c: D1 01 00 96 69 01 D1 [18:15:14]Write i2c OK [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: D1 [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: D1 01 00 [18:15:14]MH_I2C_Read... [18:15:14]Read from MH i2c: D1 01 00 96 69 00 D0 [18:15:14]Write to MH i2c: 01 00 00 97 69 00 [18:15:14]Write i2c OK [18:15:14]MH_I2C_Read... [18:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 3A 47 00 CE 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 39 36 35 33 34 30 10 04 04 00 5F E3 02 00 F4 03 04 00 9C 38 1A 67 B6 04 01 00 00 F2 3B B7 5F 9E 1F BF 8D [18:15:14]CommunicateWithHost err = 0 [18:15:14]CheckOFDResponse [18:15:14]1017 (14) - 77093643461234 [18:15:14]1041 (16) - 0000000000965340 [18:15:14]1040 (4) - 189279 [18:15:14]1012 (4) - 24.10.2024 12:07 [18:15:14]1206 (1) - 0 [18:15:14]OFD Sender: Remove packet 189279 [18:15:14]ProducePacketName [18:15:14]name=ofd_packets/00189279 [18:15:14]NVStorageDeleteData [18:15:15]OFD Sender: No OFD packet to send [18:15:15]*** Cut start [18:15:15]*** Partial cut [18:15:15]*** CUTSNS_PIN = 1 [18:15:15]*** CUTSNS_PIN = 0 [18:15:16]*** Brake cut motor [18:15:16]Read from MH i2c: 01 [18:15:16]MH_I2C_Read... [18:15:16]*** Stop cut motor [18:15:16]*** Cut end [18:15:16]Read from MH i2c: 01 07 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: 01 07 00 97 69 00 00 00 00 00 FF 0F 15 [18:15:16]process_action close_receipt done [18:15:16]requested_data is exist [18:15:16]produce_requested_data [18:15:16]requested_item fm.sn is exist - process it [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 11 00 00 [18:15:16]Write to MH i2c: E2 08 00 98 69 80 11 00 00 00 00 00 00 7B [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 17 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 17 00 98 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [18:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:16]wFMCommunicate OK [18:15:16]requested_item fd.num is exist - process it [18:15:16]SAM_PROTO_GetFieldsCounters [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 13 00 00 [18:15:16]Write to MH i2c: E2 08 00 99 69 80 13 00 00 00 00 00 00 7E [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 62 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 62 00 99 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E3 02 00 0E 04 04 00 CF 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 BC [18:15:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E3 02 00 0E 04 04 00 CF 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 [18:15:16]wFMCommunicate OK [18:15:16]SAM_PROTO_GetFieldsCounters done [18:15:16]requested_item shift.num is exist - process it [18:15:16]requested_item shift.opened is exist - process it [18:15:16]req_shift_opened [18:15:16]FM_GetShiftState [18:15:16]SAM_PROTO_GetShiftState [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 13 01 00 [18:15:16]Write to MH i2c: E2 08 00 9A 69 80 13 01 00 00 00 00 00 80 [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 0E 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 0E 00 9A 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [18:15:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:15:16]wFMCommunicate OK [18:15:16]SAM_PROTO_GetShiftState done [18:15:16]FM_GetShiftState done [18:15:16]req_shift_opened done [18:15:16]requested_item shift.open_date is exist - process it [18:15:16]req_shift_open_date [18:15:16]req_shift_open_date done [18:15:16]produce_requested_data done [18:15:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189279,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:15:16]process_action_free close_receipt [18:15:16]json_value_free [18:15:16]json_value_free done [18:15:16]process_json_proto returns [18:15:16]Send response to host [18:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189279,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:15:16]free response buf [18:15:16]execute_script done [18:15:16]execute_script returns [18:15:16]free content buf [18:15:16]Sock 9.Close socket [18:15:16]Sock 9.Thread stoped [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:27]accept exits with 8 [18:15:27]New connection [18:15:27]New thread 3067071844 created [18:15:27]Thread 3067215204 joined [18:15:27]Waiting for new connection... [18:15:27] Sock 8.Parse request [18:15:27]Sock 8.Check first char [18:15:27]Sock 8.First char is OK [18:15:27]request: POST /json_proto HTTP/1.0 [18:15:27]Method: POST [18:15:27]URL: /json_proto [18:15:27]Method is POST - this is cgi request [18:15:27]url: /json_proto [18:15:27]query_string will be loaded in cgi processing [18:15:27]execute_cgi json_proto POST (null) [18:15:27]execute_cgi path=json_proto method=POST [18:15:27]POST find Content-Length [18:15:27]Host: 172.17.42.131:8080 [18:15:27]Content-Length: 804 [18:15:27]Content-Type: application/json [18:15:27] [18:15:27]POST finish read [18:15:27]Found Content-Length = 804 [18:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1675799.800", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:27]execute_script... [18:15: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)211345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1675799.800", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:27]POST & json_proto [18:15:27]process_json_proto [18:15:27]json parsed OK: [18:15:27]protocol is kg_v1.0 [18:15:27]action value=close_receipt [18:15:27]process_action close_receipt [18:15:27]cmd_close_receipt [18:15:27]MH_GetDate [18:15:27]Write to MH i2c: F0 00 00 9B 69 F3 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: F0 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: F0 09 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: F0 09 00 9B 69 00 C3 8E 1A 67 A0 18 CA 66 B6 [18:15:27]GetLastDocTimeStamp 1729793716 [18:15:27]current date 1729793731 [18:15:27]FM_GetShiftState [18:15:27]SAM_PROTO_GetShiftState [18:15:27]wFMCommunicate request_size=4 [18:15:27]MH_SAM_APDU [18:15:27]CAPDU: 80 13 01 00 [18:15:27]Write to MH i2c: E2 08 00 9C 69 80 13 01 00 00 00 00 00 82 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:27]Read from MH i2c: E2 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 0E 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 0E 00 9C 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [18:15:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:15:27]wFMCommunicate OK [18:15:27]SAM_PROTO_GetShiftState done [18:15:27]FM_GetShiftState done [18:15:27]opened in 1729728961 [18:15:27]opened+sec_in_day 1729815361 [18:15:27]quantity*price = 0 [18:15:27]sum+1 = 1 [18:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 353 24.10.2024 18:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 1675799.800 ФМ: 0000000000965340 ФД: 189280 ФПД: 113402047561165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189280&fm=113402047561165&tin=02508201610067®Number=0000000000100030&sum=0 [18:15:28]StoreToDocumentArchive [18:15:28]shift 463 fd 189280 [18:15:28]save to /storage/0463/doc_00189280 [18:15:28]save last doc name /storage/0463/doc_00189280 to /storage/kkm_last_doc_name [18:15:28]save OK [18:15:28]Clear old archive folders... [18:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:28]tlvbuf is 0160C1C0 [18:15:28]SAM_PROTO_ClearQueue [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 09 00 00 [18:15:28]Write to MH i2c: E2 08 00 A9 69 80 09 00 00 00 00 00 00 84 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 A9 69 00 90 00 86 [18:15:28]RAPDU: 90 00 [18:15:28]wFMCommunicate OK [18:15:28]SAM_PROTO_ClearQueue done [18:15:28]KKMCreateOFDPacket [18:15:28]OFDProtocolAddRootSTLVToBuf [18:15:28]FM_MakeSignedData [18:15:28]FM_MakeSignedData [18:15:28]SAM_PROTO_SignData [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 0D 01 02 [18:15:28]Write to MH i2c: E2 08 00 AA 69 80 0D 01 02 00 00 00 00 8C [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 AA 69 00 90 00 87 [18:15:28]RAPDU: 90 00 [18:15:28]wFMCommunicate OK [18:15:28]wFMCommunicate request_size=255 [18:15:28]MH_SAM_APDU [18:15: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 33 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 61 01 00 00 F4 03 04 00 C3 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E3 02 00 35 04 06 00 67 [18:15:28]Write to MH i2c: E2 02 01 AB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 61 01 00 00 F4 03 04 00 C3 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E3 02 00 35 04 06 00 67 00 00 0A [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 AB 69 00 90 00 88 [18:15:28]RAPDU: 90 00 [18:15:28]wFMCommunicate OK [18:15:28]wFMCommunicate request_size=10 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 0D 02 02 05 23 78 C2 FD CD [18:15:28]Write to MH i2c: E2 0D 00 AC 69 80 0D 02 02 05 00 23 78 C2 FD CD 00 00 C0 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 03 00 AC 69 00 90 00 89 [18:15:28]RAPDU: 90 00 [18:15:28]wFMCommunicate OK [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 0D 03 02 [18:15:28]Write to MH i2c: E2 08 00 AD 69 80 0D 03 02 00 00 00 00 91 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0B 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0B 00 AD 69 00 05 22 47 E0 B2 29 17 1C 90 00 EE [18:15:28]RAPDU: 05 22 47 E0 B2 29 17 1C 90 00 [18:15:28]wFMCommunicate OK [18:15:28]SAM_PROTO_SignData done [18:15:28]FM_MakeSignedData done [18:15:28]CreateOFDProtocolMessage [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 11 00 00 [18:15:28]Write to MH i2c: E2 08 00 AE 69 80 11 00 00 00 00 00 00 91 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 17 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 17 00 AE 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [18:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:28]wFMCommunicate OK [18:15:28]CreateOFDProtocolMessage done [18:15:28]OFDSenderStorePacket 189280 [18:15:28]StoreOFDPacket docnum=189280 [18:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 CD 07 01 E3 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 61 01 00 00 F4 03 04 00 C3 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E3 02 00 35 04 06 00 67 23 78 C2 FD CD 05 22 47 E0 B2 29 17 1C [18:15:28]CheckFolder [18:15:28]dirname=/storage/ofd_packets [18:15:28]CheckFolder done [18:15:28]ProducePacketName [18:15:28]name=ofd_packets/00189280 [18:15:28]NVStorageSaveData ofd_packets/00189280 [18:15:28]File name is /storage/ofd_packets/00189280 [18:15:28]Write 301 bytes [18:15:28]NVStorageSaveData done [18:15:28]OFDSenderStorePacket done [18:15:28]KKMCreateOFDPacket done [18:15:28]NVStorageSaveData kkm_last_timestamp [18:15:28]File name is /storage/kkm_last_timestamp [18:15:28]Write 4 bytes [18:15:28]NVStorageSaveData done [18:15:28]ExternCall_PrintAddStr [18:15:28]wPrintStart [18:15:28]Write to MH i2c: 01 00 00 AF 69 18 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: 01 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: 01 07 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: 01 07 00 AF 69 00 00 00 00 00 FF 0F 2D [18:15:28]RasterBufferAndPrint [18:15:28]line Счет N : (1)211345 [18:15:28]line ИНН: 02508201610067 [18:15:28]line Контрольно-Кассовый Чек [18:15:28]line ПРОДАЖА [18:15:28]line ТРК (МРК, ГНК) : 33 [18:15:28]line Товар: 2710124500 [18:15:28]line Аи-95-К-3 [18:15:28]line 40.000 * 0.00 [18:15:28]line = 0.00 [18:15:28]line НДС 12% НСП 1% [18:15:28]line > о реализуемом товаре [18:15:28]line ИТОГО: 0.00 [18:15:28]line НСП 1% : 0.00 [18:15:28]line НДС 12% : 0.00 [18:15:28]line Наличными: 0.00 [18:15:28]line Безнал.: 0.00 [18:15:28]line Место: АЗС № 86 "Партнер Нефть" [18:15:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:15:28]line СНО: Общий режим [18:15:28]line Чек 353 24.10.2024 18:15 [18:15:28]line Смена: 463 ФФД: 1.0 [18:15:28]line ЗНМ: 0300000155 [18:15:28]line РНМ: 0000000000100030 [18:15:28]line Версия ККМ: 001 [18:15:28]line Талоны: Топливные Талоны [18:15:28]line 1675799.800 [18:15:28]line ФМ: 0000000000965340 [18:15:28]line ФД: 189280 [18:15:28]line ФПД: 113402047561165 [18:15:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189280&fm=113402047561165&tin=02508201610067®Number=0000000000100030&sum=0 [18:15:28]OFD Sender: Processing packet 189280 [packets to send 1062, broken 1061] [18:15:28]ProducePacketName [18:15:28]name=ofd_packets/00189280 [18:15:28]OFD Sender: To server: pG, [18:15:28]CommunicateWithHost lk.salyk.kg:30040 [18:15:28]ConnectInit lk.salyk.kg [18:15:28]written 0, free lines is 4095 [18:15:29]Connected sock=9 [18:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 CD 07 01 E3 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 61 01 00 00 F4 03 04 00 C3 8E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E3 02 00 35 04 06 00 67 23 78 C2 FD CD 05 22 47 E0 B2 29 17 1C [18:15:29]Write to MH i2c: 01 00 00 D9 69 42 [18:15:29]Write i2c OK [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: 01 [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: 01 07 00 [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: 01 07 00 D9 69 00 00 00 00 00 7B 0C D0 [18:15:29]RasterBufferAndPrint [18:15:29]line [18:15:29]line [18:15:29]line [18:15:29]line [18:15:29]line [18:15:29]written 0, free lines is 3199 [18:15:29]MH_Cut [18:15:29]Write to MH i2c: D1 01 00 E0 69 01 1B [18:15:29]Write i2c OK [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: D1 [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: D1 01 00 [18:15:29]MH_I2C_Read... [18:15:29]Read from MH i2c: D1 01 00 E0 69 00 1A [18:15:29]Write to MH i2c: 01 00 00 E1 69 4A [18:15:29]Write i2c OK [18:15:29]MH_I2C_Read... [18:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 57 DB 47 00 D1 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E3 02 00 F4 03 04 00 AB 38 1A 67 B6 04 01 00 00 6B FD 6B FC EA 46 1B 91 [18:15:29]CommunicateWithHost err = 0 [18:15:29]CheckOFDResponse [18:15:29]1017 (14) - 77093643461234 [18:15:29]1041 (16) - 0000000000965340 [18:15:29]1040 (4) - 189280 [18:15:29]1012 (4) - 24.10.2024 12:08 [18:15:29]1206 (1) - 0 [18:15:29]OFD Sender: Remove packet 189280 [18:15:29]ProducePacketName [18:15:29]name=ofd_packets/00189280 [18:15:29]NVStorageDeleteData [18:15:30]OFD Sender: No OFD packet to send [18:15:30]*** Cut start [18:15:30]*** Partial cut [18:15:30]*** CUTSNS_PIN = 1 [18:15:30]*** CUTSNS_PIN = 0 [18:15:30]*** Brake cut motor [18:15:31]Read from MH i2c: 01 [18:15:31]MH_I2C_Read... [18:15:31]*** Stop cut motor [18:15:31]*** Cut end [18:15:31]Read from MH i2c: 01 07 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: 01 07 00 E1 69 00 00 00 00 00 FF 0F 5F [18:15:31]process_action close_receipt done [18:15:31]requested_data is exist [18:15:31]produce_requested_data [18:15:31]requested_item fm.sn is exist - process it [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 11 00 00 [18:15:31]Write to MH i2c: E2 08 00 E2 69 80 11 00 00 00 00 00 00 C5 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 17 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 17 00 E2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [18:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:31]wFMCommunicate OK [18:15:31]requested_item fd.num is exist - process it [18:15:31]SAM_PROTO_GetFieldsCounters [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 13 00 00 [18:15:31]Write to MH i2c: E2 08 00 E3 69 80 13 00 00 00 00 00 00 C8 [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 62 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 62 00 E3 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E3 02 00 0E 04 04 00 CF 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 0A [18:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E3 02 00 0E 04 04 00 CF 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 [18:15:31]wFMCommunicate OK [18:15:31]SAM_PROTO_GetFieldsCounters done [18:15:31]requested_item shift.num is exist - process it [18:15:31]requested_item shift.opened is exist - process it [18:15:31]req_shift_opened [18:15:31]FM_GetShiftState [18:15:31]SAM_PROTO_GetShiftState [18:15:31]wFMCommunicate request_size=4 [18:15:31]MH_SAM_APDU [18:15:31]CAPDU: 80 13 01 00 [18:15:31]Write to MH i2c: E2 08 00 E4 69 80 13 01 00 00 00 00 00 CA [18:15:31]Write i2c OK [18:15:31]MH_I2C_Read... [18:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:31]Read from MH i2c: E2 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 0E 00 [18:15:31]MH_I2C_Read... [18:15:31]Read from MH i2c: E2 0E 00 E4 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A8 [18:15:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:15:31]wFMCommunicate OK [18:15:31]SAM_PROTO_GetShiftState done [18:15:31]FM_GetShiftState done [18:15:31]req_shift_opened done [18:15:31]requested_item shift.open_date is exist - process it [18:15:31]req_shift_open_date [18:15:31]req_shift_open_date done [18:15:31]produce_requested_data done [18:15:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189280,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:15:31]process_action_free close_receipt [18:15:31]json_value_free [18:15:31]json_value_free done [18:15:31]process_json_proto returns [18:15:31]Send response to host [18:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189280,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:15:31]free response buf [18:15:31]execute_script done [18:15:31]execute_script returns [18:15:31]free content buf [18:15:31]Sock 8.Close socket [18:15:31]Sock 8.Thread stoped [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:38]accept exits with 10 [18:16:38]New connection [18:16:38]New thread 3067215204 created [18:16:38]Thread 3067071844 joined [18:16:38]Waiting for new connection... [18:16:38] Sock 10.Parse request [18:16:38]Sock 10.Check first char [18:16:38]Sock 10.First char is OK [18:16:38]request: POST /json_proto HTTP/1.0 [18:16:38]Method: POST [18:16:38]URL: /json_proto [18:16:38]Method is POST - this is cgi request [18:16:38]url: /json_proto [18:16:38]query_string will be loaded in cgi processing [18:16:38]execute_cgi json_proto POST (null) [18:16:38]execute_cgi path=json_proto method=POST [18:16:38]POST find Content-Length [18:16:38]Host: 172.17.42.131:8080 [18:16:38]Content-Length: 684 [18:16:38]Content-Type: application/json [18:16:38] [18:16:38]POST finish read [18:16:38]Found Content-Length = 684 [18:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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:16:38]execute_script... [18: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)211346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "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:16:38]POST & json_proto [18:16:38]process_json_proto [18:16:38]json parsed OK: [18:16:38]protocol is kg_v1.0 [18:16:38]action value=close_receipt [18:16:38]process_action close_receipt [18:16:38]cmd_close_receipt [18:16:38]MH_GetDate [18:16:38]Write to MH i2c: F0 00 00 E5 69 3D [18:16:38]Write i2c OK [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 09 00 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 09 00 E5 69 00 0A 8F 1A 67 A0 18 CA 66 48 [18:16:38]GetLastDocTimeStamp 1729793731 [18:16:38]current date 1729793802 [18:16:38]FM_GetShiftState [18:16:38]SAM_PROTO_GetShiftState [18:16:38]wFMCommunicate request_size=4 [18:16:38]MH_SAM_APDU [18:16:38]CAPDU: 80 13 01 00 [18:16:38]Write to MH i2c: E2 08 00 E6 69 80 13 01 00 00 00 00 00 CC [18:16:38]Write i2c OK [18:16:38]MH_I2C_Read... [18:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:38]Read from MH i2c: E2 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: E2 0E 00 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: E2 0E 00 E6 69 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AA [18:16:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:16:38]wFMCommunicate OK [18:16:38]SAM_PROTO_GetShiftState done [18:16:38]FM_GetShiftState done [18:16:38]opened in 1729728961 [18:16:38]opened+sec_in_day 1729815361 [18:16:38]quantity*price = 90015 [18:16:38]sum+1 = 90016 [18:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 354 24.10.2024 18:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189281 ФПД: 75608773550601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189281&fm=75608773550601&tin=02508201610067®Number=0000000000100030&sum=90000 [18:16:39]StoreToDocumentArchive [18:16:39]shift 463 fd 189281 [18:16:39]save to /storage/0463/doc_00189281 [18:16:39]save last doc name /storage/0463/doc_00189281 to /storage/kkm_last_doc_name [18:16:39]save OK [18:16:39]Clear old archive folders... [18:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:16:39]tlvbuf is 015BEDC0 [18:16:39]SAM_PROTO_ClearQueue [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 09 00 00 [18:16:39]Write to MH i2c: E2 08 00 F3 69 80 09 00 00 00 00 00 00 CE [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 F3 69 00 90 00 D0 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]SAM_PROTO_ClearQueue done [18:16:39]KKMCreateOFDPacket [18:16:39]OFDProtocolAddRootSTLVToBuf [18:16:39]FM_MakeSignedData [18:16:39]FM_MakeSignedData [18:16:39]SAM_PROTO_SignData [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 01 02 [18:16:39]Write to MH i2c: E2 08 00 F4 69 80 0D 01 02 00 00 00 00 D6 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 F4 69 00 90 00 D1 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=255 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0A 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E3 02 [18:16:39]Write to MH i2c: E2 02 01 F5 69 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0A 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E3 02 00 00 5E [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 F5 69 00 90 00 D2 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=16 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 44 C4 0A 16 E2 09 [18:16:39]Write to MH i2c: E2 13 00 F6 69 80 0D 02 02 0B 00 00 35 04 06 00 44 C4 0A 16 E2 09 00 00 41 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 F6 69 00 90 00 D3 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 03 02 [18:16:39]Write to MH i2c: E2 08 00 F7 69 80 0D 03 02 00 00 00 00 DB [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 0B 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 0B 00 F7 69 00 FE 08 99 40 B3 EE D5 DE 90 00 0F [18:16:39]RAPDU: FE 08 99 40 B3 EE D5 DE 90 00 [18:16:39]wFMCommunicate OK [18:16:39]SAM_PROTO_SignData done [18:16:39]FM_MakeSignedData done [18:16:39]CreateOFDProtocolMessage [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 11 00 00 [18:16:39]Write to MH i2c: E2 08 00 F8 69 80 11 00 00 00 00 00 00 DB [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 17 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 17 00 F8 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [18:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:39]wFMCommunicate OK [18:16:39]CreateOFDProtocolMessage done [18:16:39]OFDSenderStorePacket 189281 [18:16:39]StoreOFDPacket docnum=189281 [18:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 20 0D 01 55 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0A 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E3 02 00 35 04 06 00 44 C4 0A 16 E2 09 FE 08 99 40 B3 EE D5 DE [18:16:39]CheckFolder [18:16:39]dirname=/storage/ofd_packets [18:16:39]CheckFolder done [18:16:39]ProducePacketName [18:16:39]name=ofd_packets/00189281 [18:16:39]NVStorageSaveData ofd_packets/00189281 [18:16:39]File name is /storage/ofd_packets/00189281 [18:16:39]Write 307 bytes [18:16:39]NVStorageSaveData done [18:16:39]OFDSenderStorePacket done [18:16:39]KKMCreateOFDPacket done [18:16:39]NVStorageSaveData kkm_last_timestamp [18:16:39]File name is /storage/kkm_last_timestamp [18:16:39]Write 4 bytes [18:16:39]NVStorageSaveData done [18:16:40]ExternCall_PrintAddStr [18:16:40]wPrintStart [18:16:40]Write to MH i2c: 01 00 00 F9 69 62 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 F9 69 00 00 00 00 00 FF 0F 77 [18:16:40]RasterBufferAndPrint [18:16:40]line Счет N : (1)211346 [18:16:40]line ИНН: 02508201610067 [18:16:40]line Контрольно-Кассовый Чек [18:16:40]line ПРОДАЖА [18:16:40]line ТРК (МРК, ГНК) : 41 [18:16:40]line Товар: 2710194210 [18:16:40]line D-ENERGY ДТ-К-5 [18:16:40]line 11.660 * 77.20 [18:16:40]line = 900.15 [18:16:40]line НДС 12% НСП 1% [18:16:40]line > о реализуемом товаре [18:16:40]line ОКРУГЛЕНИЕ: -0.15 [18:16:40]line ИТОГО: 900.00 [18:16:40]line Внесено: 900.00 [18:16:40]line СДАЧА: 0.00 [18:16:40]line НСП 1% : 7.97 [18:16:40]line НДС 12% : 95.59 [18:16:40]line Наличными: 900.00 [18:16:40]line Безнал.: 0.00 [18:16:40]line Место: АЗС № 86 "Партнер Нефть" [18:16:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:16:40]line СНО: Общий режим [18:16:40]line Чек 354 24.10.2024 18:16 [18:16:40]line Смена: 463 ФФД: 1.0 [18:16:40]line ЗНМ: 0300000155 [18:16:40]line РНМ: 0000000000100030 [18:16:40]line Версия ККМ: 001 [18:16:40]line ФМ: 0000000000965340 [18:16:40]line ФД: 189281 [18:16:40]line ФПД: 75608773550601 [18:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189281&fm=75608773550601&tin=02508201610067®Number=0000000000100030&sum=90000 [18:16:40]written 0, free lines is 4095 [18:16:40]OFD Sender: Processing packet 189281 [packets to send 1062, broken 1061] [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00189281 [18:16:40]OFD Sender: To server: pG, [18:16:40]CommunicateWithHost lk.salyk.kg:30040 [18:16:40]ConnectInit lk.salyk.kg [18:16:40]Connected sock=9 [18:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 20 0D 01 55 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0A 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E3 02 00 35 04 06 00 44 C4 0A 16 E2 09 FE 08 99 40 B3 EE D5 DE [18:16:40]Write to MH i2c: 01 00 00 24 6A 8E [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 24 6A 00 00 00 00 00 5D 0C FE [18:16:40]RasterBufferAndPrint [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]line [18:16:40]written 0, free lines is 3168 [18:16:40]MH_Cut [18:16:40]Write to MH i2c: D1 01 00 2B 6A 01 67 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: D1 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: D1 01 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: D1 01 00 2B 6A 00 66 [18:16:40]Write to MH i2c: 01 00 00 2C 6A 96 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 B1 47 00 2B 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 39 36 35 33 34 30 10 04 04 00 61 E3 02 00 F4 03 04 00 F2 38 1A 67 B6 04 01 00 00 DF E7 53 0B 0C 5E 04 15 [18:16:40]CommunicateWithHost err = 0 [18:16:40]CheckOFDResponse [18:16:40]1017 (14) - 77093643461234 [18:16:40]1041 (16) - 0000000000965340 [18:16:40]1040 (4) - 189281 [18:16:40]1012 (4) - 24.10.2024 12:09 [18:16:40]1206 (1) - 0 [18:16:40]OFD Sender: Remove packet 189281 [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00189281 [18:16:40]NVStorageDeleteData [18:16:41]OFD Sender: No OFD packet to send [18:16:41]*** Cut start [18:16:41]*** Partial cut [18:16:41]*** CUTSNS_PIN = 1 [18:16:41]*** CUTSNS_PIN = 0 [18:16:42]*** Brake cut motor [18:16:42]Read from MH i2c: 01 [18:16:42]MH_I2C_Read... [18:16:42]*** Stop cut motor [18:16:42]*** Cut end [18:16:42]Read from MH i2c: 01 07 00 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: 01 07 00 2C 6A 00 00 00 00 00 FF 0F AB [18:16:42]process_action close_receipt done [18:16:42]requested_data is exist [18:16:42]produce_requested_data [18:16:42]requested_item fm.sn is exist - process it [18:16:42]wFMCommunicate request_size=4 [18:16:42]MH_SAM_APDU [18:16:42]CAPDU: 80 11 00 00 [18:16:42]Write to MH i2c: E2 08 00 2D 6A 80 11 00 00 00 00 00 00 11 [18:16:42]Write i2c OK [18:16:42]MH_I2C_Read... [18:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:42]Read from MH i2c: E2 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 17 00 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 17 00 2D 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [18:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:42]wFMCommunicate OK [18:16:42]requested_item fd.num is exist - process it [18:16:42]SAM_PROTO_GetFieldsCounters [18:16:42]wFMCommunicate request_size=4 [18:16:42]MH_SAM_APDU [18:16:42]CAPDU: 80 13 00 00 [18:16:42]Write to MH i2c: E2 08 00 2E 6A 80 13 00 00 00 00 00 00 14 [18:16:42]Write i2c OK [18:16:42]MH_I2C_Read... [18:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:42]Read from MH i2c: E2 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 62 00 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 62 00 2E 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E3 02 00 0E 04 04 00 CF 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 5A [18:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E3 02 00 0E 04 04 00 CF 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 [18:16:42]wFMCommunicate OK [18:16:42]SAM_PROTO_GetFieldsCounters done [18:16:42]requested_item shift.num is exist - process it [18:16:42]requested_item shift.opened is exist - process it [18:16:42]req_shift_opened [18:16:42]FM_GetShiftState [18:16:42]SAM_PROTO_GetShiftState [18:16:42]wFMCommunicate request_size=4 [18:16:42]MH_SAM_APDU [18:16:42]CAPDU: 80 13 01 00 [18:16:42]Write to MH i2c: E2 08 00 2F 6A 80 13 01 00 00 00 00 00 16 [18:16:42]Write i2c OK [18:16:42]MH_I2C_Read... [18:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:42]Read from MH i2c: E2 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 0E 00 [18:16:42]MH_I2C_Read... [18:16:42]Read from MH i2c: E2 0E 00 2F 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F4 [18:16:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:16:42]wFMCommunicate OK [18:16:42]SAM_PROTO_GetShiftState done [18:16:42]FM_GetShiftState done [18:16:42]req_shift_opened done [18:16:42]requested_item shift.open_date is exist - process it [18:16:42]req_shift_open_date [18:16:42]req_shift_open_date done [18:16:42]produce_requested_data done [18:16:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189281,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:16:42]process_action_free close_receipt [18:16:42]json_value_free [18:16:42]json_value_free done [18:16:42]process_json_proto returns [18:16:42]Send response to host [18:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189281,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:16:42]free response buf [18:16:42]execute_script done [18:16:42]execute_script returns [18:16:42]free content buf [18:16:42]Sock 10.Close socket [18:16:42]Sock 10.Thread stoped [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:54]accept exits with 8 [18:17:54]New connection [18:17:54]New thread 3067071844 created [18:17:54]Thread 3067215204 joined [18:17:54]Waiting for new connection... [18:17:54] Sock 8.Parse request [18:17:54]Sock 8.Check first char [18:17:54]Sock 8.First char is OK [18:17:54]request: POST /json_proto HTTP/1.0 [18:17:54]Method: POST [18:17:54]URL: /json_proto [18:17:54]Method is POST - this is cgi request [18:17:54]url: /json_proto [18:17:54]query_string will be loaded in cgi processing [18:17:54]execute_cgi json_proto POST (null) [18:17:54]execute_cgi path=json_proto method=POST [18:17:54]POST find Content-Length [18:17:54]Host: 172.17.42.131:8080 [18:17:54]Content-Length: 677 [18:17:54]Content-Type: application/json [18:17:54] [18:17:54]POST finish read [18:17:54]Found Content-Length = 677 [18:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [18:17:54]execute_script... [18:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [18:17:54]POST & json_proto [18:17:54]process_json_proto [18:17:54]json parsed OK: [18:17:54]protocol is kg_v1.0 [18:17:54]action value=close_receipt [18:17:54]process_action close_receipt [18:17:54]cmd_close_receipt [18:17:54]MH_GetDate [18:17:54]Write to MH i2c: F0 00 00 30 6A 89 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: F0 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: F0 09 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: F0 09 00 30 6A 00 57 8F 1A 67 A0 18 CA 66 E1 [18:17:54]GetLastDocTimeStamp 1729793802 [18:17:54]current date 1729793879 [18:17:54]FM_GetShiftState [18:17:54]SAM_PROTO_GetShiftState [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 01 00 [18:17:54]Write to MH i2c: E2 08 00 31 6A 80 13 01 00 00 00 00 00 18 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 31 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F6 [18:17:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetShiftState done [18:17:54]FM_GetShiftState done [18:17:54]opened in 1729728961 [18:17:54]opened+sec_in_day 1729815361 [18:17:54]quantity*price = 50010 [18:17:54]sum+1 = 50012 [18:17: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 355 24.10.2024 18:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189282 ФПД: 66222125460010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181759&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189282&fm=66222125460010&tin=02508201610067®Number=0000000000100030&sum=50000 [18:17:56]StoreToDocumentArchive [18:17:56]shift 463 fd 189282 [18:17:56]save to /storage/0463/doc_00189282 [18:17:56]save last doc name /storage/0463/doc_00189282 to /storage/kkm_last_doc_name [18:17:56]save OK [18:17:56]Clear old archive folders... [18:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:56]tlvbuf is 015BE8D0 [18:17:56]SAM_PROTO_ClearQueue [18:17:56]wFMCommunicate request_size=4 [18:17:56]MH_SAM_APDU [18:17:56]CAPDU: 80 09 00 00 [18:17:56]Write to MH i2c: E2 08 00 3E 6A 80 09 00 00 00 00 00 00 1A [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 3E 6A 00 90 00 1C [18:17:56]RAPDU: 90 00 [18:17:56]wFMCommunicate OK [18:17:56]SAM_PROTO_ClearQueue done [18:17:56]KKMCreateOFDPacket [18:17:56]OFDProtocolAddRootSTLVToBuf [18:17:56]FM_MakeSignedData [18:17:56]FM_MakeSignedData [18:17:56]SAM_PROTO_SignData [18:17:56]wFMCommunicate request_size=4 [18:17:56]MH_SAM_APDU [18:17:56]CAPDU: 80 0D 01 02 [18:17:56]Write to MH i2c: E2 08 00 3F 6A 80 0D 01 02 00 00 00 00 22 [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 3F 6A 00 90 00 1D [18:17:56]RAPDU: 90 00 [18:17:56]wFMCommunicate OK [18:17:56]wFMCommunicate request_size=255 [18:17:56]MH_SAM_APDU [18:17: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 33 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 63 01 00 00 F4 03 04 00 57 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E3 02 00 35 04 06 00 3C [18:17:56]Write to MH i2c: E2 02 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 63 01 00 00 F4 03 04 00 57 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E3 02 00 35 04 06 00 3C 00 00 8B [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 40 6A 00 90 00 1E [18:17:56]RAPDU: 90 00 [18:17:56]wFMCommunicate OK [18:17:56]wFMCommunicate request_size=10 [18:17:56]MH_SAM_APDU [18:17:56]CAPDU: 80 0D 02 02 05 3A 8A 43 AA 2A [18:17:56]Write to MH i2c: E2 0D 00 41 6A 80 0D 02 02 05 00 3A 8A 43 AA 2A 00 00 0A [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 03 00 41 6A 00 90 00 1F [18:17:56]RAPDU: 90 00 [18:17:56]wFMCommunicate OK [18:17:56]wFMCommunicate request_size=4 [18:17:56]MH_SAM_APDU [18:17:56]CAPDU: 80 0D 03 02 [18:17:56]Write to MH i2c: E2 08 00 42 6A 80 0D 03 02 00 00 00 00 27 [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 0B 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 0B 00 42 6A 00 BA D7 E4 61 A9 BE 4B 5A 90 00 0A [18:17:56]RAPDU: BA D7 E4 61 A9 BE 4B 5A 90 00 [18:17:56]wFMCommunicate OK [18:17:56]SAM_PROTO_SignData done [18:17:56]FM_MakeSignedData done [18:17:56]CreateOFDProtocolMessage [18:17:56]wFMCommunicate request_size=4 [18:17:56]MH_SAM_APDU [18:17:56]CAPDU: 80 11 00 00 [18:17:56]Write to MH i2c: E2 08 00 43 6A 80 11 00 00 00 00 00 00 27 [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:56]Read from MH i2c: E2 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 17 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: E2 17 00 43 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [18:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:17:56]wFMCommunicate OK [18:17:56]CreateOFDProtocolMessage done [18:17:56]OFDSenderStorePacket 189282 [18:17:56]StoreOFDPacket docnum=189282 [18:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 AF 07 01 03 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 33 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 63 01 00 00 F4 03 04 00 57 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E3 02 00 35 04 06 00 3C 3A 8A 43 AA 2A BA D7 E4 61 A9 BE 4B 5A [18:17:56]CheckFolder [18:17:56]dirname=/storage/ofd_packets [18:17:56]CheckFolder done [18:17:56]ProducePacketName [18:17:56]name=ofd_packets/00189282 [18:17:56]NVStorageSaveData ofd_packets/00189282 [18:17:56]File name is /storage/ofd_packets/00189282 [18:17:56]Write 301 bytes [18:17:56]NVStorageSaveData done [18:17:56]OFDSenderStorePacket done [18:17:56]KKMCreateOFDPacket done [18:17:56]NVStorageSaveData kkm_last_timestamp [18:17:56]File name is /storage/kkm_last_timestamp [18:17:56]Write 4 bytes [18:17:56]NVStorageSaveData done [18:17:56]ExternCall_PrintAddStr [18:17:56]wPrintStart [18:17:56]Write to MH i2c: 01 00 00 44 6A AE [18:17:56]Write i2c OK [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: 01 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: 01 07 00 [18:17:56]MH_I2C_Read... [18:17:56]Read from MH i2c: 01 07 00 44 6A 00 00 00 00 00 FF 0F C3 [18:17:56]RasterBufferAndPrint [18:17:56]line Счет N : (1)211347 [18:17:56]line ИНН: 02508201610067 [18:17:56]line Контрольно-Кассовый Чек [18:17:56]line ПРОДАЖА [18:17:56]line ТРК (МРК, ГНК) : 13 [18:17:56]line Товар: 2710124500 [18:17:56]line Аи-95-К-3 [18:17:56]line 6.740 * 74.20 [18:17:56]line = 500.11 [18:17:56]line НДС 12% НСП 1% [18:17:56]line > о реализуемом товаре [18:17:56]line ОКРУГЛЕНИЕ: -0.11 [18:17:56]line ИТОГО: 500.00 [18:17:56]line Внесено: 500.00 [18:17:56]line СДАЧА: 0.00 [18:17:56]line НСП 1% : 4.43 [18:17:56]line НДС 12% : 53.11 [18:17:56]line Наличными: 500.00 [18:17:56]line Безнал.: 0.00 [18:17:56]line Место: АЗС № 86 "Партнер Нефть" [18:17:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:17:56]line СНО: Общий режим [18:17:56]line Чек 355 24.10.2024 18:17 [18:17:56]line Смена: 463 ФФД: 1.0 [18:17:56]line ЗНМ: 0300000155 [18:17:56]line РНМ: 0000000000100030 [18:17:56]line Версия ККМ: 001 [18:17:56]line ФМ: 0000000000965340 [18:17:56]line ФД: 189282 [18:17:56]line ФПД: 66222125460010 [18:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181759&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189282&fm=66222125460010&tin=02508201610067®Number=0000000000100030&sum=50000 [18:17:56]written 0, free lines is 4095 [18:17:56]OFD Sender: Processing packet 189282 [packets to send 1062, broken 1061] [18:17:56]ProducePacketName [18:17:56]name=ofd_packets/00189282 [18:17:56]OFD Sender: To server: pG, [18:17:56]CommunicateWithHost lk.salyk.kg:30040 [18:17:56]ConnectInit lk.salyk.kg [18:17:56]Connected sock=10 [18:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 67 AF 07 01 03 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 33 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 63 01 00 00 F4 03 04 00 57 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E3 02 00 35 04 06 00 3C 3A 8A 43 AA 2A BA D7 E4 61 A9 BE 4B 5A [18:17:57]Write to MH i2c: 01 00 00 6F 6A D9 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: 01 07 00 6F 6A 00 00 00 00 00 58 0C 44 [18:17:57]RasterBufferAndPrint [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]line [18:17:57]written 0, free lines is 3164 [18:17:57]MH_Cut [18:17:57]Write to MH i2c: D1 01 00 76 6A 01 B2 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 01 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: D1 01 00 76 6A 00 B1 [18:17:57]Write to MH i2c: 01 00 00 77 6A E1 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D6 66 47 00 9F 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 39 36 35 33 34 30 10 04 04 00 62 E3 02 00 F4 03 04 00 3E 39 1A 67 B6 04 01 00 00 F0 32 E0 44 58 B2 CA 56 [18:17:57]CommunicateWithHost err = 0 [18:17:57]CheckOFDResponse [18:17:57]1017 (14) - 77093643461234 [18:17:57]1041 (16) - 0000000000965340 [18:17:57]1040 (4) - 189282 [18:17:57]1012 (4) - 24.10.2024 12:10 [18:17:57]1206 (1) - 0 [18:17:57]OFD Sender: Remove packet 189282 [18:17:57]ProducePacketName [18:17:57]name=ofd_packets/00189282 [18:17:57]NVStorageDeleteData [18:17:57]OFD Sender: No OFD packet to send [18:17:58]*** Cut start [18:17:58]*** Partial cut [18:17:58]*** CUTSNS_PIN = 1 [18:17:58]*** CUTSNS_PIN = 0 [18:17:58]*** Brake cut motor [18:17:59]Read from MH i2c: 01 [18:17:59]MH_I2C_Read... [18:17:59]*** Stop cut motor [18:17:59]*** Cut end [18:17:59]Read from MH i2c: 01 07 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 77 6A 00 00 00 00 00 FF 0F F6 [18:17:59]process_action close_receipt done [18:17:59]requested_data is exist [18:17:59]produce_requested_data [18:17:59]requested_item fm.sn is exist - process it [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 11 00 00 [18:17:59]Write to MH i2c: E2 08 00 78 6A 80 11 00 00 00 00 00 00 5C [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 78 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [18:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:17:59]wFMCommunicate OK [18:17:59]requested_item fd.num is exist - process it [18:17:59]SAM_PROTO_GetFieldsCounters [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 13 00 00 [18:17:59]Write to MH i2c: E2 08 00 79 6A 80 13 00 00 00 00 00 00 5F [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 62 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 62 00 79 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E3 02 00 0E 04 04 00 CF 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 A9 [18:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E3 02 00 0E 04 04 00 CF 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 [18:17:59]wFMCommunicate OK [18:17:59]SAM_PROTO_GetFieldsCounters done [18:17:59]requested_item shift.num is exist - process it [18:17:59]requested_item shift.opened is exist - process it [18:17:59]req_shift_opened [18:17:59]FM_GetShiftState [18:17:59]SAM_PROTO_GetShiftState [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 13 01 00 [18:17:59]Write to MH i2c: E2 08 00 7A 6A 80 13 01 00 00 00 00 00 61 [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0E 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0E 00 7A 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3F [18:17:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:17:59]wFMCommunicate OK [18:17:59]SAM_PROTO_GetShiftState done [18:17:59]FM_GetShiftState done [18:17:59]req_shift_opened done [18:17:59]requested_item shift.open_date is exist - process it [18:17:59]req_shift_open_date [18:17:59]req_shift_open_date done [18:17:59]produce_requested_data done [18:17:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189282,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:17:59]process_action_free close_receipt [18:17:59]json_value_free [18:17:59]json_value_free done [18:17:59]process_json_proto returns [18:17:59]Send response to host [18:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189282,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:17:59]free response buf [18:17:59]execute_script done [18:17:59]execute_script returns [18:17:59]free content buf [18:17:59]Sock 8.Close socket [18:17:59]Sock 8.Thread stoped [18:18:02]OFD Sender: No OFD packet to send [18:18:03]accept exits with 9 [18:18:03]New connection [18:18:03]New thread 3067215204 created [18:18:03]Thread 3067071844 joined [18:18:03]Waiting for new connection... [18:18:03] Sock 9.Parse request [18:18:03]Sock 9.Check first char [18:18:03]Sock 9.First char is OK [18:18:03]request: POST /json_proto HTTP/1.0 [18:18:03]Method: POST [18:18:03]URL: /json_proto [18:18:03]Method is POST - this is cgi request [18:18:03]url: /json_proto [18:18:03]query_string will be loaded in cgi processing [18:18:03]execute_cgi json_proto POST (null) [18:18:03]execute_cgi path=json_proto method=POST [18:18:03]POST find Content-Length [18:18:03]Host: 172.17.42.131:8080 [18:18:03]Content-Length: 677 [18:18:03]Content-Type: application/json [18:18:03] [18:18:03]POST finish read [18:18:03]Found Content-Length = 677 [18:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:18:03]execute_script... [18:18: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)211348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:18:03]POST & json_proto [18:18:03]process_json_proto [18:18:03]json parsed OK: [18:18:03]protocol is kg_v1.0 [18:18:03]action value=close_receipt [18:18:03]process_action close_receipt [18:18:03]cmd_close_receipt [18:18:03]MH_GetDate [18:18:03]Write to MH i2c: F0 00 00 7B 6A D4 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: F0 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: F0 09 00 [18:18:03]MH_I2C_Read... [18:18:03]Read from MH i2c: F0 09 00 7B 6A 00 60 8F 1A 67 A0 18 CA 66 35 [18:18:03]GetLastDocTimeStamp 1729793879 [18:18:03]current date 1729793888 [18:18:03]FM_GetShiftState [18:18:03]SAM_PROTO_GetShiftState [18:18:03]wFMCommunicate request_size=4 [18:18:03]MH_SAM_APDU [18:18:03]CAPDU: 80 13 01 00 [18:18:03]Write to MH i2c: E2 08 00 7C 6A 80 13 01 00 00 00 00 00 63 [18:18:03]Write i2c OK [18:18:03]MH_I2C_Read... [18:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:04]Read from MH i2c: E2 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 0E 00 [18:18:04]MH_I2C_Read... [18:18:04]Read from MH i2c: E2 0E 00 7C 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 41 [18:18:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:18:04]wFMCommunicate OK [18:18:04]SAM_PROTO_GetShiftState done [18:18:04]FM_GetShiftState done [18:18:04]opened in 1729728961 [18:18:04]opened+sec_in_day 1729815361 [18:18:04]quantity*price = 30038 [18:18:04]sum+1 = 30039 [18:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 356 24.10.2024 18:18 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189283 ФПД: 111948240678499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189283&fm=111948240678499&tin=02508201610067®Number=0000000000100030&sum=30000 [18:18:05]StoreToDocumentArchive [18:18:05]shift 463 fd 189283 [18:18:05]save to /storage/0463/doc_00189283 [18:18:05]save last doc name /storage/0463/doc_00189283 to /storage/kkm_last_doc_name [18:18:05]save OK [18:18:05]Clear old archive folders... [18:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:05]tlvbuf is 015538D0 [18:18:05]SAM_PROTO_ClearQueue [18:18:05]wFMCommunicate request_size=4 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 09 00 00 [18:18:05]Write to MH i2c: E2 08 00 89 6A 80 09 00 00 00 00 00 00 65 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 89 6A 00 90 00 67 [18:18:05]RAPDU: 90 00 [18:18:05]wFMCommunicate OK [18:18:05]SAM_PROTO_ClearQueue done [18:18:05]KKMCreateOFDPacket [18:18:05]OFDProtocolAddRootSTLVToBuf [18:18:05]FM_MakeSignedData [18:18:05]FM_MakeSignedData [18:18:05]SAM_PROTO_SignData [18:18:05]wFMCommunicate request_size=4 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 0D 01 02 [18:18:05]Write to MH i2c: E2 08 00 8A 6A 80 0D 01 02 00 00 00 00 6D [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 8A 6A 00 90 00 68 [18:18:05]RAPDU: 90 00 [18:18:05]wFMCommunicate OK [18:18:05]wFMCommunicate request_size=255 [18:18:05]MH_SAM_APDU [18:18: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 64 01 00 00 F4 03 04 00 60 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E3 02 00 35 04 06 00 65 [18:18:05]Write to MH i2c: E2 02 01 8B 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 64 01 00 00 F4 03 04 00 60 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E3 02 00 35 04 06 00 65 00 00 26 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 8B 6A 00 90 00 69 [18:18:05]RAPDU: 90 00 [18:18:05]wFMCommunicate OK [18:18:05]wFMCommunicate request_size=10 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 0D 02 02 05 D0 FB 1E 6E 63 [18:18:05]Write to MH i2c: E2 0D 00 8C 6A 80 0D 02 02 05 00 D0 FB 1E 6E 63 00 00 34 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 03 00 8C 6A 00 90 00 6A [18:18:05]RAPDU: 90 00 [18:18:05]wFMCommunicate OK [18:18:05]wFMCommunicate request_size=4 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 0D 03 02 [18:18:05]Write to MH i2c: E2 08 00 8D 6A 80 0D 03 02 00 00 00 00 72 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 0B 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 0B 00 8D 6A 00 AD C9 24 3E A5 EA B0 05 90 00 8F [18:18:05]RAPDU: AD C9 24 3E A5 EA B0 05 90 00 [18:18:05]wFMCommunicate OK [18:18:05]SAM_PROTO_SignData done [18:18:05]FM_MakeSignedData done [18:18:05]CreateOFDProtocolMessage [18:18:05]wFMCommunicate request_size=4 [18:18:05]MH_SAM_APDU [18:18:05]CAPDU: 80 11 00 00 [18:18:05]Write to MH i2c: E2 08 00 8E 6A 80 11 00 00 00 00 00 00 72 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:05]Read from MH i2c: E2 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 17 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: E2 17 00 8E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [18:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:18:05]wFMCommunicate OK [18:18:05]CreateOFDProtocolMessage done [18:18:05]OFDSenderStorePacket 189283 [18:18:05]StoreOFDPacket docnum=189283 [18:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 47 07 01 58 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 64 01 00 00 F4 03 04 00 60 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E3 02 00 35 04 06 00 65 D0 FB 1E 6E 63 AD C9 24 3E A5 EA B0 05 [18:18:05]CheckFolder [18:18:05]dirname=/storage/ofd_packets [18:18:05]CheckFolder done [18:18:05]ProducePacketName [18:18:05]name=ofd_packets/00189283 [18:18:05]NVStorageSaveData ofd_packets/00189283 [18:18:05]File name is /storage/ofd_packets/00189283 [18:18:05]Write 301 bytes [18:18:05]NVStorageSaveData done [18:18:05]OFDSenderStorePacket done [18:18:05]KKMCreateOFDPacket done [18:18:05]NVStorageSaveData kkm_last_timestamp [18:18:05]File name is /storage/kkm_last_timestamp [18:18:05]Write 4 bytes [18:18:05]NVStorageSaveData done [18:18:05]ExternCall_PrintAddStr [18:18:05]wPrintStart [18:18:05]Write to MH i2c: 01 00 00 8F 6A F9 [18:18:05]Write i2c OK [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: 01 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: 01 07 00 [18:18:05]MH_I2C_Read... [18:18:05]Read from MH i2c: 01 07 00 8F 6A 00 00 00 00 00 FF 0F 0E [18:18:05]RasterBufferAndPrint [18:18:05]line Счет N : (1)211348 [18:18:05]line ИНН: 02508201610067 [18:18:05]line Контрольно-Кассовый Чек [18:18:05]line ПРОДАЖА [18:18:05]line ТРК (МРК, ГНК) : 32 [18:18:05]line Товар: 2710124130 [18:18:05]line Аи-92-К-3 [18:18:05]line 4.490 * 66.90 [18:18:05]line = 300.38 [18:18:05]line НДС 12% НСП 1% [18:18:05]line > о реализуемом товаре [18:18:05]line ОКРУГЛЕНИЕ: -0.38 [18:18:05]line ИТОГО: 300.00 [18:18:05]line Внесено: 300.00 [18:18:05]line СДАЧА: 0.00 [18:18:05]line НСП 1% : 2.66 [18:18:05]line НДС 12% : 31.90 [18:18:05]line Наличными: 300.00 [18:18:05]line Безнал.: 0.00 [18:18:05]line Место: АЗС № 86 "Партнер Нефть" [18:18:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:18:05]line СНО: Общий режим [18:18:05]line Чек 356 24.10.2024 18:18 [18:18:05]line Смена: 463 ФФД: 1.0 [18:18:05]line ЗНМ: 0300000155 [18:18:05]line РНМ: 0000000000100030 [18:18:05]line Версия ККМ: 001 [18:18:05]line ФМ: 0000000000965340 [18:18:05]line ФД: 189283 [18:18:05]line ФПД: 111948240678499 [18:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189283&fm=111948240678499&tin=02508201610067®Number=0000000000100030&sum=30000 [18:18:05]written 0, free lines is 4095 [18:18:05]OFD Sender: Processing packet 189283 [packets to send 1062, broken 1061] [18:18:05]ProducePacketName [18:18:05]name=ofd_packets/00189283 [18:18:05]OFD Sender: To server: pG, [18:18:05]CommunicateWithHost lk.salyk.kg:30040 [18:18:05]ConnectInit lk.salyk.kg [18:18:06]Write to MH i2c: 01 00 00 BA 6A 24 [18:18:06]Write i2c OK [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: 01 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: 01 07 00 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: 01 07 00 BA 6A 00 00 00 00 00 62 0C 99 [18:18:06]RasterBufferAndPrint [18:18:06]line [18:18:06]line [18:18:06]line [18:18:06]line [18:18:06]line [18:18:06]written 0, free lines is 3175 [18:18:06]MH_Cut [18:18:06]Write to MH i2c: D1 01 00 C1 6A 01 FD [18:18:06]Write i2c OK [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: D1 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: D1 01 00 [18:18:06]MH_I2C_Read... [18:18:06]Read from MH i2c: D1 01 00 C1 6A 00 FC [18:18:06]Write to MH i2c: 01 00 00 C2 6A 2C [18:18:06]Write i2c OK [18:18:06]MH_I2C_Read... [18:18:06]Connected sock=10 [18:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 47 07 01 58 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 64 01 00 00 F4 03 04 00 60 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E3 02 00 35 04 06 00 65 D0 FB 1E 6E 63 AD C9 24 3E A5 EA B0 05 [18:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC B2 47 00 45 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 39 36 35 33 34 30 10 04 04 00 63 E3 02 00 F4 03 04 00 48 39 1A 67 B6 04 01 00 00 62 5D 5E B1 F5 D7 64 20 [18:18:06]CommunicateWithHost err = 0 [18:18:06]CheckOFDResponse [18:18:06]1017 (14) - 77093643461234 [18:18:06]1041 (16) - 0000000000965340 [18:18:06]1040 (4) - 189283 [18:18:06]1012 (4) - 24.10.2024 12:10 [18:18:06]1206 (1) - 0 [18:18:06]OFD Sender: Remove packet 189283 [18:18:06]ProducePacketName [18:18:06]name=ofd_packets/00189283 [18:18:06]NVStorageDeleteData [18:18:07]OFD Sender: No OFD packet to send [18:18:07]*** Cut start [18:18:07]*** Partial cut [18:18:07]*** CUTSNS_PIN = 1 [18:18:07]*** CUTSNS_PIN = 0 [18:18:07]*** Brake cut motor [18:18:08]Read from MH i2c: 01 [18:18:08]MH_I2C_Read... [18:18:08]*** Stop cut motor [18:18:08]*** Cut end [18:18:08]Read from MH i2c: 01 07 00 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: 01 07 00 C2 6A 00 00 00 00 00 FF 0F 41 [18:18:08]process_action close_receipt done [18:18:08]requested_data is exist [18:18:08]produce_requested_data [18:18:08]requested_item fm.sn is exist - process it [18:18:08]wFMCommunicate request_size=4 [18:18:08]MH_SAM_APDU [18:18:08]CAPDU: 80 11 00 00 [18:18:08]Write to MH i2c: E2 08 00 C3 6A 80 11 00 00 00 00 00 00 A7 [18:18:08]Write i2c OK [18:18:08]MH_I2C_Read... [18:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:08]Read from MH i2c: E2 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 17 00 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 17 00 C3 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [18:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:18:08]wFMCommunicate OK [18:18:08]requested_item fd.num is exist - process it [18:18:08]SAM_PROTO_GetFieldsCounters [18:18:08]wFMCommunicate request_size=4 [18:18:08]MH_SAM_APDU [18:18:08]CAPDU: 80 13 00 00 [18:18:08]Write to MH i2c: E2 08 00 C4 6A 80 13 00 00 00 00 00 00 AA [18:18:08]Write i2c OK [18:18:08]MH_I2C_Read... [18:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:08]Read from MH i2c: E2 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 62 00 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 62 00 C4 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E3 02 00 0E 04 04 00 CF 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 F8 [18:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E3 02 00 0E 04 04 00 CF 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 [18:18:08]wFMCommunicate OK [18:18:08]SAM_PROTO_GetFieldsCounters done [18:18:08]requested_item shift.num is exist - process it [18:18:08]requested_item shift.opened is exist - process it [18:18:08]req_shift_opened [18:18:08]FM_GetShiftState [18:18:08]SAM_PROTO_GetShiftState [18:18:08]wFMCommunicate request_size=4 [18:18:08]MH_SAM_APDU [18:18:08]CAPDU: 80 13 01 00 [18:18:08]Write to MH i2c: E2 08 00 C5 6A 80 13 01 00 00 00 00 00 AC [18:18:08]Write i2c OK [18:18:08]MH_I2C_Read... [18:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:08]Read from MH i2c: E2 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 0E 00 [18:18:08]MH_I2C_Read... [18:18:08]Read from MH i2c: E2 0E 00 C5 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8A [18:18:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:18:08]wFMCommunicate OK [18:18:08]SAM_PROTO_GetShiftState done [18:18:08]FM_GetShiftState done [18:18:08]req_shift_opened done [18:18:08]requested_item shift.open_date is exist - process it [18:18:08]req_shift_open_date [18:18:08]req_shift_open_date done [18:18:08]produce_requested_data done [18:18:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189283,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:18:08]process_action_free close_receipt [18:18:08]json_value_free [18:18:08]json_value_free done [18:18:08]process_json_proto returns [18:18:08]Send response to host [18:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189283,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:18:08]free response buf [18:18:08]execute_script done [18:18:08]execute_script returns [18:18:08]free content buf [18:18:08]Sock 9.Close socket [18:18:08]Sock 9.Thread stoped [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:03]accept exits with 8 [18:20:03]New connection [18:20:03]New thread 3067071844 created [18:20:03]Thread 3067215204 joined [18:20:03]Waiting for new connection... [18:20:03] Sock 8.Parse request [18:20:03]Sock 8.Check first char [18:20:03]Sock 8.First char is OK [18:20:03]request: POST /json_proto HTTP/1.0 [18:20:03]Method: POST [18:20:03]URL: /json_proto [18:20:03]Method is POST - this is cgi request [18:20:03]url: /json_proto [18:20:03]query_string will be loaded in cgi processing [18:20:03]execute_cgi json_proto POST (null) [18:20:03]execute_cgi path=json_proto method=POST [18:20:03]POST find Content-Length [18:20:03]Host: 172.17.42.131:8080 [18:20:03]Content-Length: 682 [18:20:03]Content-Type: application/json [18:20:03] [18:20:03]POST finish read [18:20:03]Found Content-Length = 682 [18:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:20:03]execute_script... [18:20: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)211349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:20:03]POST & json_proto [18:20:03]process_json_proto [18:20:03]json parsed OK: [18:20:03]protocol is kg_v1.0 [18:20:03]action value=close_receipt [18:20:03]process_action close_receipt [18:20:03]cmd_close_receipt [18:20:03]MH_GetDate [18:20:03]Write to MH i2c: F0 00 00 C6 6A 1F [18:20:03]Write i2c OK [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: F0 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: F0 09 00 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: F0 09 00 C6 6A 00 D8 8F 1A 67 A0 18 CA 66 F8 [18:20:03]GetLastDocTimeStamp 1729793888 [18:20:03]current date 1729794008 [18:20:03]FM_GetShiftState [18:20:03]SAM_PROTO_GetShiftState [18:20:03]wFMCommunicate request_size=4 [18:20:03]MH_SAM_APDU [18:20:03]CAPDU: 80 13 01 00 [18:20:03]Write to MH i2c: E2 08 00 C7 6A 80 13 01 00 00 00 00 00 AE [18:20:03]Write i2c OK [18:20:03]MH_I2C_Read... [18:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:03]Read from MH i2c: E2 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 0E 00 [18:20:03]MH_I2C_Read... [18:20:03]Read from MH i2c: E2 0E 00 C7 6A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8C [18:20:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:20:03]wFMCommunicate OK [18:20:03]SAM_PROTO_GetShiftState done [18:20:03]FM_GetShiftState done [18:20:03]opened in 1729728961 [18:20:03]opened+sec_in_day 1729815361 [18:20:03]quantity*price = 200043 [18:20:03]sum+1 = 200044 [18:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 357 24.10.2024 18:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189284 ФПД: 280032754126443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189284&fm=280032754126443&tin=02508201610067®Number=0000000000100030&sum=200000 [18:20:04]StoreToDocumentArchive [18:20:04]shift 463 fd 189284 [18:20:04]save to /storage/0463/doc_00189284 [18:20:04]save last doc name /storage/0463/doc_00189284 to /storage/kkm_last_doc_name [18:20:04]save OK [18:20:04]Clear old archive folders... [18:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:04]tlvbuf is 0168E5A0 [18:20:04]SAM_PROTO_ClearQueue [18:20:04]wFMCommunicate request_size=4 [18:20:04]MH_SAM_APDU [18:20:04]CAPDU: 80 09 00 00 [18:20:04]Write to MH i2c: E2 08 00 D4 6A 80 09 00 00 00 00 00 00 B0 [18:20:04]Write i2c OK [18:20:04]MH_I2C_Read... [18:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:04]Read from MH i2c: E2 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 03 00 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 03 00 D4 6A 00 90 00 B2 [18:20:04]RAPDU: 90 00 [18:20:04]wFMCommunicate OK [18:20:04]SAM_PROTO_ClearQueue done [18:20:04]KKMCreateOFDPacket [18:20:04]OFDProtocolAddRootSTLVToBuf [18:20:04]FM_MakeSignedData [18:20:04]FM_MakeSignedData [18:20:04]SAM_PROTO_SignData [18:20:04]wFMCommunicate request_size=4 [18:20:04]MH_SAM_APDU [18:20:04]CAPDU: 80 0D 01 02 [18:20:04]Write to MH i2c: E2 08 00 D5 6A 80 0D 01 02 00 00 00 00 B8 [18:20:04]Write i2c OK [18:20:04]MH_I2C_Read... [18:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:04]Read from MH i2c: E2 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 03 00 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 03 00 D5 6A 00 90 00 B3 [18:20:04]RAPDU: 90 00 [18:20:04]wFMCommunicate OK [18:20:04]wFMCommunicate request_size=255 [18:20:04]MH_SAM_APDU [18:20: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 33 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 65 01 00 00 F4 03 04 00 D8 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E3 02 00 35 04 06 00 FE [18:20:04]Write to MH i2c: E2 02 01 D6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 65 01 00 00 F4 03 04 00 D8 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E3 02 00 35 04 06 00 FE 00 00 38 [18:20:04]Write i2c OK [18:20:04]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 D6 6A 00 90 00 B4 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]wFMCommunicate request_size=10 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 02 02 05 B0 34 D5 CE 6B [18:20:05]Write to MH i2c: E2 0D 00 D7 6A 80 0D 02 02 05 00 B0 34 D5 CE 6B 00 00 B7 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 D7 6A 00 90 00 B5 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]wFMCommunicate request_size=4 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 03 02 [18:20:05]Write to MH i2c: E2 08 00 D8 6A 80 0D 03 02 00 00 00 00 BD [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 0B 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 0B 00 D8 6A 00 75 F9 36 6B CF 87 BF 8A 90 00 6C [18:20:05]RAPDU: 75 F9 36 6B CF 87 BF 8A 90 00 [18:20:05]wFMCommunicate OK [18:20:05]SAM_PROTO_SignData done [18:20:05]FM_MakeSignedData done [18:20:05]CreateOFDProtocolMessage [18:20:05]wFMCommunicate request_size=4 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 11 00 00 [18:20:05]Write to MH i2c: E2 08 00 D9 6A 80 11 00 00 00 00 00 00 BD [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 17 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 17 00 D9 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [18:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:20:05]wFMCommunicate OK [18:20:05]CreateOFDProtocolMessage done [18:20:05]OFDSenderStorePacket 189284 [18:20:05]StoreOFDPacket docnum=189284 [18:20:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 CC 07 01 58 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 65 01 00 00 F4 03 04 00 D8 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E3 02 00 35 04 06 00 FE B0 34 D5 CE 6B 75 F9 36 6B CF 87 BF 8A [18:20:05]CheckFolder [18:20:05]dirname=/storage/ofd_packets [18:20:05]CheckFolder done [18:20:05]ProducePacketName [18:20:05]name=ofd_packets/00189284 [18:20:05]NVStorageSaveData ofd_packets/00189284 [18:20:05]File name is /storage/ofd_packets/00189284 [18:20:05]Write 301 bytes [18:20:05]NVStorageSaveData done [18:20:05]OFDSenderStorePacket done [18:20:05]KKMCreateOFDPacket done [18:20:05]NVStorageSaveData kkm_last_timestamp [18:20:05]File name is /storage/kkm_last_timestamp [18:20:05]Write 4 bytes [18:20:05]NVStorageSaveData done [18:20:05]ExternCall_PrintAddStr [18:20:05]wPrintStart [18:20:05]Write to MH i2c: 01 00 00 DA 6A 44 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 07 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 07 00 DA 6A 00 00 00 00 00 FF 0F 59 [18:20:05]RasterBufferAndPrint [18:20:05]line Счет N : (1)211349 [18:20:05]line ИНН: 02508201610067 [18:20:05]line Контрольно-Кассовый Чек [18:20:05]line ПРОДАЖА [18:20:05]line ТРК (МРК, ГНК) : 43 [18:20:05]line Товар: 2710124500 [18:20:05]line Аи-95-К-3 [18:20:05]line 26.960 * 74.20 [18:20:05]line = 2000.43 [18:20:05]line НДС 12% НСП 1% [18:20:05]line > о реализуемом товаре [18:20:05]line ОКРУГЛЕНИЕ: -0.43 [18:20:05]line ИТОГО: 2000.00 [18:20:05]line Внесено: 2000.00 [18:20:05]line СДАЧА: 0.00 [18:20:05]line НСП 1% : 17.70 [18:20:05]line НДС 12% : 212.43 [18:20:05]line Наличными: 2000.00 [18:20:05]line Безнал.: 0.00 [18:20:05]line Место: АЗС № 86 "Партнер Нефть" [18:20:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:20:05]line СНО: Общий режим [18:20:05]line Чек 357 24.10.2024 18:20 [18:20:05]line Смена: 463 ФФД: 1.0 [18:20:05]line ЗНМ: 0300000155 [18:20:05]line РНМ: 0000000000100030 [18:20:05]line Версия ККМ: 001 [18:20:05]line ФМ: 0000000000965340 [18:20:05]line ФД: 189284 [18:20:05]line ФПД: 280032754126443 [18:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189284&fm=280032754126443&tin=02508201610067®Number=0000000000100030&sum=200000 [18:20:05]written 0, free lines is 4095 [18:20:05]OFD Sender: Processing packet 189284 [packets to send 1062, broken 1061] [18:20:05]ProducePacketName [18:20:05]name=ofd_packets/00189284 [18:20:05]OFD Sender: To server: pG, [18:20:05]CommunicateWithHost lk.salyk.kg:30040 [18:20:05]ConnectInit lk.salyk.kg [18:20:05]Connected sock=10 [18:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 CC 07 01 58 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 65 01 00 00 F4 03 04 00 D8 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E3 02 00 35 04 06 00 FE B0 34 D5 CE 6B 75 F9 36 6B CF 87 BF 8A [18:20:05]Write to MH i2c: 01 00 00 05 6B 70 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 07 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: 01 07 00 05 6B 00 00 00 00 00 69 0C EC [18:20:05]RasterBufferAndPrint [18:20:05]line [18:20:05]line [18:20:05]line [18:20:05]line [18:20:05]line [18:20:05]written 0, free lines is 3181 [18:20:05]MH_Cut [18:20:05]Write to MH i2c: D1 01 00 0C 6B 01 49 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: D1 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: D1 01 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: D1 01 00 0C 6B 00 48 [18:20:05]Write to MH i2c: 01 00 00 0D 6B 78 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 F7 47 00 91 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 39 36 35 33 34 30 10 04 04 00 64 E3 02 00 F4 03 04 00 BF 39 1A 67 B6 04 01 00 00 A2 95 77 90 46 ED 38 8F [18:20:06]CommunicateWithHost err = 0 [18:20:06]CheckOFDResponse [18:20:06]1017 (14) - 77093643461234 [18:20:06]1041 (16) - 0000000000965340 [18:20:06]1040 (4) - 189284 [18:20:06]1012 (4) - 24.10.2024 12:12 [18:20:06]1206 (1) - 0 [18:20:06]OFD Sender: Remove packet 189284 [18:20:06]ProducePacketName [18:20:06]name=ofd_packets/00189284 [18:20:06]NVStorageDeleteData [18:20:06]OFD Sender: No OFD packet to send [18:20:07]*** Cut start [18:20:07]*** Partial cut [18:20:07]*** CUTSNS_PIN = 1 [18:20:07]*** CUTSNS_PIN = 0 [18:20:07]*** Brake cut motor [18:20:07]Read from MH i2c: 01 [18:20:07]MH_I2C_Read... [18:20:07]*** Stop cut motor [18:20:07]*** Cut end [18:20:07]Read from MH i2c: 01 07 00 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: 01 07 00 0D 6B 00 00 00 00 00 FF 0F 8D [18:20:07]process_action close_receipt done [18:20:07]requested_data is exist [18:20:07]produce_requested_data [18:20:07]requested_item fm.sn is exist - process it [18:20:07]wFMCommunicate request_size=4 [18:20:07]MH_SAM_APDU [18:20:07]CAPDU: 80 11 00 00 [18:20:07]Write to MH i2c: E2 08 00 0E 6B 80 11 00 00 00 00 00 00 F3 [18:20:07]Write i2c OK [18:20:07]MH_I2C_Read... [18:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:07]Read from MH i2c: E2 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 17 00 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 17 00 0E 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [18:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:20:07]wFMCommunicate OK [18:20:07]requested_item fd.num is exist - process it [18:20:07]SAM_PROTO_GetFieldsCounters [18:20:07]wFMCommunicate request_size=4 [18:20:07]MH_SAM_APDU [18:20:07]CAPDU: 80 13 00 00 [18:20:07]Write to MH i2c: E2 08 00 0F 6B 80 13 00 00 00 00 00 00 F6 [18:20:07]Write i2c OK [18:20:07]MH_I2C_Read... [18:20:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:07]Read from MH i2c: E2 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 62 00 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 62 00 0F 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E3 02 00 0E 04 04 00 CF 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 48 [18:20:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E3 02 00 0E 04 04 00 CF 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 [18:20:07]wFMCommunicate OK [18:20:07]SAM_PROTO_GetFieldsCounters done [18:20:07]requested_item shift.num is exist - process it [18:20:07]requested_item shift.opened is exist - process it [18:20:07]req_shift_opened [18:20:07]FM_GetShiftState [18:20:07]SAM_PROTO_GetShiftState [18:20:07]wFMCommunicate request_size=4 [18:20:07]MH_SAM_APDU [18:20:07]CAPDU: 80 13 01 00 [18:20:07]Write to MH i2c: E2 08 00 10 6B 80 13 01 00 00 00 00 00 F8 [18:20:07]Write i2c OK [18:20:07]MH_I2C_Read... [18:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:08]Read from MH i2c: E2 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 0E 00 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 0E 00 10 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D6 [18:20:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:20:08]wFMCommunicate OK [18:20:08]SAM_PROTO_GetShiftState done [18:20:08]FM_GetShiftState done [18:20:08]req_shift_opened done [18:20:08]requested_item shift.open_date is exist - process it [18:20:08]req_shift_open_date [18:20:08]req_shift_open_date done [18:20:08]produce_requested_data done [18:20:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189284,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:20:08]process_action_free close_receipt [18:20:08]json_value_free [18:20:08]json_value_free done [18:20:08]process_json_proto returns [18:20:08]Send response to host [18:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189284,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:20:08]free response buf [18:20:08]execute_script done [18:20:08]execute_script returns [18:20:08]free content buf [18:20:08]Sock 8.Close socket [18:20:08]Sock 8.Thread stoped [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:17]accept exits with 9 [18:20:17]New connection [18:20:17]New thread 3067215204 created [18:20:17]Thread 3067071844 joined [18:20:17]Waiting for new connection... [18:20:17] Sock 9.Parse request [18:20:17]Sock 9.Check first char [18:20:17]Sock 9.First char is OK [18:20:17]request: POST /json_proto HTTP/1.0 [18:20:17]Method: POST [18:20:17]URL: /json_proto [18:20:17]Method is POST - this is cgi request [18:20:17]url: /json_proto [18:20:17]query_string will be loaded in cgi processing [18:20:17]execute_cgi json_proto POST (null) [18:20:17]execute_cgi path=json_proto method=POST [18:20:17]POST find Content-Length [18:20:17]Host: 172.17.42.131:8080 [18:20:17]Content-Length: 800 [18:20:17]Content-Type: application/json [18:20:17] [18:20:17]POST finish read [18:20:17]Found Content-Length = 800 [18:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295795.96", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:17]execute_script... [18:20: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)211350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295795.96", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:17]POST & json_proto [18:20:17]process_json_proto [18:20:17]json parsed OK: [18:20:17]protocol is kg_v1.0 [18:20:17]action value=close_receipt [18:20:17]process_action close_receipt [18:20:17]cmd_close_receipt [18:20:17]MH_GetDate [18:20:17]Write to MH i2c: F0 00 00 11 6B 6B [18:20:17]Write i2c OK [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: F0 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: F0 09 00 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: F0 09 00 11 6B 00 E6 8F 1A 67 A0 18 CA 66 52 [18:20:17]GetLastDocTimeStamp 1729794008 [18:20:17]current date 1729794022 [18:20:17]FM_GetShiftState [18:20:17]SAM_PROTO_GetShiftState [18:20:17]wFMCommunicate request_size=4 [18:20:17]MH_SAM_APDU [18:20:17]CAPDU: 80 13 01 00 [18:20:17]Write to MH i2c: E2 08 00 12 6B 80 13 01 00 00 00 00 00 FA [18:20:17]Write i2c OK [18:20:17]MH_I2C_Read... [18:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:17]Read from MH i2c: E2 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: E2 0E 00 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: E2 0E 00 12 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D8 [18:20:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:20:17]wFMCommunicate OK [18:20:17]SAM_PROTO_GetShiftState done [18:20:17]FM_GetShiftState done [18:20:17]opened in 1729728961 [18:20:17]opened+sec_in_day 1729815361 [18:20:17]quantity*price = 0 [18:20:17]sum+1 = 1 [18:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 358 24.10.2024 18:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4295795.96 ФМ: 0000000000965340 ФД: 189285 ФПД: 180236126669858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189285&fm=180236126669858&tin=02508201610067®Number=0000000000100030&sum=0 [18:20:19]StoreToDocumentArchive [18:20:19]shift 463 fd 189285 [18:20:19]save to /storage/0463/doc_00189285 [18:20:19]save last doc name /storage/0463/doc_00189285 to /storage/kkm_last_doc_name [18:20:19]save OK [18:20:19]Clear old archive folders... [18:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:20:19]tlvbuf is 0168E160 [18:20:19]SAM_PROTO_ClearQueue [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 09 00 00 [18:20:19]Write to MH i2c: E2 08 00 1F 6B 80 09 00 00 00 00 00 00 FC [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 1F 6B 00 90 00 FE [18:20:19]RAPDU: 90 00 [18:20:19]wFMCommunicate OK [18:20:19]SAM_PROTO_ClearQueue done [18:20:19]KKMCreateOFDPacket [18:20:19]OFDProtocolAddRootSTLVToBuf [18:20:19]FM_MakeSignedData [18:20:19]FM_MakeSignedData [18:20:19]SAM_PROTO_SignData [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 0D 01 02 [18:20:19]Write to MH i2c: E2 08 00 20 6B 80 0D 01 02 00 00 00 00 04 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 20 6B 00 90 00 FF [18:20:19]RAPDU: 90 00 [18:20:19]wFMCommunicate OK [18:20:19]wFMCommunicate request_size=255 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 E6 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E3 02 00 35 04 06 00 A3 EC 7E 4E [18:20:19]Write to MH i2c: E2 02 01 21 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 E6 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E3 02 00 35 04 06 00 A3 EC 7E 4E 00 00 87 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 21 6B 00 90 00 00 [18:20:19]RAPDU: 90 00 [18:20:19]wFMCommunicate OK [18:20:19]wFMCommunicate request_size=7 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 0D 02 02 02 4C 22 [18:20:19]Write to MH i2c: E2 0A 00 22 6B 80 0D 02 02 02 00 4C 22 00 00 79 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 03 00 22 6B 00 90 00 01 [18:20:19]RAPDU: 90 00 [18:20:19]wFMCommunicate OK [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 0D 03 02 [18:20:19]Write to MH i2c: E2 08 00 23 6B 80 0D 03 02 00 00 00 00 09 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0B 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0B 00 23 6B 00 11 C2 A4 C0 A1 7F 73 34 90 00 08 [18:20:19]RAPDU: 11 C2 A4 C0 A1 7F 73 34 90 00 [18:20:19]wFMCommunicate OK [18:20:19]SAM_PROTO_SignData done [18:20:19]FM_MakeSignedData done [18:20:19]CreateOFDProtocolMessage [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 11 00 00 [18:20:19]Write to MH i2c: E2 08 00 24 6B 80 11 00 00 00 00 00 00 09 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 17 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 17 00 24 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [18:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:20:19]wFMCommunicate OK [18:20:19]CreateOFDProtocolMessage done [18:20:19]OFDSenderStorePacket 189285 [18:20:19]StoreOFDPacket docnum=189285 [18:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7D D5 04 01 F1 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 E6 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E3 02 00 35 04 06 00 A3 EC 7E 4E 4C 22 11 C2 A4 C0 A1 7F 73 34 [18:20:19]CheckFolder [18:20:19]dirname=/storage/ofd_packets [18:20:19]CheckFolder done [18:20:19]ProducePacketName [18:20:19]name=ofd_packets/00189285 [18:20:19]NVStorageSaveData ofd_packets/00189285 [18:20:19]File name is /storage/ofd_packets/00189285 [18:20:19]Write 298 bytes [18:20:19]NVStorageSaveData done [18:20:19]OFDSenderStorePacket done [18:20:19]KKMCreateOFDPacket done [18:20:19]NVStorageSaveData kkm_last_timestamp [18:20:19]File name is /storage/kkm_last_timestamp [18:20:19]Write 4 bytes [18:20:19]NVStorageSaveData done [18:20:19]ExternCall_PrintAddStr [18:20:19]wPrintStart [18:20:19]Write to MH i2c: 01 00 00 25 6B 90 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: 01 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: 01 07 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: 01 07 00 25 6B 00 00 00 00 00 FF 0F A5 [18:20:19]RasterBufferAndPrint [18:20:19]line Счет N : (1)211350 [18:20:19]line ИНН: 02508201610067 [18:20:19]line Контрольно-Кассовый Чек [18:20:19]line ПРОДАЖА [18:20:19]line ТРК (МРК, ГНК) : 51 [18:20:19]line Товар: 2710194210 [18:20:19]line ДТ-К-5 [18:20:19]line 20.000 * 0.00 [18:20:19]line = 0.00 [18:20:19]line НДС 12% НСП 1% [18:20:19]line > о реализуемом товаре [18:20:19]line ИТОГО: 0.00 [18:20:19]line НСП 1% : 0.00 [18:20:19]line НДС 12% : 0.00 [18:20:19]line Наличными: 0.00 [18:20:19]line Безнал.: 0.00 [18:20:19]line Место: АЗС № 86 "Партнер Нефть" [18:20:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:20:19]line СНО: Общий режим [18:20:19]line Чек 358 24.10.2024 18:20 [18:20:19]line Смена: 463 ФФД: 1.0 [18:20:19]line ЗНМ: 0300000155 [18:20:19]line РНМ: 0000000000100030 [18:20:19]line Версия ККМ: 001 [18:20:19]line Талоны: Топливные Талоны [18:20:19]line 4295795.96 [18:20:19]line ФМ: 0000000000965340 [18:20:19]line ФД: 189285 [18:20:19]line ФПД: 180236126669858 [18:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189285&fm=180236126669858&tin=02508201610067®Number=0000000000100030&sum=0 [18:20:19]written 0, free lines is 4095 [18:20:19]OFD Sender: Processing packet 189285 [packets to send 1062, broken 1061] [18:20:19]ProducePacketName [18:20:19]name=ofd_packets/00189285 [18:20:19]OFD Sender: To server: pG, [18:20:19]CommunicateWithHost lk.salyk.kg:30040 [18:20:19]ConnectInit lk.salyk.kg [18:20:19]Connected sock=8 [18:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7D D5 04 01 F1 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 E6 8F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E3 02 00 35 04 06 00 A3 EC 7E 4E 4C 22 11 C2 A4 C0 A1 7F 73 34 [18:20:20]Write to MH i2c: 01 00 00 4F 6B BA [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 07 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 07 00 4F 6B 00 00 00 00 00 7A 0C 47 [18:20:20]RasterBufferAndPrint [18:20:20]line [18:20:20]line [18:20:20]line [18:20:20]line [18:20:20]line [18:20:20]written 0, free lines is 3198 [18:20:20]MH_Cut [18:20:20]Write to MH i2c: D1 01 00 56 6B 01 93 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: D1 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: D1 01 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: D1 01 00 56 6B 00 92 [18:20:20]Write to MH i2c: 01 00 00 57 6B C2 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 12 29 47 00 37 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 39 36 35 33 34 30 10 04 04 00 65 E3 02 00 F4 03 04 00 CD 39 1A 67 B6 04 01 00 00 3A 20 18 41 FD 64 49 A5 [18:20:20]CommunicateWithHost err = 0 [18:20:20]CheckOFDResponse [18:20:20]1017 (14) - 77093643461234 [18:20:20]1041 (16) - 0000000000965340 [18:20:20]1040 (4) - 189285 [18:20:20]1012 (4) - 24.10.2024 12:13 [18:20:20]1206 (1) - 0 [18:20:20]OFD Sender: Remove packet 189285 [18:20:20]ProducePacketName [18:20:20]name=ofd_packets/00189285 [18:20:20]NVStorageDeleteData [18:20:20]OFD Sender: No OFD packet to send [18:20:21]*** Cut start [18:20:21]*** Partial cut [18:20:21]*** CUTSNS_PIN = 1 [18:20:21]*** CUTSNS_PIN = 0 [18:20:21]*** Brake cut motor [18:20:21]Read from MH i2c: 01 [18:20:21]MH_I2C_Read... [18:20:21]*** Stop cut motor [18:20:21]*** Cut end [18:20:21]Read from MH i2c: 01 07 00 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: 01 07 00 57 6B 00 00 00 00 00 FF 0F D7 [18:20:21]process_action close_receipt done [18:20:21]requested_data is exist [18:20:21]produce_requested_data [18:20:21]requested_item fm.sn is exist - process it [18:20:21]wFMCommunicate request_size=4 [18:20:21]MH_SAM_APDU [18:20:21]CAPDU: 80 11 00 00 [18:20:21]Write to MH i2c: E2 08 00 58 6B 80 11 00 00 00 00 00 00 3D [18:20:21]Write i2c OK [18:20:21]MH_I2C_Read... [18:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:21]Read from MH i2c: E2 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: E2 17 00 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: E2 17 00 58 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [18:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:20:21]wFMCommunicate OK [18:20:21]requested_item fd.num is exist - process it [18:20:21]SAM_PROTO_GetFieldsCounters [18:20:21]wFMCommunicate request_size=4 [18:20:21]MH_SAM_APDU [18:20:21]CAPDU: 80 13 00 00 [18:20:21]Write to MH i2c: E2 08 00 59 6B 80 13 00 00 00 00 00 00 40 [18:20:21]Write i2c OK [18:20:21]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 62 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 62 00 59 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E3 02 00 0E 04 04 00 CF 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 96 [18:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E3 02 00 0E 04 04 00 CF 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 [18:20:22]wFMCommunicate OK [18:20:22]SAM_PROTO_GetFieldsCounters done [18:20:22]requested_item shift.num is exist - process it [18:20:22]requested_item shift.opened is exist - process it [18:20:22]req_shift_opened [18:20:22]FM_GetShiftState [18:20:22]SAM_PROTO_GetShiftState [18:20:22]wFMCommunicate request_size=4 [18:20:22]MH_SAM_APDU [18:20:22]CAPDU: 80 13 01 00 [18:20:22]Write to MH i2c: E2 08 00 5A 6B 80 13 01 00 00 00 00 00 42 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 5A 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 20 [18:20:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:20:22]wFMCommunicate OK [18:20:22]SAM_PROTO_GetShiftState done [18:20:22]FM_GetShiftState done [18:20:22]req_shift_opened done [18:20:22]requested_item shift.open_date is exist - process it [18:20:22]req_shift_open_date [18:20:22]req_shift_open_date done [18:20:22]produce_requested_data done [18:20:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189285,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:20:22]process_action_free close_receipt [18:20:22]json_value_free [18:20:22]json_value_free done [18:20:22]process_json_proto returns [18:20:22]Send response to host [18:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189285,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:20:22]free response buf [18:20:22]execute_script done [18:20:22]execute_script returns [18:20:22]free content buf [18:20:22]Sock 9.Close socket [18:20:22]Sock 9.Thread stoped [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:20:59]accept exits with 10 [18:20:59]New connection [18:20:59]New thread 3067071844 created [18:20:59]Thread 3067215204 joined [18:20:59]Waiting for new connection... [18:20:59] Sock 10.Parse request [18:20:59]Sock 10.Check first char [18:20:59]Sock 10.First char is OK [18:20:59]request: POST /json_proto HTTP/1.0 [18:20:59]Method: POST [18:20:59]URL: /json_proto [18:20:59]Method is POST - this is cgi request [18:20:59]url: /json_proto [18:20:59]query_string will be loaded in cgi processing [18:20:59]execute_cgi json_proto POST (null) [18:20:59]execute_cgi path=json_proto method=POST [18:20:59]POST find Content-Length [18:20:59]Host: 172.17.42.131:8080 [18:20:59]Content-Length: 674 [18:20:59]Content-Type: application/json [18:20:59] [18:20:59]POST finish read [18:20:59]Found Content-Length = 674 [18:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.250, "sum" : 476.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 476.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:59]execute_script... [18:20: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)211352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.250, "sum" : 476.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 476.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:59]POST & json_proto [18:20:59]process_json_proto [18:20:59]json parsed OK: [18:20:59]protocol is kg_v1.0 [18:20:59]action value=close_receipt [18:20:59]process_action close_receipt [18:20:59]cmd_close_receipt [18:20:59]MH_GetDate [18:20:59]Write to MH i2c: F0 00 00 5B 6B B5 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: F0 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: F0 09 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: F0 09 00 5B 6B 00 0F 90 1A 67 A0 18 CA 66 C6 [18:20:59]GetLastDocTimeStamp 1729794022 [18:20:59]current date 1729794063 [18:20:59]FM_GetShiftState [18:20:59]SAM_PROTO_GetShiftState [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 13 01 00 [18:20:59]Write to MH i2c: E2 08 00 5C 6B 80 13 01 00 00 00 00 00 44 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0E 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0E 00 5C 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 22 [18:20:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:20:59]wFMCommunicate OK [18:20:59]SAM_PROTO_GetShiftState done [18:20:59]FM_GetShiftState done [18:20:59]opened in 1729728961 [18:20:59]opened+sec_in_day 1729815361 [18:20:59]quantity*price = 47625 [18:20:59]sum+1 = 47626 [18:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 476.00 Внесено: 476.00 СДАЧА: 0.00 НСП 1% : 4.21 НДС 12% : 50.57 Наличными: 476.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 359 24.10.2024 18:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189286 ФПД: 151837493748759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189286&fm=151837493748759&tin=02508201610067®Number=0000000000100030&sum=47600 [18:21:00]StoreToDocumentArchive [18:21:00]shift 463 fd 189286 [18:21:00]save to /storage/0463/doc_00189286 [18:21:00]save last doc name /storage/0463/doc_00189286 to /storage/kkm_last_doc_name [18:21:00]save OK [18:21:00]Clear old archive folders... [18:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:21:00]tlvbuf is B6F95010 [18:21:00]SAM_PROTO_ClearQueue [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 09 00 00 [18:21:00]Write to MH i2c: E2 08 00 69 6B 80 09 00 00 00 00 00 00 46 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 69 6B 00 90 00 48 [18:21:00]RAPDU: 90 00 [18:21:00]wFMCommunicate OK [18:21:00]SAM_PROTO_ClearQueue done [18:21:00]KKMCreateOFDPacket [18:21:00]OFDProtocolAddRootSTLVToBuf [18:21:00]FM_MakeSignedData [18:21:00]FM_MakeSignedData [18:21:00]SAM_PROTO_SignData [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 0D 01 02 [18:21:00]Write to MH i2c: E2 08 00 6A 6B 80 0D 01 02 00 00 00 00 4E [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 6A 6B 00 90 00 49 [18:21:00]RAPDU: 90 00 [18:21:00]wFMCommunicate OK [18:21:00]wFMCommunicate request_size=255 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 01 00 00 F4 03 04 00 0F 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E3 02 00 35 04 06 00 8A 18 6B E0 [18:21:00]Write to MH i2c: E2 02 01 6B 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 01 00 00 F4 03 04 00 0F 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E3 02 00 35 04 06 00 8A 18 6B E0 00 00 13 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 6B 6B 00 90 00 4A [18:21:00]RAPDU: 90 00 [18:21:00]wFMCommunicate OK [18:21:00]wFMCommunicate request_size=7 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 0D 02 02 02 E4 17 [18:21:00]Write to MH i2c: E2 0A 00 6C 6B 80 0D 02 02 02 00 E4 17 00 00 50 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 03 00 6C 6B 00 90 00 4B [18:21:00]RAPDU: 90 00 [18:21:00]wFMCommunicate OK [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 0D 03 02 [18:21:00]Write to MH i2c: E2 08 00 6D 6B 80 0D 03 02 00 00 00 00 53 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 0B 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 0B 00 6D 6B 00 74 34 E5 F5 50 19 95 4F 90 00 23 [18:21:00]RAPDU: 74 34 E5 F5 50 19 95 4F 90 00 [18:21:00]wFMCommunicate OK [18:21:00]SAM_PROTO_SignData done [18:21:00]FM_MakeSignedData done [18:21:00]CreateOFDProtocolMessage [18:21:00]wFMCommunicate request_size=4 [18:21:00]MH_SAM_APDU [18:21:00]CAPDU: 80 11 00 00 [18:21:00]Write to MH i2c: E2 08 00 6E 6B 80 11 00 00 00 00 00 00 53 [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:00]Read from MH i2c: E2 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 17 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: E2 17 00 6E 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [18:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:00]wFMCommunicate OK [18:21:00]CreateOFDProtocolMessage done [18:21:00]OFDSenderStorePacket 189286 [18:21:00]StoreOFDPacket docnum=189286 [18:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 82 3D 04 01 92 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 01 00 00 F4 03 04 00 0F 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E3 02 00 35 04 06 00 8A 18 6B E0 E4 17 74 34 E5 F5 50 19 95 4F [18:21:00]CheckFolder [18:21:00]dirname=/storage/ofd_packets [18:21:00]CheckFolder done [18:21:00]ProducePacketName [18:21:00]name=ofd_packets/00189286 [18:21:00]NVStorageSaveData ofd_packets/00189286 [18:21:00]File name is /storage/ofd_packets/00189286 [18:21:00]Write 298 bytes [18:21:00]NVStorageSaveData done [18:21:00]OFDSenderStorePacket done [18:21:00]KKMCreateOFDPacket done [18:21:00]NVStorageSaveData kkm_last_timestamp [18:21:00]File name is /storage/kkm_last_timestamp [18:21:00]Write 4 bytes [18:21:00]NVStorageSaveData done [18:21:00]ExternCall_PrintAddStr [18:21:00]wPrintStart [18:21:00]Write to MH i2c: 01 00 00 6F 6B DA [18:21:00]Write i2c OK [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: 01 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: 01 07 00 [18:21:00]MH_I2C_Read... [18:21:00]Read from MH i2c: 01 07 00 6F 6B 00 00 00 00 00 FF 0F EF [18:21:00]RasterBufferAndPrint [18:21:00]line Счет N : (1)211352 [18:21:00]line ИНН: 02508201610067 [18:21:00]line Контрольно-Кассовый Чек [18:21:00]line ПРОДАЖА [18:21:00]line ТРК (МРК, ГНК) : 51 [18:21:00]line Товар: 2710194210 [18:21:00]line ДТ-К-5 [18:21:00]line 6.250 * 76.20 [18:21:00]line = 476.25 [18:21:00]line НДС 12% НСП 1% [18:21:00]line > о реализуемом товаре [18:21:00]line ОКРУГЛЕНИЕ: -0.25 [18:21:00]line ИТОГО: 476.00 [18:21:00]line Внесено: 476.00 [18:21:00]line СДАЧА: 0.00 [18:21:00]line НСП 1% : 4.21 [18:21:00]line НДС 12% : 50.57 [18:21:00]line Наличными: 476.00 [18:21:00]line Безнал.: 0.00 [18:21:00]line Место: АЗС № 86 "Партнер Нефть" [18:21:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:21:00]line СНО: Общий режим [18:21:00]line Чек 359 24.10.2024 18:21 [18:21:00]line Смена: 463 ФФД: 1.0 [18:21:00]line ЗНМ: 0300000155 [18:21:00]line РНМ: 0000000000100030 [18:21:00]line Версия ККМ: 001 [18:21:00]line ФМ: 0000000000965340 [18:21:00]line ФД: 189286 [18:21:00]line ФПД: 151837493748759 [18:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189286&fm=151837493748759&tin=02508201610067®Number=0000000000100030&sum=47600 [18:21:00]written 0, free lines is 4095 [18:21:00]OFD Sender: Processing packet 189286 [packets to send 1062, broken 1061] [18:21:00]ProducePacketName [18:21:00]name=ofd_packets/00189286 [18:21:00]OFD Sender: To server: pG, [18:21:00]CommunicateWithHost lk.salyk.kg:30040 [18:21:00]ConnectInit lk.salyk.kg [18:21:01]Connected sock=9 [18:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 82 3D 04 01 92 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 01 00 00 F4 03 04 00 0F 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E3 02 00 35 04 06 00 8A 18 6B E0 E4 17 74 34 E5 F5 50 19 95 4F [18:21:01]Write to MH i2c: 01 00 00 9A 6B 05 [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: 01 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: 01 07 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: 01 07 00 9A 6B 00 00 00 00 00 5E 0C 76 [18:21:01]RasterBufferAndPrint [18:21:01]line [18:21:01]line [18:21:01]line [18:21:01]line [18:21:01]line [18:21:01]written 0, free lines is 3169 [18:21:01]MH_Cut [18:21:01]Write to MH i2c: D1 01 00 A1 6B 01 DE [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: D1 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: D1 01 00 [18:21:01]MH_I2C_Read... [18:21:01]Read from MH i2c: D1 01 00 A1 6B 00 DD [18:21:01]Write to MH i2c: 01 00 00 A2 6B 0D [18:21:01]Write i2c OK [18:21:01]MH_I2C_Read... [18:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 C4 47 00 2F 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 39 36 35 33 34 30 10 04 04 00 66 E3 02 00 F4 03 04 00 F7 39 1A 67 B6 04 01 00 00 98 33 34 47 E3 62 98 2D [18:21:01]CommunicateWithHost err = 0 [18:21:01]CheckOFDResponse [18:21:01]1017 (14) - 77093643461234 [18:21:01]1041 (16) - 0000000000965340 [18:21:01]1040 (4) - 189286 [18:21:01]1012 (4) - 24.10.2024 12:13 [18:21:01]1206 (1) - 0 [18:21:01]OFD Sender: Remove packet 189286 [18:21:01]ProducePacketName [18:21:01]name=ofd_packets/00189286 [18:21:01]NVStorageDeleteData [18:21:01]OFD Sender: No OFD packet to send [18:21:02]*** Cut start [18:21:02]*** Partial cut [18:21:02]*** CUTSNS_PIN = 1 [18:21:02]*** CUTSNS_PIN = 0 [18:21:02]*** Brake cut motor [18:21:03]Read from MH i2c: 01 [18:21:03]MH_I2C_Read... [18:21:03]*** Stop cut motor [18:21:03]*** Cut end [18:21:03]Read from MH i2c: 01 07 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: 01 07 00 A2 6B 00 00 00 00 00 FF 0F 22 [18:21:03]process_action close_receipt done [18:21:03]requested_data is exist [18:21:03]produce_requested_data [18:21:03]requested_item fm.sn is exist - process it [18:21:03]wFMCommunicate request_size=4 [18:21:03]MH_SAM_APDU [18:21:03]CAPDU: 80 11 00 00 [18:21:03]Write to MH i2c: E2 08 00 A3 6B 80 11 00 00 00 00 00 00 88 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:03]Read from MH i2c: E2 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 17 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 17 00 A3 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [18:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:03]wFMCommunicate OK [18:21:03]requested_item fd.num is exist - process it [18:21:03]SAM_PROTO_GetFieldsCounters [18:21:03]wFMCommunicate request_size=4 [18:21:03]MH_SAM_APDU [18:21:03]CAPDU: 80 13 00 00 [18:21:03]Write to MH i2c: E2 08 00 A4 6B 80 13 00 00 00 00 00 00 8B [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:03]Read from MH i2c: E2 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 62 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 62 00 A4 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E3 02 00 0E 04 04 00 CF 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 E5 [18:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E3 02 00 0E 04 04 00 CF 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 [18:21:03]wFMCommunicate OK [18:21:03]SAM_PROTO_GetFieldsCounters done [18:21:03]requested_item shift.num is exist - process it [18:21:03]requested_item shift.opened is exist - process it [18:21:03]req_shift_opened [18:21:03]FM_GetShiftState [18:21:03]SAM_PROTO_GetShiftState [18:21:03]wFMCommunicate request_size=4 [18:21:03]MH_SAM_APDU [18:21:03]CAPDU: 80 13 01 00 [18:21:03]Write to MH i2c: E2 08 00 A5 6B 80 13 01 00 00 00 00 00 8D [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:03]Read from MH i2c: E2 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 A5 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6B [18:21:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:21:03]wFMCommunicate OK [18:21:03]SAM_PROTO_GetShiftState done [18:21:03]FM_GetShiftState done [18:21:03]req_shift_opened done [18:21:03]requested_item shift.open_date is exist - process it [18:21:03]req_shift_open_date [18:21:03]req_shift_open_date done [18:21:03]produce_requested_data done [18:21:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189286,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:21:03]process_action_free close_receipt [18:21:03]json_value_free [18:21:03]json_value_free done [18:21:03]process_json_proto returns [18:21:03]Send response to host [18:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189286,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:21:03]free response buf [18:21:03]execute_script done [18:21:03]execute_script returns [18:21:03]free content buf [18:21:03]Sock 10.Close socket [18:21:03]Sock 10.Thread stoped [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:43]accept exits with 8 [18:21:43]New connection [18:21:43]New thread 3067215204 created [18:21:43]Thread 3067071844 joined [18:21:43]Waiting for new connection... [18:21:43] Sock 8.Parse request [18:21:43]Sock 8.Check first char [18:21:43]Sock 8.First char is OK [18:21:43]request: POST /json_proto HTTP/1.0 [18:21:43]Method: POST [18:21:43]URL: /json_proto [18:21:43]Method is POST - this is cgi request [18:21:43]url: /json_proto [18:21:43]query_string will be loaded in cgi processing [18:21:43]execute_cgi json_proto POST (null) [18:21:43]execute_cgi path=json_proto method=POST [18:21:43]POST find Content-Length [18:21:43]Host: 172.17.42.131:8080 [18:21:43]Content-Length: 983 [18:21:43]Content-Type: application/json [18:21:43] [18:21:43]POST finish read [18:21:43]Found Content-Length = 983 [18:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:21:43]execute_script... [18:21: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)211351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:21:43]POST & json_proto [18:21:43]process_json_proto [18:21:43]json parsed OK: [18:21:43]protocol is kg_v1.0 [18:21:43]action value=close_receipt [18:21:43]process_action close_receipt [18:21:43]cmd_close_receipt [18:21:43]MH_GetDate [18:21:43]Write to MH i2c: F0 00 00 A6 6B 00 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: F0 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: F0 09 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: F0 09 00 A6 6B 00 3C 90 1A 67 A0 18 CA 66 3E [18:21:43]GetLastDocTimeStamp 1729794063 [18:21:43]current date 1729794108 [18:21:43]FM_GetShiftState [18:21:43]SAM_PROTO_GetShiftState [18:21:43]wFMCommunicate request_size=4 [18:21:43]MH_SAM_APDU [18:21:43]CAPDU: 80 13 01 00 [18:21:43]Write to MH i2c: E2 08 00 A7 6B 80 13 01 00 00 00 00 00 8F [18:21:44]Write i2c OK [18:21:44]MH_I2C_Read... [18:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:44]Read from MH i2c: E2 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 0E 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 0E 00 A7 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6D [18:21:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:21:44]wFMCommunicate OK [18:21:44]SAM_PROTO_GetShiftState done [18:21:44]FM_GetShiftState done [18:21:44]opened in 1729728961 [18:21:44]opened+sec_in_day 1729815361 [18:21:44]quantity*price = 150054 [18:21:44]sum+1 = 150055 [18:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 360 24.10.2024 18:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 189287 ФПД: 145336404516059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182148&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189287&fm=145336404516059&tin=02508201610067®Number=0000000000100030&sum=150000 [18:21:45]StoreToDocumentArchive [18:21:45]shift 463 fd 189287 [18:21:45]save to /storage/0463/doc_00189287 [18:21:45]save last doc name /storage/0463/doc_00189287 to /storage/kkm_last_doc_name [18:21:45]save OK [18:21:45]Clear old archive folders... [18:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:45]tlvbuf is 015E7D00 [18:21:45]SAM_PROTO_ClearQueue [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 09 00 00 [18:21:45]Write to MH i2c: E2 08 00 B4 6B 80 09 00 00 00 00 00 00 91 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 B4 6B 00 90 00 93 [18:21:45]RAPDU: 90 00 [18:21:45]wFMCommunicate OK [18:21:45]SAM_PROTO_ClearQueue done [18:21:45]KKMCreateOFDPacket [18:21:45]OFDProtocolAddRootSTLVToBuf [18:21:45]FM_MakeSignedData [18:21:45]FM_MakeSignedData [18:21:45]SAM_PROTO_SignData [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 0D 01 02 [18:21:45]Write to MH i2c: E2 08 00 B5 6B 80 0D 01 02 00 00 00 00 99 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 B5 6B 00 90 00 94 [18:21:45]RAPDU: 90 00 [18:21:45]wFMCommunicate OK [18:21:45]wFMCommunicate request_size=255 [18:21:45]MH_SAM_APDU [18:21: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 3C 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E3 02 00 35 04 06 00 84 [18:21:45]Write to MH i2c: E2 02 01 B6 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 3C 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E3 02 00 35 04 06 00 84 00 00 98 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 B6 6B 00 90 00 95 [18:21:45]RAPDU: 90 00 [18:21:45]wFMCommunicate OK [18:21:45]wFMCommunicate request_size=10 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 0D 02 02 05 2E C4 C3 9C DB [18:21:45]Write to MH i2c: E2 0D 00 B7 6B 80 0D 02 02 05 00 2E C4 C3 9C DB 00 00 D2 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 03 00 B7 6B 00 90 00 96 [18:21:45]RAPDU: 90 00 [18:21:45]wFMCommunicate OK [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 0D 03 02 [18:21:45]Write to MH i2c: E2 08 00 B8 6B 80 0D 03 02 00 00 00 00 9E [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0B 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0B 00 B8 6B 00 F9 2A 7B 17 9C E1 9B 56 90 00 C2 [18:21:45]RAPDU: F9 2A 7B 17 9C E1 9B 56 90 00 [18:21:45]wFMCommunicate OK [18:21:45]SAM_PROTO_SignData done [18:21:45]FM_MakeSignedData done [18:21:45]CreateOFDProtocolMessage [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 11 00 00 [18:21:45]Write to MH i2c: E2 08 00 B9 6B 80 11 00 00 00 00 00 00 9E [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 17 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 17 00 B9 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [18:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:45]wFMCommunicate OK [18:21:45]CreateOFDProtocolMessage done [18:21:45]OFDSenderStorePacket 189287 [18:21:45]StoreOFDPacket docnum=189287 [18:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C 6E 07 01 A4 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 3C 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E3 02 00 35 04 06 00 84 2E C4 C3 9C DB F9 2A 7B 17 9C E1 9B 56 [18:21:45]CheckFolder [18:21:45]dirname=/storage/ofd_packets [18:21:45]CheckFolder done [18:21:45]ProducePacketName [18:21:45]name=ofd_packets/00189287 [18:21:45]NVStorageSaveData ofd_packets/00189287 [18:21:45]File name is /storage/ofd_packets/00189287 [18:21:45]Write 301 bytes [18:21:45]NVStorageSaveData done [18:21:45]OFDSenderStorePacket done [18:21:45]KKMCreateOFDPacket done [18:21:45]NVStorageSaveData kkm_last_timestamp [18:21:45]File name is /storage/kkm_last_timestamp [18:21:45]Write 4 bytes [18:21:45]NVStorageSaveData done [18:21:45]ExternCall_PrintAddStr [18:21:45]wPrintStart [18:21:45]Write to MH i2c: 01 00 00 BA 6B 25 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: 01 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: 01 07 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: 01 07 00 BA 6B 00 00 00 00 00 FF 0F 3A [18:21:45]RasterBufferAndPrint [18:21:45]line Счет N : (1)211351 [18:21:45]line ИНН: 02508201610067 [18:21:45]line Контрольно-Кассовый Чек [18:21:45]line ПРОДАЖА [18:21:45]line ТРК (МРК, ГНК) : 32 [18:21:45]line Товар: 2710124130 [18:21:45]line Аи-92-К-3 [18:21:45]line 22.770 * 65.90 [18:21:45]line = 1500.54 [18:21:45]line НДС 12% НСП 1% [18:21:45]line > о реализуемом товаре [18:21:45]line ОКРУГЛЕНИЕ: -0.54 [18:21:45]line ИТОГО: 1500.00 [18:21:45]line Внесено: 1500.00 [18:21:45]line СДАЧА: 0.00 [18:21:45]line НСП 1% : 13.28 [18:21:45]line НДС 12% : 159.35 [18:21:45]line Наличными: 1500.00 [18:21:45]line Безнал.: 0.00 [18:21:45]line Место: АЗС № 86 "Партнер Нефть" [18:21:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:21:45]line СНО: Общий режим [18:21:45]line Чек 360 24.10.2024 18:21 [18:21:45]line Смена: 463 ФФД: 1.0 [18:21:45]line ЗНМ: 0300000155 [18:21:45]line РНМ: 0000000000100030 [18:21:45]line Версия ККМ: 001 [18:21:45]line [18:21:45]line Дисконтная программа [18:21:45]line АИ-92 [18:21:45]line номер 86 [18:21:45]line сэкономлено 22.77 сом [18:21:45]line ФМ: 0000000000965340 [18:21:45]line ФД: 189287 [18:21:45]line ФПД: 145336404516059 [18:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182148&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189287&fm=145336404516059&tin=02508201610067®Number=0000000000100030&sum=150000 [18:21:45]written 0, free lines is 4095 [18:21:45]OFD Sender: Processing packet 189287 [packets to send 1062, broken 1061] [18:21:45]ProducePacketName [18:21:45]name=ofd_packets/00189287 [18:21:45]OFD Sender: To server: pG, [18:21:45]CommunicateWithHost lk.salyk.kg:30040 [18:21:45]ConnectInit lk.salyk.kg [18:21:46]Connected sock=10 [18:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C 6E 07 01 A4 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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 3C 90 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E3 02 00 35 04 06 00 84 2E C4 C3 9C DB F9 2A 7B 17 9C E1 9B 56 [18:21:46]Write to MH i2c: 01 00 00 EA 6B 55 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 EA 6B 00 00 00 00 00 F0 0B 57 [18:21:46]RasterBufferAndPrint [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]line [18:21:46]written 0, free lines is 3061 [18:21:46]MH_Cut [18:21:46]Write to MH i2c: D1 01 00 F1 6B 01 2E [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 01 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: D1 01 00 F1 6B 00 2D [18:21:46]Write to MH i2c: 01 00 00 F2 6B 5D [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DB 83 47 00 89 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 39 36 35 33 34 30 10 04 04 00 67 E3 02 00 F4 03 04 00 23 3A 1A 67 B6 04 01 00 00 13 61 31 35 CF 1C 45 EB [18:21:46]CommunicateWithHost err = 0 [18:21:46]CheckOFDResponse [18:21:46]1017 (14) - 77093643461234 [18:21:46]1041 (16) - 0000000000965340 [18:21:46]1040 (4) - 189287 [18:21:46]1012 (4) - 24.10.2024 12:14 [18:21:46]1206 (1) - 0 [18:21:46]OFD Sender: Remove packet 189287 [18:21:46]ProducePacketName [18:21:46]name=ofd_packets/00189287 [18:21:46]NVStorageDeleteData [18:21:46]OFD Sender: No OFD packet to send [18:21:47]*** Cut start [18:21:47]*** Partial cut [18:21:47]*** CUTSNS_PIN = 1 [18:21:47]*** CUTSNS_PIN = 0 [18:21:47]*** Brake cut motor [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]*** Stop cut motor [18:21:48]*** Cut end [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 F2 6B 00 00 00 00 00 FF 0F 72 [18:21:48]process_action close_receipt done [18:21:48]requested_data is exist [18:21:48]produce_requested_data [18:21:48]requested_item fm.sn is exist - process it [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 11 00 00 [18:21:48]Write to MH i2c: E2 08 00 F3 6B 80 11 00 00 00 00 00 00 D8 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 F3 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [18:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:48]wFMCommunicate OK [18:21:48]requested_item fd.num is exist - process it [18:21:48]SAM_PROTO_GetFieldsCounters [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 00 00 [18:21:48]Write to MH i2c: E2 08 00 F4 6B 80 13 00 00 00 00 00 00 DB [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 62 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 62 00 F4 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E3 02 00 0E 04 04 00 CF 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 39 [18:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E3 02 00 0E 04 04 00 CF 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 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetFieldsCounters done [18:21:48]requested_item shift.num is exist - process it [18:21:48]requested_item shift.opened is exist - process it [18:21:48]req_shift_opened [18:21:48]FM_GetShiftState [18:21:48]SAM_PROTO_GetShiftState [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 01 00 [18:21:48]Write to MH i2c: E2 08 00 F5 6B 80 13 01 00 00 00 00 00 DD [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 F5 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BB [18:21:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetShiftState done [18:21:48]FM_GetShiftState done [18:21:48]req_shift_opened done [18:21:48]requested_item shift.open_date is exist - process it [18:21:48]req_shift_open_date [18:21:48]req_shift_open_date done [18:21:48]produce_requested_data done [18:21:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189287,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:21:48]process_action_free close_receipt [18:21:48]json_value_free [18:21:48]json_value_free done [18:21:48]process_json_proto returns [18:21:48]Send response to host [18:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189287,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:21:48]free response buf [18:21:48]execute_script done [18:21:48]execute_script returns [18:21:48]free content buf [18:21:48]Sock 8.Close socket [18:21:48]Sock 8.Thread stoped [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]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:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]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:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:32]accept exits with 9 [18:30:32]New connection [18:30:32]New thread 3067071844 created [18:30:32]Thread 3067215204 joined [18:30:32]Waiting for new connection... [18:30:32] Sock 9.Parse request [18:30:32]Sock 9.Check first char [18:30:32]Sock 9.First char is OK [18:30:32]request: POST /json_proto HTTP/1.0 [18:30:32]Method: POST [18:30:32]URL: /json_proto [18:30:32]Method is POST - this is cgi request [18:30:32]url: /json_proto [18:30:32]query_string will be loaded in cgi processing [18:30:32]execute_cgi json_proto POST (null) [18:30:32]execute_cgi path=json_proto method=POST [18:30:32]POST find Content-Length [18:30:32]Host: 172.17.42.131:8080 [18:30:32]Content-Length: 682 [18:30:32]Content-Type: application/json [18:30:32] [18:30:32]POST finish read [18:30:32]Found Content-Length = 682 [18:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:32]execute_script... [18:30: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)211353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:32]POST & json_proto [18:30:32]process_json_proto [18:30:32]json parsed OK: [18:30:32]protocol is kg_v1.0 [18:30:32]action value=close_receipt [18:30:32]process_action close_receipt [18:30:32]cmd_close_receipt [18:30:32]MH_GetDate [18:30:32]Write to MH i2c: F0 00 00 F6 6B 50 [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: F0 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: F0 09 00 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: F0 09 00 F6 6B 00 4D 92 1A 67 A0 18 CA 66 A1 [18:30:32]GetLastDocTimeStamp 1729794108 [18:30:32]current date 1729794637 [18:30:32]FM_GetShiftState [18:30:32]SAM_PROTO_GetShiftState [18:30:32]wFMCommunicate request_size=4 [18:30:32]MH_SAM_APDU [18:30:32]CAPDU: 80 13 01 00 [18:30:32]Write to MH i2c: E2 08 00 F7 6B 80 13 01 00 00 00 00 00 DF [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:32]Read from MH i2c: E2 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 0E 00 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: E2 0E 00 F7 6B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BD [18:30:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:30:32]wFMCommunicate OK [18:30:32]SAM_PROTO_GetShiftState done [18:30:32]FM_GetShiftState done [18:30:32]opened in 1729728961 [18:30:32]opened+sec_in_day 1729815361 [18:30:32]quantity*price = 500033 [18:30:32]sum+1 = 500035 [18:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 361 24.10.2024 18:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189288 ФПД: 266193767912943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189288&fm=266193767912943&tin=02508201610067®Number=0000000000100030&sum=500000 [18:30:34]StoreToDocumentArchive [18:30:34]shift 463 fd 189288 [18:30:34]save to /storage/0463/doc_00189288 [18:30:34]save last doc name /storage/0463/doc_00189288 to /storage/kkm_last_doc_name [18:30:34]save OK [18:30:34]Clear old archive folders... [18:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:34]tlvbuf is 014D2F00 [18:30:34]SAM_PROTO_ClearQueue [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 09 00 00 [18:30:34]Write to MH i2c: E2 08 00 04 6C 80 09 00 00 00 00 00 00 E2 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 04 6C 00 90 00 E4 [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_ClearQueue done [18:30:34]KKMCreateOFDPacket [18:30:34]OFDProtocolAddRootSTLVToBuf [18:30:34]FM_MakeSignedData [18:30:34]FM_MakeSignedData [18:30:34]SAM_PROTO_SignData [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 0D 01 02 [18:30:34]Write to MH i2c: E2 08 00 05 6C 80 0D 01 02 00 00 00 00 EA [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 05 6C 00 90 00 E5 [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]wFMCommunicate request_size=255 [18:30:34]MH_SAM_APDU [18:30: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 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 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 4D 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E3 02 00 35 04 06 00 F2 [18:30:34]Write to MH i2c: E2 02 01 06 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 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 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 4D 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E3 02 00 35 04 06 00 F2 00 00 23 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]OFD Sender: No OFD packet to send [18:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 06 6C 00 90 00 E6 [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]wFMCommunicate request_size=10 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 0D 02 02 05 1A 10 FA 55 EF [18:30:34]Write to MH i2c: E2 0D 00 07 6C 80 0D 02 02 05 00 1A 10 FA 55 EF 00 00 5F [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 03 00 07 6C 00 90 00 E7 [18:30:34]RAPDU: 90 00 [18:30:34]wFMCommunicate OK [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 0D 03 02 [18:30:34]Write to MH i2c: E2 08 00 08 6C 80 0D 03 02 00 00 00 00 EF [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0B 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 0B 00 08 6C 00 A8 90 E4 91 F3 E3 3B 6A 90 00 18 [18:30:34]RAPDU: A8 90 E4 91 F3 E3 3B 6A 90 00 [18:30:34]wFMCommunicate OK [18:30:34]SAM_PROTO_SignData done [18:30:34]FM_MakeSignedData done [18:30:34]CreateOFDProtocolMessage [18:30:34]wFMCommunicate request_size=4 [18:30:34]MH_SAM_APDU [18:30:34]CAPDU: 80 11 00 00 [18:30:34]Write to MH i2c: E2 08 00 09 6C 80 11 00 00 00 00 00 00 EF [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:34]Read from MH i2c: E2 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 17 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: E2 17 00 09 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [18:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:30:34]wFMCommunicate OK [18:30:34]CreateOFDProtocolMessage done [18:30:34]OFDSenderStorePacket 189288 [18:30:34]StoreOFDPacket docnum=189288 [18:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C F0 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 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 4D 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E3 02 00 35 04 06 00 F2 1A 10 FA 55 EF A8 90 E4 91 F3 E3 3B 6A [18:30:34]CheckFolder [18:30:34]dirname=/storage/ofd_packets [18:30:34]CheckFolder done [18:30:34]ProducePacketName [18:30:34]name=ofd_packets/00189288 [18:30:34]NVStorageSaveData ofd_packets/00189288 [18:30:34]File name is /storage/ofd_packets/00189288 [18:30:34]Write 301 bytes [18:30:34]NVStorageSaveData done [18:30:34]OFDSenderStorePacket done [18:30:34]KKMCreateOFDPacket done [18:30:34]NVStorageSaveData kkm_last_timestamp [18:30:34]File name is /storage/kkm_last_timestamp [18:30:34]Write 4 bytes [18:30:34]NVStorageSaveData done [18:30:34]ExternCall_PrintAddStr [18:30:34]wPrintStart [18:30:34]Write to MH i2c: 01 00 00 0A 6C 76 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 0A 6C 00 00 00 00 00 FF 0F 8B [18:30:34]RasterBufferAndPrint [18:30:34]line Счет N : (1)211353 [18:30:34]line ИНН: 02508201610067 [18:30:34]line Контрольно-Кассовый Чек [18:30:34]line ПРОДАЖА [18:30:34]line ТРК (МРК, ГНК) : 33 [18:30:34]line Товар: 2710124500 [18:30:34]line Аи-95-К-3 [18:30:34]line 67.390 * 74.20 [18:30:34]line = 5000.34 [18:30:34]line НДС 12% НСП 1% [18:30:34]line > о реализуемом товаре [18:30:34]line ОКРУГЛЕНИЕ: -0.34 [18:30:34]line ИТОГО: 5000.00 [18:30:34]line Внесено: 5000.00 [18:30:34]line СДАЧА: 0.00 [18:30:34]line НСП 1% : 44.25 [18:30:34]line НДС 12% : 531.01 [18:30:34]line Наличными: 5000.00 [18:30:34]line Безнал.: 0.00 [18:30:34]line Место: АЗС № 86 "Партнер Нефть" [18:30:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:30:34]line СНО: Общий режим [18:30:34]line Чек 361 24.10.2024 18:30 [18:30:34]line Смена: 463 ФФД: 1.0 [18:30:34]line ЗНМ: 0300000155 [18:30:34]line РНМ: 0000000000100030 [18:30:34]line Версия ККМ: 001 [18:30:34]line ФМ: 0000000000965340 [18:30:34]line ФД: 189288 [18:30:34]line ФПД: 266193767912943 [18:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189288&fm=266193767912943&tin=02508201610067®Number=0000000000100030&sum=500000 [18:30:34]written 0, free lines is 4095 [18:30:34]OFD Sender: Processing packet 189288 [packets to send 1062, broken 1061] [18:30:34]ProducePacketName [18:30:34]name=ofd_packets/00189288 [18:30:34]OFD Sender: To server: pG, [18:30:34]CommunicateWithHost lk.salyk.kg:30040 [18:30:34]ConnectInit lk.salyk.kg [18:30:35]Write to MH i2c: 01 00 00 35 6C A1 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 07 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 07 00 35 6C 00 00 00 00 00 59 0C 0D [18:30:35]RasterBufferAndPrint [18:30:35]line [18:30:35]line [18:30:35]line [18:30:35]line [18:30:35]line [18:30:35]written 0, free lines is 3164 [18:30:35]MH_Cut [18:30:35]Write to MH i2c: D1 01 00 3C 6C 01 7A [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: D1 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: D1 01 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: D1 01 00 3C 6C 00 79 [18:30:35]Write to MH i2c: 01 00 00 3D 6C A9 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:36]*** Cut start [18:30:36]*** Partial cut [18:30:36]*** CUTSNS_PIN = 1 [18:30:36]*** CUTSNS_PIN = 0 [18:30:36]*** Brake cut motor [18:30:36]Read from MH i2c: 01 [18:30:36]MH_I2C_Read... [18:30:37]*** Stop cut motor [18:30:37]*** Cut end [18:30:37]Read from MH i2c: 01 07 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: 01 07 00 3D 6C 00 00 00 00 00 FF 0F BE [18:30:37]process_action close_receipt done [18:30:37]requested_data is exist [18:30:37]produce_requested_data [18:30:37]requested_item fm.sn is exist - process it [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 11 00 00 [18:30:37]Write to MH i2c: E2 08 00 3E 6C 80 11 00 00 00 00 00 00 24 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 17 00 3E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [18:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:30:37]wFMCommunicate OK [18:30:37]requested_item fd.num is exist - process it [18:30:37]SAM_PROTO_GetFieldsCounters [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 00 00 [18:30:37]Write to MH i2c: E2 08 00 3F 6C 80 13 00 00 00 00 00 00 27 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 62 00 3F 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E3 02 00 0E 04 04 00 CF 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 89 [18:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E3 02 00 0E 04 04 00 CF 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 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetFieldsCounters done [18:30:37]requested_item shift.num is exist - process it [18:30:37]requested_item shift.opened is exist - process it [18:30:37]req_shift_opened [18:30:37]FM_GetShiftState [18:30:37]SAM_PROTO_GetShiftState [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 01 00 [18:30:37]Write to MH i2c: E2 08 00 40 6C 80 13 01 00 00 00 00 00 29 [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 40 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 07 [18:30:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetShiftState done [18:30:37]FM_GetShiftState done [18:30:37]req_shift_opened done [18:30:37]requested_item shift.open_date is exist - process it [18:30:37]req_shift_open_date [18:30:37]req_shift_open_date done [18:30:37]produce_requested_data done [18:30:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189288,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:30:37]process_action_free close_receipt [18:30:37]json_value_free [18:30:37]json_value_free done [18:30:37]process_json_proto returns [18:30:37]Send response to host [18:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189288,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:30:37]free response buf [18:30:37]execute_script done [18:30:37]execute_script returns [18:30:37]free content buf [18:30:37]Sock 9.Close socket [18:30:37]Sock 9.Thread stoped [18:30:37]accept exits with 8 [18:30:37]New connection [18:30:37]New thread 3067215204 created [18:30:37]Thread 3067071844 joined [18:30:37]Waiting for new connection... [18:30:37] Sock 8.Parse request [18:30:37]Sock 8.Check first char [18:30:37]Sock 8.First char is OK [18:30:37]request: POST /json_proto HTTP/1.0 [18:30:37]Method: POST [18:30:37]URL: /json_proto [18:30:37]Method is POST - this is cgi request [18:30:37]url: /json_proto [18:30:37]query_string will be loaded in cgi processing [18:30:37]execute_cgi json_proto POST (null) [18:30:37]execute_cgi path=json_proto method=POST [18:30:37]POST find Content-Length [18:30:37]Host: 172.17.42.131:8080 [18:30:37]Content-Length: 677 [18:30:37]Content-Type: application/json [18:30:37] [18:30:37]POST finish read [18:30:37]Found Content-Length = 677 [18:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:30:37]execute_script... [18:30: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)211354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:30:37]POST & json_proto [18:30:37]process_json_proto [18:30:37]json parsed OK: [18:30:37]protocol is kg_v1.0 [18:30:37]action value=close_receipt [18:30:37]process_action close_receipt [18:30:37]cmd_close_receipt [18:30:37]MH_GetDate [18:30:37]Write to MH i2c: F0 00 00 41 6C 9C [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: F0 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: F0 09 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: F0 09 00 41 6C 00 52 92 1A 67 A0 18 CA 66 F2 [18:30:37]GetLastDocTimeStamp 1729794637 [18:30:37]current date 1729794642 [18:30:37]FM_GetShiftState [18:30:37]SAM_PROTO_GetShiftState [18:30:37]wFMCommunicate request_size=4 [18:30:37]MH_SAM_APDU [18:30:37]CAPDU: 80 13 01 00 [18:30:37]Write to MH i2c: E2 08 00 42 6C 80 13 01 00 00 00 00 00 2B [18:30:37]Write i2c OK [18:30:37]MH_I2C_Read... [18:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:37]Read from MH i2c: E2 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 [18:30:37]MH_I2C_Read... [18:30:37]Read from MH i2c: E2 0E 00 42 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 09 [18:30:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:30:37]wFMCommunicate OK [18:30:37]SAM_PROTO_GetShiftState done [18:30:37]FM_GetShiftState done [18:30:37]opened in 1729728961 [18:30:37]opened+sec_in_day 1729815361 [18:30:37]quantity*price = 50041 [18:30:37]sum+1 = 50042 [18:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 362 24.10.2024 18:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189289 ФПД: 4736121457973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183042&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189289&fm=4736121457973&tin=02508201610067®Number=0000000000100030&sum=50000 [18:30:39]StoreToDocumentArchive [18:30:39]shift 463 fd 189289 [18:30:39]save to /storage/0463/doc_00189289 [18:30:39]save last doc name /storage/0463/doc_00189289 to /storage/kkm_last_doc_name [18:30:39]save OK [18:30:39]Clear old archive folders... [18:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:39]tlvbuf is B6F01C00 [18:30:39]SAM_PROTO_ClearQueue [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 09 00 00 [18:30:39]Write to MH i2c: E2 08 00 4F 6C 80 09 00 00 00 00 00 00 2D [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 4F 6C 00 90 00 2F [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]SAM_PROTO_ClearQueue done [18:30:39]KKMCreateOFDPacket [18:30:39]OFDProtocolAddRootSTLVToBuf [18:30:39]FM_MakeSignedData [18:30:39]FM_MakeSignedData [18:30:39]SAM_PROTO_SignData [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 0D 01 02 [18:30:39]Write to MH i2c: E2 08 00 50 6C 80 0D 01 02 00 00 00 00 35 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 50 6C 00 90 00 30 [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]wFMCommunicate request_size=255 [18:30:39]MH_SAM_APDU [18:30: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 52 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E3 02 00 35 04 06 00 04 [18:30:39]Write to MH i2c: E2 02 01 51 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 52 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E3 02 00 35 04 06 00 04 00 00 9A [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 51 6C 00 90 00 31 [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]wFMCommunicate request_size=10 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 0D 02 02 05 4E B6 D6 4D 35 [18:30:39]Write to MH i2c: E2 0D 00 52 6C 80 0D 02 02 05 00 4E B6 D6 4D 35 00 00 9E [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 52 6C 00 90 00 32 [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 0D 03 02 [18:30:39]Write to MH i2c: E2 08 00 53 6C 80 0D 03 02 00 00 00 00 3A [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0B 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0B 00 53 6C 00 EB 4E A9 03 6A 1C 8E DC 90 00 10 [18:30:39]RAPDU: EB 4E A9 03 6A 1C 8E DC 90 00 [18:30:39]wFMCommunicate OK [18:30:39]SAM_PROTO_SignData done [18:30:39]FM_MakeSignedData done [18:30:39]CreateOFDProtocolMessage [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 11 00 00 [18:30:39]Write to MH i2c: E2 08 00 54 6C 80 11 00 00 00 00 00 00 3A [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 17 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 17 00 54 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [18:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:30:39]wFMCommunicate OK [18:30:39]CreateOFDProtocolMessage done [18:30:39]OFDSenderStorePacket 189289 [18:30:39]StoreOFDPacket docnum=189289 [18:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 66 07 01 59 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 52 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E3 02 00 35 04 06 00 04 4E B6 D6 4D 35 EB 4E A9 03 6A 1C 8E DC [18:30:39]CheckFolder [18:30:39]dirname=/storage/ofd_packets [18:30:39]CheckFolder done [18:30:39]ProducePacketName [18:30:39]name=ofd_packets/00189289 [18:30:39]NVStorageSaveData ofd_packets/00189289 [18:30:39]File name is /storage/ofd_packets/00189289 [18:30:39]Write 301 bytes [18:30:39]NVStorageSaveData done [18:30:39]OFDSenderStorePacket done [18:30:39]KKMCreateOFDPacket done [18:30:39]NVStorageSaveData kkm_last_timestamp [18:30:39]File name is /storage/kkm_last_timestamp [18:30:39]Write 4 bytes [18:30:39]NVStorageSaveData done [18:30:39]ExternCall_PrintAddStr [18:30:39]wPrintStart [18:30:39]Write to MH i2c: 01 00 00 55 6C C1 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: 01 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: 01 07 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: 01 07 00 55 6C 00 00 00 00 00 FF 0F D6 [18:30:39]RasterBufferAndPrint [18:30:39]line Счет N : (1)211354 [18:30:39]line ИНН: 02508201610067 [18:30:39]line Контрольно-Кассовый Чек [18:30:39]line ПРОДАЖА [18:30:39]line ТРК (МРК, ГНК) : 12 [18:30:39]line Товар: 2710124130 [18:30:39]line Аи-92-К-3 [18:30:39]line 7.480 * 66.90 [18:30:39]line = 500.41 [18:30:39]line НДС 12% НСП 1% [18:30:39]line > о реализуемом товаре [18:30:39]line ОКРУГЛЕНИЕ: -0.41 [18:30:39]line ИТОГО: 500.00 [18:30:39]line Внесено: 500.00 [18:30:39]line СДАЧА: 0.00 [18:30:39]line НСП 1% : 4.43 [18:30:39]line НДС 12% : 53.14 [18:30:39]line Наличными: 500.00 [18:30:39]line Безнал.: 0.00 [18:30:39]line Место: АЗС № 86 "Партнер Нефть" [18:30:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:30:39]line СНО: Общий режим [18:30:39]line Чек 362 24.10.2024 18:30 [18:30:39]line Смена: 463 ФФД: 1.0 [18:30:39]line ЗНМ: 0300000155 [18:30:39]line РНМ: 0000000000100030 [18:30:39]line Версия ККМ: 001 [18:30:39]line ФМ: 0000000000965340 [18:30:39]line ФД: 189289 [18:30:39]line ФПД: 4736121457973 [18:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183042&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189289&fm=4736121457973&tin=02508201610067®Number=0000000000100030&sum=50000 [18:30:39]written 0, free lines is 4095 [18:30:40]Write to MH i2c: 01 00 00 80 6C EC [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 80 6C 00 00 00 00 00 59 0C 58 [18:30:40]RasterBufferAndPrint [18:30:40]line [18:30:40]line [18:30:40]line [18:30:40]line [18:30:40]line [18:30:40]written 0, free lines is 3167 [18:30:40]MH_Cut [18:30:40]Write to MH i2c: D1 01 00 87 6C 01 C5 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: D1 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: D1 01 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: D1 01 00 87 6C 00 C4 [18:30:40]Write to MH i2c: 01 00 00 88 6C F4 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:41]*** Cut start [18:30:41]*** Partial cut [18:30:41]*** CUTSNS_PIN = 1 [18:30:41]*** CUTSNS_PIN = 0 [18:30:41]*** Brake cut motor [18:30:42]Read from MH i2c: 01 [18:30:42]MH_I2C_Read... [18:30:42]*** Stop cut motor [18:30:42]*** Cut end [18:30:42]Read from MH i2c: 01 07 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: 01 07 00 88 6C 00 00 00 00 00 FF 0F 09 [18:30:42]process_action close_receipt done [18:30:42]requested_data is exist [18:30:42]produce_requested_data [18:30:42]requested_item fm.sn is exist - process it [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 11 00 00 [18:30:42]Write to MH i2c: E2 08 00 89 6C 80 11 00 00 00 00 00 00 6F [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 89 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [18:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:30:42]wFMCommunicate OK [18:30:42]requested_item fd.num is exist - process it [18:30:42]SAM_PROTO_GetFieldsCounters [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 00 00 [18:30:42]Write to MH i2c: E2 08 00 8A 6C 80 13 00 00 00 00 00 00 72 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 62 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 62 00 8A 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E3 02 00 0E 04 04 00 CF 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 D8 [18:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E3 02 00 0E 04 04 00 CF 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 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_GetFieldsCounters done [18:30:42]requested_item shift.num is exist - process it [18:30:42]requested_item shift.opened is exist - process it [18:30:42]req_shift_opened [18:30:42]FM_GetShiftState [18:30:42]SAM_PROTO_GetShiftState [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 01 00 [18:30:42]Write to MH i2c: E2 08 00 8B 6C 80 13 01 00 00 00 00 00 74 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 8B 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 52 [18:30:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_GetShiftState done [18:30:42]FM_GetShiftState done [18:30:42]req_shift_opened done [18:30:42]requested_item shift.open_date is exist - process it [18:30:42]req_shift_open_date [18:30:42]req_shift_open_date done [18:30:42]produce_requested_data done [18:30:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189289,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:30:42]process_action_free close_receipt [18:30:42]json_value_free [18:30:42]json_value_free done [18:30:42]process_json_proto returns [18:30:42]Send response to host [18:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189289,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:30:42]free response buf [18:30:42]execute_script done [18:30:42]execute_script returns [18:30:42]free content buf [18:30:42]Sock 8.Close socket [18:30:42]Sock 8.Thread stoped [18:31:43]accept exits with 9 [18:31:43]New connection [18:31:43]New thread 3067071844 created [18:31:43]Thread 3067215204 joined [18:31:43]Waiting for new connection... [18:31:43] Sock 9.Parse request [18:31:43]Sock 9.Check first char [18:31:43]Sock 9.First char is OK [18:31:43]request: POST /json_proto HTTP/1.0 [18:31:43]Method: POST [18:31:43]URL: /json_proto [18:31:43]Method is POST - this is cgi request [18:31:43]url: /json_proto [18:31:43]query_string will be loaded in cgi processing [18:31:43]execute_cgi json_proto POST (null) [18:31:43]execute_cgi path=json_proto method=POST [18:31:43]POST find Content-Length [18:31:43]Host: 172.17.42.131:8080 [18:31:43]Content-Length: 682 [18:31:43]Content-Type: application/json [18:31:43] [18:31:43]POST finish read [18:31:43]Found Content-Length = 682 [18:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.340, "sum" : 2498.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2498.00, "payments": [ { "type": 0, "sum" : 2498.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:43]execute_script... [18:31: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)211355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.340, "sum" : 2498.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2498.00, "payments": [ { "type": 0, "sum" : 2498.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:43]POST & json_proto [18:31:43]process_json_proto [18:31:43]json parsed OK: [18:31:43]protocol is kg_v1.0 [18:31:43]action value=close_receipt [18:31:43]process_action close_receipt [18:31:43]cmd_close_receipt [18:31:43]MH_GetDate [18:31:43]Write to MH i2c: F0 00 00 8C 6C E7 [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 09 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 09 00 8C 6C 00 94 92 1A 67 A0 18 CA 66 7F [18:31:43]GetLastDocTimeStamp 1729794642 [18:31:43]current date 1729794708 [18:31:43]FM_GetShiftState [18:31:43]SAM_PROTO_GetShiftState [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 13 01 00 [18:31:43]Write to MH i2c: E2 08 00 8D 6C 80 13 01 00 00 00 00 00 76 [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 8D 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 54 [18:31:43]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetShiftState done [18:31:43]FM_GetShiftState done [18:31:43]opened in 1729728961 [18:31:43]opened+sec_in_day 1729815361 [18:31:43]quantity*price = 249804 [18:31:43]sum+1 = 249806 [18:31:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2498.00 Внесено: 2600.00 СДАЧА: 102.00 НСП 1% : 22.11 НДС 12% : 265.28 Наличными: 2498.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 363 24.10.2024 18:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189290 ФПД: 185195114726928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183148&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189290&fm=185195114726928&tin=02508201610067®Number=0000000000100030&sum=249800 [18:31:44]StoreToDocumentArchive [18:31:44]shift 463 fd 189290 [18:31:44]save to /storage/0463/doc_00189290 [18:31:44]save last doc name /storage/0463/doc_00189290 to /storage/kkm_last_doc_name [18:31:44]save OK [18:31:44]Clear old archive folders... [18:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:44]tlvbuf is 01517AA0 [18:31:44]SAM_PROTO_ClearQueue [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 09 00 00 [18:31:44]Write to MH i2c: E2 08 00 9A 6C 80 09 00 00 00 00 00 00 78 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 9A 6C 00 90 00 7A [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]SAM_PROTO_ClearQueue done [18:31:44]KKMCreateOFDPacket [18:31:44]OFDProtocolAddRootSTLVToBuf [18:31:44]FM_MakeSignedData [18:31:44]FM_MakeSignedData [18:31:44]SAM_PROTO_SignData [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 0D 01 02 [18:31:44]Write to MH i2c: E2 08 00 9B 6C 80 0D 01 02 00 00 00 00 80 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 9B 6C 00 90 00 7B [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]wFMCommunicate request_size=255 [18:31:44]MH_SAM_APDU [18:31: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 33 FF 03 08 00 03 DC 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 67 00 00 00 00 07 04 06 00 C8 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 94 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E3 02 00 35 04 06 00 A8 [18:31:44]Write to MH i2c: E2 02 01 9C 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 33 FF 03 08 00 03 DC 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 67 00 00 00 00 07 04 06 00 C8 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 94 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E3 02 00 35 04 06 00 A8 00 00 76 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 03 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 03 00 9C 6C 00 90 00 7C [18:31:45]RAPDU: 90 00 [18:31:45]wFMCommunicate OK [18:31:45]wFMCommunicate request_size=10 [18:31:45]MH_SAM_APDU [18:31:45]CAPDU: 80 0D 02 02 05 6F 19 07 06 10 [18:31:45]Write to MH i2c: E2 0D 00 9D 6C 80 0D 02 02 05 00 6F 19 07 06 10 00 00 32 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 03 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 03 00 9D 6C 00 90 00 7D [18:31:45]RAPDU: 90 00 [18:31:45]wFMCommunicate OK [18:31:45]wFMCommunicate request_size=4 [18:31:45]MH_SAM_APDU [18:31:45]CAPDU: 80 0D 03 02 [18:31:45]Write to MH i2c: E2 08 00 9E 6C 80 0D 03 02 00 00 00 00 85 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0B 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0B 00 9E 6C 00 F8 44 0F 2A A5 69 2C 90 90 00 C5 [18:31:45]RAPDU: F8 44 0F 2A A5 69 2C 90 90 00 [18:31:45]wFMCommunicate OK [18:31:45]SAM_PROTO_SignData done [18:31:45]FM_MakeSignedData done [18:31:45]CreateOFDProtocolMessage [18:31:45]wFMCommunicate request_size=4 [18:31:45]MH_SAM_APDU [18:31:45]CAPDU: 80 11 00 00 [18:31:45]Write to MH i2c: E2 08 00 9F 6C 80 11 00 00 00 00 00 00 85 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 17 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 17 00 9F 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [18:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:45]wFMCommunicate OK [18:31:45]CreateOFDProtocolMessage done [18:31:45]OFDSenderStorePacket 189290 [18:31:45]StoreOFDPacket docnum=189290 [18:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 21 07 01 F8 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 33 FF 03 08 00 03 DC 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 67 00 00 00 00 07 04 06 00 C8 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 94 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E3 02 00 35 04 06 00 A8 6F 19 07 06 10 F8 44 0F 2A A5 69 2C 90 [18:31:45]CheckFolder [18:31:45]dirname=/storage/ofd_packets [18:31:45]CheckFolder done [18:31:45]ProducePacketName [18:31:45]name=ofd_packets/00189290 [18:31:45]NVStorageSaveData ofd_packets/00189290 [18:31:45]File name is /storage/ofd_packets/00189290 [18:31:45]Write 301 bytes [18:31:45]NVStorageSaveData done [18:31:45]OFDSenderStorePacket done [18:31:45]KKMCreateOFDPacket done [18:31:45]NVStorageSaveData kkm_last_timestamp [18:31:45]File name is /storage/kkm_last_timestamp [18:31:45]Write 4 bytes [18:31:45]NVStorageSaveData done [18:31:45]ExternCall_PrintAddStr [18:31:45]wPrintStart [18:31:45]Write to MH i2c: 01 00 00 A0 6C 0C [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 A0 6C 00 00 00 00 00 FF 0F 21 [18:31:45]RasterBufferAndPrint [18:31:45]line Счет N : (1)211355 [18:31:45]line ИНН: 02508201610067 [18:31:45]line Контрольно-Кассовый Чек [18:31:45]line ПРОДАЖА [18:31:45]line ТРК (МРК, ГНК) : 22 [18:31:45]line Товар: 2710124130 [18:31:45]line Аи-92-К-3 [18:31:45]line 37.340 * 66.90 [18:31:45]line = 2498.05 [18:31:45]line НДС 12% НСП 1% [18:31:45]line > о реализуемом товаре [18:31:45]line ОКРУГЛЕНИЕ: -0.05 [18:31:45]line ИТОГО: 2498.00 [18:31:45]line Внесено: 2600.00 [18:31:45]line СДАЧА: 102.00 [18:31:45]line НСП 1% : 22.11 [18:31:45]line НДС 12% : 265.28 [18:31:45]line Наличными: 2498.00 [18:31:45]line Безнал.: 0.00 [18:31:45]line Место: АЗС № 86 "Партнер Нефть" [18:31:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:31:45]line СНО: Общий режим [18:31:45]line Чек 363 24.10.2024 18:31 [18:31:45]line Смена: 463 ФФД: 1.0 [18:31:45]line ЗНМ: 0300000155 [18:31:45]line РНМ: 0000000000100030 [18:31:45]line Версия ККМ: 001 [18:31:45]line ФМ: 0000000000965340 [18:31:45]line ФД: 189290 [18:31:45]line ФПД: 185195114726928 [18:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183148&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189290&fm=185195114726928&tin=02508201610067®Number=0000000000100030&sum=249800 [18:31:45]written 0, free lines is 4095 [18:31:45]Write to MH i2c: 01 00 00 CB 6C 37 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 CB 6C 00 00 00 00 00 5F 0C A9 [18:31:45]RasterBufferAndPrint [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]written 0, free lines is 3170 [18:31:45]MH_Cut [18:31:45]Write to MH i2c: D1 01 00 D2 6C 01 10 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 D2 6C 00 0F [18:31:45]Write to MH i2c: 01 00 00 D3 6C 3F [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:47]*** Cut start [18:31:47]*** Partial cut [18:31:47]*** CUTSNS_PIN = 1 [18:31:47]*** CUTSNS_PIN = 0 [18:31:47]*** Brake cut motor [18:31:47]Read from MH i2c: 01 [18:31:47]MH_I2C_Read... [18:31:47]*** Stop cut motor [18:31:47]*** Cut end [18:31:47]Read from MH i2c: 01 07 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 D3 6C 00 00 00 00 00 FF 0F 54 [18:31:47]process_action close_receipt done [18:31:47]requested_data is exist [18:31:47]produce_requested_data [18:31:47]requested_item fm.sn is exist - process it [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 11 00 00 [18:31:47]Write to MH i2c: E2 08 00 D4 6C 80 11 00 00 00 00 00 00 BA [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 D4 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [18:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:31:47]wFMCommunicate OK [18:31:47]requested_item fd.num is exist - process it [18:31:47]SAM_PROTO_GetFieldsCounters [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 13 00 00 [18:31:47]Write to MH i2c: E2 08 00 D5 6C 80 13 00 00 00 00 00 00 BD [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 62 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 62 00 D5 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E3 02 00 0E 04 04 00 CF 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 27 [18:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E3 02 00 0E 04 04 00 CF 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 [18:31:47]wFMCommunicate OK [18:31:47]SAM_PROTO_GetFieldsCounters done [18:31:47]requested_item shift.num is exist - process it [18:31:47]requested_item shift.opened is exist - process it [18:31:47]req_shift_opened [18:31:47]FM_GetShiftState [18:31:47]SAM_PROTO_GetShiftState [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 13 01 00 [18:31:47]Write to MH i2c: E2 08 00 D6 6C 80 13 01 00 00 00 00 00 BF [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 D6 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9D [18:31:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:31:48]wFMCommunicate OK [18:31:48]SAM_PROTO_GetShiftState done [18:31:48]FM_GetShiftState done [18:31:48]req_shift_opened done [18:31:48]requested_item shift.open_date is exist - process it [18:31:48]req_shift_open_date [18:31:48]req_shift_open_date done [18:31:48]produce_requested_data done [18:31:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189290,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:31:48]process_action_free close_receipt [18:31:48]json_value_free [18:31:48]json_value_free done [18:31:48]process_json_proto returns [18:31:48]Send response to host [18:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189290,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:31:48]free response buf [18:31:48]execute_script done [18:31:48]execute_script returns [18:31:48]free content buf [18:31:48]Sock 9.Close socket [18:31:48]Sock 9.Thread stoped [18:32:45]ConnectInit Can't connect to host [18:32:45]CommunicateWithHost connect error [18:32:45]CommunicateWithHost err = -1 [18:32:45]OFD Sender: Server communicate error [18:32:45]OFD Sender: Processing packet 189288 [packets to send 1064, broken 1061] [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00189288 [18:32:45]OFD Sender: To server: pG, [18:32:45]CommunicateWithHost lk.salyk.kg:30040 [18:32:45]ConnectInit lk.salyk.kg [18:32:45]Connected sock=9 [18:32:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C F0 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 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 4D 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E3 02 00 35 04 06 00 F2 1A 10 FA 55 EF A8 90 E4 91 F3 E3 3B 6A [18:32:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1B 3E 47 00 F6 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E3 02 00 F4 03 04 00 B7 3C 1A 67 B6 04 01 00 00 56 59 B0 E7 B0 EC 69 64 [18:32:45]CommunicateWithHost err = 0 [18:32:45]CheckOFDResponse [18:32:45]1017 (14) - 77093643461234 [18:32:45]1041 (16) - 0000000000965340 [18:32:45]1040 (4) - 189288 [18:32:45]1012 (4) - 24.10.2024 12:25 [18:32:45]1206 (1) - 0 [18:32:45]OFD Sender: Remove packet 189288 [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00189288 [18:32:45]NVStorageDeleteData [18:32:46]OFD Sender: Processing packet 189289 [packets to send 1063, broken 1061] [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00189289 [18:32:46]OFD Sender: To server: pG, [18:32:46]CommunicateWithHost lk.salyk.kg:30040 [18:32:46]ConnectInit lk.salyk.kg [18:32:46]Connected sock=9 [18:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 66 07 01 59 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 52 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E3 02 00 35 04 06 00 04 4E B6 D6 4D 35 EB 4E A9 03 6A 1C 8E DC [18:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 40 5F 47 00 24 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 39 36 35 33 34 30 10 04 04 00 69 E3 02 00 F4 03 04 00 B8 3C 1A 67 B6 04 01 00 00 D0 3A AA 2C 5A 12 06 0F [18:32:46]CommunicateWithHost err = 0 [18:32:46]CheckOFDResponse [18:32:46]1017 (14) - 77093643461234 [18:32:46]1041 (16) - 0000000000965340 [18:32:46]1040 (4) - 189289 [18:32:46]1012 (4) - 24.10.2024 12:25 [18:32:46]1206 (1) - 0 [18:32:46]OFD Sender: Remove packet 189289 [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00189289 [18:32:46]NVStorageDeleteData [18:32:47]OFD Sender: Processing packet 189290 [packets to send 1062, broken 1061] [18:32:47]ProducePacketName [18:32:47]name=ofd_packets/00189290 [18:32:47]OFD Sender: To server: pG, [18:32:47]CommunicateWithHost lk.salyk.kg:30040 [18:32:47]ConnectInit lk.salyk.kg [18:32:47]Connected sock=9 [18:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 21 07 01 F8 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 33 FF 03 08 00 03 DC 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 67 00 00 00 00 07 04 06 00 C8 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 94 92 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E3 02 00 35 04 06 00 A8 6F 19 07 06 10 F8 44 0F 2A A5 69 2C 90 [18:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C0 F8 47 00 BB 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 39 36 35 33 34 30 10 04 04 00 6A E3 02 00 F4 03 04 00 B9 3C 1A 67 B6 04 01 00 00 2F 66 FE A3 F3 E4 AB 33 [18:32:48]CommunicateWithHost err = 0 [18:32:48]CheckOFDResponse [18:32:48]1017 (14) - 77093643461234 [18:32:48]1041 (16) - 0000000000965340 [18:32:48]1040 (4) - 189290 [18:32:48]1012 (4) - 24.10.2024 12:25 [18:32:48]1206 (1) - 0 [18:32:48]OFD Sender: Remove packet 189290 [18:32:48]ProducePacketName [18:32:48]name=ofd_packets/00189290 [18:32:48]NVStorageDeleteData [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:45]accept exits with 8 [18:33:45]New connection [18:33:45]New thread 3067215204 created [18:33:45]Thread 3067071844 joined [18:33:45]Waiting for new connection... [18:33:45] Sock 8.Parse request [18:33:45]Sock 8.Check first char [18:33:45]Sock 8.First char is OK [18:33:45]request: POST /json_proto HTTP/1.0 [18:33:45]Method: POST [18:33:45]URL: /json_proto [18:33:45]Method is POST - this is cgi request [18:33:45]url: /json_proto [18:33:45]query_string will be loaded in cgi processing [18:33:45]execute_cgi json_proto POST (null) [18:33:45]execute_cgi path=json_proto method=POST [18:33:45]POST find Content-Length [18:33:45]Host: 172.17.42.131:8080 [18:33:45]Content-Length: 688 [18:33:45]Content-Type: application/json [18:33:45] [18:33:45]POST finish read [18:33:45]Found Content-Length = 688 [18:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:33:45]execute_script... [18:33: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)211356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:33:45]POST & json_proto [18:33:45]process_json_proto [18:33:45]json parsed OK: [18:33:45]protocol is kg_v1.0 [18:33:45]action value=close_receipt [18:33:45]process_action close_receipt [18:33:45]cmd_close_receipt [18:33:45]MH_GetDate [18:33:45]Write to MH i2c: F0 00 00 D7 6C 32 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: F0 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: F0 09 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: F0 09 00 D7 6C 00 0E 93 1A 67 A0 18 CA 66 45 [18:33:45]GetLastDocTimeStamp 1729794708 [18:33:45]current date 1729794830 [18:33:45]FM_GetShiftState [18:33:45]SAM_PROTO_GetShiftState [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 13 01 00 [18:33:45]Write to MH i2c: E2 08 00 D8 6C 80 13 01 00 00 00 00 00 C1 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0E 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0E 00 D8 6C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9F [18:33:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:33:45]wFMCommunicate OK [18:33:45]SAM_PROTO_GetShiftState done [18:33:45]FM_GetShiftState done [18:33:45]opened in 1729728961 [18:33:45]opened+sec_in_day 1729815361 [18:33:45]quantity*price = 150076 [18:33:45]sum+1 = 150078 [18:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 364 24.10.2024 18:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189291 ФПД: 210607580452908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189291&fm=210607580452908&tin=02508201610067®Number=0000000000100030&sum=150000 [18:33:46]StoreToDocumentArchive [18:33:46]shift 463 fd 189291 [18:33:46]save to /storage/0463/doc_00189291 [18:33:46]save last doc name /storage/0463/doc_00189291 to /storage/kkm_last_doc_name [18:33:46]save OK [18:33:46]Clear old archive folders... [18:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:33:46]tlvbuf is B6DE80B0 [18:33:46]SAM_PROTO_ClearQueue [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 09 00 00 [18:33:46]Write to MH i2c: E2 08 00 E5 6C 80 09 00 00 00 00 00 00 C3 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 E5 6C 00 90 00 C5 [18:33:46]RAPDU: 90 00 [18:33:46]wFMCommunicate OK [18:33:46]SAM_PROTO_ClearQueue done [18:33:46]KKMCreateOFDPacket [18:33:46]OFDProtocolAddRootSTLVToBuf [18:33:46]FM_MakeSignedData [18:33:46]FM_MakeSignedData [18:33:46]SAM_PROTO_SignData [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 0D 01 02 [18:33:46]Write to MH i2c: E2 08 00 E6 6C 80 0D 01 02 00 00 00 00 CB [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 E6 6C 00 90 00 C6 [18:33:46]RAPDU: 90 00 [18:33:46]wFMCommunicate OK [18:33:46]wFMCommunicate request_size=255 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6C 01 00 00 F4 03 04 00 0E 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E3 02 [18:33:46]Write to MH i2c: E2 02 01 E7 6C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6C 01 00 00 F4 03 04 00 0E 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E3 02 00 00 29 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 E7 6C 00 90 00 C7 [18:33:46]RAPDU: 90 00 [18:33:47]wFMCommunicate OK [18:33:47]wFMCommunicate request_size=16 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BF 8B E6 05 18 2C [18:33:47]Write to MH i2c: E2 13 00 E8 6C 80 0D 02 02 0B 00 00 35 04 06 00 BF 8B E6 05 18 2C 00 00 9C [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 03 00 E8 6C 00 90 00 C8 [18:33:47]RAPDU: 90 00 [18:33:47]wFMCommunicate OK [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 0D 03 02 [18:33:47]Write to MH i2c: E2 08 00 E9 6C 80 0D 03 02 00 00 00 00 D0 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0B 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0B 00 E9 6C 00 CF 40 41 46 29 C5 AD 09 90 00 0B [18:33:47]RAPDU: CF 40 41 46 29 C5 AD 09 90 00 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_SignData done [18:33:47]FM_MakeSignedData done [18:33:47]CreateOFDProtocolMessage [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 11 00 00 [18:33:47]Write to MH i2c: E2 08 00 EA 6C 80 11 00 00 00 00 00 00 D0 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 17 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 17 00 EA 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [18:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:47]wFMCommunicate OK [18:33:47]CreateOFDProtocolMessage done [18:33:47]OFDSenderStorePacket 189291 [18:33:47]StoreOFDPacket docnum=189291 [18:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 15 97 0D 01 33 D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6C 01 00 00 F4 03 04 00 0E 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E3 02 00 35 04 06 00 BF 8B E6 05 18 2C CF 40 41 46 29 C5 AD 09 [18:33:47]CheckFolder [18:33:47]dirname=/storage/ofd_packets [18:33:47]CheckFolder done [18:33:47]ProducePacketName [18:33:47]name=ofd_packets/00189291 [18:33:47]NVStorageSaveData ofd_packets/00189291 [18:33:47]File name is /storage/ofd_packets/00189291 [18:33:47]Write 307 bytes [18:33:47]NVStorageSaveData done [18:33:47]OFDSenderStorePacket done [18:33:47]KKMCreateOFDPacket done [18:33:47]NVStorageSaveData kkm_last_timestamp [18:33:47]File name is /storage/kkm_last_timestamp [18:33:47]Write 4 bytes [18:33:47]NVStorageSaveData done [18:33:47]ExternCall_PrintAddStr [18:33:47]wPrintStart [18:33:47]Write to MH i2c: 01 00 00 EB 6C 57 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 07 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 07 00 EB 6C 00 00 00 00 00 FF 0F 6C [18:33:47]RasterBufferAndPrint [18:33:47]line Счет N : (1)211356 [18:33:47]line ИНН: 02508201610067 [18:33:47]line Контрольно-Кассовый Чек [18:33:47]line ПРОДАЖА [18:33:47]line ТРК (МРК, ГНК) : 11 [18:33:47]line Товар: 2710194210 [18:33:47]line D-ENERGY ДТ-К-5 [18:33:47]line 19.440 * 77.20 [18:33:47]line = 1500.77 [18:33:47]line НДС 12% НСП 1% [18:33:47]line > о реализуемом товаре [18:33:47]line ОКРУГЛЕНИЕ: -0.77 [18:33:47]line ИТОГО: 1500.00 [18:33:47]line Внесено: 1500.00 [18:33:47]line СДАЧА: 0.00 [18:33:47]line НСП 1% : 13.28 [18:33:47]line НДС 12% : 159.37 [18:33:47]line Наличными: 1500.00 [18:33:47]line Безнал.: 0.00 [18:33:47]line Место: АЗС № 86 "Партнер Нефть" [18:33:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:33:47]line СНО: Общий режим [18:33:47]line Чек 364 24.10.2024 18:33 [18:33:47]line Смена: 463 ФФД: 1.0 [18:33:47]line ЗНМ: 0300000155 [18:33:47]line РНМ: 0000000000100030 [18:33:47]line Версия ККМ: 001 [18:33:47]line ФМ: 0000000000965340 [18:33:47]line ФД: 189291 [18:33:47]line ФПД: 210607580452908 [18:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189291&fm=210607580452908&tin=02508201610067®Number=0000000000100030&sum=150000 [18:33:47]written 0, free lines is 4095 [18:33:47]OFD Sender: Processing packet 189291 [packets to send 1062, broken 1061] [18:33:47]ProducePacketName [18:33:47]name=ofd_packets/00189291 [18:33:47]OFD Sender: To server: pG, [18:33:47]CommunicateWithHost lk.salyk.kg:30040 [18:33:47]ConnectInit lk.salyk.kg [18:33:47]Connected sock=9 [18:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 15 97 0D 01 33 D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 6C 01 00 00 F4 03 04 00 0E 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E3 02 00 35 04 06 00 BF 8B E6 05 18 2C CF 40 41 46 29 C5 AD 09 [18:33:47]Write to MH i2c: 01 00 00 16 6D 83 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 07 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: 01 07 00 16 6D 00 00 00 00 00 58 0C EE [18:33:47]RasterBufferAndPrint [18:33:47]line [18:33:47]line [18:33:47]line [18:33:47]line [18:33:47]line [18:33:47]written 0, free lines is 3165 [18:33:47]MH_Cut [18:33:47]Write to MH i2c: D1 01 00 1D 6D 01 5C [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: D1 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: D1 01 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: D1 01 00 1D 6D 00 5B [18:33:47]Write to MH i2c: 01 00 00 1E 6D 8B [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF A8 47 00 C1 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 39 36 35 33 34 30 10 04 04 00 6B E3 02 00 F4 03 04 00 F5 3C 1A 67 B6 04 01 00 00 91 A5 15 59 65 7D 59 17 [18:33:47]CommunicateWithHost err = 0 [18:33:47]CheckOFDResponse [18:33:47]1017 (14) - 77093643461234 [18:33:47]1041 (16) - 0000000000965340 [18:33:47]1040 (4) - 189291 [18:33:47]1012 (4) - 24.10.2024 12:26 [18:33:47]1206 (1) - 0 [18:33:47]OFD Sender: Remove packet 189291 [18:33:47]ProducePacketName [18:33:47]name=ofd_packets/00189291 [18:33:47]NVStorageDeleteData [18:33:48]OFD Sender: No OFD packet to send [18:33:48]*** Cut start [18:33:48]*** Partial cut [18:33:48]*** CUTSNS_PIN = 1 [18:33:48]*** CUTSNS_PIN = 0 [18:33:49]*** Brake cut motor [18:33:49]Read from MH i2c: 01 [18:33:49]MH_I2C_Read... [18:33:49]*** Stop cut motor [18:33:49]*** Cut end [18:33:49]Read from MH i2c: 01 07 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: 01 07 00 1E 6D 00 00 00 00 00 FF 0F A0 [18:33:49]process_action close_receipt done [18:33:49]requested_data is exist [18:33:49]produce_requested_data [18:33:49]requested_item fm.sn is exist - process it [18:33:49]wFMCommunicate request_size=4 [18:33:49]MH_SAM_APDU [18:33:49]CAPDU: 80 11 00 00 [18:33:49]Write to MH i2c: E2 08 00 1F 6D 80 11 00 00 00 00 00 00 06 [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:49]Read from MH i2c: E2 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 17 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 17 00 1F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [18:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:49]wFMCommunicate OK [18:33:49]requested_item fd.num is exist - process it [18:33:49]SAM_PROTO_GetFieldsCounters [18:33:49]wFMCommunicate request_size=4 [18:33:49]MH_SAM_APDU [18:33:49]CAPDU: 80 13 00 00 [18:33:49]Write to MH i2c: E2 08 00 20 6D 80 13 00 00 00 00 00 00 09 [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:49]Read from MH i2c: E2 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 62 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 62 00 20 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E3 02 00 0E 04 04 00 CF 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 77 [18:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E3 02 00 0E 04 04 00 CF 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 [18:33:49]wFMCommunicate OK [18:33:49]SAM_PROTO_GetFieldsCounters done [18:33:49]requested_item shift.num is exist - process it [18:33:49]requested_item shift.opened is exist - process it [18:33:49]req_shift_opened [18:33:49]FM_GetShiftState [18:33:49]SAM_PROTO_GetShiftState [18:33:49]wFMCommunicate request_size=4 [18:33:49]MH_SAM_APDU [18:33:49]CAPDU: 80 13 01 00 [18:33:49]Write to MH i2c: E2 08 00 21 6D 80 13 01 00 00 00 00 00 0B [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:49]Read from MH i2c: E2 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 21 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E9 [18:33:49]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:33:49]wFMCommunicate OK [18:33:49]SAM_PROTO_GetShiftState done [18:33:49]FM_GetShiftState done [18:33:49]req_shift_opened done [18:33:49]requested_item shift.open_date is exist - process it [18:33:49]req_shift_open_date [18:33:49]req_shift_open_date done [18:33:49]produce_requested_data done [18:33:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189291,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:33:49]process_action_free close_receipt [18:33:49]json_value_free [18:33:49]json_value_free done [18:33:49]process_json_proto returns [18:33:49]Send response to host [18:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189291,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:33:49]free response buf [18:33:49]execute_script done [18:33:49]execute_script returns [18:33:49]free content buf [18:33:49]Sock 8.Close socket [18:33:49]Sock 8.Thread stoped [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]accept exits with 10 [18:34:03]New connection [18:34:03]New thread 3067071844 created [18:34:03]Thread 3067215204 joined [18:34:03]Waiting for new connection... [18:34:03] Sock 10.Parse request [18:34:03]Sock 10.Check first char [18:34:03]Sock 10.First char is OK [18:34:03]request: POST /json_proto HTTP/1.0 [18:34:03]Method: POST [18:34:03]URL: /json_proto [18:34:03]Method is POST - this is cgi request [18:34:03]url: /json_proto [18:34:03]query_string will be loaded in cgi processing [18:34:03]execute_cgi json_proto POST (null) [18:34:03]execute_cgi path=json_proto method=POST [18:34:03]POST find Content-Length [18:34:03]Host: 172.17.42.131:8080 [18:34:03]Content-Length: 677 [18:34:03]Content-Type: application/json [18:34:03] [18:34:03]POST finish read [18:34:03]Found Content-Length = 677 [18:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:34:03]execute_script... [18: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)211357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:34:03]POST & json_proto [18:34:03]process_json_proto [18:34:03]json parsed OK: [18:34:03]protocol is kg_v1.0 [18:34:03]action value=close_receipt [18:34:03]process_action close_receipt [18:34:03]cmd_close_receipt [18:34:03]MH_GetDate [18:34:03]Write to MH i2c: F0 00 00 22 6D 7E [18:34:03]Write i2c OK [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: F0 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: F0 09 00 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: F0 09 00 22 6D 00 1F 93 1A 67 A0 18 CA 66 A2 [18:34:03]GetLastDocTimeStamp 1729794830 [18:34:03]current date 1729794847 [18:34:03]FM_GetShiftState [18:34:03]SAM_PROTO_GetShiftState [18:34:03]wFMCommunicate request_size=4 [18:34:03]MH_SAM_APDU [18:34:03]CAPDU: 80 13 01 00 [18:34:03]Write to MH i2c: E2 08 00 23 6D 80 13 01 00 00 00 00 00 0D [18:34:03]Write i2c OK [18:34:03]MH_I2C_Read... [18:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:03]Read from MH i2c: E2 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 0E 00 [18:34:03]MH_I2C_Read... [18:34:03]Read from MH i2c: E2 0E 00 23 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EB [18:34:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:34:03]wFMCommunicate OK [18:34:03]SAM_PROTO_GetShiftState done [18:34:03]FM_GetShiftState done [18:34:03]opened in 1729728961 [18:34:03]opened+sec_in_day 1729815361 [18:34:03]quantity*price = 20003 [18:34:03]sum+1 = 20004 [18:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 365 24.10.2024 18:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189292 ФПД: 86863574521686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189292&fm=86863574521686&tin=02508201610067®Number=0000000000100030&sum=20000 [18:34:04]StoreToDocumentArchive [18:34:04]shift 463 fd 189292 [18:34:04]save to /storage/0463/doc_00189292 [18:34:04]save last doc name /storage/0463/doc_00189292 to /storage/kkm_last_doc_name [18:34:04]save OK [18:34:04]Clear old archive folders... [18:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:04]tlvbuf is 01676110 [18:34:04]SAM_PROTO_ClearQueue [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 09 00 00 [18:34:04]Write to MH i2c: E2 08 00 30 6D 80 09 00 00 00 00 00 00 0F [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 30 6D 00 90 00 11 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]SAM_PROTO_ClearQueue done [18:34:04]KKMCreateOFDPacket [18:34:04]OFDProtocolAddRootSTLVToBuf [18:34:04]FM_MakeSignedData [18:34:04]FM_MakeSignedData [18:34:04]SAM_PROTO_SignData [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 0D 01 02 [18:34:04]Write to MH i2c: E2 08 00 31 6D 80 0D 01 02 00 00 00 00 17 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 31 6D 00 90 00 12 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]wFMCommunicate request_size=255 [18:34:04]MH_SAM_APDU [18:34: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 1F 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E3 02 00 35 04 06 00 4F [18:34:04]Write to MH i2c: E2 02 01 32 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 1F 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E3 02 00 35 04 06 00 4F 00 00 5D [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 32 6D 00 90 00 13 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]wFMCommunicate request_size=10 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 0D 02 02 05 00 80 80 D7 56 [18:34:04]Write to MH i2c: E2 0D 00 33 6D 80 0D 02 02 05 00 00 80 80 D7 56 00 00 51 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 03 00 33 6D 00 90 00 14 [18:34:04]RAPDU: 90 00 [18:34:04]wFMCommunicate OK [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 0D 03 02 [18:34:04]Write to MH i2c: E2 08 00 34 6D 80 0D 03 02 00 00 00 00 1C [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 0B 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 0B 00 34 6D 00 25 DA C0 20 84 43 2D A4 90 00 94 [18:34:04]RAPDU: 25 DA C0 20 84 43 2D A4 90 00 [18:34:04]wFMCommunicate OK [18:34:04]SAM_PROTO_SignData done [18:34:04]FM_MakeSignedData done [18:34:04]CreateOFDProtocolMessage [18:34:04]wFMCommunicate request_size=4 [18:34:04]MH_SAM_APDU [18:34:04]CAPDU: 80 11 00 00 [18:34:04]Write to MH i2c: E2 08 00 35 6D 80 11 00 00 00 00 00 00 1C [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:04]Read from MH i2c: E2 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 17 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: E2 17 00 35 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [18:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:34:04]wFMCommunicate OK [18:34:04]CreateOFDProtocolMessage done [18:34:04]OFDSenderStorePacket 189292 [18:34:04]StoreOFDPacket docnum=189292 [18:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F 1B 07 01 E3 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 1F 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E3 02 00 35 04 06 00 4F 00 80 80 D7 56 25 DA C0 20 84 43 2D A4 [18:34:04]CheckFolder [18:34:04]dirname=/storage/ofd_packets [18:34:04]CheckFolder done [18:34:04]ProducePacketName [18:34:04]name=ofd_packets/00189292 [18:34:04]NVStorageSaveData ofd_packets/00189292 [18:34:04]File name is /storage/ofd_packets/00189292 [18:34:04]Write 301 bytes [18:34:04]NVStorageSaveData done [18:34:04]OFDSenderStorePacket done [18:34:04]KKMCreateOFDPacket done [18:34:04]NVStorageSaveData kkm_last_timestamp [18:34:04]File name is /storage/kkm_last_timestamp [18:34:04]Write 4 bytes [18:34:04]NVStorageSaveData done [18:34:04]ExternCall_PrintAddStr [18:34:04]wPrintStart [18:34:04]Write to MH i2c: 01 00 00 36 6D A3 [18:34:04]Write i2c OK [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 07 00 [18:34:04]MH_I2C_Read... [18:34:04]Read from MH i2c: 01 07 00 36 6D 00 00 00 00 00 FF 0F B8 [18:34:04]RasterBufferAndPrint [18:34:04]line Счет N : (1)211357 [18:34:04]line ИНН: 02508201610067 [18:34:04]line Контрольно-Кассовый Чек [18:34:04]line ПРОДАЖА [18:34:04]line ТРК (МРК, ГНК) : 42 [18:34:04]line Товар: 2710124130 [18:34:04]line Аи-92-К-3 [18:34:04]line 2.990 * 66.90 [18:34:04]line = 200.03 [18:34:04]line НДС 12% НСП 1% [18:34:04]line > о реализуемом товаре [18:34:04]line ОКРУГЛЕНИЕ: -0.03 [18:34:04]line ИТОГО: 200.00 [18:34:04]line Внесено: 200.00 [18:34:04]line СДАЧА: 0.00 [18:34:04]line НСП 1% : 1.77 [18:34:04]line НДС 12% : 21.24 [18:34:04]line Наличными: 200.00 [18:34:04]line Безнал.: 0.00 [18:34:04]line Место: АЗС № 86 "Партнер Нефть" [18:34:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:34:04]line СНО: Общий режим [18:34:04]line Чек 365 24.10.2024 18:34 [18:34:04]line Смена: 463 ФФД: 1.0 [18:34:04]line ЗНМ: 0300000155 [18:34:04]line РНМ: 0000000000100030 [18:34:04]line Версия ККМ: 001 [18:34:04]line ФМ: 0000000000965340 [18:34:04]line ФД: 189292 [18:34:04]line ФПД: 86863574521686 [18:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189292&fm=86863574521686&tin=02508201610067®Number=0000000000100030&sum=20000 [18:34:04]written 0, free lines is 4095 [18:34:04]OFD Sender: Processing packet 189292 [packets to send 1062, broken 1061] [18:34:04]ProducePacketName [18:34:04]name=ofd_packets/00189292 [18:34:04]OFD Sender: To server: pG, [18:34:04]CommunicateWithHost lk.salyk.kg:30040 [18:34:04]ConnectInit lk.salyk.kg [18:34:05]Connected sock=9 [18:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F 1B 07 01 E3 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 1F 93 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E3 02 00 35 04 06 00 4F 00 80 80 D7 56 25 DA C0 20 84 43 2D A4 [18:34:05]Write to MH i2c: 01 00 00 61 6D CE [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 07 00 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: 01 07 00 61 6D 00 00 00 00 00 63 0C 44 [18:34:05]RasterBufferAndPrint [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]line [18:34:05]written 0, free lines is 3175 [18:34:05]MH_Cut [18:34:05]Write to MH i2c: D1 01 00 68 6D 01 A7 [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 01 00 [18:34:05]MH_I2C_Read... [18:34:05]Read from MH i2c: D1 01 00 68 6D 00 A6 [18:34:05]Write to MH i2c: 01 00 00 69 6D D6 [18:34:05]Write i2c OK [18:34:05]MH_I2C_Read... [18:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 5D 47 00 8D 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 39 36 35 33 34 30 10 04 04 00 6C E3 02 00 F4 03 04 00 07 3D 1A 67 B6 04 01 00 00 55 A0 02 B7 2E 00 3B 33 [18:34:05]CommunicateWithHost err = 0 [18:34:05]CheckOFDResponse [18:34:05]1017 (14) - 77093643461234 [18:34:05]1041 (16) - 0000000000965340 [18:34:05]1040 (4) - 189292 [18:34:05]1012 (4) - 24.10.2024 12:26 [18:34:05]1206 (1) - 0 [18:34:05]OFD Sender: Remove packet 189292 [18:34:05]ProducePacketName [18:34:05]name=ofd_packets/00189292 [18:34:05]NVStorageDeleteData [18:34:05]OFD Sender: No OFD packet to send [18:34:06]*** Cut start [18:34:06]*** Partial cut [18:34:06]*** CUTSNS_PIN = 1 [18:34:06]*** CUTSNS_PIN = 0 [18:34:06]*** Brake cut motor [18:34:07]Read from MH i2c: 01 [18:34:07]MH_I2C_Read... [18:34:07]*** Stop cut motor [18:34:07]*** Cut end [18:34:07]Read from MH i2c: 01 07 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: 01 07 00 69 6D 00 00 00 00 00 FF 0F EB [18:34:07]process_action close_receipt done [18:34:07]requested_data is exist [18:34:07]produce_requested_data [18:34:07]requested_item fm.sn is exist - process it [18:34:07]wFMCommunicate request_size=4 [18:34:07]MH_SAM_APDU [18:34:07]CAPDU: 80 11 00 00 [18:34:07]Write to MH i2c: E2 08 00 6A 6D 80 11 00 00 00 00 00 00 51 [18:34:07]Write i2c OK [18:34:07]MH_I2C_Read... [18:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:07]Read from MH i2c: E2 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 17 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 17 00 6A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [18:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:34:07]wFMCommunicate OK [18:34:07]requested_item fd.num is exist - process it [18:34:07]SAM_PROTO_GetFieldsCounters [18:34:07]wFMCommunicate request_size=4 [18:34:07]MH_SAM_APDU [18:34:07]CAPDU: 80 13 00 00 [18:34:07]Write to MH i2c: E2 08 00 6B 6D 80 13 00 00 00 00 00 00 54 [18:34:07]Write i2c OK [18:34:07]MH_I2C_Read... [18:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:07]Read from MH i2c: E2 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 62 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 62 00 6B 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E3 02 00 0E 04 04 00 CF 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 C6 [18:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E3 02 00 0E 04 04 00 CF 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 [18:34:07]wFMCommunicate OK [18:34:07]SAM_PROTO_GetFieldsCounters done [18:34:07]requested_item shift.num is exist - process it [18:34:07]requested_item shift.opened is exist - process it [18:34:07]req_shift_opened [18:34:07]FM_GetShiftState [18:34:07]SAM_PROTO_GetShiftState [18:34:07]wFMCommunicate request_size=4 [18:34:07]MH_SAM_APDU [18:34:07]CAPDU: 80 13 01 00 [18:34:07]Write to MH i2c: E2 08 00 6C 6D 80 13 01 00 00 00 00 00 56 [18:34:07]Write i2c OK [18:34:07]MH_I2C_Read... [18:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:07]Read from MH i2c: E2 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 0E 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 0E 00 6C 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 34 [18:34:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:34:07]wFMCommunicate OK [18:34:07]SAM_PROTO_GetShiftState done [18:34:07]FM_GetShiftState done [18:34:07]req_shift_opened done [18:34:07]requested_item shift.open_date is exist - process it [18:34:07]req_shift_open_date [18:34:07]req_shift_open_date done [18:34:07]produce_requested_data done [18:34:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189292,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:34:07]process_action_free close_receipt [18:34:07]json_value_free [18:34:07]json_value_free done [18:34:07]process_json_proto returns [18:34:07]Send response to host [18:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189292,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:34:07]free response buf [18:34:07]execute_script done [18:34:07]execute_script returns [18:34:07]free content buf [18:34:07]Sock 10.Close socket [18:34:07]Sock 10.Thread stoped [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:40:58]accept exits with 8 [18:40:58]New connection [18:40:58]New thread 3067215204 created [18:40:58]Thread 3067071844 joined [18:40:58]Waiting for new connection... [18:40:58] Sock 8.Parse request [18:40:58]Sock 8.Check first char [18:40:58]Sock 8.First char is OK [18:40:58]request: POST /json_proto HTTP/1.0 [18:40:58]Method: POST [18:40:58]URL: /json_proto [18:40:58]Method is POST - this is cgi request [18:40:58]url: /json_proto [18:40:58]query_string will be loaded in cgi processing [18:40:58]execute_cgi json_proto POST (null) [18:40:58]execute_cgi path=json_proto method=POST [18:40:58]POST find Content-Length [18:40:58]Host: 172.17.42.131:8080 [18:40:58]Content-Length: 682 [18:40:58]Content-Type: application/json [18:40:58] [18:40:58]POST finish read [18:40:58]Found Content-Length = 682 [18:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58]execute_script... [18:40: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)211358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58]POST & json_proto [18:40:58]process_json_proto [18:40:58]json parsed OK: [18:40:58]protocol is kg_v1.0 [18:40:58]action value=close_receipt [18:40:58]process_action close_receipt [18:40:58]cmd_close_receipt [18:40:58]MH_GetDate [18:40:58]Write to MH i2c: F0 00 00 6D 6D C9 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 09 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 09 00 6D 6D 00 BF 94 1A 67 A0 18 CA 66 8E [18:40:58]GetLastDocTimeStamp 1729794847 [18:40:58]current date 1729795263 [18:40:58]FM_GetShiftState [18:40:58]SAM_PROTO_GetShiftState [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 13 01 00 [18:40:58]Write to MH i2c: E2 08 00 6E 6D 80 13 01 00 00 00 00 00 58 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 6E 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 36 [18:40:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:40:58]wFMCommunicate OK [18:40:58]SAM_PROTO_GetShiftState done [18:40:58]FM_GetShiftState done [18:40:58]opened in 1729728961 [18:40:58]opened+sec_in_day 1729815361 [18:40:58]quantity*price = 100015 [18:40:58]sum+1 = 100017 [18:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 366 24.10.2024 18:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189293 ФПД: 176197299605084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189293&fm=176197299605084&tin=02508201610067®Number=0000000000100030&sum=100000 [18:40:59]StoreToDocumentArchive [18:40:59]shift 463 fd 189293 [18:40:59]save to /storage/0463/doc_00189293 [18:40:59]save last doc name /storage/0463/doc_00189293 to /storage/kkm_last_doc_name [18:40:59]save OK [18:40:59]Clear old archive folders... [18:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:59]tlvbuf is 0154FF60 [18:40:59]SAM_PROTO_ClearQueue [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 09 00 00 [18:40:59]Write to MH i2c: E2 08 00 7B 6D 80 09 00 00 00 00 00 00 5A [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 7B 6D 00 90 00 5C [18:40:59]RAPDU: 90 00 [18:40:59]wFMCommunicate OK [18:40:59]SAM_PROTO_ClearQueue done [18:40:59]KKMCreateOFDPacket [18:40:59]OFDProtocolAddRootSTLVToBuf [18:40:59]FM_MakeSignedData [18:40:59]FM_MakeSignedData [18:40:59]SAM_PROTO_SignData [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 0D 01 02 [18:40:59]Write to MH i2c: E2 08 00 7C 6D 80 0D 01 02 00 00 00 00 62 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 7C 6D 00 90 00 5D [18:40:59]RAPDU: 90 00 [18:40:59]wFMCommunicate OK [18:40:59]wFMCommunicate request_size=255 [18:40:59]MH_SAM_APDU [18:40: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 BF 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E3 02 00 35 04 06 00 A0 [18:40:59]Write to MH i2c: E2 02 01 7D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 BF 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E3 02 00 35 04 06 00 A0 00 00 D4 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 7D 6D 00 90 00 5E [18:40:59]RAPDU: 90 00 [18:40:59]wFMCommunicate OK [18:40:59]wFMCommunicate request_size=10 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 0D 02 02 05 40 21 74 0E 5C [18:40:59]Write to MH i2c: E2 0D 00 7E 6D 80 0D 02 02 05 00 40 21 74 0E 5C 00 00 AE [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 7E 6D 00 90 00 5F [18:40:59]RAPDU: 90 00 [18:40:59]wFMCommunicate OK [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 0D 03 02 [18:40:59]Write to MH i2c: E2 08 00 7F 6D 80 0D 03 02 00 00 00 00 67 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0B 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0B 00 7F 6D 00 3C D6 5A 9E 23 D8 3C F5 90 00 9E [18:41:00]RAPDU: 3C D6 5A 9E 23 D8 3C F5 90 00 [18:41:00]wFMCommunicate OK [18:41:00]SAM_PROTO_SignData done [18:41:00]FM_MakeSignedData done [18:41:00]CreateOFDProtocolMessage [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 11 00 00 [18:41:00]Write to MH i2c: E2 08 00 80 6D 80 11 00 00 00 00 00 00 67 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 80 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [18:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:00]wFMCommunicate OK [18:41:00]CreateOFDProtocolMessage done [18:41:00]OFDSenderStorePacket 189293 [18:41:00]StoreOFDPacket docnum=189293 [18:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 5D 07 01 57 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 BF 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E3 02 00 35 04 06 00 A0 40 21 74 0E 5C 3C D6 5A 9E 23 D8 3C F5 [18:41:00]CheckFolder [18:41:00]dirname=/storage/ofd_packets [18:41:00]CheckFolder done [18:41:00]ProducePacketName [18:41:00]name=ofd_packets/00189293 [18:41:00]NVStorageSaveData ofd_packets/00189293 [18:41:00]File name is /storage/ofd_packets/00189293 [18:41:00]Write 301 bytes [18:41:00]NVStorageSaveData done [18:41:00]OFDSenderStorePacket done [18:41:00]KKMCreateOFDPacket done [18:41:00]NVStorageSaveData kkm_last_timestamp [18:41:00]File name is /storage/kkm_last_timestamp [18:41:00]Write 4 bytes [18:41:00]NVStorageSaveData done [18:41:00]ExternCall_PrintAddStr [18:41:00]wPrintStart [18:41:00]Write to MH i2c: 01 00 00 81 6D EE [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 81 6D 00 00 00 00 00 FF 0F 03 [18:41:00]RasterBufferAndPrint [18:41:00]line Счет N : (1)211358 [18:41:00]line ИНН: 02508201610067 [18:41:00]line Контрольно-Кассовый Чек [18:41:00]line ПРОДАЖА [18:41:00]line ТРК (МРК, ГНК) : 32 [18:41:00]line Товар: 2710124130 [18:41:00]line Аи-92-К-3 [18:41:00]line 14.950 * 66.90 [18:41:00]line = 1000.16 [18:41:00]line НДС 12% НСП 1% [18:41:00]line > о реализуемом товаре [18:41:00]line ОКРУГЛЕНИЕ: -0.16 [18:41:00]line ИТОГО: 1000.00 [18:41:00]line Внесено: 1000.00 [18:41:00]line СДАЧА: 0.00 [18:41:00]line НСП 1% : 8.85 [18:41:00]line НДС 12% : 106.21 [18:41:00]line Наличными: 1000.00 [18:41:00]line Безнал.: 0.00 [18:41:00]line Место: АЗС № 86 "Партнер Нефть" [18:41:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:41:00]line СНО: Общий режим [18:41:00]line Чек 366 24.10.2024 18:41 [18:41:00]line Смена: 463 ФФД: 1.0 [18:41:00]line ЗНМ: 0300000155 [18:41:00]line РНМ: 0000000000100030 [18:41:00]line Версия ККМ: 001 [18:41:00]line ФМ: 0000000000965340 [18:41:00]line ФД: 189293 [18:41:00]line ФПД: 176197299605084 [18:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189293&fm=176197299605084&tin=02508201610067®Number=0000000000100030&sum=100000 [18:41:00]written 0, free lines is 4095 [18:41:00]OFD Sender: Processing packet 189293 [packets to send 1062, broken 1061] [18:41:00]ProducePacketName [18:41:00]name=ofd_packets/00189293 [18:41:00]OFD Sender: To server: pG, [18:41:00]CommunicateWithHost lk.salyk.kg:30040 [18:41:00]ConnectInit lk.salyk.kg [18:41:00]Write to MH i2c: 01 00 00 AC 6D 19 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 AC 6D 00 00 00 00 00 5A 0C 86 [18:41:00]RasterBufferAndPrint [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]written 0, free lines is 3165 [18:41:00]MH_Cut [18:41:00]Write to MH i2c: D1 01 00 B3 6D 01 F2 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 01 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 01 00 B3 6D 00 F1 [18:41:00]Write to MH i2c: 01 00 00 B4 6D 21 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:01]*** Cut start [18:41:01]*** Partial cut [18:41:01]*** CUTSNS_PIN = 1 [18:41:01]*** CUTSNS_PIN = 0 [18:41:02]*** Brake cut motor [18:41:02]Read from MH i2c: 01 [18:41:02]MH_I2C_Read... [18:41:02]*** Stop cut motor [18:41:02]*** Cut end [18:41:02]Read from MH i2c: 01 07 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 07 00 B4 6D 00 00 00 00 00 FF 0F 36 [18:41:02]process_action close_receipt done [18:41:02]requested_data is exist [18:41:02]produce_requested_data [18:41:02]requested_item fm.sn is exist - process it [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 11 00 00 [18:41:02]Write to MH i2c: E2 08 00 B5 6D 80 11 00 00 00 00 00 00 9C [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 B5 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [18:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:02]wFMCommunicate OK [18:41:02]requested_item fd.num is exist - process it [18:41:02]SAM_PROTO_GetFieldsCounters [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 00 00 [18:41:02]Write to MH i2c: E2 08 00 B6 6D 80 13 00 00 00 00 00 00 9F [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 B6 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E3 02 00 0E 04 04 00 CF 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 15 [18:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E3 02 00 0E 04 04 00 CF 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 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetFieldsCounters done [18:41:02]requested_item shift.num is exist - process it [18:41:02]requested_item shift.opened is exist - process it [18:41:02]req_shift_opened [18:41:02]FM_GetShiftState [18:41:02]SAM_PROTO_GetShiftState [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 01 00 [18:41:02]Write to MH i2c: E2 08 00 B7 6D 80 13 01 00 00 00 00 00 A1 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 B7 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7F [18:41:02]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetShiftState done [18:41:02]FM_GetShiftState done [18:41:02]req_shift_opened done [18:41:02]requested_item shift.open_date is exist - process it [18:41:02]req_shift_open_date [18:41:02]req_shift_open_date done [18:41:02]produce_requested_data done [18:41:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189293,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:41:02]process_action_free close_receipt [18:41:02]json_value_free [18:41:02]json_value_free done [18:41:02]process_json_proto returns [18:41:02]Send response to host [18:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189293,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:41:02]free response buf [18:41:02]execute_script done [18:41:02]execute_script returns [18:41:02]free content buf [18:41:02]Sock 8.Close socket [18:41:02]Sock 8.Thread stoped [18:41:28]accept exits with 9 [18:41:28]New connection [18:41:28]New thread 3067071844 created [18:41:28]Thread 3067215204 joined [18:41:28]Waiting for new connection... [18:41:28] Sock 9.Parse request [18:41:28]Sock 9.Check first char [18:41:28]Sock 9.First char is OK [18:41:28]request: POST /json_proto HTTP/1.0 [18:41:28]Method: POST [18:41:28]URL: /json_proto [18:41:28]Method is POST - this is cgi request [18:41:28]url: /json_proto [18:41:28]query_string will be loaded in cgi processing [18:41:28]execute_cgi json_proto POST (null) [18:41:28]execute_cgi path=json_proto method=POST [18:41:28]POST find Content-Length [18:41:28]Host: 172.17.42.131:8080 [18:41:28]Content-Length: 677 [18:41:28]Content-Type: application/json [18:41:28] [18:41:28]POST finish read [18:41:28]Found Content-Length = 677 [18:41:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:41:28]execute_script... [18:41: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)211359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:41:28]POST & json_proto [18:41:28]process_json_proto [18:41:28]json parsed OK: [18:41:28]protocol is kg_v1.0 [18:41:28]action value=close_receipt [18:41:28]process_action close_receipt [18:41:28]cmd_close_receipt [18:41:28]MH_GetDate [18:41:28]Write to MH i2c: F0 00 00 B8 6D 14 [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: F0 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: F0 09 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: F0 09 00 B8 6D 00 DD 94 1A 67 A0 18 CA 66 F7 [18:41:28]GetLastDocTimeStamp 1729795263 [18:41:28]current date 1729795293 [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 B9 6D 80 13 01 00 00 00 00 00 A3 [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 B9 6D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 81 [18:41:28]RAPDU: 09 00 01 C1 91 19 67 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]opened in 1729728961 [18:41:28]opened+sec_in_day 1729815361 [18:41:28]quantity*price = 20003 [18:41:28]sum+1 = 20004 [18:41:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 367 24.10.2024 18:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189294 ФПД: 71377394388711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184133&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189294&fm=71377394388711&tin=02508201610067®Number=0000000000100030&sum=20000 [18:41:29]StoreToDocumentArchive [18:41:29]shift 463 fd 189294 [18:41:29]save to /storage/0463/doc_00189294 [18:41:29]save last doc name /storage/0463/doc_00189294 to /storage/kkm_last_doc_name [18:41:29]save OK [18:41:29]Clear old archive folders... [18:41:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:29]tlvbuf is 015DC220 [18:41:29]SAM_PROTO_ClearQueue [18:41:29]wFMCommunicate request_size=4 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 09 00 00 [18:41:29]Write to MH i2c: E2 08 00 C6 6D 80 09 00 00 00 00 00 00 A5 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 C6 6D 00 90 00 A7 [18:41:29]RAPDU: 90 00 [18:41:29]wFMCommunicate OK [18:41:29]SAM_PROTO_ClearQueue done [18:41:29]KKMCreateOFDPacket [18:41:29]OFDProtocolAddRootSTLVToBuf [18:41:29]FM_MakeSignedData [18:41:29]FM_MakeSignedData [18:41:29]SAM_PROTO_SignData [18:41:29]wFMCommunicate request_size=4 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 0D 01 02 [18:41:29]Write to MH i2c: E2 08 00 C7 6D 80 0D 01 02 00 00 00 00 AD [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 C7 6D 00 90 00 A8 [18:41:29]RAPDU: 90 00 [18:41:29]wFMCommunicate OK [18:41:29]wFMCommunicate request_size=255 [18:41:29]MH_SAM_APDU [18:41: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6F 01 00 00 F4 03 04 00 DD 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E3 02 00 35 04 06 00 40 [18:41:29]Write to MH i2c: E2 02 01 C8 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6F 01 00 00 F4 03 04 00 DD 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E3 02 00 35 04 06 00 40 00 00 A7 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 C8 6D 00 90 00 A9 [18:41:30]RAPDU: 90 00 [18:41:30]wFMCommunicate OK [18:41:30]wFMCommunicate request_size=10 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 0D 02 02 05 EA D8 3C CE E7 [18:41:30]Write to MH i2c: E2 0D 00 C9 6D 80 0D 02 02 05 00 EA D8 3C CE E7 00 00 6D [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 03 00 C9 6D 00 90 00 AA [18:41:30]RAPDU: 90 00 [18:41:30]wFMCommunicate OK [18:41:30]wFMCommunicate request_size=4 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 0D 03 02 [18:41:30]Write to MH i2c: E2 08 00 CA 6D 80 0D 03 02 00 00 00 00 B2 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 0B 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 0B 00 CA 6D 00 78 1F 57 C2 20 3B 1C A9 90 00 83 [18:41:30]RAPDU: 78 1F 57 C2 20 3B 1C A9 90 00 [18:41:30]wFMCommunicate OK [18:41:30]SAM_PROTO_SignData done [18:41:30]FM_MakeSignedData done [18:41:30]CreateOFDProtocolMessage [18:41:30]wFMCommunicate request_size=4 [18:41:30]MH_SAM_APDU [18:41:30]CAPDU: 80 11 00 00 [18:41:30]Write to MH i2c: E2 08 00 CB 6D 80 11 00 00 00 00 00 00 B2 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:30]Read from MH i2c: E2 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 17 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: E2 17 00 CB 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [18:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:30]wFMCommunicate OK [18:41:30]CreateOFDProtocolMessage done [18:41:30]OFDSenderStorePacket 189294 [18:41:30]StoreOFDPacket docnum=189294 [18:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 55 07 01 5F 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6F 01 00 00 F4 03 04 00 DD 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E3 02 00 35 04 06 00 40 EA D8 3C CE E7 78 1F 57 C2 20 3B 1C A9 [18:41:30]CheckFolder [18:41:30]dirname=/storage/ofd_packets [18:41:30]CheckFolder done [18:41:30]ProducePacketName [18:41:30]name=ofd_packets/00189294 [18:41:30]NVStorageSaveData ofd_packets/00189294 [18:41:30]File name is /storage/ofd_packets/00189294 [18:41:30]Write 301 bytes [18:41:30]NVStorageSaveData done [18:41:30]OFDSenderStorePacket done [18:41:30]KKMCreateOFDPacket done [18:41:30]NVStorageSaveData kkm_last_timestamp [18:41:30]File name is /storage/kkm_last_timestamp [18:41:30]Write 4 bytes [18:41:30]NVStorageSaveData done [18:41:30]ExternCall_PrintAddStr [18:41:30]wPrintStart [18:41:30]Write to MH i2c: 01 00 00 CC 6D 39 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 CC 6D 00 00 00 00 00 FF 0F 4E [18:41:30]RasterBufferAndPrint [18:41:30]line Счет N : (1)211359 [18:41:30]line ИНН: 02508201610067 [18:41:30]line Контрольно-Кассовый Чек [18:41:30]line ПРОДАЖА [18:41:30]line ТРК (МРК, ГНК) : 42 [18:41:30]line Товар: 2710124130 [18:41:30]line Аи-92-К-3 [18:41:30]line 2.990 * 66.90 [18:41:30]line = 200.03 [18:41:30]line НДС 12% НСП 1% [18:41:30]line > о реализуемом товаре [18:41:30]line ОКРУГЛЕНИЕ: -0.03 [18:41:30]line ИТОГО: 200.00 [18:41:30]line Внесено: 200.00 [18:41:30]line СДАЧА: 0.00 [18:41:30]line НСП 1% : 1.77 [18:41:30]line НДС 12% : 21.24 [18:41:30]line Наличными: 200.00 [18:41:30]line Безнал.: 0.00 [18:41:30]line Место: АЗС № 86 "Партнер Нефть" [18:41:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:41:30]line СНО: Общий режим [18:41:30]line Чек 367 24.10.2024 18:41 [18:41:30]line Смена: 463 ФФД: 1.0 [18:41:30]line ЗНМ: 0300000155 [18:41:30]line РНМ: 0000000000100030 [18:41:30]line Версия ККМ: 001 [18:41:30]line ФМ: 0000000000965340 [18:41:30]line ФД: 189294 [18:41:30]line ФПД: 71377394388711 [18:41:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184133&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189294&fm=71377394388711&tin=02508201610067®Number=0000000000100030&sum=20000 [18:41:30]written 0, free lines is 4095 [18:41:30]Write to MH i2c: 01 00 00 F7 6D 64 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 F7 6D 00 00 00 00 00 59 0C D0 [18:41:30]RasterBufferAndPrint [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]written 0, free lines is 3165 [18:41:30]MH_Cut [18:41:30]Write to MH i2c: D1 01 00 FE 6D 01 3D [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 01 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 01 00 FE 6D 00 3C [18:41:30]Write to MH i2c: 01 00 00 FF 6D 6C [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:32]*** Cut start [18:41:32]*** Partial cut [18:41:32]*** CUTSNS_PIN = 1 [18:41:32]*** CUTSNS_PIN = 0 [18:41:32]*** Brake cut motor [18:41:32]Read from MH i2c: 01 [18:41:32]MH_I2C_Read... [18:41:32]*** Stop cut motor [18:41:32]*** Cut end [18:41:32]Read from MH i2c: 01 07 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: 01 07 00 FF 6D 00 00 00 00 00 FF 0F 81 [18:41:32]process_action close_receipt done [18:41:32]requested_data is exist [18:41:32]produce_requested_data [18:41:32]requested_item fm.sn is exist - process it [18:41:32]wFMCommunicate request_size=4 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 11 00 00 [18:41:32]Write to MH i2c: E2 08 00 00 6E 80 11 00 00 00 00 00 00 E8 [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 17 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 17 00 00 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [18:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:32]wFMCommunicate OK [18:41:32]requested_item fd.num is exist - process it [18:41:32]SAM_PROTO_GetFieldsCounters [18:41:32]wFMCommunicate request_size=4 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 13 00 00 [18:41:32]Write to MH i2c: E2 08 00 01 6E 80 13 00 00 00 00 00 00 EB [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 62 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 62 00 01 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E3 02 00 0E 04 04 00 CF 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 65 [18:41:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E3 02 00 0E 04 04 00 CF 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 [18:41:32]wFMCommunicate OK [18:41:32]SAM_PROTO_GetFieldsCounters done [18:41:32]requested_item shift.num is exist - process it [18:41:32]requested_item shift.opened is exist - process it [18:41:32]req_shift_opened [18:41:32]FM_GetShiftState [18:41:32]SAM_PROTO_GetShiftState [18:41:32]wFMCommunicate request_size=4 [18:41:32]MH_SAM_APDU [18:41:32]CAPDU: 80 13 01 00 [18:41:32]Write to MH i2c: E2 08 00 02 6E 80 13 01 00 00 00 00 00 ED [18:41:32]Write i2c OK [18:41:32]MH_I2C_Read... [18:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:32]Read from MH i2c: E2 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 0E 00 [18:41:32]MH_I2C_Read... [18:41:32]Read from MH i2c: E2 0E 00 02 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CB [18:41:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:41:32]wFMCommunicate OK [18:41:32]SAM_PROTO_GetShiftState done [18:41:32]FM_GetShiftState done [18:41:32]req_shift_opened done [18:41:32]requested_item shift.open_date is exist - process it [18:41:32]req_shift_open_date [18:41:32]req_shift_open_date done [18:41:32]produce_requested_data done [18:41:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189294,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:41:32]process_action_free close_receipt [18:41:32]json_value_free [18:41:32]json_value_free done [18:41:32]process_json_proto returns [18:41:32]Send response to host [18:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189294,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:41:32]free response buf [18:41:32]execute_script done [18:41:32]execute_script returns [18:41:32]free content buf [18:41:32]Sock 9.Close socket [18:41:32]Sock 9.Thread stoped [18:43:09]ConnectInit Can't connect to host [18:43:09]CommunicateWithHost connect error [18:43:09]CommunicateWithHost err = -1 [18:43:09]OFD Sender: Server communicate error [18:43:09]OFD Sender: Processing packet 189293 [packets to send 1063, broken 1061] [18:43:09]ProducePacketName [18:43:09]name=ofd_packets/00189293 [18:43:09]OFD Sender: To server: pG, [18:43:09]CommunicateWithHost lk.salyk.kg:30040 [18:43:09]ConnectInit lk.salyk.kg [18:43:10]Connected sock=9 [18:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 5D 07 01 57 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 BF 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E3 02 00 35 04 06 00 A0 40 21 74 0E 5C 3C D6 5A 9E 23 D8 3C F5 [18:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 63 47 00 E4 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E3 02 00 F4 03 04 00 28 3F 1A 67 B6 04 01 00 00 55 A8 62 33 0F 4E EE 3C [18:43:10]CommunicateWithHost err = 0 [18:43:10]CheckOFDResponse [18:43:10]1017 (14) - 77093643461234 [18:43:10]1041 (16) - 0000000000965340 [18:43:10]1040 (4) - 189293 [18:43:10]1012 (4) - 24.10.2024 12:35 [18:43:10]1206 (1) - 0 [18:43:10]OFD Sender: Remove packet 189293 [18:43:10]ProducePacketName [18:43:10]name=ofd_packets/00189293 [18:43:10]NVStorageDeleteData [18:43:10]OFD Sender: Processing packet 189294 [packets to send 1062, broken 1061] [18:43:10]ProducePacketName [18:43:10]name=ofd_packets/00189294 [18:43:10]OFD Sender: To server: pG, [18:43:10]CommunicateWithHost lk.salyk.kg:30040 [18:43:10]ConnectInit lk.salyk.kg [18:43:11]Connected sock=9 [18:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 55 07 01 5F 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6F 01 00 00 F4 03 04 00 DD 94 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E3 02 00 35 04 06 00 40 EA D8 3C CE E7 78 1F 57 C2 20 3B 1C A9 [18:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 70 47 00 87 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 39 36 35 33 34 30 10 04 04 00 6E E3 02 00 F4 03 04 00 29 3F 1A 67 B6 04 01 00 00 BA 4D FC 50 42 16 B2 FC [18:43:11]CommunicateWithHost err = 0 [18:43:11]CheckOFDResponse [18:43:11]1017 (14) - 77093643461234 [18:43:11]1041 (16) - 0000000000965340 [18:43:11]1040 (4) - 189294 [18:43:11]1012 (4) - 24.10.2024 12:35 [18:43:11]1206 (1) - 0 [18:43:11]OFD Sender: Remove packet 189294 [18:43:11]ProducePacketName [18:43:11]name=ofd_packets/00189294 [18:43:11]NVStorageDeleteData [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:41]accept exits with 8 [18:45:41]New connection [18:45:41]New thread 3067215204 created [18:45:41]Thread 3067071844 joined [18:45:41]Waiting for new connection... [18:45:41] Sock 8.Parse request [18:45:41]Sock 8.Check first char [18:45:41]Sock 8.First char is OK [18:45:41]request: POST /json_proto HTTP/1.0 [18:45:41]Method: POST [18:45:41]URL: /json_proto [18:45:41]Method is POST - this is cgi request [18:45:41]url: /json_proto [18:45:41]query_string will be loaded in cgi processing [18:45:41]execute_cgi json_proto POST (null) [18:45:41]execute_cgi path=json_proto method=POST [18:45:41]POST find Content-Length [18:45:41]Host: 172.17.42.131:8080 [18:45:41]Content-Length: 682 [18:45:41]Content-Type: application/json [18:45:41] [18:45:41]POST finish read [18:45:41]Found Content-Length = 682 [18:45:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:45:41]execute_script... [18:45: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)211360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:45:41]POST & json_proto [18:45:41]process_json_proto [18:45:41]json parsed OK: [18:45:41]protocol is kg_v1.0 [18:45:41]action value=close_receipt [18:45:41]process_action close_receipt [18:45:41]cmd_close_receipt [18:45:41]MH_GetDate [18:45:41]Write to MH i2c: F0 00 00 03 6E 60 [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: F0 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: F0 09 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: F0 09 00 03 6E 00 DA 95 1A 67 A0 18 CA 66 41 [18:45:41]GetLastDocTimeStamp 1729795293 [18:45:41]current date 1729795546 [18:45:41]FM_GetShiftState [18:45:41]SAM_PROTO_GetShiftState [18:45:41]wFMCommunicate request_size=4 [18:45:41]MH_SAM_APDU [18:45:41]CAPDU: 80 13 01 00 [18:45:41]Write to MH i2c: E2 08 00 04 6E 80 13 01 00 00 00 00 00 EF [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 0E 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 0E 00 04 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CD [18:45:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:45:41]wFMCommunicate OK [18:45:41]SAM_PROTO_GetShiftState done [18:45:41]FM_GetShiftState done [18:45:41]opened in 1729728961 [18:45:41]opened+sec_in_day 1729815361 [18:45:41]quantity*price = 100021 [18:45:41]sum+1 = 100023 [18:45: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 368 24.10.2024 18:45 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189295 ФПД: 7074134287931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189295&fm=7074134287931&tin=02508201610067®Number=0000000000100030&sum=100000 [18:45:42]StoreToDocumentArchive [18:45:42]shift 463 fd 189295 [18:45:42]save to /storage/0463/doc_00189295 [18:45:42]save last doc name /storage/0463/doc_00189295 to /storage/kkm_last_doc_name [18:45:42]save OK [18:45:42]Clear old archive folders... [18:45:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:42]tlvbuf is 014B4310 [18:45:42]SAM_PROTO_ClearQueue [18:45:42]wFMCommunicate request_size=4 [18:45:42]MH_SAM_APDU [18:45:42]CAPDU: 80 09 00 00 [18:45:42]Write to MH i2c: E2 08 00 11 6E 80 09 00 00 00 00 00 00 F1 [18:45:42]Write i2c OK [18:45:42]MH_I2C_Read... [18:45:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:42]Read from MH i2c: E2 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: E2 03 00 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: E2 03 00 11 6E 00 90 00 F3 [18:45:42]RAPDU: 90 00 [18:45:42]wFMCommunicate OK [18:45:42]SAM_PROTO_ClearQueue done [18:45:42]KKMCreateOFDPacket [18:45:42]OFDProtocolAddRootSTLVToBuf [18:45:42]FM_MakeSignedData [18:45:42]FM_MakeSignedData [18:45:42]SAM_PROTO_SignData [18:45:42]wFMCommunicate request_size=4 [18:45:42]MH_SAM_APDU [18:45:42]CAPDU: 80 0D 01 02 [18:45:42]Write to MH i2c: E2 08 00 12 6E 80 0D 01 02 00 00 00 00 F9 [18:45:42]Write i2c OK [18:45:42]MH_I2C_Read... [18:45:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:42]Read from MH i2c: E2 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: E2 03 00 [18:45:42]MH_I2C_Read... [18:45:42]Read from MH i2c: E2 03 00 12 6E 00 90 00 F4 [18:45:42]RAPDU: 90 00 [18:45:42]wFMCommunicate OK [18:45:42]wFMCommunicate request_size=255 [18:45:42]MH_SAM_APDU [18:45:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 70 01 00 00 F4 03 04 00 DA 95 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E3 02 00 35 04 06 00 06 [18:45:42]Write to MH i2c: E2 02 01 13 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 33 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 70 01 00 00 F4 03 04 00 DA 95 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E3 02 00 35 04 06 00 06 00 00 14 [18:45:42]Write i2c OK [18:45:42]MH_I2C_Read... [18:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:43]Read from MH i2c: E2 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 03 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 03 00 13 6E 00 90 00 F5 [18:45:43]RAPDU: 90 00 [18:45:43]wFMCommunicate OK [18:45:43]wFMCommunicate request_size=10 [18:45:43]MH_SAM_APDU [18:45:43]CAPDU: 80 0D 02 02 05 6F 13 42 E6 3B [18:45:43]Write to MH i2c: E2 0D 00 14 6E 80 0D 02 02 05 00 6F 13 42 E6 3B 00 00 EB [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:43]Read from MH i2c: E2 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 03 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 03 00 14 6E 00 90 00 F6 [18:45:43]RAPDU: 90 00 [18:45:43]wFMCommunicate OK [18:45:43]wFMCommunicate request_size=4 [18:45:43]MH_SAM_APDU [18:45:43]CAPDU: 80 0D 03 02 [18:45:43]Write to MH i2c: E2 08 00 15 6E 80 0D 03 02 00 00 00 00 FE [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:43]Read from MH i2c: E2 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 0B 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 0B 00 15 6E 00 F7 6E 97 1A C3 81 4D 3B 90 00 E1 [18:45:43]RAPDU: F7 6E 97 1A C3 81 4D 3B 90 00 [18:45:43]wFMCommunicate OK [18:45:43]SAM_PROTO_SignData done [18:45:43]FM_MakeSignedData done [18:45:43]CreateOFDProtocolMessage [18:45:43]wFMCommunicate request_size=4 [18:45:43]MH_SAM_APDU [18:45:43]CAPDU: 80 11 00 00 [18:45:43]Write to MH i2c: E2 08 00 16 6E 80 11 00 00 00 00 00 00 FE [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:43]Read from MH i2c: E2 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 17 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 17 00 16 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [18:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:43]wFMCommunicate OK [18:45:43]CreateOFDProtocolMessage done [18:45:43]OFDSenderStorePacket 189295 [18:45:43]StoreOFDPacket docnum=189295 [18:45:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 4A 07 01 82 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 33 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 70 01 00 00 F4 03 04 00 DA 95 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E3 02 00 35 04 06 00 06 6F 13 42 E6 3B F7 6E 97 1A C3 81 4D 3B [18:45:43]CheckFolder [18:45:43]dirname=/storage/ofd_packets [18:45:43]CheckFolder done [18:45:43]ProducePacketName [18:45:43]name=ofd_packets/00189295 [18:45:43]NVStorageSaveData ofd_packets/00189295 [18:45:43]File name is /storage/ofd_packets/00189295 [18:45:43]Write 301 bytes [18:45:43]NVStorageSaveData done [18:45:43]OFDSenderStorePacket done [18:45:43]KKMCreateOFDPacket done [18:45:43]NVStorageSaveData kkm_last_timestamp [18:45:43]File name is /storage/kkm_last_timestamp [18:45:43]Write 4 bytes [18:45:43]NVStorageSaveData done [18:45:43]ExternCall_PrintAddStr [18:45:43]wPrintStart [18:45:43]Write to MH i2c: 01 00 00 17 6E 85 [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 07 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 07 00 17 6E 00 00 00 00 00 FF 0F 9A [18:45:43]RasterBufferAndPrint [18:45:43]line Счет N : (1)211360 [18:45:43]line ИНН: 02508201610067 [18:45:43]line Контрольно-Кассовый Чек [18:45:43]line ПРОДАЖА [18:45:43]line ТРК (МРК, ГНК) : 43 [18:45:43]line Товар: 2710124500 [18:45:43]line Аи-95-К-3 [18:45:43]line 13.480 * 74.20 [18:45:43]line = 1000.22 [18:45:43]line НДС 12% НСП 1% [18:45:43]line > о реализуемом товаре [18:45:43]line ОКРУГЛЕНИЕ: -0.22 [18:45:43]line ИТОГО: 1000.00 [18:45:43]line Внесено: 1000.00 [18:45:43]line СДАЧА: 0.00 [18:45:43]line НСП 1% : 8.85 [18:45:43]line НДС 12% : 106.22 [18:45:43]line Наличными: 1000.00 [18:45:43]line Безнал.: 0.00 [18:45:43]line Место: АЗС № 86 "Партнер Нефть" [18:45:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:45:43]line СНО: Общий режим [18:45:43]line Чек 368 24.10.2024 18:45 [18:45:43]line Смена: 463 ФФД: 1.0 [18:45:43]line ЗНМ: 0300000155 [18:45:43]line РНМ: 0000000000100030 [18:45:43]line Версия ККМ: 001 [18:45:43]line ФМ: 0000000000965340 [18:45:43]line ФД: 189295 [18:45:43]line ФПД: 7074134287931 [18:45:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189295&fm=7074134287931&tin=02508201610067®Number=0000000000100030&sum=100000 [18:45:43]OFD Sender: Processing packet 189295 [packets to send 1062, broken 1061] [18:45:43]ProducePacketName [18:45:43]name=ofd_packets/00189295 [18:45:43]OFD Sender: To server: pG, [18:45:43]CommunicateWithHost lk.salyk.kg:30040 [18:45:43]ConnectInit lk.salyk.kg [18:45:43]written 0, free lines is 4095 [18:45:43]Connected sock=10 [18:45:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 4A 07 01 82 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 33 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 70 01 00 00 F4 03 04 00 DA 95 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E3 02 00 35 04 06 00 06 6F 13 42 E6 3B F7 6E 97 1A C3 81 4D 3B [18:45:43]Write to MH i2c: 01 00 00 42 6E B0 [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 07 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: 01 07 00 42 6E 00 00 00 00 00 67 0C 2A [18:45:43]RasterBufferAndPrint [18:45:43]line [18:45:43]line [18:45:43]line [18:45:43]line [18:45:43]line [18:45:43]written 0, free lines is 3178 [18:45:43]MH_Cut [18:45:43]Write to MH i2c: D1 01 00 49 6E 01 89 [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: D1 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: D1 01 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: D1 01 00 49 6E 00 88 [18:45:43]Write to MH i2c: 01 00 00 4A 6E B8 [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3D B2 47 00 0F 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E3 02 00 F4 03 04 00 C1 3F 1A 67 B6 04 01 00 00 C2 38 D7 4E 6C 6A 37 C5 [18:45:43]CommunicateWithHost err = 0 [18:45:43]CheckOFDResponse [18:45:43]1017 (14) - 77093643461234 [18:45:43]1041 (16) - 0000000000965340 [18:45:43]1040 (4) - 189295 [18:45:43]1012 (4) - 24.10.2024 12:38 [18:45:43]1206 (1) - 0 [18:45:43]OFD Sender: Remove packet 189295 [18:45:43]ProducePacketName [18:45:43]name=ofd_packets/00189295 [18:45:43]NVStorageDeleteData [18:45:44]OFD Sender: No OFD packet to send [18:45:45]*** Cut start [18:45:45]*** Partial cut [18:45:45]*** CUTSNS_PIN = 1 [18:45:45]*** CUTSNS_PIN = 0 [18:45:45]*** Brake cut motor [18:45:45]Read from MH i2c: 01 [18:45:45]MH_I2C_Read... [18:45:45]*** Stop cut motor [18:45:45]*** Cut end [18:45:45]Read from MH i2c: 01 07 00 [18:45:45]MH_I2C_Read... [18:45:45]Read from MH i2c: 01 07 00 4A 6E 00 00 00 00 00 FF 0F CD [18:45:45]process_action close_receipt done [18:45:45]requested_data is exist [18:45:45]produce_requested_data [18:45:45]requested_item fm.sn is exist - process it [18:45:45]wFMCommunicate request_size=4 [18:45:45]MH_SAM_APDU [18:45:45]CAPDU: 80 11 00 00 [18:45:45]Write to MH i2c: E2 08 00 4B 6E 80 11 00 00 00 00 00 00 33 [18:45:45]Write i2c OK [18:45:45]MH_I2C_Read... [18:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:45]Read from MH i2c: E2 [18:45:45]MH_I2C_Read... [18:45:45]Read from MH i2c: E2 17 00 [18:45:45]MH_I2C_Read... [18:45:45]Read from MH i2c: E2 17 00 4B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [18:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:45]wFMCommunicate OK [18:45:45]requested_item fd.num is exist - process it [18:45:45]SAM_PROTO_GetFieldsCounters [18:45:45]wFMCommunicate request_size=4 [18:45:45]MH_SAM_APDU [18:45:45]CAPDU: 80 13 00 00 [18:45:45]Write to MH i2c: E2 08 00 4C 6E 80 13 00 00 00 00 00 00 36 [18:45:45]Write i2c OK [18:45:45]MH_I2C_Read... [18:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:45]Read from MH i2c: E2 [18:45:45]MH_I2C_Read... [18:45:45]Read from MH i2c: E2 62 00 [18:45:45]MH_I2C_Read... [18:45:45]Read from MH i2c: E2 62 00 4C 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E3 02 00 0E 04 04 00 CF 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 B4 [18:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E3 02 00 0E 04 04 00 CF 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 [18:45:45]wFMCommunicate OK [18:45:45]SAM_PROTO_GetFieldsCounters done [18:45:45]requested_item shift.num is exist - process it [18:45:45]requested_item shift.opened is exist - process it [18:45:45]req_shift_opened [18:45:45]FM_GetShiftState [18:45:45]SAM_PROTO_GetShiftState [18:45:45]wFMCommunicate request_size=4 [18:45:45]MH_SAM_APDU [18:45:45]CAPDU: 80 13 01 00 [18:45:45]Write to MH i2c: E2 08 00 4D 6E 80 13 01 00 00 00 00 00 38 [18:45:45]Write i2c OK [18:45:45]MH_I2C_Read... [18:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:46]Read from MH i2c: E2 [18:45:46]MH_I2C_Read... [18:45:46]Read from MH i2c: E2 0E 00 [18:45:46]MH_I2C_Read... [18:45:46]Read from MH i2c: E2 0E 00 4D 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 16 [18:45:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:45:46]wFMCommunicate OK [18:45:46]SAM_PROTO_GetShiftState done [18:45:46]FM_GetShiftState done [18:45:46]req_shift_opened done [18:45:46]requested_item shift.open_date is exist - process it [18:45:46]req_shift_open_date [18:45:46]req_shift_open_date done [18:45:46]produce_requested_data done [18:45:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189295,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:45:46]process_action_free close_receipt [18:45:46]json_value_free [18:45:46]json_value_free done [18:45:46]process_json_proto returns [18:45:46]Send response to host [18:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189295,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:45:46]free response buf [18:45:46]execute_script done [18:45:46]execute_script returns [18:45:46]free content buf [18:45:46]Sock 8.Close socket [18:45:46]Sock 8.Thread stoped [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]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:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:51]accept exits with 9 [18:58:51]New connection [18:58:51]New thread 3067071844 created [18:58:51]Thread 3067215204 joined [18:58:51]Waiting for new connection... [18:58:51] Sock 9.Parse request [18:58:51]Sock 9.Check first char [18:58:51]Sock 9.First char is OK [18:58:51]request: POST /json_proto HTTP/1.0 [18:58:51]Method: POST [18:58:51]URL: /json_proto [18:58:51]Method is POST - this is cgi request [18:58:51]url: /json_proto [18:58:51]query_string will be loaded in cgi processing [18:58:51]execute_cgi json_proto POST (null) [18:58:51]execute_cgi path=json_proto method=POST [18:58:51]POST find Content-Length [18:58:51]Host: 172.17.42.131:8080 [18:58:51]Content-Length: 677 [18:58:51]Content-Type: application/json [18:58:51] [18:58:51]POST finish read [18:58:51]Found Content-Length = 677 [18:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:58:51]execute_script... [18:58: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)211361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:58:51]POST & json_proto [18:58:51]process_json_proto [18:58:51]json parsed OK: [18:58:51]protocol is kg_v1.0 [18:58:51]action value=close_receipt [18:58:51]process_action close_receipt [18:58:51]cmd_close_receipt [18:58:51]MH_GetDate [18:58:51]Write to MH i2c: F0 00 00 4E 6E AB [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: F0 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: F0 09 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: F0 09 00 4E 6E 00 F0 98 1A 67 A0 18 CA 66 A5 [18:58:51]GetLastDocTimeStamp 1729795546 [18:58:51]current date 1729796336 [18:58:51]FM_GetShiftState [18:58:51]SAM_PROTO_GetShiftState [18:58:51]wFMCommunicate request_size=4 [18:58:51]MH_SAM_APDU [18:58:51]CAPDU: 80 13 01 00 [18:58:51]Write to MH i2c: E2 08 00 4F 6E 80 13 01 00 00 00 00 00 3A [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:51]Read from MH i2c: E2 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 0E 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: E2 0E 00 4F 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 18 [18:58:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:58:51]wFMCommunicate OK [18:58:51]SAM_PROTO_GetShiftState done [18:58:51]FM_GetShiftState done [18:58:51]opened in 1729728961 [18:58:51]opened+sec_in_day 1729815361 [18:58:51]quantity*price = 50041 [18:58:51]sum+1 = 50042 [18:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 369 24.10.2024 18:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189296 ФПД: 209299323639711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185856&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189296&fm=209299323639711&tin=02508201610067®Number=0000000000100030&sum=50000 [18:58:52]StoreToDocumentArchive [18:58:52]shift 463 fd 189296 [18:58:52]save to /storage/0463/doc_00189296 [18:58:52]save last doc name /storage/0463/doc_00189296 to /storage/kkm_last_doc_name [18:58:52]save OK [18:58:52]Clear old archive folders... [18:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:52]tlvbuf is 016C66D0 [18:58:52]SAM_PROTO_ClearQueue [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 09 00 00 [18:58:52]Write to MH i2c: E2 08 00 5C 6E 80 09 00 00 00 00 00 00 3C [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 03 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 03 00 5C 6E 00 90 00 3E [18:58:52]RAPDU: 90 00 [18:58:52]wFMCommunicate OK [18:58:52]SAM_PROTO_ClearQueue done [18:58:52]KKMCreateOFDPacket [18:58:52]OFDProtocolAddRootSTLVToBuf [18:58:52]FM_MakeSignedData [18:58:52]FM_MakeSignedData [18:58:52]SAM_PROTO_SignData [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 0D 01 02 [18:58:52]Write to MH i2c: E2 08 00 5D 6E 80 0D 01 02 00 00 00 00 44 [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 5D 6E 00 90 00 3F [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=255 [18:58:53]MH_SAM_APDU [18: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F0 98 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E3 02 00 35 04 06 00 BE [18:58:53]Write to MH i2c: E2 02 01 5E 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F0 98 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E3 02 00 35 04 06 00 BE 00 00 15 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]OFD Sender: No OFD packet to send [18:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 5E 6E 00 90 00 40 [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=10 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 0D 02 02 05 5B 4B D6 57 9F [18:58:53]Write to MH i2c: E2 0D 00 5F 6E 80 0D 02 02 05 00 5B 4B D6 57 9F 00 00 C3 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 03 00 5F 6E 00 90 00 41 [18:58:53]RAPDU: 90 00 [18:58:53]wFMCommunicate OK [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 0D 03 02 [18:58:53]Write to MH i2c: E2 08 00 60 6E 80 0D 03 02 00 00 00 00 49 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0B 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0B 00 60 6E 00 88 0F 8D 34 26 2B BD A9 90 00 59 [18:58:53]RAPDU: 88 0F 8D 34 26 2B BD A9 90 00 [18:58:53]wFMCommunicate OK [18:58:53]SAM_PROTO_SignData done [18:58:53]FM_MakeSignedData done [18:58:53]CreateOFDProtocolMessage [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 11 00 00 [18:58:53]Write to MH i2c: E2 08 00 61 6E 80 11 00 00 00 00 00 00 49 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 17 00 61 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [18:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:58:53]wFMCommunicate OK [18:58:53]CreateOFDProtocolMessage done [18:58:53]OFDSenderStorePacket 189296 [18:58:53]StoreOFDPacket docnum=189296 [18:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 06 07 01 9E 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F0 98 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E3 02 00 35 04 06 00 BE 5B 4B D6 57 9F 88 0F 8D 34 26 2B BD A9 [18:58:53]CheckFolder [18:58:53]dirname=/storage/ofd_packets [18:58:53]CheckFolder done [18:58:53]ProducePacketName [18:58:53]name=ofd_packets/00189296 [18:58:53]NVStorageSaveData ofd_packets/00189296 [18:58:53]File name is /storage/ofd_packets/00189296 [18:58:53]Write 301 bytes [18:58:53]NVStorageSaveData done [18:58:53]OFDSenderStorePacket done [18:58:53]KKMCreateOFDPacket done [18:58:53]NVStorageSaveData kkm_last_timestamp [18:58:53]File name is /storage/kkm_last_timestamp [18:58:53]Write 4 bytes [18:58:53]NVStorageSaveData done [18:58:53]ExternCall_PrintAddStr [18:58:53]wPrintStart [18:58:53]Write to MH i2c: 01 00 00 62 6E D0 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 62 6E 00 00 00 00 00 FF 0F E5 [18:58:53]RasterBufferAndPrint [18:58:53]line Счет N : (1)211361 [18:58:53]line ИНН: 02508201610067 [18:58:53]line Контрольно-Кассовый Чек [18:58:53]line ПРОДАЖА [18:58:53]line ТРК (МРК, ГНК) : 42 [18:58:53]line Товар: 2710124130 [18:58:53]line Аи-92-К-3 [18:58:53]line 7.480 * 66.90 [18:58:53]line = 500.41 [18:58:53]line НДС 12% НСП 1% [18:58:53]line > о реализуемом товаре [18:58:53]line ОКРУГЛЕНИЕ: -0.41 [18:58:53]line ИТОГО: 500.00 [18:58:53]line Внесено: 500.00 [18:58:53]line СДАЧА: 0.00 [18:58:53]line НСП 1% : 4.43 [18:58:53]line НДС 12% : 53.14 [18:58:53]line Наличными: 500.00 [18:58:53]line Безнал.: 0.00 [18:58:53]line Место: АЗС № 86 "Партнер Нефть" [18:58:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:58:53]line СНО: Общий режим [18:58:53]line Чек 369 24.10.2024 18:58 [18:58:53]line Смена: 463 ФФД: 1.0 [18:58:53]line ЗНМ: 0300000155 [18:58:53]line РНМ: 0000000000100030 [18:58:53]line Версия ККМ: 001 [18:58:53]line ФМ: 0000000000965340 [18:58:53]line ФД: 189296 [18:58:53]line ФПД: 209299323639711 [18:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185856&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189296&fm=209299323639711&tin=02508201610067®Number=0000000000100030&sum=50000 [18:58:53]written 0, free lines is 4095 [18:58:53]OFD Sender: Processing packet 189296 [packets to send 1062, broken 1061] [18:58:53]ProducePacketName [18:58:53]name=ofd_packets/00189296 [18:58:53]OFD Sender: To server: pG, [18:58:53]CommunicateWithHost lk.salyk.kg:30040 [18:58:53]ConnectInit lk.salyk.kg [18:58:53]Connected sock=10 [18:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 06 07 01 9E 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F0 98 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E3 02 00 35 04 06 00 BE 5B 4B D6 57 9F 88 0F 8D 34 26 2B BD A9 [18:58:53]Write to MH i2c: 01 00 00 8D 6E FB [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: 01 07 00 8D 6E 00 00 00 00 00 58 0C 66 [18:58:53]RasterBufferAndPrint [18:58:53]line [18:58:53]line [18:58:53]line [18:58:53]line [18:58:53]line [18:58:53]written 0, free lines is 3162 [18:58:53]MH_Cut [18:58:53]Write to MH i2c: D1 01 00 94 6E 01 D4 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: D1 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: D1 01 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: D1 01 00 94 6E 00 D3 [18:58:53]Write to MH i2c: 01 00 00 95 6E 03 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 CF 47 00 AD 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 39 36 35 33 34 30 10 04 04 00 70 E3 02 00 F4 03 04 00 D7 42 1A 67 B6 04 01 00 00 AF 29 D9 94 7A 6A D2 19 [18:58:54]CommunicateWithHost err = 0 [18:58:54]CheckOFDResponse [18:58:54]1017 (14) - 77093643461234 [18:58:54]1041 (16) - 0000000000965340 [18:58:54]1040 (4) - 189296 [18:58:54]1012 (4) - 24.10.2024 12:51 [18:58:54]1206 (1) - 0 [18:58:54]OFD Sender: Remove packet 189296 [18:58:54]ProducePacketName [18:58:54]name=ofd_packets/00189296 [18:58:54]NVStorageDeleteData [18:58:54]OFD Sender: No OFD packet to send [18:58:55]*** Cut start [18:58:55]*** Partial cut [18:58:55]*** CUTSNS_PIN = 1 [18:58:55]*** CUTSNS_PIN = 0 [18:58:55]*** Brake cut motor [18:58:55]Read from MH i2c: 01 [18:58:55]MH_I2C_Read... [18:58:55]*** Stop cut motor [18:58:55]*** Cut end [18:58:55]Read from MH i2c: 01 07 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 95 6E 00 00 00 00 00 FF 0F 18 [18:58:55]process_action close_receipt done [18:58:55]requested_data is exist [18:58:55]produce_requested_data [18:58:55]requested_item fm.sn is exist - process it [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 11 00 00 [18:58:55]Write to MH i2c: E2 08 00 96 6E 80 11 00 00 00 00 00 00 7E [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 96 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [18:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:58:55]wFMCommunicate OK [18:58:55]requested_item fd.num is exist - process it [18:58:55]SAM_PROTO_GetFieldsCounters [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 13 00 00 [18:58:55]Write to MH i2c: E2 08 00 97 6E 80 13 00 00 00 00 00 00 81 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 62 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 62 00 97 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E3 02 00 0E 04 04 00 CF 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 03 [18:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E3 02 00 0E 04 04 00 CF 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 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_GetFieldsCounters done [18:58:56]requested_item shift.num is exist - process it [18:58:56]requested_item shift.opened is exist - process it [18:58:56]req_shift_opened [18:58:56]FM_GetShiftState [18:58:56]SAM_PROTO_GetShiftState [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 13 01 00 [18:58:56]Write to MH i2c: E2 08 00 98 6E 80 13 01 00 00 00 00 00 83 [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 98 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 61 [18:58:56]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_GetShiftState done [18:58:56]FM_GetShiftState done [18:58:56]req_shift_opened done [18:58:56]requested_item shift.open_date is exist - process it [18:58:56]req_shift_open_date [18:58:56]req_shift_open_date done [18:58:56]produce_requested_data done [18:58:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189296,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [18:58:56]process_action_free close_receipt [18:58:56]json_value_free [18:58:56]json_value_free done [18:58:56]process_json_proto returns [18:58:56]Send response to host [18:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189296,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [18:58:56]free response buf [18:58:56]execute_script done [18:58:56]execute_script returns [18:58:56]free content buf [18:58:56]Sock 9.Close socket [18:58:56]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [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:09]accept exits with 8 [19:03:09]New connection [19:03:09]New thread 3067215204 created [19:03:09]Thread 3067071844 joined [19:03:09]Waiting for new connection... [19:03:09] Sock 8.Parse request [19:03:09]Sock 8.Check first char [19:03:09]Sock 8.First char is OK [19:03:09]request: POST /json_proto HTTP/1.0 [19:03:09]Method: POST [19:03:09]URL: /json_proto [19:03:09]Method is POST - this is cgi request [19:03:09]url: /json_proto [19:03:09]query_string will be loaded in cgi processing [19:03:09]execute_cgi json_proto POST (null) [19:03:09]execute_cgi path=json_proto method=POST [19:03:09]POST find Content-Length [19:03:09]Host: 172.17.42.131:8080 [19:03:09]Content-Length: 677 [19:03:09]Content-Type: application/json [19:03:09] [19:03:09]POST finish read [19:03:09]Found Content-Length = 677 [19:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:03:09]execute_script... [19:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:03:09]POST & json_proto [19:03:09]process_json_proto [19:03:09]json parsed OK: [19:03:09]protocol is kg_v1.0 [19:03:09]action value=close_receipt [19:03:09]process_action close_receipt [19:03:09]cmd_close_receipt [19:03:09]MH_GetDate [19:03:09]Write to MH i2c: F0 00 00 99 6E F6 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 09 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: F0 09 00 99 6E 00 F1 99 1A 67 A0 18 CA 66 F2 [19:03:09]GetLastDocTimeStamp 1729796336 [19:03:09]current date 1729796593 [19:03:09]FM_GetShiftState [19:03:09]SAM_PROTO_GetShiftState [19:03:09]wFMCommunicate request_size=4 [19:03:09]MH_SAM_APDU [19:03:09]CAPDU: 80 13 01 00 [19:03:09]Write to MH i2c: E2 08 00 9A 6E 80 13 01 00 00 00 00 00 85 [19:03:09]Write i2c OK [19:03:09]MH_I2C_Read... [19:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:09]Read from MH i2c: E2 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0E 00 [19:03:09]MH_I2C_Read... [19:03:09]Read from MH i2c: E2 0E 00 9A 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 63 [19:03:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:03:09]wFMCommunicate OK [19:03:09]SAM_PROTO_GetShiftState done [19:03:09]FM_GetShiftState done [19:03:09]opened in 1729728961 [19:03:09]opened+sec_in_day 1729815361 [19:03:09]quantity*price = 40006 [19:03:09]sum+1 = 40007 [19:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 370 24.10.2024 19:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189297 ФПД: 169965358768686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189297&fm=169965358768686&tin=02508201610067®Number=0000000000100030&sum=40000 [19:03:10]StoreToDocumentArchive [19:03:10]shift 463 fd 189297 [19:03:10]save to /storage/0463/doc_00189297 [19:03:10]save last doc name /storage/0463/doc_00189297 to /storage/kkm_last_doc_name [19:03:10]save OK [19:03:10]Clear old archive folders... [19:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:10]tlvbuf is 01700660 [19:03:10]SAM_PROTO_ClearQueue [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 09 00 00 [19:03:10]Write to MH i2c: E2 08 00 A7 6E 80 09 00 00 00 00 00 00 87 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 A7 6E 00 90 00 89 [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_ClearQueue done [19:03:10]KKMCreateOFDPacket [19:03:10]OFDProtocolAddRootSTLVToBuf [19:03:10]FM_MakeSignedData [19:03:10]FM_MakeSignedData [19:03:10]SAM_PROTO_SignData [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 01 02 [19:03:10]Write to MH i2c: E2 08 00 A8 6E 80 0D 01 02 00 00 00 00 8F [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 A8 6E 00 90 00 8A [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=255 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 72 01 00 00 F4 03 04 00 F1 99 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E3 02 00 35 04 06 00 9A [19:03:10]Write to MH i2c: E2 02 01 A9 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 72 01 00 00 F4 03 04 00 F1 99 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E3 02 00 35 04 06 00 9A 00 00 0F [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 A9 6E 00 90 00 8B [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=10 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 02 02 05 95 24 D5 62 2E [19:03:10]Write to MH i2c: E2 0D 00 AA 6E 80 0D 02 02 05 00 95 24 D5 62 2E 00 00 BA [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 03 00 AA 6E 00 90 00 8C [19:03:10]RAPDU: 90 00 [19:03:10]wFMCommunicate OK [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 0D 03 02 [19:03:10]Write to MH i2c: E2 08 00 AB 6E 80 0D 03 02 00 00 00 00 94 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0B 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 0B 00 AB 6E 00 28 CB 29 81 43 4A B3 02 90 00 74 [19:03:10]RAPDU: 28 CB 29 81 43 4A B3 02 90 00 [19:03:10]wFMCommunicate OK [19:03:10]SAM_PROTO_SignData done [19:03:10]FM_MakeSignedData done [19:03:10]CreateOFDProtocolMessage [19:03:10]wFMCommunicate request_size=4 [19:03:10]MH_SAM_APDU [19:03:10]CAPDU: 80 11 00 00 [19:03:10]Write to MH i2c: E2 08 00 AC 6E 80 11 00 00 00 00 00 00 94 [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:10]Read from MH i2c: E2 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 17 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: E2 17 00 AC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [19:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:10]wFMCommunicate OK [19:03:10]CreateOFDProtocolMessage done [19:03:10]OFDSenderStorePacket 189297 [19:03:10]StoreOFDPacket docnum=189297 [19:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 30 07 01 8D 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 72 01 00 00 F4 03 04 00 F1 99 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E3 02 00 35 04 06 00 9A 95 24 D5 62 2E 28 CB 29 81 43 4A B3 02 [19:03:10]CheckFolder [19:03:10]dirname=/storage/ofd_packets [19:03:10]CheckFolder done [19:03:10]ProducePacketName [19:03:10]name=ofd_packets/00189297 [19:03:10]NVStorageSaveData ofd_packets/00189297 [19:03:10]File name is /storage/ofd_packets/00189297 [19:03:10]Write 301 bytes [19:03:10]NVStorageSaveData done [19:03:10]OFDSenderStorePacket done [19:03:10]KKMCreateOFDPacket done [19:03:10]NVStorageSaveData kkm_last_timestamp [19:03:10]File name is /storage/kkm_last_timestamp [19:03:10]Write 4 bytes [19:03:10]NVStorageSaveData done [19:03:10]ExternCall_PrintAddStr [19:03:10]wPrintStart [19:03:10]Write to MH i2c: 01 00 00 AD 6E 1B [19:03:10]Write i2c OK [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 07 00 [19:03:10]MH_I2C_Read... [19:03:10]Read from MH i2c: 01 07 00 AD 6E 00 00 00 00 00 FF 0F 30 [19:03:10]RasterBufferAndPrint [19:03:10]line Счет N : (1)211362 [19:03:10]line ИНН: 02508201610067 [19:03:10]line Контрольно-Кассовый Чек [19:03:10]line ПРОДАЖА [19:03:10]line ТРК (МРК, ГНК) : 42 [19:03:10]line Товар: 2710124130 [19:03:10]line Аи-92-К-3 [19:03:10]line 5.980 * 66.90 [19:03:10]line = 400.06 [19:03:10]line НДС 12% НСП 1% [19:03:10]line > о реализуемом товаре [19:03:10]line ОКРУГЛЕНИЕ: -0.06 [19:03:10]line ИТОГО: 400.00 [19:03:10]line Внесено: 400.00 [19:03:10]line СДАЧА: 0.00 [19:03:10]line НСП 1% : 3.54 [19:03:10]line НДС 12% : 42.48 [19:03:10]line Наличными: 400.00 [19:03:10]line Безнал.: 0.00 [19:03:10]line Место: АЗС № 86 "Партнер Нефть" [19:03:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:03:10]line СНО: Общий режим [19:03:10]line Чек 370 24.10.2024 19:03 [19:03:10]line Смена: 463 ФФД: 1.0 [19:03:10]line ЗНМ: 0300000155 [19:03:10]line РНМ: 0000000000100030 [19:03:10]line Версия ККМ: 001 [19:03:10]line ФМ: 0000000000965340 [19:03:10]line ФД: 189297 [19:03:10]line ФПД: 169965358768686 [19:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189297&fm=169965358768686&tin=02508201610067®Number=0000000000100030&sum=40000 [19:03:10]written 0, free lines is 4095 [19:03:10]OFD Sender: Processing packet 189297 [packets to send 1062, broken 1061] [19:03:10]ProducePacketName [19:03:10]name=ofd_packets/00189297 [19:03:10]OFD Sender: To server: pG, [19:03:10]CommunicateWithHost lk.salyk.kg:30040 [19:03:10]ConnectInit lk.salyk.kg [19:03:11]Connected sock=10 [19:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 30 07 01 8D 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 72 01 00 00 F4 03 04 00 F1 99 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E3 02 00 35 04 06 00 9A 95 24 D5 62 2E 28 CB 29 81 43 4A B3 02 [19:03:11]Write to MH i2c: 01 00 00 D8 6E 46 [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 07 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: 01 07 00 D8 6E 00 00 00 00 00 53 0C AC [19:03:11]RasterBufferAndPrint [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]line [19:03:11]written 0, free lines is 3159 [19:03:11]MH_Cut [19:03:11]Write to MH i2c: D1 01 00 DF 6E 01 1F [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 01 00 [19:03:11]MH_I2C_Read... [19:03:11]Read from MH i2c: D1 01 00 DF 6E 00 1E [19:03:11]Write to MH i2c: 01 00 00 E0 6E 4E [19:03:11]Write i2c OK [19:03:11]MH_I2C_Read... [19:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 93 47 00 82 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 39 36 35 33 34 30 10 04 04 00 71 E3 02 00 F4 03 04 00 D9 43 1A 67 B6 04 01 00 00 8C C2 87 4E CC 78 AF F0 [19:03:11]CommunicateWithHost err = 0 [19:03:11]CheckOFDResponse [19:03:11]1017 (14) - 77093643461234 [19:03:11]1041 (16) - 0000000000965340 [19:03:11]1040 (4) - 189297 [19:03:11]1012 (4) - 24.10.2024 12:55 [19:03:11]1206 (1) - 0 [19:03:11]OFD Sender: Remove packet 189297 [19:03:11]ProducePacketName [19:03:11]name=ofd_packets/00189297 [19:03:11]NVStorageDeleteData [19:03:12]OFD Sender: No OFD packet to send [19:03:12]*** Cut start [19:03:12]*** Partial cut [19:03:12]*** CUTSNS_PIN = 1 [19:03:12]*** CUTSNS_PIN = 0 [19:03:12]*** Brake cut motor [19:03:13]Read from MH i2c: 01 [19:03:13]MH_I2C_Read... [19:03:13]*** Stop cut motor [19:03:13]*** Cut end [19:03:13]Read from MH i2c: 01 07 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: 01 07 00 E0 6E 00 00 00 00 00 FF 0F 63 [19:03:13]process_action close_receipt done [19:03:13]requested_data is exist [19:03:13]produce_requested_data [19:03:13]requested_item fm.sn is exist - process it [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 11 00 00 [19:03:13]Write to MH i2c: E2 08 00 E1 6E 80 11 00 00 00 00 00 00 C9 [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 17 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 17 00 E1 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [19:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:13]wFMCommunicate OK [19:03:13]requested_item fd.num is exist - process it [19:03:13]SAM_PROTO_GetFieldsCounters [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 13 00 00 [19:03:13]Write to MH i2c: E2 08 00 E2 6E 80 13 00 00 00 00 00 00 CC [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 62 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 62 00 E2 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E3 02 00 0E 04 04 00 CF 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 52 [19:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E3 02 00 0E 04 04 00 CF 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 [19:03:13]wFMCommunicate OK [19:03:13]SAM_PROTO_GetFieldsCounters done [19:03:13]requested_item shift.num is exist - process it [19:03:13]requested_item shift.opened is exist - process it [19:03:13]req_shift_opened [19:03:13]FM_GetShiftState [19:03:13]SAM_PROTO_GetShiftState [19:03:13]wFMCommunicate request_size=4 [19:03:13]MH_SAM_APDU [19:03:13]CAPDU: 80 13 01 00 [19:03:13]Write to MH i2c: E2 08 00 E3 6E 80 13 01 00 00 00 00 00 CE [19:03:13]Write i2c OK [19:03:13]MH_I2C_Read... [19:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:13]Read from MH i2c: E2 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 0E 00 [19:03:13]MH_I2C_Read... [19:03:13]Read from MH i2c: E2 0E 00 E3 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AC [19:03:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:03:13]wFMCommunicate OK [19:03:13]SAM_PROTO_GetShiftState done [19:03:13]FM_GetShiftState done [19:03:13]req_shift_opened done [19:03:13]requested_item shift.open_date is exist - process it [19:03:13]req_shift_open_date [19:03:13]req_shift_open_date done [19:03:13]produce_requested_data done [19:03:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189297,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:03:13]process_action_free close_receipt [19:03:13]json_value_free [19:03:13]json_value_free done [19:03:13]process_json_proto returns [19:03:13]Send response to host [19:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189297,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:03:13]free response buf [19:03:13]execute_script done [19:03:13]execute_script returns [19:03:13]free content buf [19:03:13]Sock 8.Close socket [19:03:13]Sock 8.Thread stoped [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:40]accept exits with 9 [19:06:40]New connection [19:06:40]New thread 3067071844 created [19:06:40]Thread 3067215204 joined [19:06:40]Waiting for new connection... [19:06:40] Sock 9.Parse request [19:06:40]Sock 9.Check first char [19:06:40]Sock 9.First char is OK [19:06:40]request: POST /json_proto HTTP/1.0 [19:06:40]Method: POST [19:06:40]URL: /json_proto [19:06:40]Method is POST - this is cgi request [19:06:40]url: /json_proto [19:06:40]query_string will be loaded in cgi processing [19:06:40]execute_cgi json_proto POST (null) [19:06:40]execute_cgi path=json_proto method=POST [19:06:40]POST find Content-Length [19:06:40]Host: 172.17.42.131:8080 [19:06:40]Content-Length: 677 [19:06:40]Content-Type: application/json [19:06:40] [19:06:40]POST finish read [19:06:40]Found Content-Length = 677 [19:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:40]execute_script... [19:06: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)211363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:40]POST & json_proto [19:06:40]process_json_proto [19:06:40]json parsed OK: [19:06:40]protocol is kg_v1.0 [19:06:40]action value=close_receipt [19:06:40]process_action close_receipt [19:06:40]cmd_close_receipt [19:06:40]MH_GetDate [19:06:40]Write to MH i2c: F0 00 00 E4 6E 41 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: F0 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: F0 09 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: F0 09 00 E4 6E 00 C4 9A 1A 67 A0 18 CA 66 11 [19:06:40]GetLastDocTimeStamp 1729796593 [19:06:40]current date 1729796804 [19:06:40]FM_GetShiftState [19:06:40]SAM_PROTO_GetShiftState [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 13 01 00 [19:06:40]Write to MH i2c: E2 08 00 E5 6E 80 13 01 00 00 00 00 00 D0 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0E 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0E 00 E5 6E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AE [19:06:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:06:40]wFMCommunicate OK [19:06:40]SAM_PROTO_GetShiftState done [19:06:40]FM_GetShiftState done [19:06:40]opened in 1729728961 [19:06:40]opened+sec_in_day 1729815361 [19:06:40]quantity*price = 60009 [19:06:40]sum+1 = 60010 [19:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 371 24.10.2024 19:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189298 ФПД: 181023660779121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189298&fm=181023660779121&tin=02508201610067®Number=0000000000100030&sum=60000 [19:06:41]StoreToDocumentArchive [19:06:41]shift 463 fd 189298 [19:06:41]save to /storage/0463/doc_00189298 [19:06:41]save last doc name /storage/0463/doc_00189298 to /storage/kkm_last_doc_name [19:06:41]save OK [19:06:41]Clear old archive folders... [19:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:41]tlvbuf is 01555DB0 [19:06:41]SAM_PROTO_ClearQueue [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 09 00 00 [19:06:41]Write to MH i2c: E2 08 00 F2 6E 80 09 00 00 00 00 00 00 D2 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 F2 6E 00 90 00 D4 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_ClearQueue done [19:06:41]KKMCreateOFDPacket [19:06:41]OFDProtocolAddRootSTLVToBuf [19:06:41]FM_MakeSignedData [19:06:41]FM_MakeSignedData [19:06:41]SAM_PROTO_SignData [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 01 02 [19:06:41]Write to MH i2c: E2 08 00 F3 6E 80 0D 01 02 00 00 00 00 DA [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 F3 6E 00 90 00 D5 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=255 [19:06:41]MH_SAM_APDU [19:06: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 73 01 00 00 F4 03 04 00 C4 9A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E3 02 00 35 04 06 00 A4 [19:06:41]Write to MH i2c: E2 02 01 F4 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 73 01 00 00 F4 03 04 00 C4 9A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E3 02 00 35 04 06 00 A4 00 00 48 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 F4 6E 00 90 00 D6 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=10 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 02 02 05 A3 DA FF 26 71 [19:06:41]Write to MH i2c: E2 0D 00 F5 6E 80 0D 02 02 05 00 A3 DA FF 26 71 00 00 FA [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 F5 6E 00 90 00 D7 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 03 02 [19:06:41]Write to MH i2c: E2 08 00 F6 6E 80 0D 03 02 00 00 00 00 DF [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0B 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0B 00 F6 6E 00 AA D3 C4 3F CA C5 13 FB 90 00 FD [19:06:41]RAPDU: AA D3 C4 3F CA C5 13 FB 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_SignData done [19:06:41]FM_MakeSignedData done [19:06:41]CreateOFDProtocolMessage [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 11 00 00 [19:06:41]Write to MH i2c: E2 08 00 F7 6E 80 11 00 00 00 00 00 00 DF [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 F7 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [19:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:06:41]wFMCommunicate OK [19:06:41]CreateOFDProtocolMessage done [19:06:41]OFDSenderStorePacket 189298 [19:06:41]StoreOFDPacket docnum=189298 [19:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A 6B 07 01 57 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 73 01 00 00 F4 03 04 00 C4 9A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E3 02 00 35 04 06 00 A4 A3 DA FF 26 71 AA D3 C4 3F CA C5 13 FB [19:06:41]CheckFolder [19:06:41]dirname=/storage/ofd_packets [19:06:41]CheckFolder done [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00189298 [19:06:41]NVStorageSaveData ofd_packets/00189298 [19:06:41]File name is /storage/ofd_packets/00189298 [19:06:41]Write 301 bytes [19:06:41]NVStorageSaveData done [19:06:41]OFDSenderStorePacket done [19:06:41]KKMCreateOFDPacket done [19:06:41]NVStorageSaveData kkm_last_timestamp [19:06:41]File name is /storage/kkm_last_timestamp [19:06:41]Write 4 bytes [19:06:41]NVStorageSaveData done [19:06:41]ExternCall_PrintAddStr [19:06:41]wPrintStart [19:06:41]Write to MH i2c: 01 00 00 F8 6E 66 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 F8 6E 00 00 00 00 00 FF 0F 7B [19:06:41]RasterBufferAndPrint [19:06:41]line Счет N : (1)211363 [19:06:41]line ИНН: 02508201610067 [19:06:41]line Контрольно-Кассовый Чек [19:06:41]line ПРОДАЖА [19:06:41]line ТРК (МРК, ГНК) : 32 [19:06:41]line Товар: 2710124130 [19:06:41]line Аи-92-К-3 [19:06:41]line 8.970 * 66.90 [19:06:41]line = 600.09 [19:06:41]line НДС 12% НСП 1% [19:06:41]line > о реализуемом товаре [19:06:41]line ОКРУГЛЕНИЕ: -0.09 [19:06:41]line ИТОГО: 600.00 [19:06:41]line Внесено: 600.00 [19:06:41]line СДАЧА: 0.00 [19:06:41]line НСП 1% : 5.31 [19:06:41]line НДС 12% : 63.73 [19:06:41]line Наличными: 600.00 [19:06:41]line Безнал.: 0.00 [19:06:41]line Место: АЗС № 86 "Партнер Нефть" [19:06:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:06:41]line СНО: Общий режим [19:06:41]line Чек 371 24.10.2024 19:06 [19:06:41]line Смена: 463 ФФД: 1.0 [19:06:41]line ЗНМ: 0300000155 [19:06:41]line РНМ: 0000000000100030 [19:06:41]line Версия ККМ: 001 [19:06:41]line ФМ: 0000000000965340 [19:06:41]line ФД: 189298 [19:06:41]line ФПД: 181023660779121 [19:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189298&fm=181023660779121&tin=02508201610067®Number=0000000000100030&sum=60000 [19:06:41]written 0, free lines is 4095 [19:06:41]OFD Sender: Processing packet 189298 [packets to send 1062, broken 1061] [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00189298 [19:06:41]OFD Sender: To server: pG, [19:06:41]CommunicateWithHost lk.salyk.kg:30040 [19:06:41]ConnectInit lk.salyk.kg [19:06:42]Connected sock=10 [19:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A 6B 07 01 57 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 73 01 00 00 F4 03 04 00 C4 9A 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E3 02 00 35 04 06 00 A4 A3 DA FF 26 71 AA D3 C4 3F CA C5 13 FB [19:06:42]Write to MH i2c: 01 00 00 23 6F 92 [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 07 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 07 00 23 6F 00 00 00 00 00 52 0C F7 [19:06:42]RasterBufferAndPrint [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]written 0, free lines is 3159 [19:06:42]MH_Cut [19:06:42]Write to MH i2c: D1 01 00 2A 6F 01 6B [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 01 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 01 00 2A 6F 00 6A [19:06:42]Write to MH i2c: 01 00 00 2B 6F 9A [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 4B 47 00 BB 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 39 36 35 33 34 30 10 04 04 00 72 E3 02 00 F4 03 04 00 AC 44 1A 67 B6 04 01 00 00 78 9E 5F B0 16 57 2D 90 [19:06:42]CommunicateWithHost err = 0 [19:06:42]CheckOFDResponse [19:06:42]1017 (14) - 77093643461234 [19:06:42]1041 (16) - 0000000000965340 [19:06:42]1040 (4) - 189298 [19:06:42]1012 (4) - 24.10.2024 12:59 [19:06:42]1206 (1) - 0 [19:06:42]OFD Sender: Remove packet 189298 [19:06:42]ProducePacketName [19:06:42]name=ofd_packets/00189298 [19:06:42]NVStorageDeleteData [19:06:43]OFD Sender: No OFD packet to send [19:06:43]*** Cut start [19:06:43]*** Partial cut [19:06:43]*** CUTSNS_PIN = 1 [19:06:43]*** CUTSNS_PIN = 0 [19:06:43]*** Brake cut motor [19:06:44]Read from MH i2c: 01 [19:06:44]MH_I2C_Read... [19:06:44]*** Stop cut motor [19:06:44]*** Cut end [19:06:44]Read from MH i2c: 01 07 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: 01 07 00 2B 6F 00 00 00 00 00 FF 0F AF [19:06:44]process_action close_receipt done [19:06:44]requested_data is exist [19:06:44]produce_requested_data [19:06:44]requested_item fm.sn is exist - process it [19:06:44]wFMCommunicate request_size=4 [19:06:44]MH_SAM_APDU [19:06:44]CAPDU: 80 11 00 00 [19:06:44]Write to MH i2c: E2 08 00 2C 6F 80 11 00 00 00 00 00 00 15 [19:06:44]Write i2c OK [19:06:44]MH_I2C_Read... [19:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:44]Read from MH i2c: E2 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 17 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 17 00 2C 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [19:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:06:44]wFMCommunicate OK [19:06:44]requested_item fd.num is exist - process it [19:06:44]SAM_PROTO_GetFieldsCounters [19:06:44]wFMCommunicate request_size=4 [19:06:44]MH_SAM_APDU [19:06:44]CAPDU: 80 13 00 00 [19:06:44]Write to MH i2c: E2 08 00 2D 6F 80 13 00 00 00 00 00 00 18 [19:06:44]Write i2c OK [19:06:44]MH_I2C_Read... [19:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:44]Read from MH i2c: E2 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 62 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 62 00 2D 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E3 02 00 0E 04 04 00 CF 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 A2 [19:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E3 02 00 0E 04 04 00 CF 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 [19:06:44]wFMCommunicate OK [19:06:44]SAM_PROTO_GetFieldsCounters done [19:06:44]requested_item shift.num is exist - process it [19:06:44]requested_item shift.opened is exist - process it [19:06:44]req_shift_opened [19:06:44]FM_GetShiftState [19:06:44]SAM_PROTO_GetShiftState [19:06:44]wFMCommunicate request_size=4 [19:06:44]MH_SAM_APDU [19:06:44]CAPDU: 80 13 01 00 [19:06:44]Write to MH i2c: E2 08 00 2E 6F 80 13 01 00 00 00 00 00 1A [19:06:44]Write i2c OK [19:06:44]MH_I2C_Read... [19:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:44]Read from MH i2c: E2 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 0E 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 0E 00 2E 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F8 [19:06:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:06:44]wFMCommunicate OK [19:06:44]SAM_PROTO_GetShiftState done [19:06:44]FM_GetShiftState done [19:06:44]req_shift_opened done [19:06:44]requested_item shift.open_date is exist - process it [19:06:44]req_shift_open_date [19:06:44]req_shift_open_date done [19:06:44]produce_requested_data done [19:06:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189298,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:06:44]process_action_free close_receipt [19:06:44]json_value_free [19:06:44]json_value_free done [19:06:44]process_json_proto returns [19:06:44]Send response to host [19:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189298,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:06:44]free response buf [19:06:44]execute_script done [19:06:44]execute_script returns [19:06:44]free content buf [19:06:44]Sock 9.Close socket [19:06:44]Sock 9.Thread stoped [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:28]accept exits with 8 [19:09:28]New connection [19:09:28]New thread 3067215204 created [19:09:28]Thread 3067071844 joined [19:09:28]Waiting for new connection... [19:09:28] Sock 8.Parse request [19:09:28]Sock 8.Check first char [19:09:28]Sock 8.First char is OK [19:09:28]request: POST /json_proto HTTP/1.0 [19:09:28]Method: POST [19:09:28]URL: /json_proto [19:09:28]Method is POST - this is cgi request [19:09:28]url: /json_proto [19:09:28]query_string will be loaded in cgi processing [19:09:28]execute_cgi json_proto POST (null) [19:09:28]execute_cgi path=json_proto method=POST [19:09:28]POST find Content-Length [19:09:28]Host: 172.17.42.131:8080 [19:09:28]Content-Length: 682 [19:09:28]Content-Type: application/json [19:09:28] [19:09:28]POST finish read [19:09:28]Found Content-Length = 682 [19:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.900, "sum" : 1105.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1105.00, "total" : 1105.00, "payments": [ { "type": 0, "sum" : 1105.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:28]execute_script... [19: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)211364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.900, "sum" : 1105.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1105.00, "total" : 1105.00, "payments": [ { "type": 0, "sum" : 1105.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:28]POST & json_proto [19:09:28]process_json_proto [19:09:28]json parsed OK: [19:09:28]protocol is kg_v1.0 [19:09:28]action value=close_receipt [19:09:28]process_action close_receipt [19:09:28]cmd_close_receipt [19:09:28]MH_GetDate [19:09:28]Write to MH i2c: F0 00 00 2F 6F 8D [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 09 00 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 09 00 2F 6F 00 6D 9B 1A 67 A0 18 CA 66 07 [19:09:28]GetLastDocTimeStamp 1729796804 [19:09:28]current date 1729796973 [19:09:28]FM_GetShiftState [19:09:28]SAM_PROTO_GetShiftState [19:09:28]wFMCommunicate request_size=4 [19:09:28]MH_SAM_APDU [19:09:28]CAPDU: 80 13 01 00 [19:09:28]Write to MH i2c: E2 08 00 30 6F 80 13 01 00 00 00 00 00 1C [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 0E 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 0E 00 30 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FA [19:09:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:09:29]wFMCommunicate OK [19:09:29]SAM_PROTO_GetShiftState done [19:09:29]FM_GetShiftState done [19:09:29]opened in 1729728961 [19:09:29]opened+sec_in_day 1729815361 [19:09:29]quantity*price = 110558 [19:09:29]sum+1 = 110559 [19:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1105.00 Внесено: 1105.00 СДАЧА: 0.00 НСП 1% : 9.78 НДС 12% : 117.41 Наличными: 1105.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 372 24.10.2024 19:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189299 ФПД: 147608020906145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190933&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189299&fm=147608020906145&tin=02508201610067®Number=0000000000100030&sum=110500 [19:09:30]StoreToDocumentArchive [19:09:30]shift 463 fd 189299 [19:09:30]save to /storage/0463/doc_00189299 [19:09:30]save last doc name /storage/0463/doc_00189299 to /storage/kkm_last_doc_name [19:09:30]save OK [19:09:30]Clear old archive folders... [19:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:30]tlvbuf is 014C36E0 [19:09:30]SAM_PROTO_ClearQueue [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 09 00 00 [19:09:30]Write to MH i2c: E2 08 00 3D 6F 80 09 00 00 00 00 00 00 1E [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 3D 6F 00 90 00 20 [19:09:30]RAPDU: 90 00 [19:09:30]wFMCommunicate OK [19:09:30]SAM_PROTO_ClearQueue done [19:09:30]KKMCreateOFDPacket [19:09:30]OFDProtocolAddRootSTLVToBuf [19:09:30]FM_MakeSignedData [19:09:30]FM_MakeSignedData [19:09:30]SAM_PROTO_SignData [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 0D 01 02 [19:09:30]Write to MH i2c: E2 08 00 3E 6F 80 0D 01 02 00 00 00 00 26 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 3E 6F 00 90 00 21 [19:09:30]RAPDU: 90 00 [19:09:30]wFMCommunicate OK [19:09:30]wFMCommunicate request_size=255 [19:09:30]MH_SAM_APDU [19:09: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 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 6D 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E3 02 00 35 04 06 00 86 [19:09:30]Write to MH i2c: E2 02 01 3F 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 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 6D 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E3 02 00 35 04 06 00 86 00 00 5F [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 3F 6F 00 90 00 22 [19:09:30]RAPDU: 90 00 [19:09:30]wFMCommunicate OK [19:09:30]wFMCommunicate request_size=10 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 0D 02 02 05 3F AB A6 F0 A1 [19:09:30]Write to MH i2c: E2 0D 00 40 6F 80 0D 02 02 05 00 3F AB A6 F0 A1 00 00 54 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 03 00 40 6F 00 90 00 23 [19:09:30]RAPDU: 90 00 [19:09:30]wFMCommunicate OK [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 0D 03 02 [19:09:30]Write to MH i2c: E2 08 00 41 6F 80 0D 03 02 00 00 00 00 2B [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 0B 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 0B 00 41 6F 00 CC 0C 79 9D 33 7D C4 DC 90 00 6A [19:09:30]RAPDU: CC 0C 79 9D 33 7D C4 DC 90 00 [19:09:30]wFMCommunicate OK [19:09:30]SAM_PROTO_SignData done [19:09:30]FM_MakeSignedData done [19:09:30]CreateOFDProtocolMessage [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 11 00 00 [19:09:30]Write to MH i2c: E2 08 00 42 6F 80 11 00 00 00 00 00 00 2B [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 17 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 17 00 42 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [19:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:30]wFMCommunicate OK [19:09:30]CreateOFDProtocolMessage done [19:09:30]OFDSenderStorePacket 189299 [19:09:30]StoreOFDPacket docnum=189299 [19:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 9E 07 01 70 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 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 6D 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E3 02 00 35 04 06 00 86 3F AB A6 F0 A1 CC 0C 79 9D 33 7D C4 DC [19:09:30]CheckFolder [19:09:30]dirname=/storage/ofd_packets [19:09:30]CheckFolder done [19:09:30]ProducePacketName [19:09:30]name=ofd_packets/00189299 [19:09:30]NVStorageSaveData ofd_packets/00189299 [19:09:30]File name is /storage/ofd_packets/00189299 [19:09:30]Write 301 bytes [19:09:30]NVStorageSaveData done [19:09:30]OFDSenderStorePacket done [19:09:30]KKMCreateOFDPacket done [19:09:30]NVStorageSaveData kkm_last_timestamp [19:09:30]File name is /storage/kkm_last_timestamp [19:09:30]Write 4 bytes [19:09:30]NVStorageSaveData done [19:09:30]ExternCall_PrintAddStr [19:09:30]wPrintStart [19:09:30]Write to MH i2c: 01 00 00 43 6F B2 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 07 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 07 00 43 6F 00 00 00 00 00 FF 0F C7 [19:09:30]RasterBufferAndPrint [19:09:30]line Счет N : (1)211364 [19:09:30]line ИНН: 02508201610067 [19:09:30]line Контрольно-Кассовый Чек [19:09:30]line ПРОДАЖА [19:09:30]line ТРК (МРК, ГНК) : 43 [19:09:30]line Товар: 2710124500 [19:09:30]line Аи-95-К-3 [19:09:30]line 14.900 * 74.20 [19:09:30]line = 1105.58 [19:09:30]line НДС 12% НСП 1% [19:09:30]line > о реализуемом товаре [19:09:30]line ОКРУГЛЕНИЕ: -0.58 [19:09:30]line ИТОГО: 1105.00 [19:09:30]line Внесено: 1105.00 [19:09:30]line СДАЧА: 0.00 [19:09:30]line НСП 1% : 9.78 [19:09:30]line НДС 12% : 117.41 [19:09:30]line Наличными: 1105.00 [19:09:30]line Безнал.: 0.00 [19:09:30]line Место: АЗС № 86 "Партнер Нефть" [19:09:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:09:30]line СНО: Общий режим [19:09:30]line Чек 372 24.10.2024 19:09 [19:09:30]line Смена: 463 ФФД: 1.0 [19:09:30]line ЗНМ: 0300000155 [19:09:30]line РНМ: 0000000000100030 [19:09:30]line Версия ККМ: 001 [19:09:30]line ФМ: 0000000000965340 [19:09:30]line ФД: 189299 [19:09:30]line ФПД: 147608020906145 [19:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190933&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189299&fm=147608020906145&tin=02508201610067®Number=0000000000100030&sum=110500 [19:09:30]written 0, free lines is 4095 [19:09:30]OFD Sender: Processing packet 189299 [packets to send 1062, broken 1061] [19:09:30]ProducePacketName [19:09:30]name=ofd_packets/00189299 [19:09:30]OFD Sender: To server: pG, [19:09:30]CommunicateWithHost lk.salyk.kg:30040 [19:09:30]ConnectInit lk.salyk.kg [19:09:31]Connected sock=10 [19:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 9E 07 01 70 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 33 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE AF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 AF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 2D 00 00 00 00 07 04 06 00 A4 AF 01 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 6D 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E3 02 00 35 04 06 00 86 3F AB A6 F0 A1 CC 0C 79 9D 33 7D C4 DC [19:09:31]Write to MH i2c: 01 00 00 6E 6F DD [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: 01 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: 01 07 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: 01 07 00 6E 6F 00 00 00 00 00 59 0C 49 [19:09:31]RasterBufferAndPrint [19:09:31]line [19:09:31]line [19:09:31]line [19:09:31]line [19:09:31]line [19:09:31]written 0, free lines is 3166 [19:09:31]MH_Cut [19:09:31]Write to MH i2c: D1 01 00 75 6F 01 B6 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: D1 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: D1 01 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: D1 01 00 75 6F 00 B5 [19:09:31]Write to MH i2c: 01 00 00 76 6F E5 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 AA 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 73 E3 02 00 F4 03 04 00 55 45 1A 67 B6 04 01 00 00 53 7E 37 F2 DA A7 3B 70 [19:09:31]CommunicateWithHost err = 0 [19:09:31]CheckOFDResponse [19:09:31]1017 (14) - 77093643461234 [19:09:31]1041 (16) - 0000000000965340 [19:09:31]1040 (4) - 189299 [19:09:31]1012 (4) - 24.10.2024 13:02 [19:09:31]1206 (1) - 0 [19:09:31]OFD Sender: Remove packet 189299 [19:09:31]ProducePacketName [19:09:31]name=ofd_packets/00189299 [19:09:31]NVStorageDeleteData [19:09:31]OFD Sender: No OFD packet to send [19:09:32]*** Cut start [19:09:32]*** Partial cut [19:09:32]*** CUTSNS_PIN = 1 [19:09:32]*** CUTSNS_PIN = 0 [19:09:32]*** Brake cut motor [19:09:33]Read from MH i2c: 01 [19:09:33]MH_I2C_Read... [19:09:33]*** Stop cut motor [19:09:33]*** Cut end [19:09:33]Read from MH i2c: 01 07 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: 01 07 00 76 6F 00 00 00 00 00 FF 0F FA [19:09:33]process_action close_receipt done [19:09:33]requested_data is exist [19:09:33]produce_requested_data [19:09:33]requested_item fm.sn is exist - process it [19:09:33]wFMCommunicate request_size=4 [19:09:33]MH_SAM_APDU [19:09:33]CAPDU: 80 11 00 00 [19:09:33]Write to MH i2c: E2 08 00 77 6F 80 11 00 00 00 00 00 00 60 [19:09:33]Write i2c OK [19:09:33]MH_I2C_Read... [19:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:33]Read from MH i2c: E2 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 17 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 17 00 77 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [19:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:33]wFMCommunicate OK [19:09:33]requested_item fd.num is exist - process it [19:09:33]SAM_PROTO_GetFieldsCounters [19:09:33]wFMCommunicate request_size=4 [19:09:33]MH_SAM_APDU [19:09:33]CAPDU: 80 13 00 00 [19:09:33]Write to MH i2c: E2 08 00 78 6F 80 13 00 00 00 00 00 00 63 [19:09:33]Write i2c OK [19:09:33]MH_I2C_Read... [19:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:33]Read from MH i2c: E2 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 62 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 62 00 78 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E3 02 00 0E 04 04 00 CF 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 F1 [19:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E3 02 00 0E 04 04 00 CF 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 [19:09:33]wFMCommunicate OK [19:09:33]SAM_PROTO_GetFieldsCounters done [19:09:33]requested_item shift.num is exist - process it [19:09:33]requested_item shift.opened is exist - process it [19:09:33]req_shift_opened [19:09:33]FM_GetShiftState [19:09:33]SAM_PROTO_GetShiftState [19:09:33]wFMCommunicate request_size=4 [19:09:33]MH_SAM_APDU [19:09:33]CAPDU: 80 13 01 00 [19:09:33]Write to MH i2c: E2 08 00 79 6F 80 13 01 00 00 00 00 00 65 [19:09:33]Write i2c OK [19:09:33]MH_I2C_Read... [19:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:33]Read from MH i2c: E2 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 0E 00 [19:09:33]MH_I2C_Read... [19:09:33]Read from MH i2c: E2 0E 00 79 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 43 [19:09:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:09:33]wFMCommunicate OK [19:09:33]SAM_PROTO_GetShiftState done [19:09:33]FM_GetShiftState done [19:09:33]req_shift_opened done [19:09:33]requested_item shift.open_date is exist - process it [19:09:33]req_shift_open_date [19:09:33]req_shift_open_date done [19:09:33]produce_requested_data done [19:09:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189299,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:09:33]process_action_free close_receipt [19:09:33]json_value_free [19:09:33]json_value_free done [19:09:33]process_json_proto returns [19:09:33]Send response to host [19:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189299,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:09:33]free response buf [19:09:33]execute_script done [19:09:33]execute_script returns [19:09:33]free content buf [19:09:33]Sock 8.Close socket [19:09:33]Sock 8.Thread stoped [19:09:36]OFD Sender: No OFD packet to send [19:09:38]accept exits with 9 [19:09:38]New connection [19:09:38]New thread 3067071844 created [19:09:38]Thread 3067215204 joined [19:09:38]Waiting for new connection... [19:09:38] Sock 9.Parse request [19:09:38]Sock 9.Check first char [19:09:38]Sock 9.First char is OK [19:09:38]request: POST /json_proto HTTP/1.0 [19:09:38]Method: POST [19:09:38]URL: /json_proto [19:09:38]Method is POST - this is cgi request [19:09:38]url: /json_proto [19:09:38]query_string will be loaded in cgi processing [19:09:38]execute_cgi json_proto POST (null) [19:09:38]execute_cgi path=json_proto method=POST [19:09:38]POST find Content-Length [19:09:38]Host: 172.17.42.131:8080 [19:09:38]Content-Length: 677 [19:09:38]Content-Type: application/json [19:09:38] [19:09:38]POST finish read [19:09:38]Found Content-Length = 677 [19:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [19:09:38]execute_script... [19:09: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)211365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [19:09:38]POST & json_proto [19:09:38]process_json_proto [19:09:38]json parsed OK: [19:09:38]protocol is kg_v1.0 [19:09:38]action value=close_receipt [19:09:38]process_action close_receipt [19:09:38]cmd_close_receipt [19:09:38]MH_GetDate [19:09:38]Write to MH i2c: F0 00 00 7A 6F D8 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: F0 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: F0 09 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: F0 09 00 7A 6F 00 76 9B 1A 67 A0 18 CA 66 5B [19:09:38]GetLastDocTimeStamp 1729796973 [19:09:38]current date 1729796982 [19:09:38]FM_GetShiftState [19:09:38]SAM_PROTO_GetShiftState [19:09:38]wFMCommunicate request_size=4 [19:09:38]MH_SAM_APDU [19:09:38]CAPDU: 80 13 01 00 [19:09:38]Write to MH i2c: E2 08 00 7B 6F 80 13 01 00 00 00 00 00 67 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:38]Read from MH i2c: E2 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 0E 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 0E 00 7B 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 45 [19:09:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:09:38]wFMCommunicate OK [19:09:38]SAM_PROTO_GetShiftState done [19:09:38]FM_GetShiftState done [19:09:38]opened in 1729728961 [19:09:38]opened+sec_in_day 1729815361 [19:09:38]quantity*price = 60027 [19:09:38]sum+1 = 60029 [19:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 373 24.10.2024 19:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189300 ФПД: 122946311552212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189300&fm=122946311552212&tin=02508201610067®Number=0000000000100030&sum=60000 [19:09:39]StoreToDocumentArchive [19:09:39]shift 463 fd 189300 [19:09:39]save to /storage/0463/doc_00189300 [19:09:39]save last doc name /storage/0463/doc_00189300 to /storage/kkm_last_doc_name [19:09:39]save OK [19:09:39]Clear old archive folders... [19:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:39]tlvbuf is 01648C70 [19:09:39]SAM_PROTO_ClearQueue [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 09 00 00 [19:09:39]Write to MH i2c: E2 08 00 88 6F 80 09 00 00 00 00 00 00 69 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 88 6F 00 90 00 6B [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_ClearQueue done [19:09:39]KKMCreateOFDPacket [19:09:39]OFDProtocolAddRootSTLVToBuf [19:09:39]FM_MakeSignedData [19:09:39]FM_MakeSignedData [19:09:39]SAM_PROTO_SignData [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 01 02 [19:09:39]Write to MH i2c: E2 08 00 89 6F 80 0D 01 02 00 00 00 00 71 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 89 6F 00 90 00 6C [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=255 [19:09:39]MH_SAM_APDU [19:09: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 33 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 75 01 00 00 F4 03 04 00 76 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E3 02 00 35 04 06 00 6F [19:09:39]Write to MH i2c: E2 02 01 8A 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 33 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 75 01 00 00 F4 03 04 00 76 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E3 02 00 35 04 06 00 6F 00 00 E2 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 8A 6F 00 90 00 6D [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=10 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 02 02 05 D1 AB 39 FC D4 [19:09:39]Write to MH i2c: E2 0D 00 8B 6F 80 0D 02 02 05 00 D1 AB 39 FC D4 00 00 03 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 8B 6F 00 90 00 6E [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 03 02 [19:09:39]Write to MH i2c: E2 08 00 8C 6F 80 0D 03 02 00 00 00 00 76 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0B 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0B 00 8C 6F 00 AE 0E 52 D7 6D CC 1E 10 90 00 C3 [19:09:39]RAPDU: AE 0E 52 D7 6D CC 1E 10 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_SignData done [19:09:39]FM_MakeSignedData done [19:09:39]CreateOFDProtocolMessage [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 11 00 00 [19:09:39]Write to MH i2c: E2 08 00 8D 6F 80 11 00 00 00 00 00 00 76 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 8D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [19:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:39]wFMCommunicate OK [19:09:39]CreateOFDProtocolMessage done [19:09:39]OFDSenderStorePacket 189300 [19:09:39]StoreOFDPacket docnum=189300 [19:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 F8 07 01 B4 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 33 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 75 01 00 00 F4 03 04 00 76 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E3 02 00 35 04 06 00 6F D1 AB 39 FC D4 AE 0E 52 D7 6D CC 1E 10 [19:09:39]CheckFolder [19:09:39]dirname=/storage/ofd_packets [19:09:39]CheckFolder done [19:09:39]ProducePacketName [19:09:39]name=ofd_packets/00189300 [19:09:39]NVStorageSaveData ofd_packets/00189300 [19:09:39]File name is /storage/ofd_packets/00189300 [19:09:39]Write 301 bytes [19:09:39]NVStorageSaveData done [19:09:39]OFDSenderStorePacket done [19:09:39]KKMCreateOFDPacket done [19:09:39]NVStorageSaveData kkm_last_timestamp [19:09:39]File name is /storage/kkm_last_timestamp [19:09:39]Write 4 bytes [19:09:39]NVStorageSaveData done [19:09:39]ExternCall_PrintAddStr [19:09:39]wPrintStart [19:09:39]Write to MH i2c: 01 00 00 8E 6F FD [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 07 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 07 00 8E 6F 00 00 00 00 00 FF 0F 12 [19:09:39]RasterBufferAndPrint [19:09:39]line Счет N : (1)211365 [19:09:39]line ИНН: 02508201610067 [19:09:39]line Контрольно-Кассовый Чек [19:09:39]line ПРОДАЖА [19:09:39]line ТРК (МРК, ГНК) : 23 [19:09:39]line Товар: 2710124500 [19:09:39]line Аи-95-К-3 [19:09:39]line 8.090 * 74.20 [19:09:39]line = 600.28 [19:09:39]line НДС 12% НСП 1% [19:09:39]line > о реализуемом товаре [19:09:39]line ОКРУГЛЕНИЕ: -0.28 [19:09:39]line ИТОГО: 600.00 [19:09:39]line Внесено: 600.00 [19:09:39]line СДАЧА: 0.00 [19:09:39]line НСП 1% : 5.31 [19:09:39]line НДС 12% : 63.75 [19:09:39]line Наличными: 600.00 [19:09:39]line Безнал.: 0.00 [19:09:39]line Место: АЗС № 86 "Партнер Нефть" [19:09:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:09:39]line СНО: Общий режим [19:09:39]line Чек 373 24.10.2024 19:09 [19:09:39]line Смена: 463 ФФД: 1.0 [19:09:39]line ЗНМ: 0300000155 [19:09:39]line РНМ: 0000000000100030 [19:09:39]line Версия ККМ: 001 [19:09:39]line ФМ: 0000000000965340 [19:09:39]line ФД: 189300 [19:09:39]line ФПД: 122946311552212 [19:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189300&fm=122946311552212&tin=02508201610067®Number=0000000000100030&sum=60000 [19:09:39]written 0, free lines is 4095 [19:09:40]OFD Sender: Processing packet 189300 [packets to send 1062, broken 1061] [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00189300 [19:09:40]OFD Sender: To server: pG, [19:09:40]CommunicateWithHost lk.salyk.kg:30040 [19:09:40]ConnectInit lk.salyk.kg [19:09:40]Connected sock=10 [19:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 F8 07 01 B4 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 33 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 75 01 00 00 F4 03 04 00 76 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E3 02 00 35 04 06 00 6F D1 AB 39 FC D4 AE 0E 52 D7 6D CC 1E 10 [19:09:40]Write to MH i2c: 01 00 00 B9 6F 28 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 B9 6F 00 00 00 00 00 60 0C 9B [19:09:40]RasterBufferAndPrint [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]written 0, free lines is 3173 [19:09:40]MH_Cut [19:09:40]Write to MH i2c: D1 01 00 C0 6F 01 01 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 01 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 01 00 C0 6F 00 00 [19:09:40]Write to MH i2c: 01 00 00 C1 6F 30 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 84 47 00 DE 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 39 36 35 33 34 30 10 04 04 00 74 E3 02 00 F4 03 04 00 5E 45 1A 67 B6 04 01 00 00 FE 17 99 C9 84 D8 76 CB [19:09:40]CommunicateWithHost err = 0 [19:09:40]CheckOFDResponse [19:09:40]1017 (14) - 77093643461234 [19:09:40]1041 (16) - 0000000000965340 [19:09:40]1040 (4) - 189300 [19:09:40]1012 (4) - 24.10.2024 13:02 [19:09:40]1206 (1) - 0 [19:09:40]OFD Sender: Remove packet 189300 [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00189300 [19:09:40]NVStorageDeleteData [19:09:41]OFD Sender: No OFD packet to send [19:09:41]*** Cut start [19:09:41]*** Partial cut [19:09:41]*** CUTSNS_PIN = 1 [19:09:41]*** CUTSNS_PIN = 0 [19:09:41]*** Brake cut motor [19:09:42]Read from MH i2c: 01 [19:09:42]MH_I2C_Read... [19:09:42]*** Stop cut motor [19:09:42]*** Cut end [19:09:42]Read from MH i2c: 01 07 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 07 00 C1 6F 00 00 00 00 00 FF 0F 45 [19:09:42]process_action close_receipt done [19:09:42]requested_data is exist [19:09:42]produce_requested_data [19:09:42]requested_item fm.sn is exist - process it [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 11 00 00 [19:09:42]Write to MH i2c: E2 08 00 C2 6F 80 11 00 00 00 00 00 00 AB [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 17 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 17 00 C2 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [19:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:42]wFMCommunicate OK [19:09:42]requested_item fd.num is exist - process it [19:09:42]SAM_PROTO_GetFieldsCounters [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 13 00 00 [19:09:42]Write to MH i2c: E2 08 00 C3 6F 80 13 00 00 00 00 00 00 AE [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 62 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 62 00 C3 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E3 02 00 0E 04 04 00 CF 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 40 [19:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E3 02 00 0E 04 04 00 CF 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 [19:09:42]wFMCommunicate OK [19:09:42]SAM_PROTO_GetFieldsCounters done [19:09:42]requested_item shift.num is exist - process it [19:09:42]requested_item shift.opened is exist - process it [19:09:42]req_shift_opened [19:09:42]FM_GetShiftState [19:09:42]SAM_PROTO_GetShiftState [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 13 01 00 [19:09:42]Write to MH i2c: E2 08 00 C4 6F 80 13 01 00 00 00 00 00 B0 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 0E 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 0E 00 C4 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 8E [19:09:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:09:42]wFMCommunicate OK [19:09:42]SAM_PROTO_GetShiftState done [19:09:42]FM_GetShiftState done [19:09:42]req_shift_opened done [19:09:42]requested_item shift.open_date is exist - process it [19:09:42]req_shift_open_date [19:09:42]req_shift_open_date done [19:09:42]produce_requested_data done [19:09:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189300,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:09:42]process_action_free close_receipt [19:09:42]json_value_free [19:09:42]json_value_free done [19:09:42]process_json_proto returns [19:09:42]Send response to host [19:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189300,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:09:42]free response buf [19:09:42]execute_script done [19:09:42]execute_script returns [19:09:42]free content buf [19:09:42]Sock 9.Close socket [19:09:42]Sock 9.Thread stoped [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:41]accept exits with 8 [19:10:41]New connection [19:10:41]New thread 3067215204 created [19:10:41]Thread 3067071844 joined [19:10:41]Waiting for new connection... [19:10:41] Sock 8.Parse request [19:10:41]Sock 8.Check first char [19:10:41]Sock 8.First char is OK [19:10:41]request: POST /json_proto HTTP/1.0 [19:10:41]Method: POST [19:10:41]URL: /json_proto [19:10:41]Method is POST - this is cgi request [19:10:41]url: /json_proto [19:10:41]query_string will be loaded in cgi processing [19:10:41]execute_cgi json_proto POST (null) [19:10:41]execute_cgi path=json_proto method=POST [19:10:41]POST find Content-Length [19:10:41]Host: 172.17.42.131:8080 [19:10:41]Content-Length: 677 [19:10:41]Content-Type: application/json [19:10:41] [19:10:41]POST finish read [19:10:41]Found Content-Length = 677 [19:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:41]execute_script... [19:10: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)211366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:41]POST & json_proto [19:10:41]process_json_proto [19:10:41]json parsed OK: [19:10:41]protocol is kg_v1.0 [19:10:41]action value=close_receipt [19:10:41]process_action close_receipt [19:10:41]cmd_close_receipt [19:10:41]MH_GetDate [19:10:41]Write to MH i2c: F0 00 00 C5 6F 23 [19:10:41]Write i2c OK [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 09 00 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: F0 09 00 C5 6F 00 B6 9B 1A 67 A0 18 CA 66 E6 [19:10:41]GetLastDocTimeStamp 1729796982 [19:10:41]current date 1729797046 [19:10:41]FM_GetShiftState [19:10:41]SAM_PROTO_GetShiftState [19:10:41]wFMCommunicate request_size=4 [19:10:41]MH_SAM_APDU [19:10:41]CAPDU: 80 13 01 00 [19:10:41]Write to MH i2c: E2 08 00 C6 6F 80 13 01 00 00 00 00 00 B2 [19:10:41]Write i2c OK [19:10:41]MH_I2C_Read... [19:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:41]Read from MH i2c: E2 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: E2 0E 00 [19:10:41]MH_I2C_Read... [19:10:41]Read from MH i2c: E2 0E 00 C6 6F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 90 [19:10:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:10:41]wFMCommunicate OK [19:10:41]SAM_PROTO_GetShiftState done [19:10:41]FM_GetShiftState done [19:10:41]opened in 1729728961 [19:10:41]opened+sec_in_day 1729815361 [19:10:41]quantity*price = 30038 [19:10:41]sum+1 = 30039 [19:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 374 24.10.2024 19:10 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189301 ФПД: 223525841934797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189301&fm=223525841934797&tin=02508201610067®Number=0000000000100030&sum=30000 [19:10:42]StoreToDocumentArchive [19:10:42]shift 463 fd 189301 [19:10:42]save to /storage/0463/doc_00189301 [19:10:42]save last doc name /storage/0463/doc_00189301 to /storage/kkm_last_doc_name [19:10:42]save OK [19:10:42]Clear old archive folders... [19:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:43]tlvbuf is 016EF2B0 [19:10:43]SAM_PROTO_ClearQueue [19:10:43]wFMCommunicate request_size=4 [19:10:43]MH_SAM_APDU [19:10:43]CAPDU: 80 09 00 00 [19:10:43]Write to MH i2c: E2 08 00 D3 6F 80 09 00 00 00 00 00 00 B4 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 D3 6F 00 90 00 B6 [19:10:43]RAPDU: 90 00 [19:10:43]wFMCommunicate OK [19:10:43]SAM_PROTO_ClearQueue done [19:10:43]KKMCreateOFDPacket [19:10:43]OFDProtocolAddRootSTLVToBuf [19:10:43]FM_MakeSignedData [19:10:43]FM_MakeSignedData [19:10:43]SAM_PROTO_SignData [19:10:43]wFMCommunicate request_size=4 [19:10:43]MH_SAM_APDU [19:10:43]CAPDU: 80 0D 01 02 [19:10:43]Write to MH i2c: E2 08 00 D4 6F 80 0D 01 02 00 00 00 00 BC [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 D4 6F 00 90 00 B7 [19:10:43]RAPDU: 90 00 [19:10:43]wFMCommunicate OK [19:10:43]wFMCommunicate request_size=255 [19:10:43]MH_SAM_APDU [19:10: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 76 01 00 00 F4 03 04 00 B6 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E3 02 00 35 04 06 00 CB [19:10:43]Write to MH i2c: E2 02 01 D5 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 76 01 00 00 F4 03 04 00 B6 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E3 02 00 35 04 06 00 CB 00 00 61 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 D5 6F 00 90 00 B8 [19:10:43]RAPDU: 90 00 [19:10:43]wFMCommunicate OK [19:10:43]wFMCommunicate request_size=10 [19:10:43]MH_SAM_APDU [19:10:43]CAPDU: 80 0D 02 02 05 4B AA 68 19 CD [19:10:43]Write to MH i2c: E2 0D 00 D6 6F 80 0D 02 02 05 00 4B AA 68 19 CD 00 00 0C [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 03 00 D6 6F 00 90 00 B9 [19:10:43]RAPDU: 90 00 [19:10:43]wFMCommunicate OK [19:10:43]wFMCommunicate request_size=4 [19:10:43]MH_SAM_APDU [19:10:43]CAPDU: 80 0D 03 02 [19:10:43]Write to MH i2c: E2 08 00 D7 6F 80 0D 03 02 00 00 00 00 C1 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 0B 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 0B 00 D7 6F 00 76 F3 DB 83 47 E1 47 11 90 00 09 [19:10:43]RAPDU: 76 F3 DB 83 47 E1 47 11 90 00 [19:10:43]wFMCommunicate OK [19:10:43]SAM_PROTO_SignData done [19:10:43]FM_MakeSignedData done [19:10:43]CreateOFDProtocolMessage [19:10:43]wFMCommunicate request_size=4 [19:10:43]MH_SAM_APDU [19:10:43]CAPDU: 80 11 00 00 [19:10:43]Write to MH i2c: E2 08 00 D8 6F 80 11 00 00 00 00 00 00 C1 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:43]Read from MH i2c: E2 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 17 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: E2 17 00 D8 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [19:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:10:43]wFMCommunicate OK [19:10:43]CreateOFDProtocolMessage done [19:10:43]OFDSenderStorePacket 189301 [19:10:43]StoreOFDPacket docnum=189301 [19:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 26 07 01 56 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 76 01 00 00 F4 03 04 00 B6 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E3 02 00 35 04 06 00 CB 4B AA 68 19 CD 76 F3 DB 83 47 E1 47 11 [19:10:43]CheckFolder [19:10:43]dirname=/storage/ofd_packets [19:10:43]CheckFolder done [19:10:43]ProducePacketName [19:10:43]name=ofd_packets/00189301 [19:10:43]NVStorageSaveData ofd_packets/00189301 [19:10:43]File name is /storage/ofd_packets/00189301 [19:10:43]Write 301 bytes [19:10:43]NVStorageSaveData done [19:10:43]OFDSenderStorePacket done [19:10:43]KKMCreateOFDPacket done [19:10:43]NVStorageSaveData kkm_last_timestamp [19:10:43]File name is /storage/kkm_last_timestamp [19:10:43]Write 4 bytes [19:10:43]NVStorageSaveData done [19:10:43]ExternCall_PrintAddStr [19:10:43]wPrintStart [19:10:43]Write to MH i2c: 01 00 00 D9 6F 48 [19:10:43]Write i2c OK [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 07 00 [19:10:43]MH_I2C_Read... [19:10:43]Read from MH i2c: 01 07 00 D9 6F 00 00 00 00 00 FF 0F 5D [19:10:43]RasterBufferAndPrint [19:10:43]line Счет N : (1)211366 [19:10:43]line ИНН: 02508201610067 [19:10:43]line Контрольно-Кассовый Чек [19:10:43]line ПРОДАЖА [19:10:43]line ТРК (МРК, ГНК) : 32 [19:10:43]line Товар: 2710124130 [19:10:43]line Аи-92-К-3 [19:10:43]line 4.490 * 66.90 [19:10:43]line = 300.38 [19:10:43]line НДС 12% НСП 1% [19:10:43]line > о реализуемом товаре [19:10:43]line ОКРУГЛЕНИЕ: -0.38 [19:10:43]line ИТОГО: 300.00 [19:10:43]line Внесено: 300.00 [19:10:43]line СДАЧА: 0.00 [19:10:43]line НСП 1% : 2.66 [19:10:43]line НДС 12% : 31.90 [19:10:43]line Наличными: 300.00 [19:10:43]line Безнал.: 0.00 [19:10:43]line Место: АЗС № 86 "Партнер Нефть" [19:10:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:10:43]line СНО: Общий режим [19:10:43]line Чек 374 24.10.2024 19:10 [19:10:43]line Смена: 463 ФФД: 1.0 [19:10:43]line ЗНМ: 0300000155 [19:10:43]line РНМ: 0000000000100030 [19:10:43]line Версия ККМ: 001 [19:10:43]line ФМ: 0000000000965340 [19:10:43]line ФД: 189301 [19:10:43]line ФПД: 223525841934797 [19:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189301&fm=223525841934797&tin=02508201610067®Number=0000000000100030&sum=30000 [19:10:43]written 0, free lines is 4095 [19:10:43]OFD Sender: Processing packet 189301 [packets to send 1062, broken 1061] [19:10:43]ProducePacketName [19:10:43]name=ofd_packets/00189301 [19:10:43]OFD Sender: To server: pG, [19:10:43]CommunicateWithHost lk.salyk.kg:30040 [19:10:43]ConnectInit lk.salyk.kg [19:10:43]Connected sock=10 [19:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 26 07 01 56 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 76 01 00 00 F4 03 04 00 B6 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E3 02 00 35 04 06 00 CB 4B AA 68 19 CD 76 F3 DB 83 47 E1 47 11 [19:10:44]Write to MH i2c: 01 00 00 04 70 74 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 07 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 07 00 04 70 00 00 00 00 00 55 0C DC [19:10:44]RasterBufferAndPrint [19:10:44]line [19:10:44]line [19:10:44]line [19:10:44]line [19:10:44]line [19:10:44]written 0, free lines is 3160 [19:10:44]MH_Cut [19:10:44]Write to MH i2c: D1 01 00 0B 70 01 4D [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: D1 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: D1 01 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: D1 01 00 0B 70 00 4C [19:10:44]Write to MH i2c: 01 00 00 0C 70 7C [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 2C 47 00 B1 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 39 36 35 33 34 30 10 04 04 00 75 E3 02 00 F4 03 04 00 9D 45 1A 67 B6 04 01 00 00 F4 15 57 6C BC 8E 5B F8 [19:10:44]CommunicateWithHost err = 0 [19:10:44]CheckOFDResponse [19:10:44]1017 (14) - 77093643461234 [19:10:44]1041 (16) - 0000000000965340 [19:10:44]1040 (4) - 189301 [19:10:44]1012 (4) - 24.10.2024 13:03 [19:10:44]1206 (1) - 0 [19:10:44]OFD Sender: Remove packet 189301 [19:10:44]ProducePacketName [19:10:44]name=ofd_packets/00189301 [19:10:44]NVStorageDeleteData [19:10:44]OFD Sender: No OFD packet to send [19:10:45]*** Cut start [19:10:45]*** Partial cut [19:10:45]*** CUTSNS_PIN = 1 [19:10:45]*** CUTSNS_PIN = 0 [19:10:45]*** Brake cut motor [19:10:45]Read from MH i2c: 01 [19:10:45]MH_I2C_Read... [19:10:45]*** Stop cut motor [19:10:45]*** Cut end [19:10:45]Read from MH i2c: 01 07 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: 01 07 00 0C 70 00 00 00 00 00 FF 0F 91 [19:10:45]process_action close_receipt done [19:10:45]requested_data is exist [19:10:45]produce_requested_data [19:10:45]requested_item fm.sn is exist - process it [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 11 00 00 [19:10:45]Write to MH i2c: E2 08 00 0D 70 80 11 00 00 00 00 00 00 F7 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:45]Read from MH i2c: E2 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 17 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: E2 17 00 0D 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [19:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:10:45]wFMCommunicate OK [19:10:45]requested_item fd.num is exist - process it [19:10:45]SAM_PROTO_GetFieldsCounters [19:10:45]wFMCommunicate request_size=4 [19:10:45]MH_SAM_APDU [19:10:45]CAPDU: 80 13 00 00 [19:10:45]Write to MH i2c: E2 08 00 0E 70 80 13 00 00 00 00 00 00 FA [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 62 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 62 00 0E 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E3 02 00 0E 04 04 00 CF 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 90 [19:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E3 02 00 0E 04 04 00 CF 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 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_GetFieldsCounters done [19:10:46]requested_item shift.num is exist - process it [19:10:46]requested_item shift.opened is exist - process it [19:10:46]req_shift_opened [19:10:46]FM_GetShiftState [19:10:46]SAM_PROTO_GetShiftState [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 13 01 00 [19:10:46]Write to MH i2c: E2 08 00 0F 70 80 13 01 00 00 00 00 00 FC [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0E 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0E 00 0F 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DA [19:10:46]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_GetShiftState done [19:10:46]FM_GetShiftState done [19:10:46]req_shift_opened done [19:10:46]requested_item shift.open_date is exist - process it [19:10:46]req_shift_open_date [19:10:46]req_shift_open_date done [19:10:46]produce_requested_data done [19:10:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189301,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:10:46]process_action_free close_receipt [19:10:46]json_value_free [19:10:46]json_value_free done [19:10:46]process_json_proto returns [19:10:46]Send response to host [19:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189301,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:10:46]free response buf [19:10:46]execute_script done [19:10:46]execute_script returns [19:10:46]free content buf [19:10:46]Sock 8.Close socket [19:10:46]Sock 8.Thread stoped [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:40]accept exits with 9 [19:11:40]New connection [19:11:40]New thread 3067071844 created [19:11:40]Thread 3067215204 joined [19:11:40]Waiting for new connection... [19:11:40] Sock 9.Parse request [19:11:40]Sock 9.Check first char [19:11:40]Sock 9.First char is OK [19:11:40]request: POST /json_proto HTTP/1.0 [19:11:40]Method: POST [19:11:40]URL: /json_proto [19:11:40]Method is POST - this is cgi request [19:11:40]url: /json_proto [19:11:40]query_string will be loaded in cgi processing [19:11:40]execute_cgi json_proto POST (null) [19:11:40]execute_cgi path=json_proto method=POST [19:11:40]POST find Content-Length [19:11:40]Host: 172.17.42.131:8080 [19:11:40]Content-Length: 677 [19:11:40]Content-Type: application/json [19:11:40] [19:11:40]POST finish read [19:11:40]Found Content-Length = 677 [19:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:40]execute_script... [19:11: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)211367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:40]POST & json_proto [19:11:40]process_json_proto [19:11:40]json parsed OK: [19:11:40]protocol is kg_v1.0 [19:11:40]action value=close_receipt [19:11:40]process_action close_receipt [19:11:40]cmd_close_receipt [19:11:40]MH_GetDate [19:11:40]Write to MH i2c: F0 00 00 10 70 6F [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: F0 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: F0 09 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: F0 09 00 10 70 00 F1 9B 1A 67 A0 18 CA 66 6D [19:11:40]GetLastDocTimeStamp 1729797046 [19:11:40]current date 1729797105 [19:11:40]FM_GetShiftState [19:11:40]SAM_PROTO_GetShiftState [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 13 01 00 [19:11:40]Write to MH i2c: E2 08 00 11 70 80 13 01 00 00 00 00 00 FE [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 0E 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 0E 00 11 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DC [19:11:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:11:40]wFMCommunicate OK [19:11:40]SAM_PROTO_GetShiftState done [19:11:40]FM_GetShiftState done [19:11:40]opened in 1729728961 [19:11:40]opened+sec_in_day 1729815361 [19:11:40]quantity*price = 20003 [19:11:40]sum+1 = 20004 [19:11:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 375 24.10.2024 19:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189302 ФПД: 223740757569481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189302&fm=223740757569481&tin=02508201610067®Number=0000000000100030&sum=20000 [19:11:41]StoreToDocumentArchive [19:11:41]shift 463 fd 189302 [19:11:41]save to /storage/0463/doc_00189302 [19:11:41]save last doc name /storage/0463/doc_00189302 to /storage/kkm_last_doc_name [19:11:41]save OK [19:11:41]Clear old archive folders... [19:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:41]tlvbuf is 0160C110 [19:11:41]SAM_PROTO_ClearQueue [19:11:41]wFMCommunicate request_size=4 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 09 00 00 [19:11:41]Write to MH i2c: E2 08 00 1E 70 80 09 00 00 00 00 00 00 00 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 1E 70 00 90 00 02 [19:11:41]RAPDU: 90 00 [19:11:41]wFMCommunicate OK [19:11:41]SAM_PROTO_ClearQueue done [19:11:41]KKMCreateOFDPacket [19:11:41]OFDProtocolAddRootSTLVToBuf [19:11:41]FM_MakeSignedData [19:11:41]FM_MakeSignedData [19:11:41]SAM_PROTO_SignData [19:11:41]wFMCommunicate request_size=4 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 0D 01 02 [19:11:41]Write to MH i2c: E2 08 00 1F 70 80 0D 01 02 00 00 00 00 08 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 1F 70 00 90 00 03 [19:11:41]RAPDU: 90 00 [19:11:41]wFMCommunicate OK [19:11:41]wFMCommunicate request_size=255 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 77 01 00 00 F4 03 04 00 F1 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E3 02 00 35 04 06 00 CB [19:11:41]Write to MH i2c: E2 02 01 20 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 77 01 00 00 F4 03 04 00 F1 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E3 02 00 35 04 06 00 CB 00 00 B8 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 03 00 20 70 00 90 00 04 [19:11:41]RAPDU: 90 00 [19:11:41]wFMCommunicate OK [19:11:41]wFMCommunicate request_size=10 [19:11:41]MH_SAM_APDU [19:11:41]CAPDU: 80 0D 02 02 05 7D B4 60 6F C9 [19:11:41]Write to MH i2c: E2 0D 00 21 70 80 0D 02 02 05 00 7D B4 60 6F C9 00 00 DE [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 03 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 03 00 21 70 00 90 00 05 [19:11:42]RAPDU: 90 00 [19:11:42]wFMCommunicate OK [19:11:42]wFMCommunicate request_size=4 [19:11:42]MH_SAM_APDU [19:11:42]CAPDU: 80 0D 03 02 [19:11:42]Write to MH i2c: E2 08 00 22 70 80 0D 03 02 00 00 00 00 0D [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0B 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 0B 00 22 70 00 A1 92 04 22 A2 2D 91 38 90 00 FF [19:11:42]RAPDU: A1 92 04 22 A2 2D 91 38 90 00 [19:11:42]wFMCommunicate OK [19:11:42]SAM_PROTO_SignData done [19:11:42]FM_MakeSignedData done [19:11:42]CreateOFDProtocolMessage [19:11:42]wFMCommunicate request_size=4 [19:11:42]MH_SAM_APDU [19:11:42]CAPDU: 80 11 00 00 [19:11:42]Write to MH i2c: E2 08 00 23 70 80 11 00 00 00 00 00 00 0D [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:42]Read from MH i2c: E2 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 17 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: E2 17 00 23 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [19:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:11:42]wFMCommunicate OK [19:11:42]CreateOFDProtocolMessage done [19:11:42]OFDSenderStorePacket 189302 [19:11:42]StoreOFDPacket docnum=189302 [19:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DB B5 07 01 05 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 77 01 00 00 F4 03 04 00 F1 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E3 02 00 35 04 06 00 CB 7D B4 60 6F C9 A1 92 04 22 A2 2D 91 38 [19:11:42]CheckFolder [19:11:42]dirname=/storage/ofd_packets [19:11:42]CheckFolder done [19:11:42]ProducePacketName [19:11:42]name=ofd_packets/00189302 [19:11:42]NVStorageSaveData ofd_packets/00189302 [19:11:42]File name is /storage/ofd_packets/00189302 [19:11:42]Write 301 bytes [19:11:42]NVStorageSaveData done [19:11:42]OFDSenderStorePacket done [19:11:42]KKMCreateOFDPacket done [19:11:42]NVStorageSaveData kkm_last_timestamp [19:11:42]File name is /storage/kkm_last_timestamp [19:11:42]Write 4 bytes [19:11:42]NVStorageSaveData done [19:11:42]ExternCall_PrintAddStr [19:11:42]wPrintStart [19:11:42]Write to MH i2c: 01 00 00 24 70 94 [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 07 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 07 00 24 70 00 00 00 00 00 FF 0F A9 [19:11:42]RasterBufferAndPrint [19:11:42]line Счет N : (1)211367 [19:11:42]line ИНН: 02508201610067 [19:11:42]line Контрольно-Кассовый Чек [19:11:42]line ПРОДАЖА [19:11:42]line ТРК (МРК, ГНК) : 22 [19:11:42]line Товар: 2710124130 [19:11:42]line Аи-92-К-3 [19:11:42]line 2.990 * 66.90 [19:11:42]line = 200.03 [19:11:42]line НДС 12% НСП 1% [19:11:42]line > о реализуемом товаре [19:11:42]line ОКРУГЛЕНИЕ: -0.03 [19:11:42]line ИТОГО: 200.00 [19:11:42]line Внесено: 200.00 [19:11:42]line СДАЧА: 0.00 [19:11:42]line НСП 1% : 1.77 [19:11:42]line НДС 12% : 21.24 [19:11:42]line Наличными: 200.00 [19:11:42]line Безнал.: 0.00 [19:11:42]line Место: АЗС № 86 "Партнер Нефть" [19:11:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:11:42]line СНО: Общий режим [19:11:42]line Чек 375 24.10.2024 19:11 [19:11:42]line Смена: 463 ФФД: 1.0 [19:11:42]line ЗНМ: 0300000155 [19:11:42]line РНМ: 0000000000100030 [19:11:42]line Версия ККМ: 001 [19:11:42]line ФМ: 0000000000965340 [19:11:42]line ФД: 189302 [19:11:42]line ФПД: 223740757569481 [19:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189302&fm=223740757569481&tin=02508201610067®Number=0000000000100030&sum=20000 [19:11:42]written 0, free lines is 4095 [19:11:42]OFD Sender: Processing packet 189302 [packets to send 1062, broken 1061] [19:11:42]ProducePacketName [19:11:42]name=ofd_packets/00189302 [19:11:42]OFD Sender: To server: pG, [19:11:42]CommunicateWithHost lk.salyk.kg:30040 [19:11:42]ConnectInit lk.salyk.kg [19:11:42]Connected sock=10 [19:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DB B5 07 01 05 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 77 01 00 00 F4 03 04 00 F1 9B 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E3 02 00 35 04 06 00 CB 7D B4 60 6F C9 A1 92 04 22 A2 2D 91 38 [19:11:42]Write to MH i2c: 01 00 00 4F 70 BF [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 07 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: 01 07 00 4F 70 00 00 00 00 00 55 0C 27 [19:11:42]RasterBufferAndPrint [19:11:42]line [19:11:42]line [19:11:42]line [19:11:42]line [19:11:42]line [19:11:42]written 0, free lines is 3161 [19:11:42]MH_Cut [19:11:42]Write to MH i2c: D1 01 00 56 70 01 98 [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: D1 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: D1 01 00 [19:11:42]MH_I2C_Read... [19:11:42]Read from MH i2c: D1 01 00 56 70 00 97 [19:11:42]Write to MH i2c: 01 00 00 57 70 C7 [19:11:42]Write i2c OK [19:11:42]MH_I2C_Read... [19:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 38 C0 47 00 FE 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E3 02 00 F4 03 04 00 D8 45 1A 67 B6 04 01 00 00 B3 FE 7F C2 A0 49 92 9F [19:11:42]CommunicateWithHost err = 0 [19:11:42]CheckOFDResponse [19:11:42]1017 (14) - 77093643461234 [19:11:42]1041 (16) - 0000000000965340 [19:11:42]1040 (4) - 189302 [19:11:42]1012 (4) - 24.10.2024 13:04 [19:11:42]1206 (1) - 0 [19:11:42]OFD Sender: Remove packet 189302 [19:11:42]ProducePacketName [19:11:42]name=ofd_packets/00189302 [19:11:42]NVStorageDeleteData [19:11:43]OFD Sender: No OFD packet to send [19:11:43]*** Cut start [19:11:43]*** Partial cut [19:11:43]*** CUTSNS_PIN = 1 [19:11:43]*** CUTSNS_PIN = 0 [19:11:44]*** Brake cut motor [19:11:44]Read from MH i2c: 01 [19:11:44]MH_I2C_Read... [19:11:44]*** Stop cut motor [19:11:44]*** Cut end [19:11:44]Read from MH i2c: 01 07 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: 01 07 00 57 70 00 00 00 00 00 FF 0F DC [19:11:44]process_action close_receipt done [19:11:44]requested_data is exist [19:11:44]produce_requested_data [19:11:44]requested_item fm.sn is exist - process it [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 11 00 00 [19:11:44]Write to MH i2c: E2 08 00 58 70 80 11 00 00 00 00 00 00 42 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:44]Read from MH i2c: E2 17 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 17 00 58 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [19:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:11:44]wFMCommunicate OK [19:11:44]requested_item fd.num is exist - process it [19:11:44]SAM_PROTO_GetFieldsCounters [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 13 00 00 [19:11:44]Write to MH i2c: E2 08 00 59 70 80 13 00 00 00 00 00 00 45 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 62 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 62 00 59 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E3 02 00 0E 04 04 00 CF 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 DF [19:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E3 02 00 0E 04 04 00 CF 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 [19:11:44]wFMCommunicate OK [19:11:44]SAM_PROTO_GetFieldsCounters done [19:11:44]requested_item shift.num is exist - process it [19:11:44]requested_item shift.opened is exist - process it [19:11:44]req_shift_opened [19:11:44]FM_GetShiftState [19:11:44]SAM_PROTO_GetShiftState [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 13 01 00 [19:11:44]Write to MH i2c: E2 08 00 5A 70 80 13 01 00 00 00 00 00 47 [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:44]Read from MH i2c: E2 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0E 00 [19:11:44]MH_I2C_Read... [19:11:44]Read from MH i2c: E2 0E 00 5A 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 25 [19:11:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:11:44]wFMCommunicate OK [19:11:44]SAM_PROTO_GetShiftState done [19:11:44]FM_GetShiftState done [19:11:44]req_shift_opened done [19:11:44]requested_item shift.open_date is exist - process it [19:11:44]req_shift_open_date [19:11:44]req_shift_open_date done [19:11:44]produce_requested_data done [19:11:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189302,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:11:44]process_action_free close_receipt [19:11:44]json_value_free [19:11:44]json_value_free done [19:11:44]process_json_proto returns [19:11:44]Send response to host [19:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189302,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:11:44]free response buf [19:11:44]execute_script done [19:11:44]execute_script returns [19:11:44]free content buf [19:11:44]Sock 9.Close socket [19:11:44]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:16]accept exits with 8 [19:15:16]New connection [19:15:16]New thread 3067215204 created [19:15:16]Thread 3067071844 joined [19:15:16]Waiting for new connection... [19:15:16] Sock 8.Parse request [19:15:16]Sock 8.Check first char [19:15:16]Sock 8.First char is OK [19:15:16]request: POST /json_proto HTTP/1.0 [19:15:16]Method: POST [19:15:16]URL: /json_proto [19:15:16]Method is POST - this is cgi request [19:15:16]url: /json_proto [19:15:16]query_string will be loaded in cgi processing [19:15:16]execute_cgi json_proto POST (null) [19:15:16]execute_cgi path=json_proto method=POST [19:15:16]POST find Content-Length [19:15:16]Host: 172.17.42.131:8080 [19:15:16]Content-Length: 682 [19:15:16]Content-Type: application/json [19:15:16] [19:15:16]POST finish read [19:15:16]Found Content-Length = 682 [19:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "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" ] } } [19:15:16]execute_script... [19:15: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)211368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "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" ] } } [19:15:16]POST & json_proto [19:15:16]process_json_proto [19:15:16]json parsed OK: [19:15:16]protocol is kg_v1.0 [19:15:16]action value=close_receipt [19:15:16]process_action close_receipt [19:15:16]cmd_close_receipt [19:15:16]MH_GetDate [19:15:16]Write to MH i2c: F0 00 00 5B 70 BA [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 09 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: F0 09 00 5B 70 00 C9 9C 1A 67 A0 18 CA 66 91 [19:15:16]GetLastDocTimeStamp 1729797105 [19:15:16]current date 1729797321 [19:15:16]FM_GetShiftState [19:15:16]SAM_PROTO_GetShiftState [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 13 01 00 [19:15:16]Write to MH i2c: E2 08 00 5C 70 80 13 01 00 00 00 00 00 49 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 5C 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 27 [19:15:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_GetShiftState done [19:15:16]FM_GetShiftState done [19:15:16]opened in 1729728961 [19:15:16]opened+sec_in_day 1729815361 [19:15:16]quantity*price = 110050 [19:15:16]sum+1 = 110052 [19:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 376 24.10.2024 19:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189303 ФПД: 132573455008992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191521&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189303&fm=132573455008992&tin=02508201610067®Number=0000000000100030&sum=110000 [19:15:17]StoreToDocumentArchive [19:15:17]shift 463 fd 189303 [19:15:17]save to /storage/0463/doc_00189303 [19:15:17]save last doc name /storage/0463/doc_00189303 to /storage/kkm_last_doc_name [19:15:17]save OK [19:15:17]Clear old archive folders... [19:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:17]tlvbuf is 01548BF0 [19:15:17]SAM_PROTO_ClearQueue [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 09 00 00 [19:15:17]Write to MH i2c: E2 08 00 69 70 80 09 00 00 00 00 00 00 4B [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 69 70 00 90 00 4D [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_ClearQueue done [19:15:17]KKMCreateOFDPacket [19:15:17]OFDProtocolAddRootSTLVToBuf [19:15:17]FM_MakeSignedData [19:15:17]FM_MakeSignedData [19:15:17]SAM_PROTO_SignData [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 01 02 [19:15:17]Write to MH i2c: E2 08 00 6A 70 80 0D 01 02 00 00 00 00 53 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 6A 70 00 90 00 4E [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=255 [19:15:17]MH_SAM_APDU [19:15: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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 78 01 00 00 F4 03 04 00 C9 9C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E3 02 00 35 04 06 00 78 [19:15:17]Write to MH i2c: E2 02 01 6B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 78 01 00 00 F4 03 04 00 C9 9C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E3 02 00 35 04 06 00 78 00 00 F4 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 6B 70 00 90 00 4F [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=10 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 02 02 05 93 29 B1 44 E0 [19:15:17]Write to MH i2c: E2 0D 00 6C 70 80 0D 02 02 05 00 93 29 B1 44 E0 00 00 F1 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 6C 70 00 90 00 50 [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 03 02 [19:15:17]Write to MH i2c: E2 08 00 6D 70 80 0D 03 02 00 00 00 00 58 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 6D 70 00 20 FA C7 48 9D A6 8E 68 90 00 BB [19:15:17]RAPDU: 20 FA C7 48 9D A6 8E 68 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_SignData done [19:15:17]FM_MakeSignedData done [19:15:17]CreateOFDProtocolMessage [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 11 00 00 [19:15:17]Write to MH i2c: E2 08 00 6E 70 80 11 00 00 00 00 00 00 58 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 6E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [19:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:17]wFMCommunicate OK [19:15:17]CreateOFDProtocolMessage done [19:15:17]OFDSenderStorePacket 189303 [19:15:17]StoreOFDPacket docnum=189303 [19:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 3E 07 01 AA 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 78 01 00 00 F4 03 04 00 C9 9C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E3 02 00 35 04 06 00 78 93 29 B1 44 E0 20 FA C7 48 9D A6 8E 68 [19:15:17]CheckFolder [19:15:17]dirname=/storage/ofd_packets [19:15:17]CheckFolder done [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00189303 [19:15:17]NVStorageSaveData ofd_packets/00189303 [19:15:17]File name is /storage/ofd_packets/00189303 [19:15:17]Write 301 bytes [19:15:17]NVStorageSaveData done [19:15:17]OFDSenderStorePacket done [19:15:17]KKMCreateOFDPacket done [19:15:17]NVStorageSaveData kkm_last_timestamp [19:15:17]File name is /storage/kkm_last_timestamp [19:15:17]Write 4 bytes [19:15:17]NVStorageSaveData done [19:15:17]ExternCall_PrintAddStr [19:15:17]wPrintStart [19:15:17]Write to MH i2c: 01 00 00 6F 70 DF [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 6F 70 00 00 00 00 00 FF 0F F4 [19:15:17]RasterBufferAndPrint [19:15:17]line Счет N : (1)211368 [19:15:17]line ИНН: 02508201610067 [19:15:17]line Контрольно-Кассовый Чек [19:15:17]line ПРОДАЖА [19:15:17]line ТРК (МРК, ГНК) : 12 [19:15:17]line Товар: 2710124130 [19:15:17]line Аи-92-К-3 [19:15:17]line 16.450 * 66.90 [19:15:17]line = 1100.51 [19:15:17]line НДС 12% НСП 1% [19:15:17]line > о реализуемом товаре [19:15:17]line ОКРУГЛЕНИЕ: -0.51 [19:15:17]line ИТОГО: 1100.00 [19:15:17]line Внесено: 1100.00 [19:15:17]line СДАЧА: 0.00 [19:15:17]line НСП 1% : 9.74 [19:15:17]line НДС 12% : 116.87 [19:15:17]line Наличными: 1100.00 [19:15:17]line Безнал.: 0.00 [19:15:17]line Место: АЗС № 86 "Партнер Нефть" [19:15:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:15:17]line СНО: Общий режим [19:15:17]line Чек 376 24.10.2024 19:15 [19:15:17]line Смена: 463 ФФД: 1.0 [19:15:17]line ЗНМ: 0300000155 [19:15:17]line РНМ: 0000000000100030 [19:15:17]line Версия ККМ: 001 [19:15:17]line ФМ: 0000000000965340 [19:15:17]line ФД: 189303 [19:15:17]line ФПД: 132573455008992 [19:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191521&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189303&fm=132573455008992&tin=02508201610067®Number=0000000000100030&sum=110000 [19:15:18]OFD Sender: Processing packet 189303 [packets to send 1062, broken 1061] [19:15:18]ProducePacketName [19:15:18]name=ofd_packets/00189303 [19:15:18]OFD Sender: To server: pG, [19:15:18]CommunicateWithHost lk.salyk.kg:30040 [19:15:18]ConnectInit lk.salyk.kg [19:15:18]written 0, free lines is 4095 [19:15:18]Connected sock=10 [19:15:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 3E 07 01 AA 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 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 A7 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 78 01 00 00 F4 03 04 00 C9 9C 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E3 02 00 35 04 06 00 78 93 29 B1 44 E0 20 FA C7 48 9D A6 8E 68 [19:15:18]Write to MH i2c: 01 00 00 9A 70 0A [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 9A 70 00 00 00 00 00 51 0C 6E [19:15:18]RasterBufferAndPrint [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]written 0, free lines is 3157 [19:15:18]MH_Cut [19:15:18]Write to MH i2c: D1 01 00 A1 70 01 E3 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 A1 70 00 E2 [19:15:18]Write to MH i2c: 01 00 00 A2 70 12 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 EE 47 00 06 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 39 36 35 33 34 30 10 04 04 00 77 E3 02 00 F4 03 04 00 B0 46 1A 67 B6 04 01 00 00 CD 61 4B 62 C0 AE 8A 34 [19:15:18]CommunicateWithHost err = 0 [19:15:18]CheckOFDResponse [19:15:18]1017 (14) - 77093643461234 [19:15:18]1041 (16) - 0000000000965340 [19:15:18]1040 (4) - 189303 [19:15:18]1012 (4) - 24.10.2024 13:08 [19:15:18]1206 (1) - 0 [19:15:18]OFD Sender: Remove packet 189303 [19:15:18]ProducePacketName [19:15:18]name=ofd_packets/00189303 [19:15:18]NVStorageDeleteData [19:15:19]OFD Sender: No OFD packet to send [19:15:20]*** Cut start [19:15:20]*** Partial cut [19:15:20]*** CUTSNS_PIN = 1 [19:15:20]*** CUTSNS_PIN = 0 [19:15:20]*** Brake cut motor [19:15:20]Read from MH i2c: 01 [19:15:20]MH_I2C_Read... [19:15:20]*** Stop cut motor [19:15:20]*** Cut end [19:15:20]Read from MH i2c: 01 07 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: 01 07 00 A2 70 00 00 00 00 00 FF 0F 27 [19:15:20]process_action close_receipt done [19:15:20]requested_data is exist [19:15:20]produce_requested_data [19:15:20]requested_item fm.sn is exist - process it [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 11 00 00 [19:15:20]Write to MH i2c: E2 08 00 A3 70 80 11 00 00 00 00 00 00 8D [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 17 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 17 00 A3 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [19:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:20]wFMCommunicate OK [19:15:20]requested_item fd.num is exist - process it [19:15:20]SAM_PROTO_GetFieldsCounters [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 13 00 00 [19:15:20]Write to MH i2c: E2 08 00 A4 70 80 13 00 00 00 00 00 00 90 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 62 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 62 00 A4 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E3 02 00 0E 04 04 00 CF 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 2E [19:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E3 02 00 0E 04 04 00 CF 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 [19:15:20]wFMCommunicate OK [19:15:20]SAM_PROTO_GetFieldsCounters done [19:15:20]requested_item shift.num is exist - process it [19:15:20]requested_item shift.opened is exist - process it [19:15:20]req_shift_opened [19:15:20]FM_GetShiftState [19:15:20]SAM_PROTO_GetShiftState [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 13 01 00 [19:15:20]Write to MH i2c: E2 08 00 A5 70 80 13 01 00 00 00 00 00 92 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 0E 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 0E 00 A5 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 70 [19:15:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:15:20]wFMCommunicate OK [19:15:20]SAM_PROTO_GetShiftState done [19:15:20]FM_GetShiftState done [19:15:20]req_shift_opened done [19:15:20]requested_item shift.open_date is exist - process it [19:15:20]req_shift_open_date [19:15:20]req_shift_open_date done [19:15:20]produce_requested_data done [19:15:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189303,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:15:20]process_action_free close_receipt [19:15:20]json_value_free [19:15:20]json_value_free done [19:15:20]process_json_proto returns [19:15:20]Send response to host [19:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189303,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:15:20]free response buf [19:15:20]execute_script done [19:15:20]execute_script returns [19:15:20]free content buf [19:15:20]Sock 8.Close socket [19:15:20]Sock 8.Thread stoped [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]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:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:01]accept exits with 9 [19:22:01]New connection [19:22:01]New thread 3067071844 created [19:22:01]Thread 3067215204 joined [19:22:01]Waiting for new connection... [19:22:01] Sock 9.Parse request [19:22:01]Sock 9.Check first char [19:22:01]Sock 9.First char is OK [19:22:01]request: POST /json_proto HTTP/1.0 [19:22:01]Method: POST [19:22:01]URL: /json_proto [19:22:01]Method is POST - this is cgi request [19:22:01]url: /json_proto [19:22:01]query_string will be loaded in cgi processing [19:22:01]execute_cgi json_proto POST (null) [19:22:01]execute_cgi path=json_proto method=POST [19:22:01]POST find Content-Length [19:22:01]Host: 172.17.42.131:8080 [19:22:01]Content-Length: 754 [19:22:01]Content-Type: application/json [19:22:01] [19:22:01]POST finish read [19:22:01]Found Content-Length = 754 [19:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:01]execute_script... [19:22: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)211369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:01]POST & json_proto [19:22:01]process_json_proto [19:22:01]json parsed OK: [19:22:01]protocol is kg_v1.0 [19:22:01]action value=close_receipt [19:22:01]process_action close_receipt [19:22:01]cmd_close_receipt [19:22:01]MH_GetDate [19:22:01]Write to MH i2c: F0 00 00 A6 70 05 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: F0 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: F0 09 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: F0 09 00 A6 70 00 5E 9E 1A 67 A0 18 CA 66 73 [19:22:01]GetLastDocTimeStamp 1729797321 [19:22:01]current date 1729797726 [19:22:01]FM_GetShiftState [19:22:01]SAM_PROTO_GetShiftState [19:22:01]wFMCommunicate request_size=4 [19:22:01]MH_SAM_APDU [19:22:01]CAPDU: 80 13 01 00 [19:22:01]Write to MH i2c: E2 08 00 A7 70 80 13 01 00 00 00 00 00 94 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:01]Read from MH i2c: E2 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: E2 0E 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: E2 0E 00 A7 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 72 [19:22:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:22:01]wFMCommunicate OK [19:22:01]SAM_PROTO_GetShiftState done [19:22:01]FM_GetShiftState done [19:22:01]opened in 1729728961 [19:22:01]opened+sec_in_day 1729815361 [19:22:01]quantity*price = 0 [19:22:01]sum+1 = 1 [19:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 377 24.10.2024 19:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30091138 ФМ: 0000000000965340 ФД: 189304 ФПД: 15444667432799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189304&fm=15444667432799&tin=02508201610067®Number=0000000000100030&sum=0 [19:22:02]StoreToDocumentArchive [19:22:02]shift 463 fd 189304 [19:22:02]save to /storage/0463/doc_00189304 [19:22:02]save last doc name /storage/0463/doc_00189304 to /storage/kkm_last_doc_name [19:22:02]save OK [19:22:02]Clear old archive folders... [19:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:02]tlvbuf is 015347C0 [19:22:02]SAM_PROTO_ClearQueue [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 09 00 00 [19:22:02]Write to MH i2c: E2 08 00 B4 70 80 09 00 00 00 00 00 00 96 [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 B4 70 00 90 00 98 [19:22:02]RAPDU: 90 00 [19:22:02]wFMCommunicate OK [19:22:02]SAM_PROTO_ClearQueue done [19:22:02]KKMCreateOFDPacket [19:22:02]OFDProtocolAddRootSTLVToBuf [19:22:02]FM_MakeSignedData [19:22:02]FM_MakeSignedData [19:22:02]SAM_PROTO_SignData [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 0D 01 02 [19:22:02]Write to MH i2c: E2 08 00 B5 70 80 0D 01 02 00 00 00 00 9E [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 B5 70 00 90 00 99 [19:22:02]RAPDU: 90 00 [19:22:02]wFMCommunicate OK [19:22:02]wFMCommunicate request_size=255 [19:22:02]MH_SAM_APDU [19:22: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 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 5E 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E3 02 00 35 04 06 00 0E [19:22:02]Write to MH i2c: E2 02 01 B6 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 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 5E 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E3 02 00 35 04 06 00 0E 00 00 0C [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 B6 70 00 90 00 9A [19:22:02]RAPDU: 90 00 [19:22:02]wFMCommunicate OK [19:22:02]wFMCommunicate request_size=10 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 0D 02 02 05 0B FD EA 7F 5F [19:22:02]Write to MH i2c: E2 0D 00 B7 70 80 0D 02 02 05 00 0B FD EA 7F 5F 00 00 7B [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 03 00 B7 70 00 90 00 9B [19:22:02]RAPDU: 90 00 [19:22:02]wFMCommunicate OK [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 0D 03 02 [19:22:02]Write to MH i2c: E2 08 00 B8 70 80 0D 03 02 00 00 00 00 A3 [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 0B 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 0B 00 B8 70 00 5E 04 87 25 A2 24 68 10 90 00 F0 [19:22:02]RAPDU: 5E 04 87 25 A2 24 68 10 90 00 [19:22:02]wFMCommunicate OK [19:22:02]SAM_PROTO_SignData done [19:22:02]FM_MakeSignedData done [19:22:02]CreateOFDProtocolMessage [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 11 00 00 [19:22:02]Write to MH i2c: E2 08 00 B9 70 80 11 00 00 00 00 00 00 A3 [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 17 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 17 00 B9 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [19:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:02]wFMCommunicate OK [19:22:02]CreateOFDProtocolMessage done [19:22:02]OFDSenderStorePacket 189304 [19:22:02]StoreOFDPacket docnum=189304 [19:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A 2D 07 01 7B 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 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 5E 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E3 02 00 35 04 06 00 0E 0B FD EA 7F 5F 5E 04 87 25 A2 24 68 10 [19:22:02]CheckFolder [19:22:02]dirname=/storage/ofd_packets [19:22:02]CheckFolder done [19:22:02]ProducePacketName [19:22:02]name=ofd_packets/00189304 [19:22:02]NVStorageSaveData ofd_packets/00189304 [19:22:02]File name is /storage/ofd_packets/00189304 [19:22:02]Write 301 bytes [19:22:02]NVStorageSaveData done [19:22:02]OFDSenderStorePacket done [19:22:02]KKMCreateOFDPacket done [19:22:02]NVStorageSaveData kkm_last_timestamp [19:22:02]File name is /storage/kkm_last_timestamp [19:22:02]Write 4 bytes [19:22:02]NVStorageSaveData done [19:22:02]ExternCall_PrintAddStr [19:22:02]wPrintStart [19:22:02]Write to MH i2c: 01 00 00 BA 70 2A [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: 01 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: 01 07 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: 01 07 00 BA 70 00 00 00 00 00 FF 0F 3F [19:22:02]RasterBufferAndPrint [19:22:02]line Счет N : (1)211369 [19:22:02]line ИНН: 02508201610067 [19:22:02]line Контрольно-Кассовый Чек [19:22:02]line ПРОДАЖА [19:22:02]line ТРК (МРК, ГНК) : 13 [19:22:02]line Товар: 2710124500 [19:22:02]line Аи-95-К-3 [19:22:02]line 60.000 * 0.00 [19:22:02]line = 0.00 [19:22:02]line НДС 12% НСП 1% [19:22:02]line > о реализуемом товаре [19:22:02]line ИТОГО: 0.00 [19:22:02]line НСП 1% : 0.00 [19:22:02]line НДС 12% : 0.00 [19:22:02]line Наличными: 0.00 [19:22:02]line Безнал.: 0.00 [19:22:02]line Место: АЗС № 86 "Партнер Нефть" [19:22:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:22:02]line СНО: Общий режим [19:22:02]line Чек 377 24.10.2024 19:22 [19:22:02]line Смена: 463 ФФД: 1.0 [19:22:02]line ЗНМ: 0300000155 [19:22:02]line РНМ: 0000000000100030 [19:22:02]line Версия ККМ: 001 [19:22:02]line Талоны: ТК ГПНА Online [19:22:02]line 30091138 [19:22:02]line ФМ: 0000000000965340 [19:22:02]line ФД: 189304 [19:22:02]line ФПД: 15444667432799 [19:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189304&fm=15444667432799&tin=02508201610067®Number=0000000000100030&sum=0 [19:22:02]written 0, free lines is 4095 [19:22:03]OFD Sender: Processing packet 189304 [packets to send 1062, broken 1061] [19:22:03]ProducePacketName [19:22:03]name=ofd_packets/00189304 [19:22:03]OFD Sender: To server: pG, [19:22:03]CommunicateWithHost lk.salyk.kg:30040 [19:22:03]ConnectInit lk.salyk.kg [19:22:03]Connected sock=8 [19:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A 2D 07 01 7B 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 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 5E 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E3 02 00 35 04 06 00 0E 0B FD EA 7F 5F 5E 04 87 25 A2 24 68 10 [19:22:03]Write to MH i2c: 01 00 00 E4 70 54 [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: 01 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: 01 07 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: 01 07 00 E4 70 00 00 00 00 00 64 0C CB [19:22:03]RasterBufferAndPrint [19:22:03]line [19:22:03]line [19:22:03]line [19:22:03]line [19:22:03]line [19:22:03]written 0, free lines is 3177 [19:22:03]MH_Cut [19:22:03]Write to MH i2c: D1 01 00 EB 70 01 2D [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: D1 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: D1 01 00 [19:22:03]MH_I2C_Read... [19:22:03]Read from MH i2c: D1 01 00 EB 70 00 2C [19:22:03]Write to MH i2c: 01 00 00 EC 70 5C [19:22:03]Write i2c OK [19:22:03]MH_I2C_Read... [19:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C D6 47 00 3D 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 39 36 35 33 34 30 10 04 04 00 78 E3 02 00 F4 03 04 00 45 48 1A 67 B6 04 01 00 00 A6 DB FE 06 EF 50 90 4D [19:22:03]CommunicateWithHost err = 0 [19:22:03]CheckOFDResponse [19:22:03]1017 (14) - 77093643461234 [19:22:03]1041 (16) - 0000000000965340 [19:22:03]1040 (4) - 189304 [19:22:03]1012 (4) - 24.10.2024 13:14 [19:22:03]1206 (1) - 0 [19:22:03]OFD Sender: Remove packet 189304 [19:22:03]ProducePacketName [19:22:03]name=ofd_packets/00189304 [19:22:03]NVStorageDeleteData [19:22:04]OFD Sender: No OFD packet to send [19:22:04]*** Cut start [19:22:04]*** Partial cut [19:22:04]*** CUTSNS_PIN = 1 [19:22:04]*** CUTSNS_PIN = 0 [19:22:04]*** Brake cut motor [19:22:05]Read from MH i2c: 01 [19:22:05]MH_I2C_Read... [19:22:05]*** Stop cut motor [19:22:05]*** Cut end [19:22:05]Read from MH i2c: 01 07 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: 01 07 00 EC 70 00 00 00 00 00 FF 0F 71 [19:22:05]process_action close_receipt done [19:22:05]requested_data is exist [19:22:05]produce_requested_data [19:22:05]requested_item fm.sn is exist - process it [19:22:05]wFMCommunicate request_size=4 [19:22:05]MH_SAM_APDU [19:22:05]CAPDU: 80 11 00 00 [19:22:05]Write to MH i2c: E2 08 00 ED 70 80 11 00 00 00 00 00 00 D7 [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:05]Read from MH i2c: E2 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 17 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 17 00 ED 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [19:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:05]wFMCommunicate OK [19:22:05]requested_item fd.num is exist - process it [19:22:05]SAM_PROTO_GetFieldsCounters [19:22:05]wFMCommunicate request_size=4 [19:22:05]MH_SAM_APDU [19:22:05]CAPDU: 80 13 00 00 [19:22:05]Write to MH i2c: E2 08 00 EE 70 80 13 00 00 00 00 00 00 DA [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:05]Read from MH i2c: E2 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 62 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 62 00 EE 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E3 02 00 0E 04 04 00 CF 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 7C [19:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E3 02 00 0E 04 04 00 CF 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 [19:22:05]wFMCommunicate OK [19:22:05]SAM_PROTO_GetFieldsCounters done [19:22:05]requested_item shift.num is exist - process it [19:22:05]requested_item shift.opened is exist - process it [19:22:05]req_shift_opened [19:22:05]FM_GetShiftState [19:22:05]SAM_PROTO_GetShiftState [19:22:05]wFMCommunicate request_size=4 [19:22:05]MH_SAM_APDU [19:22:05]CAPDU: 80 13 01 00 [19:22:05]Write to MH i2c: E2 08 00 EF 70 80 13 01 00 00 00 00 00 DC [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:05]Read from MH i2c: E2 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 EF 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BA [19:22:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:22:05]wFMCommunicate OK [19:22:05]SAM_PROTO_GetShiftState done [19:22:05]FM_GetShiftState done [19:22:05]req_shift_opened done [19:22:05]requested_item shift.open_date is exist - process it [19:22:05]req_shift_open_date [19:22:05]req_shift_open_date done [19:22:05]produce_requested_data done [19:22:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189304,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:22:05]process_action_free close_receipt [19:22:05]json_value_free [19:22:05]json_value_free done [19:22:05]process_json_proto returns [19:22:05]Send response to host [19:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189304,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:22:05]free response buf [19:22:05]execute_script done [19:22:05]execute_script returns [19:22:05]free content buf [19:22:05]Sock 9.Close socket [19:22:05]Sock 9.Thread stoped [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:09]accept exits with 10 [19:23:09]New connection [19:23:09]New thread 3067215204 created [19:23:09]Thread 3067071844 joined [19:23:09]Waiting for new connection... [19:23:09] Sock 10.Parse request [19:23:09]Sock 10.Check first char [19:23:09]Sock 10.First char is OK [19:23:09]request: POST /json_proto HTTP/1.0 [19:23:09]Method: POST [19:23:09]URL: /json_proto [19:23:09]Method is POST - this is cgi request [19:23:09]url: /json_proto [19:23:09]query_string will be loaded in cgi processing [19:23:09]execute_cgi json_proto POST (null) [19:23:09]execute_cgi path=json_proto method=POST [19:23:09]POST find Content-Length [19:23:09]Host: 172.17.42.131:8080 [19:23:09]Content-Length: 677 [19:23:09]Content-Type: application/json [19:23:09] [19:23:09]POST finish read [19:23:09]Found Content-Length = 677 [19:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:09]execute_script... [19:23: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)211370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:09]POST & json_proto [19:23:09]process_json_proto [19:23:09]json parsed OK: [19:23:09]protocol is kg_v1.0 [19:23:09]action value=close_receipt [19:23:09]process_action close_receipt [19:23:09]cmd_close_receipt [19:23:09]MH_GetDate [19:23:09]Write to MH i2c: F0 00 00 F0 70 4F [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: F0 09 00 F0 70 00 A2 9E 1A 67 A0 18 CA 66 01 [19:23:09]GetLastDocTimeStamp 1729797726 [19:23:09]current date 1729797794 [19:23:09]FM_GetShiftState [19:23:09]SAM_PROTO_GetShiftState [19:23:09]wFMCommunicate request_size=4 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 13 01 00 [19:23:09]Write to MH i2c: E2 08 00 F1 70 80 13 01 00 00 00 00 00 DE [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0E 00 F1 70 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BC [19:23:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:09]wFMCommunicate OK [19:23:09]SAM_PROTO_GetShiftState done [19:23:09]FM_GetShiftState done [19:23:09]opened in 1729728961 [19:23:09]opened+sec_in_day 1729815361 [19:23:09]quantity*price = 50041 [19:23:09]sum+1 = 50042 [19:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 378 24.10.2024 19:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189305 ФПД: 55961322568372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189305&fm=55961322568372&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:10]StoreToDocumentArchive [19:23:10]shift 463 fd 189305 [19:23:10]save to /storage/0463/doc_00189305 [19:23:10]save last doc name /storage/0463/doc_00189305 to /storage/kkm_last_doc_name [19:23:10]save OK [19:23:10]Clear old archive folders... [19:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:10]tlvbuf is 0160C970 [19:23:10]SAM_PROTO_ClearQueue [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 09 00 00 [19:23:10]Write to MH i2c: E2 08 00 FE 70 80 09 00 00 00 00 00 00 E0 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 FE 70 00 90 00 E2 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_ClearQueue done [19:23:10]KKMCreateOFDPacket [19:23:10]OFDProtocolAddRootSTLVToBuf [19:23:10]FM_MakeSignedData [19:23:10]FM_MakeSignedData [19:23:10]SAM_PROTO_SignData [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 0D 01 02 [19:23:10]Write to MH i2c: E2 08 00 FF 70 80 0D 01 02 00 00 00 00 E8 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 03 00 FF 70 00 90 00 E3 [19:23:10]RAPDU: 90 00 [19:23:10]wFMCommunicate OK [19:23:10]wFMCommunicate request_size=255 [19:23:10]MH_SAM_APDU [19:23: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 A2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E3 02 00 35 04 06 00 32 [19:23:11]Write to MH i2c: E2 02 01 00 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 A2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E3 02 00 35 04 06 00 32 00 00 F8 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 00 71 00 90 00 E5 [19:23:11]RAPDU: 90 00 [19:23:11]wFMCommunicate OK [19:23:11]wFMCommunicate request_size=10 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 0D 02 02 05 E5 82 C0 BA B4 [19:23:11]Write to MH i2c: E2 0D 00 01 71 80 0D 02 02 05 00 E5 82 C0 BA B4 00 00 8B [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 03 00 01 71 00 90 00 E6 [19:23:11]RAPDU: 90 00 [19:23:11]wFMCommunicate OK [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 0D 03 02 [19:23:11]Write to MH i2c: E2 08 00 02 71 80 0D 03 02 00 00 00 00 EE [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0B 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 0B 00 02 71 00 B3 94 64 D0 F3 B0 F5 6F 90 00 71 [19:23:11]RAPDU: B3 94 64 D0 F3 B0 F5 6F 90 00 [19:23:11]wFMCommunicate OK [19:23:11]SAM_PROTO_SignData done [19:23:11]FM_MakeSignedData done [19:23:11]CreateOFDProtocolMessage [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 11 00 00 [19:23:11]Write to MH i2c: E2 08 00 03 71 80 11 00 00 00 00 00 00 EE [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 03 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [19:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:11]wFMCommunicate OK [19:23:11]CreateOFDProtocolMessage done [19:23:11]OFDSenderStorePacket 189305 [19:23:11]StoreOFDPacket docnum=189305 [19:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF 42 07 01 C0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 A2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E3 02 00 35 04 06 00 32 E5 82 C0 BA B4 B3 94 64 D0 F3 B0 F5 6F [19:23:11]CheckFolder [19:23:11]dirname=/storage/ofd_packets [19:23:11]CheckFolder done [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00189305 [19:23:11]NVStorageSaveData ofd_packets/00189305 [19:23:11]File name is /storage/ofd_packets/00189305 [19:23:11]Write 301 bytes [19:23:11]NVStorageSaveData done [19:23:11]OFDSenderStorePacket done [19:23:11]KKMCreateOFDPacket done [19:23:11]NVStorageSaveData kkm_last_timestamp [19:23:11]File name is /storage/kkm_last_timestamp [19:23:11]Write 4 bytes [19:23:11]NVStorageSaveData done [19:23:11]ExternCall_PrintAddStr [19:23:11]wPrintStart [19:23:11]Write to MH i2c: 01 00 00 04 71 75 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 04 71 00 00 00 00 00 FF 0F 8A [19:23:11]RasterBufferAndPrint [19:23:11]line Счет N : (1)211370 [19:23:11]line ИНН: 02508201610067 [19:23:11]line Контрольно-Кассовый Чек [19:23:11]line ПРОДАЖА [19:23:11]line ТРК (МРК, ГНК) : 22 [19:23:11]line Товар: 2710124130 [19:23:11]line Аи-92-К-3 [19:23:11]line 7.480 * 66.90 [19:23:11]line = 500.41 [19:23:11]line НДС 12% НСП 1% [19:23:11]line > о реализуемом товаре [19:23:11]line ОКРУГЛЕНИЕ: -0.41 [19:23:11]line ИТОГО: 500.00 [19:23:11]line Внесено: 500.00 [19:23:11]line СДАЧА: 0.00 [19:23:11]line НСП 1% : 4.43 [19:23:11]line НДС 12% : 53.14 [19:23:11]line Наличными: 500.00 [19:23:11]line Безнал.: 0.00 [19:23:11]line Место: АЗС № 86 "Партнер Нефть" [19:23:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:23:11]line СНО: Общий режим [19:23:11]line Чек 378 24.10.2024 19:23 [19:23:11]line Смена: 463 ФФД: 1.0 [19:23:11]line ЗНМ: 0300000155 [19:23:11]line РНМ: 0000000000100030 [19:23:11]line Версия ККМ: 001 [19:23:11]line ФМ: 0000000000965340 [19:23:11]line ФД: 189305 [19:23:11]line ФПД: 55961322568372 [19:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189305&fm=55961322568372&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:11]written 0, free lines is 4095 [19:23:11]OFD Sender: Processing packet 189305 [packets to send 1062, broken 1061] [19:23:11]ProducePacketName [19:23:11]name=ofd_packets/00189305 [19:23:11]OFD Sender: To server: pG, [19:23:11]CommunicateWithHost lk.salyk.kg:30040 [19:23:11]ConnectInit lk.salyk.kg [19:23:11]Connected sock=9 [19:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF 42 07 01 C0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 A2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E3 02 00 35 04 06 00 32 E5 82 C0 BA B4 B3 94 64 D0 F3 B0 F5 6F [19:23:11]Write to MH i2c: 01 00 00 2F 71 A0 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 2F 71 00 00 00 00 00 52 0C 05 [19:23:11]RasterBufferAndPrint [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]line [19:23:11]written 0, free lines is 3158 [19:23:11]MH_Cut [19:23:11]Write to MH i2c: D1 01 00 36 71 01 79 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: D1 01 00 36 71 00 78 [19:23:11]Write to MH i2c: 01 00 00 37 71 A8 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF BA 47 00 9A 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 39 36 35 33 34 30 10 04 04 00 79 E3 02 00 F4 03 04 00 89 48 1A 67 B6 04 01 00 00 73 75 FA D2 33 8F 39 AF [19:23:12]CommunicateWithHost err = 0 [19:23:12]CheckOFDResponse [19:23:12]1017 (14) - 77093643461234 [19:23:12]1041 (16) - 0000000000965340 [19:23:12]1040 (4) - 189305 [19:23:12]1012 (4) - 24.10.2024 13:15 [19:23:12]1206 (1) - 0 [19:23:12]OFD Sender: Remove packet 189305 [19:23:12]ProducePacketName [19:23:12]name=ofd_packets/00189305 [19:23:12]NVStorageDeleteData [19:23:12]OFD Sender: No OFD packet to send [19:23:13]*** Cut start [19:23:13]*** Partial cut [19:23:13]*** CUTSNS_PIN = 1 [19:23:13]*** CUTSNS_PIN = 0 [19:23:13]*** Brake cut motor [19:23:13]Read from MH i2c: 01 [19:23:13]MH_I2C_Read... [19:23:13]*** Stop cut motor [19:23:13]*** Cut end [19:23:13]Read from MH i2c: 01 07 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: 01 07 00 37 71 00 00 00 00 00 FF 0F BD [19:23:13]process_action close_receipt done [19:23:13]requested_data is exist [19:23:13]produce_requested_data [19:23:13]requested_item fm.sn is exist - process it [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 11 00 00 [19:23:13]Write to MH i2c: E2 08 00 38 71 80 11 00 00 00 00 00 00 23 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 17 00 38 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [19:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:13]wFMCommunicate OK [19:23:13]requested_item fd.num is exist - process it [19:23:13]SAM_PROTO_GetFieldsCounters [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 13 00 00 [19:23:13]Write to MH i2c: E2 08 00 39 71 80 13 00 00 00 00 00 00 26 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:14]Read from MH i2c: E2 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 62 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 62 00 39 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E3 02 00 0E 04 04 00 CF 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 CC [19:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E3 02 00 0E 04 04 00 CF 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 [19:23:14]wFMCommunicate OK [19:23:14]SAM_PROTO_GetFieldsCounters done [19:23:14]requested_item shift.num is exist - process it [19:23:14]requested_item shift.opened is exist - process it [19:23:14]req_shift_opened [19:23:14]FM_GetShiftState [19:23:14]SAM_PROTO_GetShiftState [19:23:14]wFMCommunicate request_size=4 [19:23:14]MH_SAM_APDU [19:23:14]CAPDU: 80 13 01 00 [19:23:14]Write to MH i2c: E2 08 00 3A 71 80 13 01 00 00 00 00 00 28 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:14]Read from MH i2c: E2 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 0E 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 0E 00 3A 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 06 [19:23:14]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:14]wFMCommunicate OK [19:23:14]SAM_PROTO_GetShiftState done [19:23:14]FM_GetShiftState done [19:23:14]req_shift_opened done [19:23:14]requested_item shift.open_date is exist - process it [19:23:14]req_shift_open_date [19:23:14]req_shift_open_date done [19:23:14]produce_requested_data done [19:23:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189305,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:23:14]process_action_free close_receipt [19:23:14]json_value_free [19:23:14]json_value_free done [19:23:14]process_json_proto returns [19:23:14]Send response to host [19:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189305,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:23:14]free response buf [19:23:14]execute_script done [19:23:14]execute_script returns [19:23:14]free content buf [19:23:14]Sock 10.Close socket [19:23:14]Sock 10.Thread stoped [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:27]accept exits with 8 [19:23:27]New connection [19:23:27]New thread 3067071844 created [19:23:27]Thread 3067215204 joined [19:23:27]Waiting for new connection... [19:23:27] Sock 8.Parse request [19:23:27]Sock 8.Check first char [19:23:27]Sock 8.First char is OK [19:23:27]request: POST /json_proto HTTP/1.0 [19:23:27]Method: POST [19:23:27]URL: /json_proto [19:23:27]Method is POST - this is cgi request [19:23:27]url: /json_proto [19:23:27]query_string will be loaded in cgi processing [19:23:27]execute_cgi json_proto POST (null) [19:23:27]execute_cgi path=json_proto method=POST [19:23:27]POST find Content-Length [19:23:27]Host: 172.17.42.131:8080 [19:23:27]Content-Length: 677 [19:23:27]Content-Type: application/json [19:23:27] [19:23:27]POST finish read [19:23:27]Found Content-Length = 677 [19:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:27]execute_script... [19:23: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)211371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:27]POST & json_proto [19:23:27]process_json_proto [19:23:27]json parsed OK: [19:23:27]protocol is kg_v1.0 [19:23:27]action value=close_receipt [19:23:27]process_action close_receipt [19:23:27]cmd_close_receipt [19:23:27]MH_GetDate [19:23:27]Write to MH i2c: F0 00 00 3B 71 9B [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: F0 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: F0 09 00 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: F0 09 00 3B 71 00 B4 9E 1A 67 A0 18 CA 66 5F [19:23:27]GetLastDocTimeStamp 1729797794 [19:23:27]current date 1729797812 [19:23:27]FM_GetShiftState [19:23:27]SAM_PROTO_GetShiftState [19:23:27]wFMCommunicate request_size=4 [19:23:27]MH_SAM_APDU [19:23:27]CAPDU: 80 13 01 00 [19:23:27]Write to MH i2c: E2 08 00 3C 71 80 13 01 00 00 00 00 00 2A [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:28]Read from MH i2c: E2 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 0E 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 0E 00 3C 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 08 [19:23:28]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:28]wFMCommunicate OK [19:23:28]SAM_PROTO_GetShiftState done [19:23:28]FM_GetShiftState done [19:23:28]opened in 1729728961 [19:23:28]opened+sec_in_day 1729815361 [19:23:28]quantity*price = 50041 [19:23:28]sum+1 = 50042 [19:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 379 24.10.2024 19:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189306 ФПД: 261041524305943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192332&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189306&fm=261041524305943&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:29]StoreToDocumentArchive [19:23:29]shift 463 fd 189306 [19:23:29]save to /storage/0463/doc_00189306 [19:23:29]save last doc name /storage/0463/doc_00189306 to /storage/kkm_last_doc_name [19:23:29]save OK [19:23:29]Clear old archive folders... [19:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:29]tlvbuf is 01641350 [19:23:29]SAM_PROTO_ClearQueue [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 09 00 00 [19:23:29]Write to MH i2c: E2 08 00 49 71 80 09 00 00 00 00 00 00 2C [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 49 71 00 90 00 2E [19:23:29]RAPDU: 90 00 [19:23:29]wFMCommunicate OK [19:23:29]SAM_PROTO_ClearQueue done [19:23:29]KKMCreateOFDPacket [19:23:29]OFDProtocolAddRootSTLVToBuf [19:23:29]FM_MakeSignedData [19:23:29]FM_MakeSignedData [19:23:29]SAM_PROTO_SignData [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 0D 01 02 [19:23:29]Write to MH i2c: E2 08 00 4A 71 80 0D 01 02 00 00 00 00 34 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 4A 71 00 90 00 2F [19:23:29]RAPDU: 90 00 [19:23:29]wFMCommunicate OK [19:23:29]wFMCommunicate request_size=255 [19:23:29]MH_SAM_APDU [19:23: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B4 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E3 02 00 35 04 06 00 ED [19:23:29]Write to MH i2c: E2 02 01 4B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B4 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E3 02 00 35 04 06 00 ED 00 00 12 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 4B 71 00 90 00 30 [19:23:29]RAPDU: 90 00 [19:23:29]wFMCommunicate OK [19:23:29]wFMCommunicate request_size=10 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 0D 02 02 05 6A 77 53 F0 17 [19:23:29]Write to MH i2c: E2 0D 00 4C 71 80 0D 02 02 05 00 6A 77 53 F0 17 00 00 7C [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 03 00 4C 71 00 90 00 31 [19:23:29]RAPDU: 90 00 [19:23:29]wFMCommunicate OK [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 0D 03 02 [19:23:29]Write to MH i2c: E2 08 00 4D 71 80 0D 03 02 00 00 00 00 39 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 0B 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 0B 00 4D 71 00 CC 4C 90 AD 8D 45 0C 20 90 00 8D [19:23:29]RAPDU: CC 4C 90 AD 8D 45 0C 20 90 00 [19:23:29]wFMCommunicate OK [19:23:29]SAM_PROTO_SignData done [19:23:29]FM_MakeSignedData done [19:23:29]CreateOFDProtocolMessage [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 11 00 00 [19:23:29]Write to MH i2c: E2 08 00 4E 71 80 11 00 00 00 00 00 00 39 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 17 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 17 00 4E 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [19:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:29]wFMCommunicate OK [19:23:29]CreateOFDProtocolMessage done [19:23:29]OFDSenderStorePacket 189306 [19:23:29]StoreOFDPacket docnum=189306 [19:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 68 07 01 F6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B4 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E3 02 00 35 04 06 00 ED 6A 77 53 F0 17 CC 4C 90 AD 8D 45 0C 20 [19:23:29]CheckFolder [19:23:29]dirname=/storage/ofd_packets [19:23:29]CheckFolder done [19:23:29]ProducePacketName [19:23:29]name=ofd_packets/00189306 [19:23:29]NVStorageSaveData ofd_packets/00189306 [19:23:29]File name is /storage/ofd_packets/00189306 [19:23:29]Write 301 bytes [19:23:29]NVStorageSaveData done [19:23:29]OFDSenderStorePacket done [19:23:29]KKMCreateOFDPacket done [19:23:29]NVStorageSaveData kkm_last_timestamp [19:23:29]File name is /storage/kkm_last_timestamp [19:23:29]Write 4 bytes [19:23:29]NVStorageSaveData done [19:23:29]ExternCall_PrintAddStr [19:23:29]wPrintStart [19:23:29]Write to MH i2c: 01 00 00 4F 71 C0 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 07 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 07 00 4F 71 00 00 00 00 00 FF 0F D5 [19:23:29]RasterBufferAndPrint [19:23:29]line Счет N : (1)211371 [19:23:29]line ИНН: 02508201610067 [19:23:29]line Контрольно-Кассовый Чек [19:23:29]line ПРОДАЖА [19:23:29]line ТРК (МРК, ГНК) : 42 [19:23:29]line Товар: 2710124130 [19:23:29]line Аи-92-К-3 [19:23:29]line 7.480 * 66.90 [19:23:29]line = 500.41 [19:23:29]line НДС 12% НСП 1% [19:23:29]line > о реализуемом товаре [19:23:29]line ОКРУГЛЕНИЕ: -0.41 [19:23:29]line ИТОГО: 500.00 [19:23:29]line Внесено: 500.00 [19:23:29]line СДАЧА: 0.00 [19:23:29]line НСП 1% : 4.43 [19:23:29]line НДС 12% : 53.14 [19:23:29]line Наличными: 500.00 [19:23:29]line Безнал.: 0.00 [19:23:29]line Место: АЗС № 86 "Партнер Нефть" [19:23:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:23:29]line СНО: Общий режим [19:23:29]line Чек 379 24.10.2024 19:23 [19:23:29]line Смена: 463 ФФД: 1.0 [19:23:29]line ЗНМ: 0300000155 [19:23:29]line РНМ: 0000000000100030 [19:23:29]line Версия ККМ: 001 [19:23:29]line ФМ: 0000000000965340 [19:23:29]line ФД: 189306 [19:23:29]line ФПД: 261041524305943 [19:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192332&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189306&fm=261041524305943&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:29]written 0, free lines is 4095 [19:23:29]OFD Sender: Processing packet 189306 [packets to send 1062, broken 1061] [19:23:29]ProducePacketName [19:23:29]name=ofd_packets/00189306 [19:23:29]OFD Sender: To server: pG, [19:23:29]CommunicateWithHost lk.salyk.kg:30040 [19:23:29]ConnectInit lk.salyk.kg [19:23:30]Connected sock=10 [19:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 68 07 01 F6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 B4 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E3 02 00 35 04 06 00 ED 6A 77 53 F0 17 CC 4C 90 AD 8D 45 0C 20 [19:23:30]Write to MH i2c: 01 00 00 7A 71 EB [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: 01 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: 01 07 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: 01 07 00 7A 71 00 00 00 00 00 56 0C 54 [19:23:30]RasterBufferAndPrint [19:23:30]line [19:23:30]line [19:23:30]line [19:23:30]line [19:23:30]line [19:23:30]written 0, free lines is 3162 [19:23:30]MH_Cut [19:23:30]Write to MH i2c: D1 01 00 81 71 01 C4 [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: D1 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: D1 01 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: D1 01 00 81 71 00 C3 [19:23:30]Write to MH i2c: 01 00 00 82 71 F3 [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C2 BD 47 00 95 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 39 36 35 33 34 30 10 04 04 00 7A E3 02 00 F4 03 04 00 9C 48 1A 67 B6 04 01 00 00 49 CE 0C 66 76 FB 76 CC [19:23:30]CommunicateWithHost err = 0 [19:23:30]CheckOFDResponse [19:23:30]1017 (14) - 77093643461234 [19:23:30]1041 (16) - 0000000000965340 [19:23:30]1040 (4) - 189306 [19:23:30]1012 (4) - 24.10.2024 13:16 [19:23:30]1206 (1) - 0 [19:23:30]OFD Sender: Remove packet 189306 [19:23:30]ProducePacketName [19:23:30]name=ofd_packets/00189306 [19:23:30]NVStorageDeleteData [19:23:30]OFD Sender: No OFD packet to send [19:23:31]*** Cut start [19:23:31]*** Partial cut [19:23:31]*** CUTSNS_PIN = 1 [19:23:31]*** CUTSNS_PIN = 0 [19:23:31]*** Brake cut motor [19:23:32]Read from MH i2c: 01 [19:23:32]MH_I2C_Read... [19:23:32]*** Stop cut motor [19:23:32]*** Cut end [19:23:32]Read from MH i2c: 01 07 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 07 00 82 71 00 00 00 00 00 FF 0F 08 [19:23:32]process_action close_receipt done [19:23:32]requested_data is exist [19:23:32]produce_requested_data [19:23:32]requested_item fm.sn is exist - process it [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 11 00 00 [19:23:32]Write to MH i2c: E2 08 00 83 71 80 11 00 00 00 00 00 00 6E [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 83 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [19:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:32]wFMCommunicate OK [19:23:32]requested_item fd.num is exist - process it [19:23:32]SAM_PROTO_GetFieldsCounters [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 13 00 00 [19:23:32]Write to MH i2c: E2 08 00 84 71 80 13 00 00 00 00 00 00 71 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 62 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 62 00 84 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E3 02 00 0E 04 04 00 CF 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 1B [19:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E3 02 00 0E 04 04 00 CF 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 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_GetFieldsCounters done [19:23:32]requested_item shift.num is exist - process it [19:23:32]requested_item shift.opened is exist - process it [19:23:32]req_shift_opened [19:23:32]FM_GetShiftState [19:23:32]SAM_PROTO_GetShiftState [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 13 01 00 [19:23:32]Write to MH i2c: E2 08 00 85 71 80 13 01 00 00 00 00 00 73 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 85 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 51 [19:23:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_GetShiftState done [19:23:32]FM_GetShiftState done [19:23:32]req_shift_opened done [19:23:32]requested_item shift.open_date is exist - process it [19:23:32]req_shift_open_date [19:23:32]req_shift_open_date done [19:23:32]produce_requested_data done [19:23:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189306,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:23:32]process_action_free close_receipt [19:23:32]json_value_free [19:23:32]json_value_free done [19:23:32]process_json_proto returns [19:23:32]Send response to host [19:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189306,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:23:32]free response buf [19:23:32]execute_script done [19:23:32]execute_script returns [19:23:32]free content buf [19:23:32]Sock 8.Close socket [19:23:32]Sock 8.Thread stoped [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:53]accept exits with 9 [19:23:53]New connection [19:23:53]New thread 3067215204 created [19:23:53]Thread 3067071844 joined [19:23:53]Waiting for new connection... [19:23:53] Sock 9.Parse request [19:23:53]Sock 9.Check first char [19:23:53]Sock 9.First char is OK [19:23:53]request: POST /json_proto HTTP/1.0 [19:23:53]Method: POST [19:23:53]URL: /json_proto [19:23:53]Method is POST - this is cgi request [19:23:53]url: /json_proto [19:23:53]query_string will be loaded in cgi processing [19:23:53]execute_cgi json_proto POST (null) [19:23:53]execute_cgi path=json_proto method=POST [19:23:53]POST find Content-Length [19:23:53]Host: 172.17.42.131:8080 [19:23:53]Content-Length: 677 [19:23:53]Content-Type: application/json [19:23:53] [19:23:53]POST finish read [19:23:53]Found Content-Length = 677 [19:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:53]execute_script... [19:23: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)211372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:53]POST & json_proto [19:23:53]process_json_proto [19:23:53]json parsed OK: [19:23:53]protocol is kg_v1.0 [19:23:53]action value=close_receipt [19:23:53]process_action close_receipt [19:23:53]cmd_close_receipt [19:23:53]MH_GetDate [19:23:53]Write to MH i2c: F0 00 00 86 71 E6 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: F0 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: F0 09 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: F0 09 00 86 71 00 CE 9E 1A 67 A0 18 CA 66 C4 [19:23:53]GetLastDocTimeStamp 1729797812 [19:23:53]current date 1729797838 [19:23:53]FM_GetShiftState [19:23:53]SAM_PROTO_GetShiftState [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 13 01 00 [19:23:53]Write to MH i2c: E2 08 00 87 71 80 13 01 00 00 00 00 00 75 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0E 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0E 00 87 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 53 [19:23:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:53]wFMCommunicate OK [19:23:53]SAM_PROTO_GetShiftState done [19:23:53]FM_GetShiftState done [19:23:53]opened in 1729728961 [19:23:53]opened+sec_in_day 1729815361 [19:23:53]quantity*price = 50041 [19:23:53]sum+1 = 50042 [19:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 380 24.10.2024 19:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189307 ФПД: 16836502280753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189307&fm=16836502280753&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:54]StoreToDocumentArchive [19:23:54]shift 463 fd 189307 [19:23:54]save to /storage/0463/doc_00189307 [19:23:54]save last doc name /storage/0463/doc_00189307 to /storage/kkm_last_doc_name [19:23:54]save OK [19:23:54]Clear old archive folders... [19:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:54]tlvbuf is 01676090 [19:23:54]SAM_PROTO_ClearQueue [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 09 00 00 [19:23:54]Write to MH i2c: E2 08 00 94 71 80 09 00 00 00 00 00 00 77 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 94 71 00 90 00 79 [19:23:54]RAPDU: 90 00 [19:23:54]wFMCommunicate OK [19:23:54]SAM_PROTO_ClearQueue done [19:23:54]KKMCreateOFDPacket [19:23:54]OFDProtocolAddRootSTLVToBuf [19:23:54]FM_MakeSignedData [19:23:54]FM_MakeSignedData [19:23:54]SAM_PROTO_SignData [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 0D 01 02 [19:23:54]Write to MH i2c: E2 08 00 95 71 80 0D 01 02 00 00 00 00 7F [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 95 71 00 90 00 7A [19:23:54]RAPDU: 90 00 [19:23:54]wFMCommunicate OK [19:23:54]wFMCommunicate request_size=255 [19:23:54]MH_SAM_APDU [19:23: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E3 02 00 35 04 06 00 0F [19:23:54]Write to MH i2c: E2 02 01 96 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E3 02 00 35 04 06 00 0F 00 00 9B [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 96 71 00 90 00 7B [19:23:54]RAPDU: 90 00 [19:23:54]wFMCommunicate OK [19:23:54]wFMCommunicate request_size=10 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 0D 02 02 05 50 0D BC DA 31 [19:23:54]Write to MH i2c: E2 0D 00 97 71 80 0D 02 02 05 00 50 0D BC DA 31 00 00 B0 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:54]Read from MH i2c: E2 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: E2 03 00 97 71 00 90 00 7C [19:23:54]RAPDU: 90 00 [19:23:54]wFMCommunicate OK [19:23:54]wFMCommunicate request_size=4 [19:23:54]MH_SAM_APDU [19:23:54]CAPDU: 80 0D 03 02 [19:23:54]Write to MH i2c: E2 08 00 98 71 80 0D 03 02 00 00 00 00 84 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0B 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0B 00 98 71 00 67 37 E9 2D 27 47 56 52 90 00 4F [19:23:55]RAPDU: 67 37 E9 2D 27 47 56 52 90 00 [19:23:55]wFMCommunicate OK [19:23:55]SAM_PROTO_SignData done [19:23:55]FM_MakeSignedData done [19:23:55]CreateOFDProtocolMessage [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 11 00 00 [19:23:55]Write to MH i2c: E2 08 00 99 71 80 11 00 00 00 00 00 00 84 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 17 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 17 00 99 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [19:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:55]wFMCommunicate OK [19:23:55]CreateOFDProtocolMessage done [19:23:55]OFDSenderStorePacket 189307 [19:23:55]StoreOFDPacket docnum=189307 [19:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 66 07 01 CC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E3 02 00 35 04 06 00 0F 50 0D BC DA 31 67 37 E9 2D 27 47 56 52 [19:23:55]CheckFolder [19:23:55]dirname=/storage/ofd_packets [19:23:55]CheckFolder done [19:23:55]ProducePacketName [19:23:55]name=ofd_packets/00189307 [19:23:55]NVStorageSaveData ofd_packets/00189307 [19:23:55]File name is /storage/ofd_packets/00189307 [19:23:55]Write 301 bytes [19:23:55]NVStorageSaveData done [19:23:55]OFDSenderStorePacket done [19:23:55]KKMCreateOFDPacket done [19:23:55]NVStorageSaveData kkm_last_timestamp [19:23:55]File name is /storage/kkm_last_timestamp [19:23:55]Write 4 bytes [19:23:55]NVStorageSaveData done [19:23:55]ExternCall_PrintAddStr [19:23:55]wPrintStart [19:23:55]Write to MH i2c: 01 00 00 9A 71 0B [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 07 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 07 00 9A 71 00 00 00 00 00 FF 0F 20 [19:23:55]RasterBufferAndPrint [19:23:55]line Счет N : (1)211372 [19:23:55]line ИНН: 02508201610067 [19:23:55]line Контрольно-Кассовый Чек [19:23:55]line ПРОДАЖА [19:23:55]line ТРК (МРК, ГНК) : 32 [19:23:55]line Товар: 2710124130 [19:23:55]line Аи-92-К-3 [19:23:55]line 7.480 * 66.90 [19:23:55]line = 500.41 [19:23:55]line НДС 12% НСП 1% [19:23:55]line > о реализуемом товаре [19:23:55]line ОКРУГЛЕНИЕ: -0.41 [19:23:55]line ИТОГО: 500.00 [19:23:55]line Внесено: 500.00 [19:23:55]line СДАЧА: 0.00 [19:23:55]line НСП 1% : 4.43 [19:23:55]line НДС 12% : 53.14 [19:23:55]line Наличными: 500.00 [19:23:55]line Безнал.: 0.00 [19:23:55]line Место: АЗС № 86 "Партнер Нефть" [19:23:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:23:55]line СНО: Общий режим [19:23:55]line Чек 380 24.10.2024 19:23 [19:23:55]line Смена: 463 ФФД: 1.0 [19:23:55]line ЗНМ: 0300000155 [19:23:55]line РНМ: 0000000000100030 [19:23:55]line Версия ККМ: 001 [19:23:55]line ФМ: 0000000000965340 [19:23:55]line ФД: 189307 [19:23:55]line ФПД: 16836502280753 [19:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189307&fm=16836502280753&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:55]written 0, free lines is 4095 [19:23:55]OFD Sender: Processing packet 189307 [packets to send 1062, broken 1061] [19:23:55]ProducePacketName [19:23:55]name=ofd_packets/00189307 [19:23:55]OFD Sender: To server: pG, [19:23:55]CommunicateWithHost lk.salyk.kg:30040 [19:23:55]ConnectInit lk.salyk.kg [19:23:55]Connected sock=10 [19:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 66 07 01 CC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CE 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E3 02 00 35 04 06 00 0F 50 0D BC DA 31 67 37 E9 2D 27 47 56 52 [19:23:55]Write to MH i2c: 01 00 00 C5 71 36 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 07 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 07 00 C5 71 00 00 00 00 00 59 0C A2 [19:23:55]RasterBufferAndPrint [19:23:55]line [19:23:55]line [19:23:55]line [19:23:55]line [19:23:55]line [19:23:55]written 0, free lines is 3164 [19:23:55]MH_Cut [19:23:55]Write to MH i2c: D1 01 00 CC 71 01 0F [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: D1 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: D1 01 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: D1 01 00 CC 71 00 0E [19:23:55]Write to MH i2c: 01 00 00 CD 71 3E [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 DA 47 00 0C 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 39 36 35 33 34 30 10 04 04 00 7B E3 02 00 F4 03 04 00 B5 48 1A 67 B6 04 01 00 00 D9 9D D2 C6 F5 03 C0 B9 [19:23:55]CommunicateWithHost err = 0 [19:23:55]CheckOFDResponse [19:23:55]1017 (14) - 77093643461234 [19:23:55]1041 (16) - 0000000000965340 [19:23:55]1040 (4) - 189307 [19:23:55]1012 (4) - 24.10.2024 13:16 [19:23:55]1206 (1) - 0 [19:23:55]OFD Sender: Remove packet 189307 [19:23:55]ProducePacketName [19:23:55]name=ofd_packets/00189307 [19:23:55]NVStorageDeleteData [19:23:56]OFD Sender: No OFD packet to send [19:23:56]*** Cut start [19:23:56]*** Partial cut [19:23:56]*** CUTSNS_PIN = 1 [19:23:56]*** CUTSNS_PIN = 0 [19:23:57]*** Brake cut motor [19:23:57]Read from MH i2c: 01 [19:23:57]MH_I2C_Read... [19:23:57]*** Stop cut motor [19:23:57]*** Cut end [19:23:57]Read from MH i2c: 01 07 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 CD 71 00 00 00 00 00 FF 0F 53 [19:23:57]process_action close_receipt done [19:23:57]requested_data is exist [19:23:57]produce_requested_data [19:23:57]requested_item fm.sn is exist - process it [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 11 00 00 [19:23:57]Write to MH i2c: E2 08 00 CE 71 80 11 00 00 00 00 00 00 B9 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 CE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [19:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:23:57]wFMCommunicate OK [19:23:57]requested_item fd.num is exist - process it [19:23:57]SAM_PROTO_GetFieldsCounters [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 13 00 00 [19:23:57]Write to MH i2c: E2 08 00 CF 71 80 13 00 00 00 00 00 00 BC [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 62 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 62 00 CF 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E3 02 00 0E 04 04 00 CF 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 6A [19:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E3 02 00 0E 04 04 00 CF 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 [19:23:57]wFMCommunicate OK [19:23:57]SAM_PROTO_GetFieldsCounters done [19:23:57]requested_item shift.num is exist - process it [19:23:57]requested_item shift.opened is exist - process it [19:23:57]req_shift_opened [19:23:57]FM_GetShiftState [19:23:57]SAM_PROTO_GetShiftState [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 13 01 00 [19:23:57]Write to MH i2c: E2 08 00 D0 71 80 13 01 00 00 00 00 00 BE [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0E 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0E 00 D0 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9C [19:23:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:57]wFMCommunicate OK [19:23:57]SAM_PROTO_GetShiftState done [19:23:57]FM_GetShiftState done [19:23:57]req_shift_opened done [19:23:57]requested_item shift.open_date is exist - process it [19:23:57]req_shift_open_date [19:23:57]req_shift_open_date done [19:23:57]produce_requested_data done [19:23:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189307,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:23:57]process_action_free close_receipt [19:23:57]json_value_free [19:23:57]json_value_free done [19:23:57]process_json_proto returns [19:23:57]Send response to host [19:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189307,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:23:57]free response buf [19:23:57]execute_script done [19:23:57]execute_script returns [19:23:57]free content buf [19:23:57]Sock 9.Close socket [19:23:57]Sock 9.Thread stoped [19:23:58]accept exits with 8 [19:23:58]New connection [19:23:58]New thread 3067071844 created [19:23:58]Thread 3067215204 joined [19:23:58]Waiting for new connection... [19:23:58] Sock 8.Parse request [19:23:58]Sock 8.Check first char [19:23:58]Sock 8.First char is OK [19:23:58]request: POST /json_proto HTTP/1.0 [19:23:58]Method: POST [19:23:58]URL: /json_proto [19:23:58]Method is POST - this is cgi request [19:23:58]url: /json_proto [19:23:58]query_string will be loaded in cgi processing [19:23:58]execute_cgi json_proto POST (null) [19:23:58]execute_cgi path=json_proto method=POST [19:23:58]POST find Content-Length [19:23:58]Host: 172.17.42.131:8080 [19:23:58]Content-Length: 677 [19:23:58]Content-Type: application/json [19:23:58] [19:23:58]POST finish read [19:23:58]Found Content-Length = 677 [19:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:58]execute_script... [19:23: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)211373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:23:58]POST & json_proto [19:23:58]process_json_proto [19:23:58]json parsed OK: [19:23:58]protocol is kg_v1.0 [19:23:58]action value=close_receipt [19:23:58]process_action close_receipt [19:23:58]cmd_close_receipt [19:23:58]MH_GetDate [19:23:58]Write to MH i2c: F0 00 00 D1 71 31 [19:23:58]Write i2c OK [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: F0 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: F0 09 00 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: F0 09 00 D1 71 00 D2 9E 1A 67 A0 18 CA 66 13 [19:23:58]GetLastDocTimeStamp 1729797838 [19:23:58]current date 1729797842 [19:23:58]FM_GetShiftState [19:23:58]SAM_PROTO_GetShiftState [19:23:58]wFMCommunicate request_size=4 [19:23:58]MH_SAM_APDU [19:23:58]CAPDU: 80 13 01 00 [19:23:58]Write to MH i2c: E2 08 00 D2 71 80 13 01 00 00 00 00 00 C0 [19:23:58]Write i2c OK [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: E2 [19:23:58]MH_I2C_Read... [19:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:58]Read from MH i2c: E2 0E 00 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: E2 0E 00 D2 71 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9E [19:23:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:23:58]wFMCommunicate OK [19:23:58]SAM_PROTO_GetShiftState done [19:23:58]FM_GetShiftState done [19:23:58]opened in 1729728961 [19:23:58]opened+sec_in_day 1729815361 [19:23:58]quantity*price = 50041 [19:23:58]sum+1 = 50042 [19:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 381 24.10.2024 19:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189308 ФПД: 229056834049886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189308&fm=229056834049886&tin=02508201610067®Number=0000000000100030&sum=50000 [19:23:59]StoreToDocumentArchive [19:23:59]shift 463 fd 189308 [19:23:59]save to /storage/0463/doc_00189308 [19:23:59]save last doc name /storage/0463/doc_00189308 to /storage/kkm_last_doc_name [19:23:59]save OK [19:23:59]Clear old archive folders... [19:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:59]tlvbuf is 01637760 [19:23:59]SAM_PROTO_ClearQueue [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 09 00 00 [19:23:59]Write to MH i2c: E2 08 00 DF 71 80 09 00 00 00 00 00 00 C2 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 DF 71 00 90 00 C4 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_ClearQueue done [19:23:59]KKMCreateOFDPacket [19:23:59]OFDProtocolAddRootSTLVToBuf [19:23:59]FM_MakeSignedData [19:23:59]FM_MakeSignedData [19:23:59]SAM_PROTO_SignData [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 0D 01 02 [19:23:59]Write to MH i2c: E2 08 00 E0 71 80 0D 01 02 00 00 00 00 CA [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 E0 71 00 90 00 C5 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]wFMCommunicate request_size=255 [19:23:59]MH_SAM_APDU [19: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E3 02 00 35 04 06 00 D0 [19:23:59]Write to MH i2c: E2 02 01 E1 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E3 02 00 35 04 06 00 D0 00 00 AD [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 03 00 E1 71 00 90 00 C6 [19:23:59]RAPDU: 90 00 [19:23:59]wFMCommunicate OK [19:23:59]wFMCommunicate request_size=10 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 0D 02 02 05 53 73 3A 17 5E [19:23:59]Write to MH i2c: E2 0D 00 E2 71 80 0D 02 02 05 00 53 73 3A 17 5E 00 00 4C [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:00]Read from MH i2c: E2 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 03 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 03 00 E2 71 00 90 00 C7 [19:24:00]RAPDU: 90 00 [19:24:00]wFMCommunicate OK [19:24:00]wFMCommunicate request_size=4 [19:24:00]MH_SAM_APDU [19:24:00]CAPDU: 80 0D 03 02 [19:24:00]Write to MH i2c: E2 08 00 E3 71 80 0D 03 02 00 00 00 00 CF [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:00]Read from MH i2c: E2 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 0B 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 0B 00 E3 71 00 E2 F8 F1 51 F4 0C 9F D9 90 00 64 [19:24:00]RAPDU: E2 F8 F1 51 F4 0C 9F D9 90 00 [19:24:00]wFMCommunicate OK [19:24:00]SAM_PROTO_SignData done [19:24:00]FM_MakeSignedData done [19:24:00]CreateOFDProtocolMessage [19:24:00]wFMCommunicate request_size=4 [19:24:00]MH_SAM_APDU [19:24:00]CAPDU: 80 11 00 00 [19:24:00]Write to MH i2c: E2 08 00 E4 71 80 11 00 00 00 00 00 00 CF [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:00]Read from MH i2c: E2 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 17 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: E2 17 00 E4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [19:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:24:00]wFMCommunicate OK [19:24:00]CreateOFDProtocolMessage done [19:24:00]OFDSenderStorePacket 189308 [19:24:00]StoreOFDPacket docnum=189308 [19:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 3E 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E3 02 00 35 04 06 00 D0 53 73 3A 17 5E E2 F8 F1 51 F4 0C 9F D9 [19:24:00]CheckFolder [19:24:00]dirname=/storage/ofd_packets [19:24:00]CheckFolder done [19:24:00]ProducePacketName [19:24:00]name=ofd_packets/00189308 [19:24:00]NVStorageSaveData ofd_packets/00189308 [19:24:00]File name is /storage/ofd_packets/00189308 [19:24:00]Write 301 bytes [19:24:00]NVStorageSaveData done [19:24:00]OFDSenderStorePacket done [19:24:00]KKMCreateOFDPacket done [19:24:00]NVStorageSaveData kkm_last_timestamp [19:24:00]File name is /storage/kkm_last_timestamp [19:24:00]Write 4 bytes [19:24:00]NVStorageSaveData done [19:24:00]ExternCall_PrintAddStr [19:24:00]wPrintStart [19:24:00]Write to MH i2c: 01 00 00 E5 71 56 [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 E5 71 00 00 00 00 00 FF 0F 6B [19:24:00]RasterBufferAndPrint [19:24:00]line Счет N : (1)211373 [19:24:00]line ИНН: 02508201610067 [19:24:00]line Контрольно-Кассовый Чек [19:24:00]line ПРОДАЖА [19:24:00]line ТРК (МРК, ГНК) : 22 [19:24:00]line Товар: 2710124130 [19:24:00]line Аи-92-К-3 [19:24:00]line 7.480 * 66.90 [19:24:00]line = 500.41 [19:24:00]line НДС 12% НСП 1% [19:24:00]line > о реализуемом товаре [19:24:00]line ОКРУГЛЕНИЕ: -0.41 [19:24:00]line ИТОГО: 500.00 [19:24:00]line Внесено: 500.00 [19:24:00]line СДАЧА: 0.00 [19:24:00]line НСП 1% : 4.43 [19:24:00]line НДС 12% : 53.14 [19:24:00]line Наличными: 500.00 [19:24:00]line Безнал.: 0.00 [19:24:00]line Место: АЗС № 86 "Партнер Нефть" [19:24:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:24:00]line СНО: Общий режим [19:24:00]line Чек 381 24.10.2024 19:24 [19:24:00]line Смена: 463 ФФД: 1.0 [19:24:00]line ЗНМ: 0300000155 [19:24:00]line РНМ: 0000000000100030 [19:24:00]line Версия ККМ: 001 [19:24:00]line ФМ: 0000000000965340 [19:24:00]line ФД: 189308 [19:24:00]line ФПД: 229056834049886 [19:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189308&fm=229056834049886&tin=02508201610067®Number=0000000000100030&sum=50000 [19:24:00]OFD Sender: Processing packet 189308 [packets to send 1062, broken 1061] [19:24:00]ProducePacketName [19:24:00]name=ofd_packets/00189308 [19:24:00]OFD Sender: To server: pG, [19:24:00]CommunicateWithHost lk.salyk.kg:30040 [19:24:00]ConnectInit lk.salyk.kg [19:24:00]written 0, free lines is 4095 [19:24:00]Connected sock=11 [19:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 3E 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 9E 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E3 02 00 35 04 06 00 D0 53 73 3A 17 5E E2 F8 F1 51 F4 0C 9F D9 [19:24:00]Write to MH i2c: 01 00 00 10 72 82 [19:24:00]Write i2c OK [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 [19:24:00]MH_I2C_Read... [19:24:00]Read from MH i2c: 01 07 00 10 72 00 00 00 00 00 61 0C F6 [19:24:00]RasterBufferAndPrint [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]line [19:24:00]written 0, free lines is 3176 [19:24:01]MH_Cut [19:24:01]Write to MH i2c: D1 01 00 17 72 01 5B [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: D1 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: D1 01 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: D1 01 00 17 72 00 5A [19:24:01]Write to MH i2c: 01 00 00 18 72 8A [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 C4 47 00 D6 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 39 36 35 33 34 30 10 04 04 00 7C E3 02 00 F4 03 04 00 BA 48 1A 67 B6 04 01 00 00 23 7E 4F 23 7A ED 6F 10 [19:24:01]CommunicateWithHost err = 0 [19:24:01]CheckOFDResponse [19:24:01]1017 (14) - 77093643461234 [19:24:01]1041 (16) - 0000000000965340 [19:24:01]1040 (4) - 189308 [19:24:01]1012 (4) - 24.10.2024 13:16 [19:24:01]1206 (1) - 0 [19:24:01]OFD Sender: Remove packet 189308 [19:24:01]ProducePacketName [19:24:01]name=ofd_packets/00189308 [19:24:01]NVStorageDeleteData [19:24:01]OFD Sender: No OFD packet to send [19:24:02]*** Cut start [19:24:02]*** Partial cut [19:24:02]*** CUTSNS_PIN = 1 [19:24:02]*** CUTSNS_PIN = 0 [19:24:02]*** Brake cut motor [19:24:02]Read from MH i2c: 01 [19:24:02]MH_I2C_Read... [19:24:02]*** Stop cut motor [19:24:02]*** Cut end [19:24:02]Read from MH i2c: 01 07 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: 01 07 00 18 72 00 00 00 00 00 FF 0F 9F [19:24:02]process_action close_receipt done [19:24:02]requested_data is exist [19:24:02]produce_requested_data [19:24:02]requested_item fm.sn is exist - process it [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 11 00 00 [19:24:02]Write to MH i2c: E2 08 00 19 72 80 11 00 00 00 00 00 00 05 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 17 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 17 00 19 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [19:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:24:02]wFMCommunicate OK [19:24:02]requested_item fd.num is exist - process it [19:24:02]SAM_PROTO_GetFieldsCounters [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 13 00 00 [19:24:02]Write to MH i2c: E2 08 00 1A 72 80 13 00 00 00 00 00 00 08 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 62 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 62 00 1A 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E3 02 00 0E 04 04 00 CF 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 BA [19:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E3 02 00 0E 04 04 00 CF 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 [19:24:03]wFMCommunicate OK [19:24:03]SAM_PROTO_GetFieldsCounters done [19:24:03]requested_item shift.num is exist - process it [19:24:03]requested_item shift.opened is exist - process it [19:24:03]req_shift_opened [19:24:03]FM_GetShiftState [19:24:03]SAM_PROTO_GetShiftState [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 13 01 00 [19:24:03]Write to MH i2c: E2 08 00 1B 72 80 13 01 00 00 00 00 00 0A [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 0E 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 0E 00 1B 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E8 [19:24:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:24:03]wFMCommunicate OK [19:24:03]SAM_PROTO_GetShiftState done [19:24:03]FM_GetShiftState done [19:24:03]req_shift_opened done [19:24:03]requested_item shift.open_date is exist - process it [19:24:03]req_shift_open_date [19:24:03]req_shift_open_date done [19:24:03]produce_requested_data done [19:24:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189308,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:24:03]process_action_free close_receipt [19:24:03]json_value_free [19:24:03]json_value_free done [19:24:03]process_json_proto returns [19:24:03]Send response to host [19:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189308,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:24:03]free response buf [19:24:03]execute_script done [19:24:03]execute_script returns [19:24:03]free content buf [19:24:03]Sock 8.Close socket [19:24:03]Sock 8.Thread stoped [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:47]accept exits with 9 [19:26:47]New connection [19:26:47]New thread 3067215204 created [19:26:47]Thread 3067071844 joined [19:26:47]Waiting for new connection... [19:26:47] Sock 9.Parse request [19:26:47]Sock 9.Check first char [19:26:47]Sock 9.First char is OK [19:26:47]request: POST /json_proto HTTP/1.0 [19:26:47]Method: POST [19:26:47]URL: /json_proto [19:26:47]Method is POST - this is cgi request [19:26:47]url: /json_proto [19:26:47]query_string will be loaded in cgi processing [19:26:47]execute_cgi json_proto POST (null) [19:26:47]execute_cgi path=json_proto method=POST [19:26:47]POST find Content-Length [19:26:47]Host: 172.17.42.131:8080 [19:26:47]Content-Length: 800 [19:26:47]Content-Type: application/json [19:26:47] [19:26:47]POST finish read [19:26:47]Found Content-Length = 800 [19:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1646599", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:47]execute_script... [19:26: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)211375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1646599", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:47]POST & json_proto [19:26:47]process_json_proto [19:26:47]json parsed OK: [19:26:47]protocol is kg_v1.0 [19:26:47]action value=close_receipt [19:26:47]process_action close_receipt [19:26:47]cmd_close_receipt [19:26:47]MH_GetDate [19:26:47]Write to MH i2c: F0 00 00 1C 72 7D [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 09 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: F0 09 00 1C 72 00 7C 9F 1A 67 A0 18 CA 66 0A [19:26:47]GetLastDocTimeStamp 1729797842 [19:26:47]current date 1729798012 [19:26:47]FM_GetShiftState [19:26:47]SAM_PROTO_GetShiftState [19:26:47]wFMCommunicate request_size=4 [19:26:47]MH_SAM_APDU [19:26:47]CAPDU: 80 13 01 00 [19:26:47]Write to MH i2c: E2 08 00 1D 72 80 13 01 00 00 00 00 00 0C [19:26:47]Write i2c OK [19:26:47]MH_I2C_Read... [19:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:47]Read from MH i2c: E2 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: E2 0E 00 [19:26:47]MH_I2C_Read... [19:26:47]Read from MH i2c: E2 0E 00 1D 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EA [19:26:47]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:26:47]wFMCommunicate OK [19:26:47]SAM_PROTO_GetShiftState done [19:26:47]FM_GetShiftState done [19:26:47]opened in 1729728961 [19:26:47]opened+sec_in_day 1729815361 [19:26:47]quantity*price = 0 [19:26:47]sum+1 = 1 [19:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 382 24.10.2024 19:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 1646599 ФМ: 0000000000965340 ФД: 189309 ФПД: 49940647085368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189309&fm=49940647085368&tin=02508201610067®Number=0000000000100030&sum=0 [19:26:48]StoreToDocumentArchive [19:26:48]shift 463 fd 189309 [19:26:48]save to /storage/0463/doc_00189309 [19:26:48]save last doc name /storage/0463/doc_00189309 to /storage/kkm_last_doc_name [19:26:48]save OK [19:26:48]Clear old archive folders... [19:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:48]tlvbuf is 016D1E80 [19:26:48]SAM_PROTO_ClearQueue [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 09 00 00 [19:26:48]Write to MH i2c: E2 08 00 2A 72 80 09 00 00 00 00 00 00 0E [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 2A 72 00 90 00 10 [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]SAM_PROTO_ClearQueue done [19:26:48]KKMCreateOFDPacket [19:26:48]OFDProtocolAddRootSTLVToBuf [19:26:48]FM_MakeSignedData [19:26:48]FM_MakeSignedData [19:26:48]SAM_PROTO_SignData [19:26:48]wFMCommunicate request_size=4 [19:26:48]MH_SAM_APDU [19:26:48]CAPDU: 80 0D 01 02 [19:26:48]Write to MH i2c: E2 08 00 2B 72 80 0D 01 02 00 00 00 00 16 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:48]Read from MH i2c: E2 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 [19:26:48]MH_I2C_Read... [19:26:48]Read from MH i2c: E2 03 00 2B 72 00 90 00 11 [19:26:48]RAPDU: 90 00 [19:26:48]wFMCommunicate OK [19:26:48]wFMCommunicate request_size=255 [19:26:48]MH_SAM_APDU [19:26: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 33 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 7E 01 00 00 F4 03 04 00 7C 9F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E3 02 00 35 04 06 00 2D [19:26:48]Write to MH i2c: E2 02 01 2C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 7C 9F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E3 02 00 35 04 06 00 2D 00 00 B9 [19:26:48]Write i2c OK [19:26:48]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 [19:26:49]MH_I2C_Read... [19:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:49]Read from MH i2c: E2 03 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 03 00 2C 72 00 90 00 12 [19:26:49]RAPDU: 90 00 [19:26:49]wFMCommunicate OK [19:26:49]wFMCommunicate request_size=10 [19:26:49]MH_SAM_APDU [19:26:49]CAPDU: 80 0D 02 02 05 6B B6 87 85 38 [19:26:49]Write to MH i2c: E2 0D 00 2D 72 80 0D 02 02 05 00 6B B6 87 85 38 00 00 88 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:49]Read from MH i2c: E2 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 03 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 03 00 2D 72 00 90 00 13 [19:26:49]RAPDU: 90 00 [19:26:49]wFMCommunicate OK [19:26:49]wFMCommunicate request_size=4 [19:26:49]MH_SAM_APDU [19:26:49]CAPDU: 80 0D 03 02 [19:26:49]Write to MH i2c: E2 08 00 2E 72 80 0D 03 02 00 00 00 00 1B [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:49]Read from MH i2c: E2 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 0B 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 0B 00 2E 72 00 06 27 35 A1 10 06 08 10 90 00 4D [19:26:49]RAPDU: 06 27 35 A1 10 06 08 10 90 00 [19:26:49]wFMCommunicate OK [19:26:49]SAM_PROTO_SignData done [19:26:49]FM_MakeSignedData done [19:26:49]CreateOFDProtocolMessage [19:26:49]wFMCommunicate request_size=4 [19:26:49]MH_SAM_APDU [19:26:49]CAPDU: 80 11 00 00 [19:26:49]Write to MH i2c: E2 08 00 2F 72 80 11 00 00 00 00 00 00 1B [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:49]Read from MH i2c: E2 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 17 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: E2 17 00 2F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [19:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:49]wFMCommunicate OK [19:26:49]CreateOFDProtocolMessage done [19:26:49]OFDSenderStorePacket 189309 [19:26:49]StoreOFDPacket docnum=189309 [19:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF F3 07 01 64 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 7C 9F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E3 02 00 35 04 06 00 2D 6B B6 87 85 38 06 27 35 A1 10 06 08 10 [19:26:49]CheckFolder [19:26:49]dirname=/storage/ofd_packets [19:26:49]CheckFolder done [19:26:49]ProducePacketName [19:26:49]name=ofd_packets/00189309 [19:26:49]NVStorageSaveData ofd_packets/00189309 [19:26:49]File name is /storage/ofd_packets/00189309 [19:26:49]Write 301 bytes [19:26:49]NVStorageSaveData done [19:26:49]OFDSenderStorePacket done [19:26:49]KKMCreateOFDPacket done [19:26:49]NVStorageSaveData kkm_last_timestamp [19:26:49]File name is /storage/kkm_last_timestamp [19:26:49]Write 4 bytes [19:26:49]NVStorageSaveData done [19:26:49]ExternCall_PrintAddStr [19:26:49]wPrintStart [19:26:49]Write to MH i2c: 01 00 00 30 72 A2 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 30 72 00 00 00 00 00 FF 0F B7 [19:26:49]RasterBufferAndPrint [19:26:49]line Счет N : (1)211375 [19:26:49]line ИНН: 02508201610067 [19:26:49]line Контрольно-Кассовый Чек [19:26:49]line ПРОДАЖА [19:26:49]line ТРК (МРК, ГНК) : 13 [19:26:49]line Товар: 2710124500 [19:26:49]line Аи-95-К-3 [19:26:49]line 10.000 * 0.00 [19:26:49]line = 0.00 [19:26:49]line НДС 12% НСП 1% [19:26:49]line > о реализуемом товаре [19:26:49]line ИТОГО: 0.00 [19:26:49]line НСП 1% : 0.00 [19:26:49]line НДС 12% : 0.00 [19:26:49]line Наличными: 0.00 [19:26:49]line Безнал.: 0.00 [19:26:49]line Место: АЗС № 86 "Партнер Нефть" [19:26:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:26:49]line СНО: Общий режим [19:26:49]line Чек 382 24.10.2024 19:26 [19:26:49]line Смена: 463 ФФД: 1.0 [19:26:49]line ЗНМ: 0300000155 [19:26:49]line РНМ: 0000000000100030 [19:26:49]line Версия ККМ: 001 [19:26:49]line Талоны: Топливные Талоны [19:26:49]line 1646599 [19:26:49]line ФМ: 0000000000965340 [19:26:49]line ФД: 189309 [19:26:49]line ФПД: 49940647085368 [19:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189309&fm=49940647085368&tin=02508201610067®Number=0000000000100030&sum=0 [19:26:49]written 0, free lines is 4095 [19:26:49]OFD Sender: Processing packet 189309 [packets to send 1062, broken 1061] [19:26:49]ProducePacketName [19:26:49]name=ofd_packets/00189309 [19:26:49]OFD Sender: To server: pG, [19:26:49]CommunicateWithHost lk.salyk.kg:30040 [19:26:49]ConnectInit lk.salyk.kg [19:26:49]Connected sock=10 [19:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF F3 07 01 64 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 7C 9F 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E3 02 00 35 04 06 00 2D 6B B6 87 85 38 06 27 35 A1 10 06 08 10 [19:26:49]Write to MH i2c: 01 00 00 5A 72 CC [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: 01 07 00 5A 72 00 00 00 00 00 6F 0C 4E [19:26:49]RasterBufferAndPrint [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]line [19:26:49]written 0, free lines is 3187 [19:26:49]MH_Cut [19:26:49]Write to MH i2c: D1 01 00 61 72 01 A5 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 01 00 [19:26:49]MH_I2C_Read... [19:26:49]Read from MH i2c: D1 01 00 61 72 00 A4 [19:26:49]Write to MH i2c: 01 00 00 62 72 D4 [19:26:49]Write i2c OK [19:26:49]MH_I2C_Read... [19:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF 7F 47 00 36 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E3 02 00 F4 03 04 00 63 49 1A 67 B6 04 01 00 00 10 E8 DD 5F 5A F9 E4 BD [19:26:50]CommunicateWithHost err = 0 [19:26:50]CheckOFDResponse [19:26:50]1017 (14) - 77093643461234 [19:26:50]1041 (16) - 0000000000965340 [19:26:50]1040 (4) - 189309 [19:26:50]1012 (4) - 24.10.2024 13:19 [19:26:50]1206 (1) - 0 [19:26:50]OFD Sender: Remove packet 189309 [19:26:50]ProducePacketName [19:26:50]name=ofd_packets/00189309 [19:26:50]NVStorageDeleteData [19:26:50]OFD Sender: No OFD packet to send [19:26:51]*** Cut start [19:26:51]*** Partial cut [19:26:51]*** CUTSNS_PIN = 1 [19:26:51]*** CUTSNS_PIN = 0 [19:26:51]*** Brake cut motor [19:26:51]Read from MH i2c: 01 [19:26:51]MH_I2C_Read... [19:26:51]*** Stop cut motor [19:26:51]*** Cut end [19:26:51]Read from MH i2c: 01 07 00 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: 01 07 00 62 72 00 00 00 00 00 FF 0F E9 [19:26:51]process_action close_receipt done [19:26:51]requested_data is exist [19:26:51]produce_requested_data [19:26:51]requested_item fm.sn is exist - process it [19:26:51]wFMCommunicate request_size=4 [19:26:51]MH_SAM_APDU [19:26:51]CAPDU: 80 11 00 00 [19:26:51]Write to MH i2c: E2 08 00 63 72 80 11 00 00 00 00 00 00 4F [19:26:51]Write i2c OK [19:26:51]MH_I2C_Read... [19:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:51]Read from MH i2c: E2 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 17 00 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 17 00 63 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [19:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:51]wFMCommunicate OK [19:26:51]requested_item fd.num is exist - process it [19:26:51]SAM_PROTO_GetFieldsCounters [19:26:51]wFMCommunicate request_size=4 [19:26:51]MH_SAM_APDU [19:26:51]CAPDU: 80 13 00 00 [19:26:51]Write to MH i2c: E2 08 00 64 72 80 13 00 00 00 00 00 00 52 [19:26:51]Write i2c OK [19:26:51]MH_I2C_Read... [19:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:51]Read from MH i2c: E2 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 62 00 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 62 00 64 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E3 02 00 0E 04 04 00 CF 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 08 [19:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E3 02 00 0E 04 04 00 CF 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 [19:26:51]wFMCommunicate OK [19:26:51]SAM_PROTO_GetFieldsCounters done [19:26:51]requested_item shift.num is exist - process it [19:26:51]requested_item shift.opened is exist - process it [19:26:51]req_shift_opened [19:26:51]FM_GetShiftState [19:26:51]SAM_PROTO_GetShiftState [19:26:51]wFMCommunicate request_size=4 [19:26:51]MH_SAM_APDU [19:26:51]CAPDU: 80 13 01 00 [19:26:51]Write to MH i2c: E2 08 00 65 72 80 13 01 00 00 00 00 00 54 [19:26:51]Write i2c OK [19:26:51]MH_I2C_Read... [19:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:51]Read from MH i2c: E2 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 0E 00 [19:26:51]MH_I2C_Read... [19:26:51]Read from MH i2c: E2 0E 00 65 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 32 [19:26:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:26:51]wFMCommunicate OK [19:26:51]SAM_PROTO_GetShiftState done [19:26:51]FM_GetShiftState done [19:26:51]req_shift_opened done [19:26:51]requested_item shift.open_date is exist - process it [19:26:51]req_shift_open_date [19:26:51]req_shift_open_date done [19:26:51]produce_requested_data done [19:26:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189309,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:26:51]process_action_free close_receipt [19:26:51]json_value_free [19:26:51]json_value_free done [19:26:51]process_json_proto returns [19:26:51]Send response to host [19:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189309,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:26:51]free response buf [19:26:51]execute_script done [19:26:51]execute_script returns [19:26:51]free content buf [19:26:51]Sock 9.Close socket [19:26:51]Sock 9.Thread stoped [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:50]accept exits with 8 [19:29:50]New connection [19:29:50]New thread 3067071844 created [19:29:50]Thread 3067215204 joined [19:29:50]Waiting for new connection... [19:29:50] Sock 8.Parse request [19:29:50]Sock 8.Check first char [19:29:50]Sock 8.First char is OK [19:29:50]request: POST /json_proto HTTP/1.0 [19:29:50]Method: POST [19:29:50]URL: /json_proto [19:29:50]Method is POST - this is cgi request [19:29:50]url: /json_proto [19:29:50]query_string will be loaded in cgi processing [19:29:50]execute_cgi json_proto POST (null) [19:29:50]execute_cgi path=json_proto method=POST [19:29:50]POST find Content-Length [19:29:50]Host: 172.17.42.131:8080 [19:29:50]Content-Length: 683 [19:29:50]Content-Type: application/json [19:29:50] [19:29:50]POST finish read [19:29:50]Found Content-Length = 683 [19:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:50]execute_script... [19:29: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)211376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:50]POST & json_proto [19:29:50]process_json_proto [19:29:50]json parsed OK: [19:29:50]protocol is kg_v1.0 [19:29:50]action value=close_receipt [19:29:50]process_action close_receipt [19:29:50]cmd_close_receipt [19:29:50]MH_GetDate [19:29:50]Write to MH i2c: F0 00 00 66 72 C7 [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: F0 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: F0 09 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: F0 09 00 66 72 00 32 A0 1A 67 A0 18 CA 66 0B [19:29:50]GetLastDocTimeStamp 1729798012 [19:29:50]current date 1729798194 [19:29:50]FM_GetShiftState [19:29:50]SAM_PROTO_GetShiftState [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 13 01 00 [19:29:50]Write to MH i2c: E2 08 00 67 72 80 13 01 00 00 00 00 00 56 [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 67 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 34 [19:29:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:29:50]wFMCommunicate OK [19:29:50]SAM_PROTO_GetShiftState done [19:29:50]FM_GetShiftState done [19:29:50]opened in 1729728961 [19:29:50]opened+sec_in_day 1729815361 [19:29:50]quantity*price = 50025 [19:29:50]sum+1 = 50027 [19:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 383 24.10.2024 19:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189310 ФПД: 41704481781901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192954&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189310&fm=41704481781901&tin=02508201610067®Number=0000000000100030&sum=50000 [19:29:51]StoreToDocumentArchive [19:29:51]shift 463 fd 189310 [19:29:51]save to /storage/0463/doc_00189310 [19:29:51]save last doc name /storage/0463/doc_00189310 to /storage/kkm_last_doc_name [19:29:51]save OK [19:29:51]Clear old archive folders... [19:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:29:51]tlvbuf is 016B7950 [19:29:51]SAM_PROTO_ClearQueue [19:29:51]wFMCommunicate request_size=4 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 09 00 00 [19:29:51]Write to MH i2c: E2 08 00 74 72 80 09 00 00 00 00 00 00 58 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 74 72 00 90 00 5A [19:29:51]RAPDU: 90 00 [19:29:51]wFMCommunicate OK [19:29:51]SAM_PROTO_ClearQueue done [19:29:51]KKMCreateOFDPacket [19:29:51]OFDProtocolAddRootSTLVToBuf [19:29:51]FM_MakeSignedData [19:29:51]FM_MakeSignedData [19:29:51]SAM_PROTO_SignData [19:29:51]wFMCommunicate request_size=4 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 0D 01 02 [19:29:51]Write to MH i2c: E2 08 00 75 72 80 0D 01 02 00 00 00 00 60 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 75 72 00 90 00 5B [19:29:51]RAPDU: 90 00 [19:29:51]wFMCommunicate OK [19:29:51]wFMCommunicate request_size=255 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 32 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E3 02 [19:29:51]Write to MH i2c: E2 02 01 76 72 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 32 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E3 02 00 00 73 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]OFD Sender: No OFD packet to send [19:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 76 72 00 90 00 5C [19:29:51]RAPDU: 90 00 [19:29:51]wFMCommunicate OK [19:29:51]wFMCommunicate request_size=16 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 EE 14 D2 78 8D [19:29:51]Write to MH i2c: E2 13 00 77 72 80 0D 02 02 0B 00 00 35 04 06 00 25 EE 14 D2 78 8D 00 00 B6 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 03 00 77 72 00 90 00 5D [19:29:51]RAPDU: 90 00 [19:29:51]wFMCommunicate OK [19:29:51]wFMCommunicate request_size=4 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 0D 03 02 [19:29:51]Write to MH i2c: E2 08 00 78 72 80 0D 03 02 00 00 00 00 65 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 0B 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 0B 00 78 72 00 1C 1C 2F 11 D1 73 DF DB 90 00 DC [19:29:51]RAPDU: 1C 1C 2F 11 D1 73 DF DB 90 00 [19:29:51]wFMCommunicate OK [19:29:51]SAM_PROTO_SignData done [19:29:51]FM_MakeSignedData done [19:29:51]CreateOFDProtocolMessage [19:29:51]wFMCommunicate request_size=4 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 11 00 00 [19:29:51]Write to MH i2c: E2 08 00 79 72 80 11 00 00 00 00 00 00 65 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 17 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 17 00 79 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [19:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:29:51]wFMCommunicate OK [19:29:51]CreateOFDProtocolMessage done [19:29:51]OFDSenderStorePacket 189310 [19:29:51]StoreOFDPacket docnum=189310 [19:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 44 FA 0D 01 E6 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 32 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E3 02 00 35 04 06 00 25 EE 14 D2 78 8D 1C 1C 2F 11 D1 73 DF DB [19:29:51]CheckFolder [19:29:51]dirname=/storage/ofd_packets [19:29:51]CheckFolder done [19:29:51]ProducePacketName [19:29:51]name=ofd_packets/00189310 [19:29:51]NVStorageSaveData ofd_packets/00189310 [19:29:51]File name is /storage/ofd_packets/00189310 [19:29:51]Write 307 bytes [19:29:51]NVStorageSaveData done [19:29:51]OFDSenderStorePacket done [19:29:51]KKMCreateOFDPacket done [19:29:51]NVStorageSaveData kkm_last_timestamp [19:29:51]File name is /storage/kkm_last_timestamp [19:29:51]Write 4 bytes [19:29:51]NVStorageSaveData done [19:29:51]ExternCall_PrintAddStr [19:29:51]wPrintStart [19:29:51]Write to MH i2c: 01 00 00 7A 72 EC [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: 01 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: 01 07 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: 01 07 00 7A 72 00 00 00 00 00 FF 0F 01 [19:29:51]RasterBufferAndPrint [19:29:51]line Счет N : (1)211376 [19:29:51]line ИНН: 02508201610067 [19:29:51]line Контрольно-Кассовый Чек [19:29:51]line ПРОДАЖА [19:29:51]line ТРК (МРК, ГНК) : 11 [19:29:51]line Товар: 2710194210 [19:29:51]line D-ENERGY ДТ-К-5 [19:29:51]line 6.480 * 77.20 [19:29:51]line = 500.26 [19:29:51]line НДС 12% НСП 1% [19:29:51]line > о реализуемом товаре [19:29:51]line ОКРУГЛЕНИЕ: -0.26 [19:29:51]line ИТОГО: 500.00 [19:29:51]line Внесено: 500.00 [19:29:51]line СДАЧА: 0.00 [19:29:51]line НСП 1% : 4.43 [19:29:51]line НДС 12% : 53.12 [19:29:51]line Наличными: 500.00 [19:29:51]line Безнал.: 0.00 [19:29:51]line Место: АЗС № 86 "Партнер Нефть" [19:29:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:29:51]line СНО: Общий режим [19:29:51]line Чек 383 24.10.2024 19:29 [19:29:51]line Смена: 463 ФФД: 1.0 [19:29:51]line ЗНМ: 0300000155 [19:29:51]line РНМ: 0000000000100030 [19:29:51]line Версия ККМ: 001 [19:29:51]line ФМ: 0000000000965340 [19:29:51]line ФД: 189310 [19:29:51]line ФПД: 41704481781901 [19:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192954&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189310&fm=41704481781901&tin=02508201610067®Number=0000000000100030&sum=50000 [19:29:51]written 0, free lines is 4095 [19:29:51]OFD Sender: Processing packet 189310 [packets to send 1062, broken 1061] [19:29:51]ProducePacketName [19:29:51]name=ofd_packets/00189310 [19:29:51]OFD Sender: To server: pG, [19:29:51]CommunicateWithHost lk.salyk.kg:30040 [19:29:51]ConnectInit lk.salyk.kg [19:29:52]Connected sock=10 [19:29:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 44 FA 0D 01 E6 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 32 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E3 02 00 35 04 06 00 25 EE 14 D2 78 8D 1C 1C 2F 11 D1 73 DF DB [19:29:52]Write to MH i2c: 01 00 00 A5 72 17 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 07 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 07 00 A5 72 00 00 00 00 00 51 0C 7B [19:29:52]RasterBufferAndPrint [19:29:52]line [19:29:52]line [19:29:52]line [19:29:52]line [19:29:52]line [19:29:52]written 0, free lines is 3158 [19:29:52]MH_Cut [19:29:52]Write to MH i2c: D1 01 00 AC 72 01 F0 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: D1 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: D1 01 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: D1 01 00 AC 72 00 EF [19:29:52]Write to MH i2c: 01 00 00 AD 72 1F [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 82 47 00 18 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 39 36 35 33 34 30 10 04 04 00 7E E3 02 00 F4 03 04 00 1A 4A 1A 67 B6 04 01 00 00 85 C5 D9 01 5E EE 86 7D [19:29:52]CommunicateWithHost err = 0 [19:29:52]CheckOFDResponse [19:29:52]1017 (14) - 77093643461234 [19:29:52]1041 (16) - 0000000000965340 [19:29:52]1040 (4) - 189310 [19:29:52]1012 (4) - 24.10.2024 13:22 [19:29:52]1206 (1) - 0 [19:29:52]OFD Sender: Remove packet 189310 [19:29:52]ProducePacketName [19:29:52]name=ofd_packets/00189310 [19:29:52]NVStorageDeleteData [19:29:53]OFD Sender: No OFD packet to send [19:29:53]*** Cut start [19:29:53]*** Partial cut [19:29:53]*** CUTSNS_PIN = 1 [19:29:53]*** CUTSNS_PIN = 0 [19:29:53]*** Brake cut motor [19:29:54]Read from MH i2c: 01 [19:29:54]MH_I2C_Read... [19:29:54]*** Stop cut motor [19:29:54]*** Cut end [19:29:54]Read from MH i2c: 01 07 00 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: 01 07 00 AD 72 00 00 00 00 00 FF 0F 34 [19:29:54]process_action close_receipt done [19:29:54]requested_data is exist [19:29:54]produce_requested_data [19:29:54]requested_item fm.sn is exist - process it [19:29:54]wFMCommunicate request_size=4 [19:29:54]MH_SAM_APDU [19:29:54]CAPDU: 80 11 00 00 [19:29:54]Write to MH i2c: E2 08 00 AE 72 80 11 00 00 00 00 00 00 9A [19:29:54]Write i2c OK [19:29:54]MH_I2C_Read... [19:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:54]Read from MH i2c: E2 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 17 00 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 17 00 AE 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [19:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:29:54]wFMCommunicate OK [19:29:54]requested_item fd.num is exist - process it [19:29:54]SAM_PROTO_GetFieldsCounters [19:29:54]wFMCommunicate request_size=4 [19:29:54]MH_SAM_APDU [19:29:54]CAPDU: 80 13 00 00 [19:29:54]Write to MH i2c: E2 08 00 AF 72 80 13 00 00 00 00 00 00 9D [19:29:54]Write i2c OK [19:29:54]MH_I2C_Read... [19:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:54]Read from MH i2c: E2 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 62 00 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 62 00 AF 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E3 02 00 0E 04 04 00 CF 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 57 [19:29:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E3 02 00 0E 04 04 00 CF 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 [19:29:54]wFMCommunicate OK [19:29:54]SAM_PROTO_GetFieldsCounters done [19:29:54]requested_item shift.num is exist - process it [19:29:54]requested_item shift.opened is exist - process it [19:29:54]req_shift_opened [19:29:54]FM_GetShiftState [19:29:54]SAM_PROTO_GetShiftState [19:29:54]wFMCommunicate request_size=4 [19:29:54]MH_SAM_APDU [19:29:54]CAPDU: 80 13 01 00 [19:29:54]Write to MH i2c: E2 08 00 B0 72 80 13 01 00 00 00 00 00 9F [19:29:54]Write i2c OK [19:29:54]MH_I2C_Read... [19:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:54]Read from MH i2c: E2 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 0E 00 [19:29:54]MH_I2C_Read... [19:29:54]Read from MH i2c: E2 0E 00 B0 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7D [19:29:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:29:54]wFMCommunicate OK [19:29:54]SAM_PROTO_GetShiftState done [19:29:54]FM_GetShiftState done [19:29:54]req_shift_opened done [19:29:54]requested_item shift.open_date is exist - process it [19:29:54]req_shift_open_date [19:29:54]req_shift_open_date done [19:29:54]produce_requested_data done [19:29:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189310,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:29:54]process_action_free close_receipt [19:29:54]json_value_free [19:29:54]json_value_free done [19:29:54]process_json_proto returns [19:29:54]Send response to host [19:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189310,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:29:54]free response buf [19:29:54]execute_script done [19:29:54]execute_script returns [19:29:54]free content buf [19:29:54]Sock 8.Close socket [19:29:54]Sock 8.Thread stoped [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]accept exits with 9 [19:32:18]New connection [19:32:18]New thread 3067215204 created [19:32:18]Thread 3067071844 joined [19:32:18]Waiting for new connection... [19:32:18] Sock 9.Parse request [19:32:18]Sock 9.Check first char [19:32:18]Sock 9.First char is OK [19:32:18]request: POST /json_proto HTTP/1.0 [19:32:18]Method: POST [19:32:18]URL: /json_proto [19:32:18]Method is POST - this is cgi request [19:32:18]url: /json_proto [19:32:18]query_string will be loaded in cgi processing [19:32:18]execute_cgi json_proto POST (null) [19:32:18]execute_cgi path=json_proto method=POST [19:32:18]POST find Content-Length [19:32:18]Host: 172.17.42.131:8080 [19:32:18]Content-Length: 683 [19:32:18]Content-Type: application/json [19:32:18] [19:32:18]POST finish read [19:32:18]Found Content-Length = 683 [19:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:32:18]execute_script... [19:32: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)211377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:32:18]POST & json_proto [19:32:18]process_json_proto [19:32:18]json parsed OK: [19:32:18]protocol is kg_v1.0 [19:32:18]action value=close_receipt [19:32:18]process_action close_receipt [19:32:18]cmd_close_receipt [19:32:18]MH_GetDate [19:32:18]Write to MH i2c: F0 00 00 B1 72 12 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 09 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 09 00 B1 72 00 C7 A0 1A 67 A0 18 CA 66 EB [19:32:18]GetLastDocTimeStamp 1729798194 [19:32:18]current date 1729798343 [19:32:18]FM_GetShiftState [19:32:18]SAM_PROTO_GetShiftState [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 13 01 00 [19:32:18]Write to MH i2c: E2 08 00 B2 72 80 13 01 00 00 00 00 00 A1 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0E 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0E 00 B2 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7F [19:32:18]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_GetShiftState done [19:32:18]FM_GetShiftState done [19:32:18]opened in 1729728961 [19:32:18]opened+sec_in_day 1729815361 [19:32:18]quantity*price = 50025 [19:32:18]sum+1 = 50027 [19:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 384 24.10.2024 19:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189311 ФПД: 217709934294374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189311&fm=217709934294374&tin=02508201610067®Number=0000000000100030&sum=50000 [19:32:19]StoreToDocumentArchive [19:32:19]shift 463 fd 189311 [19:32:19]save to /storage/0463/doc_00189311 [19:32:19]save last doc name /storage/0463/doc_00189311 to /storage/kkm_last_doc_name [19:32:19]save OK [19:32:19]Clear old archive folders... [19:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:32:19]tlvbuf is 0168E620 [19:32:19]SAM_PROTO_ClearQueue [19:32:19]wFMCommunicate request_size=4 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 09 00 00 [19:32:19]Write to MH i2c: E2 08 00 BF 72 80 09 00 00 00 00 00 00 A3 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:19]Read from MH i2c: E2 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 BF 72 00 90 00 A5 [19:32:19]RAPDU: 90 00 [19:32:19]wFMCommunicate OK [19:32:19]SAM_PROTO_ClearQueue done [19:32:19]KKMCreateOFDPacket [19:32:19]OFDProtocolAddRootSTLVToBuf [19:32:19]FM_MakeSignedData [19:32:19]FM_MakeSignedData [19:32:19]SAM_PROTO_SignData [19:32:19]wFMCommunicate request_size=4 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 0D 01 02 [19:32:19]Write to MH i2c: E2 08 00 C0 72 80 0D 01 02 00 00 00 00 AB [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:19]Read from MH i2c: E2 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 C0 72 00 90 00 A6 [19:32:19]RAPDU: 90 00 [19:32:19]wFMCommunicate OK [19:32:19]wFMCommunicate request_size=255 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 C7 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E3 02 [19:32:19]Write to MH i2c: E2 02 01 C1 72 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 C7 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E3 02 00 00 55 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 C1 72 00 90 00 A7 [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=16 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C6 01 8B 4C 35 66 [19:32:20]Write to MH i2c: E2 13 00 C2 72 80 0D 02 02 0B 00 00 35 04 06 00 C6 01 8B 4C 35 66 00 00 3C [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 C2 72 00 90 00 A8 [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 03 02 [19:32:20]Write to MH i2c: E2 08 00 C3 72 80 0D 03 02 00 00 00 00 B0 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 C3 72 00 57 A2 53 70 AA AE C8 7A 90 00 07 [19:32:20]RAPDU: 57 A2 53 70 AA AE C8 7A 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_SignData done [19:32:20]FM_MakeSignedData done [19:32:20]CreateOFDProtocolMessage [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 11 00 00 [19:32:20]Write to MH i2c: E2 08 00 C4 72 80 11 00 00 00 00 00 00 B0 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 C4 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [19:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:32:20]wFMCommunicate OK [19:32:20]CreateOFDProtocolMessage done [19:32:20]OFDSenderStorePacket 189311 [19:32:20]StoreOFDPacket docnum=189311 [19:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 15 64 0D 01 94 DE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 C7 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E3 02 00 35 04 06 00 C6 01 8B 4C 35 66 57 A2 53 70 AA AE C8 7A [19:32:20]CheckFolder [19:32:20]dirname=/storage/ofd_packets [19:32:20]CheckFolder done [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00189311 [19:32:20]NVStorageSaveData ofd_packets/00189311 [19:32:20]File name is /storage/ofd_packets/00189311 [19:32:20]Write 307 bytes [19:32:20]NVStorageSaveData done [19:32:20]OFDSenderStorePacket done [19:32:20]KKMCreateOFDPacket done [19:32:20]NVStorageSaveData kkm_last_timestamp [19:32:20]File name is /storage/kkm_last_timestamp [19:32:20]Write 4 bytes [19:32:20]NVStorageSaveData done [19:32:20]ExternCall_PrintAddStr [19:32:20]wPrintStart [19:32:20]Write to MH i2c: 01 00 00 C5 72 37 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 C5 72 00 00 00 00 00 FF 0F 4C [19:32:20]RasterBufferAndPrint [19:32:20]line Счет N : (1)211377 [19:32:20]line ИНН: 02508201610067 [19:32:20]line Контрольно-Кассовый Чек [19:32:20]line ПРОДАЖА [19:32:20]line ТРК (МРК, ГНК) : 31 [19:32:20]line Товар: 2710194210 [19:32:20]line D-ENERGY ДТ-К-5 [19:32:20]line 6.480 * 77.20 [19:32:20]line = 500.26 [19:32:20]line НДС 12% НСП 1% [19:32:20]line > о реализуемом товаре [19:32:20]line ОКРУГЛЕНИЕ: -0.26 [19:32:20]line ИТОГО: 500.00 [19:32:20]line Внесено: 500.00 [19:32:20]line СДАЧА: 0.00 [19:32:20]line НСП 1% : 4.43 [19:32:20]line НДС 12% : 53.12 [19:32:20]line Наличными: 500.00 [19:32:20]line Безнал.: 0.00 [19:32:20]line Место: АЗС № 86 "Партнер Нефть" [19:32:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:32:20]line СНО: Общий режим [19:32:20]line Чек 384 24.10.2024 19:32 [19:32:20]line Смена: 463 ФФД: 1.0 [19:32:20]line ЗНМ: 0300000155 [19:32:20]line РНМ: 0000000000100030 [19:32:20]line Версия ККМ: 001 [19:32:20]line ФМ: 0000000000965340 [19:32:20]line ФД: 189311 [19:32:20]line ФПД: 217709934294374 [19:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189311&fm=217709934294374&tin=02508201610067®Number=0000000000100030&sum=50000 [19:32:20]written 0, free lines is 4095 [19:32:20]OFD Sender: Processing packet 189311 [packets to send 1062, broken 1061] [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00189311 [19:32:20]OFD Sender: To server: pG, [19:32:20]CommunicateWithHost lk.salyk.kg:30040 [19:32:20]ConnectInit lk.salyk.kg [19:32:20]Connected sock=10 [19:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 15 64 0D 01 94 DE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 C7 A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E3 02 00 35 04 06 00 C6 01 8B 4C 35 66 57 A2 53 70 AA AE C8 7A [19:32:20]Write to MH i2c: 01 00 00 F0 72 62 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 F0 72 00 00 00 00 00 5F 0C D4 [19:32:20]RasterBufferAndPrint [19:32:20]line [19:32:20]line [19:32:20]line [19:32:20]line [19:32:20]line [19:32:20]written 0, free lines is 3171 [19:32:20]MH_Cut [19:32:20]Write to MH i2c: D1 01 00 F7 72 01 3B [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: D1 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: D1 01 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: D1 01 00 F7 72 00 3A [19:32:20]Write to MH i2c: 01 00 00 F8 72 6A [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 91 48 47 00 54 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E3 02 00 F4 03 04 00 AE 4A 1A 67 B6 04 01 00 00 C1 F9 ED BB E2 23 BA 5F [19:32:20]CommunicateWithHost err = 0 [19:32:20]CheckOFDResponse [19:32:20]1017 (14) - 77093643461234 [19:32:20]1041 (16) - 0000000000965340 [19:32:20]1040 (4) - 189311 [19:32:20]1012 (4) - 24.10.2024 13:25 [19:32:20]1206 (1) - 0 [19:32:20]OFD Sender: Remove packet 189311 [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00189311 [19:32:20]NVStorageDeleteData [19:32:21]OFD Sender: No OFD packet to send [19:32:22]*** Cut start [19:32:22]*** Partial cut [19:32:22]*** CUTSNS_PIN = 1 [19:32:22]*** CUTSNS_PIN = 0 [19:32:22]*** Brake cut motor [19:32:22]Read from MH i2c: 01 [19:32:22]MH_I2C_Read... [19:32:22]*** Stop cut motor [19:32:22]*** Cut end [19:32:22]Read from MH i2c: 01 07 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 07 00 F8 72 00 00 00 00 00 FF 0F 7F [19:32:22]process_action close_receipt done [19:32:22]requested_data is exist [19:32:22]produce_requested_data [19:32:22]requested_item fm.sn is exist - process it [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 11 00 00 [19:32:22]Write to MH i2c: E2 08 00 F9 72 80 11 00 00 00 00 00 00 E5 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 F9 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [19:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:32:22]wFMCommunicate OK [19:32:22]requested_item fd.num is exist - process it [19:32:22]SAM_PROTO_GetFieldsCounters [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 00 00 [19:32:22]Write to MH i2c: E2 08 00 FA 72 80 13 00 00 00 00 00 00 E8 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 FA 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E3 02 00 0E 04 04 00 CF 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 A6 [19:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E3 02 00 0E 04 04 00 CF 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 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_GetFieldsCounters done [19:32:22]requested_item shift.num is exist - process it [19:32:22]requested_item shift.opened is exist - process it [19:32:22]req_shift_opened [19:32:22]FM_GetShiftState [19:32:22]SAM_PROTO_GetShiftState [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 01 00 [19:32:22]Write to MH i2c: E2 08 00 FB 72 80 13 01 00 00 00 00 00 EA [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 0E 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 0E 00 FB 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C8 [19:32:23]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:32:23]wFMCommunicate OK [19:32:23]SAM_PROTO_GetShiftState done [19:32:23]FM_GetShiftState done [19:32:23]req_shift_opened done [19:32:23]requested_item shift.open_date is exist - process it [19:32:23]req_shift_open_date [19:32:23]req_shift_open_date done [19:32:23]produce_requested_data done [19:32:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189311,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:32:23]process_action_free close_receipt [19:32:23]json_value_free [19:32:23]json_value_free done [19:32:23]process_json_proto returns [19:32:23]Send response to host [19:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189311,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:32:23]free response buf [19:32:23]execute_script done [19:32:23]execute_script returns [19:32:23]free content buf [19:32:23]Sock 9.Close socket [19:32:23]Sock 9.Thread stoped [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:40]accept exits with 8 [19:32:40]New connection [19:32:40]New thread 3067071844 created [19:32:40]Thread 3067215204 joined [19:32:40]Waiting for new connection... [19:32:40] Sock 8.Parse request [19:32:40]Sock 8.Check first char [19:32:40]Sock 8.First char is OK [19:32:40]request: POST /json_proto HTTP/1.0 [19:32:40]Method: POST [19:32:40]URL: /json_proto [19:32:40]Method is POST - this is cgi request [19:32:40]url: /json_proto [19:32:40]query_string will be loaded in cgi processing [19:32:40]execute_cgi json_proto POST (null) [19:32:40]execute_cgi path=json_proto method=POST [19:32:40]POST find Content-Length [19:32:40]Host: 172.17.42.131:8080 [19:32:40]Content-Length: 751 [19:32:40]Content-Type: application/json [19:32:40] [19:32:40]POST finish read [19:32:40]Found Content-Length = 751 [19:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.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\u000A30089017", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:40]execute_script... [19:32: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)211374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.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\u000A30089017", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:40]POST & json_proto [19:32:40]process_json_proto [19:32:40]json parsed OK: [19:32:40]protocol is kg_v1.0 [19:32:40]action value=close_receipt [19:32:40]process_action close_receipt [19:32:40]cmd_close_receipt [19:32:40]MH_GetDate [19:32:40]Write to MH i2c: F0 00 00 FC 72 5D [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: F0 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: F0 09 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: F0 09 00 FC 72 00 DD A0 1A 67 A0 18 CA 66 4C [19:32:40]GetLastDocTimeStamp 1729798343 [19:32:40]current date 1729798365 [19:32:40]FM_GetShiftState [19:32:40]SAM_PROTO_GetShiftState [19:32:40]wFMCommunicate request_size=4 [19:32:40]MH_SAM_APDU [19:32:40]CAPDU: 80 13 01 00 [19:32:40]Write to MH i2c: E2 08 00 FD 72 80 13 01 00 00 00 00 00 EC [19:32:40]Write i2c OK [19:32:40]MH_I2C_Read... [19:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:40]Read from MH i2c: E2 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 0E 00 [19:32:40]MH_I2C_Read... [19:32:40]Read from MH i2c: E2 0E 00 FD 72 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CA [19:32:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:32:40]wFMCommunicate OK [19:32:40]SAM_PROTO_GetShiftState done [19:32:40]FM_GetShiftState done [19:32:40]opened in 1729728961 [19:32:40]opened+sec_in_day 1729815361 [19:32:40]quantity*price = 0 [19:32:40]sum+1 = 1 [19:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 385 24.10.2024 19:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089017 ФМ: 0000000000965340 ФД: 189312 ФПД: 279509795644741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193245&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189312&fm=279509795644741&tin=02508201610067®Number=0000000000100030&sum=0 [19:32:42]StoreToDocumentArchive [19:32:42]shift 463 fd 189312 [19:32:42]save to /storage/0463/doc_00189312 [19:32:42]save last doc name /storage/0463/doc_00189312 to /storage/kkm_last_doc_name [19:32:42]save OK [19:32:42]Clear old archive folders... [19:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:42]tlvbuf is 0168E280 [19:32:42]SAM_PROTO_ClearQueue [19:32:42]wFMCommunicate request_size=4 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 09 00 00 [19:32:42]Write to MH i2c: E2 08 00 0A 73 80 09 00 00 00 00 00 00 EF [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 0A 73 00 90 00 F1 [19:32:42]RAPDU: 90 00 [19:32:42]wFMCommunicate OK [19:32:42]SAM_PROTO_ClearQueue done [19:32:42]KKMCreateOFDPacket [19:32:42]OFDProtocolAddRootSTLVToBuf [19:32:42]FM_MakeSignedData [19:32:42]FM_MakeSignedData [19:32:42]SAM_PROTO_SignData [19:32:42]wFMCommunicate request_size=4 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 0D 01 02 [19:32:42]Write to MH i2c: E2 08 00 0B 73 80 0D 01 02 00 00 00 00 F7 [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 0B 73 00 90 00 F2 [19:32:42]RAPDU: 90 00 [19:32:42]wFMCommunicate OK [19:32:42]wFMCommunicate request_size=255 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 DD A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E3 02 00 35 04 06 00 FE 36 72 14 [19:32:42]Write to MH i2c: E2 02 01 0C 73 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 DD A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E3 02 00 35 04 06 00 FE 36 72 14 00 00 8E [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 0C 73 00 90 00 F3 [19:32:42]RAPDU: 90 00 [19:32:42]wFMCommunicate OK [19:32:42]wFMCommunicate request_size=7 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 0D 02 02 02 A5 45 [19:32:42]Write to MH i2c: E2 0A 00 0D 73 80 0D 02 02 02 00 A5 45 00 00 E8 [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 03 00 0D 73 00 90 00 F4 [19:32:42]RAPDU: 90 00 [19:32:42]wFMCommunicate OK [19:32:42]wFMCommunicate request_size=4 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 0D 03 02 [19:32:42]Write to MH i2c: E2 08 00 0E 73 80 0D 03 02 00 00 00 00 FC [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 0B 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 0B 00 0E 73 00 96 9D 91 1C 0D 6A 0C 7F 90 00 DF [19:32:42]RAPDU: 96 9D 91 1C 0D 6A 0C 7F 90 00 [19:32:42]wFMCommunicate OK [19:32:42]SAM_PROTO_SignData done [19:32:42]FM_MakeSignedData done [19:32:42]CreateOFDProtocolMessage [19:32:42]wFMCommunicate request_size=4 [19:32:42]MH_SAM_APDU [19:32:42]CAPDU: 80 11 00 00 [19:32:42]Write to MH i2c: E2 08 00 0F 73 80 11 00 00 00 00 00 00 FC [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:42]Read from MH i2c: E2 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 17 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: E2 17 00 0F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [19:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:32:42]wFMCommunicate OK [19:32:42]CreateOFDProtocolMessage done [19:32:42]OFDSenderStorePacket 189312 [19:32:42]StoreOFDPacket docnum=189312 [19:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CC 98 04 01 AC E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 DD A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E3 02 00 35 04 06 00 FE 36 72 14 A5 45 96 9D 91 1C 0D 6A 0C 7F [19:32:42]CheckFolder [19:32:42]dirname=/storage/ofd_packets [19:32:42]CheckFolder done [19:32:42]ProducePacketName [19:32:42]name=ofd_packets/00189312 [19:32:42]NVStorageSaveData ofd_packets/00189312 [19:32:42]File name is /storage/ofd_packets/00189312 [19:32:42]Write 298 bytes [19:32:42]NVStorageSaveData done [19:32:42]OFDSenderStorePacket done [19:32:42]KKMCreateOFDPacket done [19:32:42]NVStorageSaveData kkm_last_timestamp [19:32:42]File name is /storage/kkm_last_timestamp [19:32:42]Write 4 bytes [19:32:42]NVStorageSaveData done [19:32:42]ExternCall_PrintAddStr [19:32:42]wPrintStart [19:32:42]Write to MH i2c: 01 00 00 10 73 83 [19:32:42]Write i2c OK [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: 01 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: 01 07 00 [19:32:42]MH_I2C_Read... [19:32:42]Read from MH i2c: 01 07 00 10 73 00 00 00 00 00 FF 0F 98 [19:32:42]RasterBufferAndPrint [19:32:42]line Счет N : (1)211374 [19:32:42]line ИНН: 02508201610067 [19:32:42]line Контрольно-Кассовый Чек [19:32:42]line ПРОДАЖА [19:32:42]line ТРК (МРК, ГНК) : 51 [19:32:42]line Товар: 2710194210 [19:32:42]line ДТ-К-5 [19:32:42]line 65.000 * 0.00 [19:32:42]line = 0.00 [19:32:42]line НДС 12% НСП 1% [19:32:42]line > о реализуемом товаре [19:32:42]line ИТОГО: 0.00 [19:32:42]line НСП 1% : 0.00 [19:32:42]line НДС 12% : 0.00 [19:32:42]line Наличными: 0.00 [19:32:42]line Безнал.: 0.00 [19:32:42]line Место: АЗС № 86 "Партнер Нефть" [19:32:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:32:42]line СНО: Общий режим [19:32:42]line Чек 385 24.10.2024 19:32 [19:32:42]line Смена: 463 ФФД: 1.0 [19:32:42]line ЗНМ: 0300000155 [19:32:42]line РНМ: 0000000000100030 [19:32:42]line Версия ККМ: 001 [19:32:42]line Талоны: ТК ГПНА Online [19:32:42]line 30089017 [19:32:42]line ФМ: 0000000000965340 [19:32:42]line ФД: 189312 [19:32:42]line ФПД: 279509795644741 [19:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193245&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189312&fm=279509795644741&tin=02508201610067®Number=0000000000100030&sum=0 [19:32:42]written 0, free lines is 4095 [19:32:42]OFD Sender: Processing packet 189312 [packets to send 1062, broken 1061] [19:32:42]ProducePacketName [19:32:42]name=ofd_packets/00189312 [19:32:42]OFD Sender: To server: pG, [19:32:42]CommunicateWithHost lk.salyk.kg:30040 [19:32:42]ConnectInit lk.salyk.kg [19:32:42]Connected sock=10 [19:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CC 98 04 01 AC E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 DD A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E3 02 00 35 04 06 00 FE 36 72 14 A5 45 96 9D 91 1C 0D 6A 0C 7F [19:32:43]Write to MH i2c: 01 00 00 3A 73 AD [19:32:43]Write i2c OK [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: 01 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: 01 07 00 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: 01 07 00 3A 73 00 00 00 00 00 6B 0C 2B [19:32:43]RasterBufferAndPrint [19:32:43]line [19:32:43]line [19:32:43]line [19:32:43]line [19:32:43]line [19:32:43]written 0, free lines is 3185 [19:32:43]MH_Cut [19:32:43]Write to MH i2c: D1 01 00 41 73 01 86 [19:32:43]Write i2c OK [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: D1 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: D1 01 00 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: D1 01 00 41 73 00 85 [19:32:43]Write to MH i2c: 01 00 00 42 73 B5 [19:32:43]Write i2c OK [19:32:43]MH_I2C_Read... [19:32:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 41 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 80 E3 02 00 F4 03 04 00 C4 4A 1A 67 B6 04 01 00 00 E0 20 F8 CD C5 81 A6 E3 [19:32:43]CommunicateWithHost err = 0 [19:32:43]CheckOFDResponse [19:32:43]1017 (14) - 77093643461234 [19:32:43]1041 (16) - 0000000000965340 [19:32:43]1040 (4) - 189312 [19:32:43]1012 (4) - 24.10.2024 13:25 [19:32:43]1206 (1) - 0 [19:32:43]OFD Sender: Remove packet 189312 [19:32:43]ProducePacketName [19:32:43]name=ofd_packets/00189312 [19:32:43]NVStorageDeleteData [19:32:43]OFD Sender: No OFD packet to send [19:32:44]*** Cut start [19:32:44]*** Partial cut [19:32:44]*** CUTSNS_PIN = 1 [19:32:44]*** CUTSNS_PIN = 0 [19:32:44]*** Brake cut motor [19:32:44]Read from MH i2c: 01 [19:32:44]MH_I2C_Read... [19:32:44]*** Stop cut motor [19:32:44]*** Cut end [19:32:44]Read from MH i2c: 01 07 00 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: 01 07 00 42 73 00 00 00 00 00 FF 0F CA [19:32:44]process_action close_receipt done [19:32:44]requested_data is exist [19:32:44]produce_requested_data [19:32:44]requested_item fm.sn is exist - process it [19:32:44]wFMCommunicate request_size=4 [19:32:44]MH_SAM_APDU [19:32:44]CAPDU: 80 11 00 00 [19:32:44]Write to MH i2c: E2 08 00 43 73 80 11 00 00 00 00 00 00 30 [19:32:44]Write i2c OK [19:32:44]MH_I2C_Read... [19:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:44]Read from MH i2c: E2 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: E2 17 00 [19:32:44]MH_I2C_Read... [19:32:44]Read from MH i2c: E2 17 00 43 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [19:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:32:44]wFMCommunicate OK [19:32:44]requested_item fd.num is exist - process it [19:32:44]SAM_PROTO_GetFieldsCounters [19:32:44]wFMCommunicate request_size=4 [19:32:44]MH_SAM_APDU [19:32:44]CAPDU: 80 13 00 00 [19:32:44]Write to MH i2c: E2 08 00 44 73 80 13 00 00 00 00 00 00 33 [19:32:44]Write i2c OK [19:32:44]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 62 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 62 00 44 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E3 02 00 0E 04 04 00 CF 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 F5 [19:32:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E3 02 00 0E 04 04 00 CF 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 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_GetFieldsCounters done [19:32:45]requested_item shift.num is exist - process it [19:32:45]requested_item shift.opened is exist - process it [19:32:45]req_shift_opened [19:32:45]FM_GetShiftState [19:32:45]SAM_PROTO_GetShiftState [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 13 01 00 [19:32:45]Write to MH i2c: E2 08 00 45 73 80 13 01 00 00 00 00 00 35 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0E 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0E 00 45 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 13 [19:32:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_GetShiftState done [19:32:45]FM_GetShiftState done [19:32:45]req_shift_opened done [19:32:45]requested_item shift.open_date is exist - process it [19:32:45]req_shift_open_date [19:32:45]req_shift_open_date done [19:32:45]produce_requested_data done [19:32:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189312,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:32:45]process_action_free close_receipt [19:32:45]json_value_free [19:32:45]json_value_free done [19:32:45]process_json_proto returns [19:32:45]Send response to host [19:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189312,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:32:45]free response buf [19:32:45]execute_script done [19:32:45]execute_script returns [19:32:45]free content buf [19:32:45]Sock 8.Close socket [19:32:45]Sock 8.Thread stoped [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:11]accept exits with 9 [19:33:11]New connection [19:33:11]New thread 3067215204 created [19:33:11]Thread 3067071844 joined [19:33:11]Waiting for new connection... [19:33:11] Sock 9.Parse request [19:33:11]Sock 9.Check first char [19:33:11]Sock 9.First char is OK [19:33:11]request: POST /json_proto HTTP/1.0 [19:33:11]Method: POST [19:33:11]URL: /json_proto [19:33:11]Method is POST - this is cgi request [19:33:11]url: /json_proto [19:33:11]query_string will be loaded in cgi processing [19:33:11]execute_cgi json_proto POST (null) [19:33:11]execute_cgi path=json_proto method=POST [19:33:11]POST find Content-Length [19:33:11]Host: 172.17.42.131:8080 [19:33:11]Content-Length: 677 [19:33:11]Content-Type: application/json [19:33:11] [19:33:11]POST finish read [19:33:11]Found Content-Length = 677 [19:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:33:11]execute_script... [19:33: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)211378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:33:11]POST & json_proto [19:33:11]process_json_proto [19:33:11]json parsed OK: [19:33:11]protocol is kg_v1.0 [19:33:11]action value=close_receipt [19:33:11]process_action close_receipt [19:33:11]cmd_close_receipt [19:33:11]MH_GetDate [19:33:11]Write to MH i2c: F0 00 00 46 73 A8 [19:33:11]Write i2c OK [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: F0 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: F0 09 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: F0 09 00 46 73 00 FC A0 1A 67 A0 18 CA 66 B6 [19:33:11]GetLastDocTimeStamp 1729798365 [19:33:11]current date 1729798396 [19:33:11]FM_GetShiftState [19:33:11]SAM_PROTO_GetShiftState [19:33:11]wFMCommunicate request_size=4 [19:33:11]MH_SAM_APDU [19:33:11]CAPDU: 80 13 01 00 [19:33:11]Write to MH i2c: E2 08 00 47 73 80 13 01 00 00 00 00 00 37 [19:33:11]Write i2c OK [19:33:11]MH_I2C_Read... [19:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:11]Read from MH i2c: E2 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 0E 00 [19:33:11]MH_I2C_Read... [19:33:11]Read from MH i2c: E2 0E 00 47 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 15 [19:33:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:33:11]wFMCommunicate OK [19:33:11]SAM_PROTO_GetShiftState done [19:33:11]FM_GetShiftState done [19:33:11]opened in 1729728961 [19:33:11]opened+sec_in_day 1729815361 [19:33:11]quantity*price = 40006 [19:33:11]sum+1 = 40007 [19:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 386 24.10.2024 19:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189313 ФПД: 128705494023077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189313&fm=128705494023077&tin=02508201610067®Number=0000000000100030&sum=40000 [19:33:12]StoreToDocumentArchive [19:33:12]shift 463 fd 189313 [19:33:12]save to /storage/0463/doc_00189313 [19:33:12]save last doc name /storage/0463/doc_00189313 to /storage/kkm_last_doc_name [19:33:12]save OK [19:33:12]Clear old archive folders... [19:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:12]tlvbuf is 0160BFB0 [19:33:12]SAM_PROTO_ClearQueue [19:33:12]wFMCommunicate request_size=4 [19:33:12]MH_SAM_APDU [19:33:12]CAPDU: 80 09 00 00 [19:33:12]Write to MH i2c: E2 08 00 54 73 80 09 00 00 00 00 00 00 39 [19:33:12]Write i2c OK [19:33:12]MH_I2C_Read... [19:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:12]Read from MH i2c: E2 [19:33:12]MH_I2C_Read... [19:33:12]Read from MH i2c: E2 03 00 [19:33:12]MH_I2C_Read... [19:33:12]Read from MH i2c: E2 03 00 54 73 00 90 00 3B [19:33:12]RAPDU: 90 00 [19:33:12]wFMCommunicate OK [19:33:12]SAM_PROTO_ClearQueue done [19:33:12]KKMCreateOFDPacket [19:33:12]OFDProtocolAddRootSTLVToBuf [19:33:12]FM_MakeSignedData [19:33:12]FM_MakeSignedData [19:33:12]SAM_PROTO_SignData [19:33:12]wFMCommunicate request_size=4 [19:33:12]MH_SAM_APDU [19:33:12]CAPDU: 80 0D 01 02 [19:33:12]Write to MH i2c: E2 08 00 55 73 80 0D 01 02 00 00 00 00 41 [19:33:12]Write i2c OK [19:33:12]MH_I2C_Read... [19:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:12]Read from MH i2c: E2 [19:33:12]MH_I2C_Read... [19:33:12]Read from MH i2c: E2 03 00 [19:33:12]MH_I2C_Read... [19:33:12]Read from MH i2c: E2 03 00 55 73 00 90 00 3C [19:33:12]RAPDU: 90 00 [19:33:12]wFMCommunicate OK [19:33:12]wFMCommunicate request_size=255 [19:33:12]MH_SAM_APDU [19:33: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 82 01 00 00 F4 03 04 00 FC A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E3 02 00 35 04 06 00 75 [19:33:13]Write to MH i2c: E2 02 01 56 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 82 01 00 00 F4 03 04 00 FC A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E3 02 00 35 04 06 00 75 00 00 CE [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:13]Read from MH i2c: E2 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 03 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 03 00 56 73 00 90 00 3D [19:33:13]RAPDU: 90 00 [19:33:13]wFMCommunicate OK [19:33:13]wFMCommunicate request_size=10 [19:33:13]MH_SAM_APDU [19:33:13]CAPDU: 80 0D 02 02 05 0E 95 40 7B A5 [19:33:13]Write to MH i2c: E2 0D 00 57 73 80 0D 02 02 05 00 0E 95 40 7B A5 00 00 51 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:13]Read from MH i2c: E2 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 03 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 03 00 57 73 00 90 00 3E [19:33:13]RAPDU: 90 00 [19:33:13]wFMCommunicate OK [19:33:13]wFMCommunicate request_size=4 [19:33:13]MH_SAM_APDU [19:33:13]CAPDU: 80 0D 03 02 [19:33:13]Write to MH i2c: E2 08 00 58 73 80 0D 03 02 00 00 00 00 46 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:13]Read from MH i2c: E2 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 0B 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 0B 00 58 73 00 73 6C A7 53 1A C6 E5 B1 90 00 96 [19:33:13]RAPDU: 73 6C A7 53 1A C6 E5 B1 90 00 [19:33:13]wFMCommunicate OK [19:33:13]SAM_PROTO_SignData done [19:33:13]FM_MakeSignedData done [19:33:13]CreateOFDProtocolMessage [19:33:13]wFMCommunicate request_size=4 [19:33:13]MH_SAM_APDU [19:33:13]CAPDU: 80 11 00 00 [19:33:13]Write to MH i2c: E2 08 00 59 73 80 11 00 00 00 00 00 00 46 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:13]Read from MH i2c: E2 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 17 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: E2 17 00 59 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [19:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:33:13]wFMCommunicate OK [19:33:13]CreateOFDProtocolMessage done [19:33:13]OFDSenderStorePacket 189313 [19:33:13]StoreOFDPacket docnum=189313 [19:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 FE 07 01 64 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 82 01 00 00 F4 03 04 00 FC A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E3 02 00 35 04 06 00 75 0E 95 40 7B A5 73 6C A7 53 1A C6 E5 B1 [19:33:13]CheckFolder [19:33:13]dirname=/storage/ofd_packets [19:33:13]CheckFolder done [19:33:13]ProducePacketName [19:33:13]name=ofd_packets/00189313 [19:33:13]NVStorageSaveData ofd_packets/00189313 [19:33:13]File name is /storage/ofd_packets/00189313 [19:33:13]Write 301 bytes [19:33:13]NVStorageSaveData done [19:33:13]OFDSenderStorePacket done [19:33:13]KKMCreateOFDPacket done [19:33:13]NVStorageSaveData kkm_last_timestamp [19:33:13]File name is /storage/kkm_last_timestamp [19:33:13]Write 4 bytes [19:33:13]NVStorageSaveData done [19:33:13]ExternCall_PrintAddStr [19:33:13]wPrintStart [19:33:13]Write to MH i2c: 01 00 00 5A 73 CD [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 07 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 07 00 5A 73 00 00 00 00 00 FF 0F E2 [19:33:13]RasterBufferAndPrint [19:33:13]line Счет N : (1)211378 [19:33:13]line ИНН: 02508201610067 [19:33:13]line Контрольно-Кассовый Чек [19:33:13]line ПРОДАЖА [19:33:13]line ТРК (МРК, ГНК) : 42 [19:33:13]line Товар: 2710124130 [19:33:13]line Аи-92-К-3 [19:33:13]line 5.980 * 66.90 [19:33:13]line = 400.06 [19:33:13]line НДС 12% НСП 1% [19:33:13]line > о реализуемом товаре [19:33:13]line ОКРУГЛЕНИЕ: -0.06 [19:33:13]line ИТОГО: 400.00 [19:33:13]line Внесено: 400.00 [19:33:13]line СДАЧА: 0.00 [19:33:13]line НСП 1% : 3.54 [19:33:13]line НДС 12% : 42.48 [19:33:13]line Наличными: 400.00 [19:33:13]line Безнал.: 0.00 [19:33:13]line Место: АЗС № 86 "Партнер Нефть" [19:33:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:33:13]line СНО: Общий режим [19:33:13]line Чек 386 24.10.2024 19:33 [19:33:13]line Смена: 463 ФФД: 1.0 [19:33:13]line ЗНМ: 0300000155 [19:33:13]line РНМ: 0000000000100030 [19:33:13]line Версия ККМ: 001 [19:33:13]line ФМ: 0000000000965340 [19:33:13]line ФД: 189313 [19:33:13]line ФПД: 128705494023077 [19:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189313&fm=128705494023077&tin=02508201610067®Number=0000000000100030&sum=40000 [19:33:13]written 0, free lines is 4095 [19:33:13]OFD Sender: Processing packet 189313 [packets to send 1062, broken 1061] [19:33:13]ProducePacketName [19:33:13]name=ofd_packets/00189313 [19:33:13]OFD Sender: To server: pG, [19:33:13]CommunicateWithHost lk.salyk.kg:30040 [19:33:13]ConnectInit lk.salyk.kg [19:33:13]Write to MH i2c: 01 00 00 85 73 F8 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 07 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: 01 07 00 85 73 00 00 00 00 00 5D 0C 68 [19:33:13]RasterBufferAndPrint [19:33:13]line [19:33:13]line [19:33:13]line [19:33:13]line [19:33:13]line [19:33:13]written 0, free lines is 3168 [19:33:13]MH_Cut [19:33:13]Write to MH i2c: D1 01 00 8C 73 01 D1 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: D1 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: D1 01 00 [19:33:13]MH_I2C_Read... [19:33:13]Read from MH i2c: D1 01 00 8C 73 00 D0 [19:33:13]Write to MH i2c: 01 00 00 8D 73 00 [19:33:13]Write i2c OK [19:33:13]MH_I2C_Read... [19:33:13]Connected sock=10 [19:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 FE 07 01 64 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 82 01 00 00 F4 03 04 00 FC A0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E3 02 00 35 04 06 00 75 0E 95 40 7B A5 73 6C A7 53 1A C6 E5 B1 [19:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6B F3 47 00 02 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 39 36 35 33 34 30 10 04 04 00 81 E3 02 00 F4 03 04 00 E3 4A 1A 67 B6 04 01 00 00 04 6E B1 91 BA 67 2D 91 [19:33:14]CommunicateWithHost err = 0 [19:33:14]CheckOFDResponse [19:33:14]1017 (14) - 77093643461234 [19:33:14]1041 (16) - 0000000000965340 [19:33:14]1040 (4) - 189313 [19:33:14]1012 (4) - 24.10.2024 13:25 [19:33:14]1206 (1) - 0 [19:33:14]OFD Sender: Remove packet 189313 [19:33:14]ProducePacketName [19:33:14]name=ofd_packets/00189313 [19:33:14]NVStorageDeleteData [19:33:14]OFD Sender: No OFD packet to send [19:33:15]*** Cut start [19:33:15]*** Partial cut [19:33:15]*** CUTSNS_PIN = 1 [19:33:15]*** CUTSNS_PIN = 0 [19:33:15]*** Brake cut motor [19:33:15]Read from MH i2c: 01 [19:33:15]MH_I2C_Read... [19:33:15]*** Stop cut motor [19:33:15]*** Cut end [19:33:15]Read from MH i2c: 01 07 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: 01 07 00 8D 73 00 00 00 00 00 FF 0F 15 [19:33:15]process_action close_receipt done [19:33:15]requested_data is exist [19:33:15]produce_requested_data [19:33:15]requested_item fm.sn is exist - process it [19:33:15]wFMCommunicate request_size=4 [19:33:15]MH_SAM_APDU [19:33:15]CAPDU: 80 11 00 00 [19:33:15]Write to MH i2c: E2 08 00 8E 73 80 11 00 00 00 00 00 00 7B [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:15]Read from MH i2c: E2 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 17 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 17 00 8E 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [19:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:33:15]wFMCommunicate OK [19:33:15]requested_item fd.num is exist - process it [19:33:15]SAM_PROTO_GetFieldsCounters [19:33:15]wFMCommunicate request_size=4 [19:33:15]MH_SAM_APDU [19:33:15]CAPDU: 80 13 00 00 [19:33:15]Write to MH i2c: E2 08 00 8F 73 80 13 00 00 00 00 00 00 7E [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:15]Read from MH i2c: E2 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 62 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 62 00 8F 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E3 02 00 0E 04 04 00 CF 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 44 [19:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E3 02 00 0E 04 04 00 CF 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 [19:33:16]wFMCommunicate OK [19:33:16]SAM_PROTO_GetFieldsCounters done [19:33:16]requested_item shift.num is exist - process it [19:33:16]requested_item shift.opened is exist - process it [19:33:16]req_shift_opened [19:33:16]FM_GetShiftState [19:33:16]SAM_PROTO_GetShiftState [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 13 01 00 [19:33:16]Write to MH i2c: E2 08 00 90 73 80 13 01 00 00 00 00 00 80 [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 0E 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 0E 00 90 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5E [19:33:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:33:16]wFMCommunicate OK [19:33:16]SAM_PROTO_GetShiftState done [19:33:16]FM_GetShiftState done [19:33:16]req_shift_opened done [19:33:16]requested_item shift.open_date is exist - process it [19:33:16]req_shift_open_date [19:33:16]req_shift_open_date done [19:33:16]produce_requested_data done [19:33:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189313,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:33:16]process_action_free close_receipt [19:33:16]json_value_free [19:33:16]json_value_free done [19:33:16]process_json_proto returns [19:33:16]Send response to host [19:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189313,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:33:16]free response buf [19:33:16]execute_script done [19:33:16]execute_script returns [19:33:16]free content buf [19:33:16]Sock 9.Close socket [19:33:16]Sock 9.Thread stoped [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [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:16]accept exits with 8 [19:37:16]New connection [19:37:16]New thread 3067071844 created [19:37:16]Thread 3067215204 joined [19:37:16]Waiting for new connection... [19:37:16] Sock 8.Parse request [19:37:16]Sock 8.Check first char [19:37:16]Sock 8.First char is OK [19:37:16]request: POST /json_proto HTTP/1.0 [19:37:16]Method: POST [19:37:16]URL: /json_proto [19:37:16]Method is POST - this is cgi request [19:37:16]url: /json_proto [19:37:16]query_string will be loaded in cgi processing [19:37:16]execute_cgi json_proto POST (null) [19:37:16]execute_cgi path=json_proto method=POST [19:37:16]POST find Content-Length [19:37:16]Host: 172.17.42.131:8080 [19:37:16]Content-Length: 766 [19:37:16]Content-Type: application/json [19:37:16] [19:37:16]POST finish read [19:37:16]Found Content-Length = 766 [19:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:16]execute_script... [19:37: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)211380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:16]POST & json_proto [19:37:16]process_json_proto [19:37:16]json parsed OK: [19:37:16]protocol is kg_v1.0 [19:37:16]action value=close_receipt [19:37:16]process_action close_receipt [19:37:16]cmd_close_receipt [19:37:16]MH_GetDate [19:37:16]Write to MH i2c: F0 00 00 91 73 F3 [19:37:16]Write i2c OK [19:37:16]MH_I2C_Read... [19:37:16]Read from MH i2c: F0 [19:37:16]MH_I2C_Read... [19:37:16]Read from MH i2c: F0 09 00 [19:37:16]MH_I2C_Read... [19:37:16]Read from MH i2c: F0 09 00 91 73 00 F1 A1 1A 67 A0 18 CA 66 F7 [19:37:16]GetLastDocTimeStamp 1729798396 [19:37:16]current date 1729798641 [19:37:16]FM_GetShiftState [19:37:16]SAM_PROTO_GetShiftState [19:37:16]wFMCommunicate request_size=4 [19:37:16]MH_SAM_APDU [19:37:16]CAPDU: 80 13 01 00 [19:37:16]Write to MH i2c: E2 08 00 92 73 80 13 01 00 00 00 00 00 82 [19:37:16]Write i2c OK [19:37:16]MH_I2C_Read... [19:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:16]Read from MH i2c: E2 [19:37:16]MH_I2C_Read... [19:37:16]Read from MH i2c: E2 0E 00 [19:37:16]MH_I2C_Read... [19:37:16]Read from MH i2c: E2 0E 00 92 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 60 [19:37:16]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:37:16]wFMCommunicate OK [19:37:16]SAM_PROTO_GetShiftState done [19:37:16]FM_GetShiftState done [19:37:16]opened in 1729728961 [19:37:16]opened+sec_in_day 1729815361 [19:37:16]quantity*price = 20003 [19:37:16]sum+1 = 20004 [19:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 387 24.10.2024 19:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189314 ФПД: 143383682923206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189314&fm=143383682923206&tin=02508201610067®Number=0000000000100030&sum=20003 [19:37:17]StoreToDocumentArchive [19:37:17]shift 463 fd 189314 [19:37:17]save to /storage/0463/doc_00189314 [19:37:17]save last doc name /storage/0463/doc_00189314 to /storage/kkm_last_doc_name [19:37:17]save OK [19:37:17]Clear old archive folders... [19:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:17]tlvbuf is 014D3190 [19:37:17]SAM_PROTO_ClearQueue [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 09 00 00 [19:37:17]Write to MH i2c: E2 08 00 9F 73 80 09 00 00 00 00 00 00 84 [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 9F 73 00 90 00 86 [19:37:17]RAPDU: 90 00 [19:37:17]wFMCommunicate OK [19:37:17]SAM_PROTO_ClearQueue done [19:37:17]KKMCreateOFDPacket [19:37:17]OFDProtocolAddRootSTLVToBuf [19:37:17]FM_MakeSignedData [19:37:17]FM_MakeSignedData [19:37:17]SAM_PROTO_SignData [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 0D 01 02 [19:37:17]Write to MH i2c: E2 08 00 A0 73 80 0D 01 02 00 00 00 00 8C [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 A0 73 00 90 00 87 [19:37:17]RAPDU: 90 00 [19:37:17]wFMCommunicate OK [19:37:17]wFMCommunicate request_size=255 [19:37:17]MH_SAM_APDU [19:37: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 F1 A1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E3 02 00 35 04 06 00 82 [19:37:17]Write to MH i2c: E2 02 01 A1 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 F1 A1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E3 02 00 35 04 06 00 82 00 00 17 [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 A1 73 00 90 00 88 [19:37:17]RAPDU: 90 00 [19:37:17]wFMCommunicate OK [19:37:17]wFMCommunicate request_size=10 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 0D 02 02 05 68 1D 7C BA C6 [19:37:17]Write to MH i2c: E2 0D 00 A2 73 80 0D 02 02 05 00 68 1D 7C BA C6 00 00 1A [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 03 00 A2 73 00 90 00 89 [19:37:17]RAPDU: 90 00 [19:37:17]wFMCommunicate OK [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 0D 03 02 [19:37:17]Write to MH i2c: E2 08 00 A3 73 80 0D 03 02 00 00 00 00 91 [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 0B 00 [19:37:17]MH_I2C_Read... [19:37:18]Read from MH i2c: E2 0B 00 A3 73 00 11 F6 B5 5D 1A 74 69 C3 90 00 65 [19:37:18]RAPDU: 11 F6 B5 5D 1A 74 69 C3 90 00 [19:37:18]wFMCommunicate OK [19:37:18]SAM_PROTO_SignData done [19:37:18]FM_MakeSignedData done [19:37:18]CreateOFDProtocolMessage [19:37:18]wFMCommunicate request_size=4 [19:37:18]MH_SAM_APDU [19:37:18]CAPDU: 80 11 00 00 [19:37:18]Write to MH i2c: E2 08 00 A4 73 80 11 00 00 00 00 00 00 91 [19:37:18]Write i2c OK [19:37:18]MH_I2C_Read... [19:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:18]Read from MH i2c: E2 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: E2 17 00 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: E2 17 00 A4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [19:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:18]wFMCommunicate OK [19:37:18]CreateOFDProtocolMessage done [19:37:18]OFDSenderStorePacket 189314 [19:37:18]StoreOFDPacket docnum=189314 [19:37:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 70 07 01 8E 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 F1 A1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E3 02 00 35 04 06 00 82 68 1D 7C BA C6 11 F6 B5 5D 1A 74 69 C3 [19:37:18]CheckFolder [19:37:18]dirname=/storage/ofd_packets [19:37:18]CheckFolder done [19:37:18]ProducePacketName [19:37:18]name=ofd_packets/00189314 [19:37:18]NVStorageSaveData ofd_packets/00189314 [19:37:18]File name is /storage/ofd_packets/00189314 [19:37:18]Write 301 bytes [19:37:18]NVStorageSaveData done [19:37:18]OFDSenderStorePacket done [19:37:18]KKMCreateOFDPacket done [19:37:18]NVStorageSaveData kkm_last_timestamp [19:37:18]File name is /storage/kkm_last_timestamp [19:37:18]Write 4 bytes [19:37:18]NVStorageSaveData done [19:37:18]ExternCall_PrintAddStr [19:37:18]wPrintStart [19:37:18]Write to MH i2c: 01 00 00 A5 73 18 [19:37:18]Write i2c OK [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 07 00 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 07 00 A5 73 00 00 00 00 00 FF 0F 2D [19:37:18]RasterBufferAndPrint [19:37:18]line Счет N : (1)211380 [19:37:18]line ИНН: 02508201610067 [19:37:18]line Контрольно-Кассовый Чек [19:37:18]line ПРОДАЖА [19:37:18]line ТРК (МРК, ГНК) : 42 [19:37:18]line Товар: 2710124130 [19:37:18]line Аи-92-К-3 [19:37:18]line 2.990 * 66.90 [19:37:18]line = 200.03 [19:37:18]line НДС 12% НСП 1% [19:37:18]line > о реализуемом товаре [19:37:18]line ИТОГО: 200.03 [19:37:18]line НСП 1% : 1.77 [19:37:18]line НДС 12% : 21.24 [19:37:18]line Наличными: 0.00 [19:37:18]line Безнал.: 200.03 [19:37:18]line Место: АЗС № 86 "Партнер Нефть" [19:37:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:37:18]line СНО: Общий режим [19:37:18]line Чек 387 24.10.2024 19:37 [19:37:18]line Смена: 463 ФФД: 1.0 [19:37:18]line ЗНМ: 0300000155 [19:37:18]line РНМ: 0000000000100030 [19:37:18]line Версия ККМ: 001 [19:37:18]line Платежная система: Mbank [19:37:18]line ФМ: 0000000000965340 [19:37:18]line ФД: 189314 [19:37:18]line ФПД: 143383682923206 [19:37:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189314&fm=143383682923206&tin=02508201610067®Number=0000000000100030&sum=20003 [19:37:18]written 0, free lines is 4095 [19:37:18]OFD Sender: Processing packet 189314 [packets to send 1062, broken 1061] [19:37:18]ProducePacketName [19:37:18]name=ofd_packets/00189314 [19:37:18]OFD Sender: To server: pG, [19:37:18]CommunicateWithHost lk.salyk.kg:30040 [19:37:18]ConnectInit lk.salyk.kg [19:37:18]Connected sock=10 [19:37:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 70 07 01 8E 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 F1 A1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E3 02 00 35 04 06 00 82 68 1D 7C BA C6 11 F6 B5 5D 1A 74 69 C3 [19:37:18]Write to MH i2c: 01 00 00 CE 73 41 [19:37:18]Write i2c OK [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 07 00 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: 01 07 00 CE 73 00 00 00 00 00 90 0C E4 [19:37:18]RasterBufferAndPrint [19:37:18]line [19:37:18]line [19:37:18]line [19:37:18]line [19:37:18]line [19:37:18]written 0, free lines is 3220 [19:37:18]MH_Cut [19:37:18]Write to MH i2c: D1 01 00 D5 73 01 1A [19:37:18]Write i2c OK [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: D1 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: D1 01 00 [19:37:18]MH_I2C_Read... [19:37:18]Read from MH i2c: D1 01 00 D5 73 00 19 [19:37:18]Write to MH i2c: 01 00 00 D6 73 49 [19:37:18]Write i2c OK [19:37:18]MH_I2C_Read... [19:37:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 59 A7 47 00 60 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E3 02 00 F4 03 04 00 D8 4B 1A 67 B6 04 01 00 00 86 28 0F 8E C9 3D 13 6F [19:37:18]CommunicateWithHost err = 0 [19:37:18]CheckOFDResponse [19:37:18]1017 (14) - 77093643461234 [19:37:18]1041 (16) - 0000000000965340 [19:37:18]1040 (4) - 189314 [19:37:18]1012 (4) - 24.10.2024 13:30 [19:37:18]1206 (1) - 0 [19:37:18]OFD Sender: Remove packet 189314 [19:37:18]ProducePacketName [19:37:18]name=ofd_packets/00189314 [19:37:18]NVStorageDeleteData [19:37:19]OFD Sender: No OFD packet to send [19:37:19]*** Cut start [19:37:19]*** Partial cut [19:37:19]*** CUTSNS_PIN = 1 [19:37:19]*** CUTSNS_PIN = 0 [19:37:20]*** Brake cut motor [19:37:20]Read from MH i2c: 01 [19:37:20]MH_I2C_Read... [19:37:20]*** Stop cut motor [19:37:20]*** Cut end [19:37:20]Read from MH i2c: 01 07 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 07 00 D6 73 00 00 00 00 00 FF 0F 5E [19:37:20]process_action close_receipt done [19:37:20]requested_data is exist [19:37:20]produce_requested_data [19:37:20]requested_item fm.sn is exist - process it [19:37:20]wFMCommunicate request_size=4 [19:37:20]MH_SAM_APDU [19:37:20]CAPDU: 80 11 00 00 [19:37:20]Write to MH i2c: E2 08 00 D7 73 80 11 00 00 00 00 00 00 C4 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:20]Read from MH i2c: E2 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 17 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 17 00 D7 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [19:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:20]wFMCommunicate OK [19:37:20]requested_item fd.num is exist - process it [19:37:20]SAM_PROTO_GetFieldsCounters [19:37:20]wFMCommunicate request_size=4 [19:37:20]MH_SAM_APDU [19:37:20]CAPDU: 80 13 00 00 [19:37:20]Write to MH i2c: E2 08 00 D8 73 80 13 00 00 00 00 00 00 C7 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:20]Read from MH i2c: E2 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 62 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 62 00 D8 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E3 02 00 0E 04 04 00 CF 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 91 [19:37:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E3 02 00 0E 04 04 00 CF 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 [19:37:20]wFMCommunicate OK [19:37:20]SAM_PROTO_GetFieldsCounters done [19:37:20]requested_item shift.num is exist - process it [19:37:20]requested_item shift.opened is exist - process it [19:37:20]req_shift_opened [19:37:20]FM_GetShiftState [19:37:20]SAM_PROTO_GetShiftState [19:37:20]wFMCommunicate request_size=4 [19:37:20]MH_SAM_APDU [19:37:20]CAPDU: 80 13 01 00 [19:37:20]Write to MH i2c: E2 08 00 D9 73 80 13 01 00 00 00 00 00 C9 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:20]Read from MH i2c: E2 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 0E 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 0E 00 D9 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A7 [19:37:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:37:20]wFMCommunicate OK [19:37:20]SAM_PROTO_GetShiftState done [19:37:20]FM_GetShiftState done [19:37:20]req_shift_opened done [19:37:20]requested_item shift.open_date is exist - process it [19:37:20]req_shift_open_date [19:37:20]req_shift_open_date done [19:37:20]produce_requested_data done [19:37:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189314,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:37:20]process_action_free close_receipt [19:37:20]json_value_free [19:37:20]json_value_free done [19:37:20]process_json_proto returns [19:37:20]Send response to host [19:37:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189314,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:37:20]free response buf [19:37:20]execute_script done [19:37:20]execute_script returns [19:37:20]free content buf [19:37:20]Sock 8.Close socket [19:37:20]Sock 8.Thread stoped [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]accept exits with 9 [19:37:49]New connection [19:37:49]New thread 3067215204 created [19:37:49]Thread 3067071844 joined [19:37:49]Waiting for new connection... [19:37:49] Sock 9.Parse request [19:37:49]Sock 9.Check first char [19:37:49]Sock 9.First char is OK [19:37:49]request: POST /json_proto HTTP/1.0 [19:37:49]Method: POST [19:37:49]URL: /json_proto [19:37:49]Method is POST - this is cgi request [19:37:49]url: /json_proto [19:37:49]query_string will be loaded in cgi processing [19:37:49]execute_cgi json_proto POST (null) [19:37:49]execute_cgi path=json_proto method=POST [19:37:49]POST find Content-Length [19:37:49]Host: 172.17.42.131:8080 [19:37:49]Content-Length: 775 [19:37:49]Content-Type: application/json [19:37:49] [19:37:49]POST finish read [19:37:49]Found Content-Length = 775 [19:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:49]execute_script... [19:37: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)211379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:49]POST & json_proto [19:37:49]process_json_proto [19:37:49]json parsed OK: [19:37:49]protocol is kg_v1.0 [19:37:49]action value=close_receipt [19:37:49]process_action close_receipt [19:37:49]cmd_close_receipt [19:37:49]MH_GetDate [19:37:49]Write to MH i2c: F0 00 00 DA 73 3C [19:37:49]Write i2c OK [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 09 00 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 09 00 DA 73 00 11 A2 1A 67 A0 18 CA 66 61 [19:37:49]GetLastDocTimeStamp 1729798641 [19:37:49]current date 1729798673 [19:37:49]FM_GetShiftState [19:37:49]SAM_PROTO_GetShiftState [19:37:49]wFMCommunicate request_size=4 [19:37:49]MH_SAM_APDU [19:37:49]CAPDU: 80 13 01 00 [19:37:49]Write to MH i2c: E2 08 00 DB 73 80 13 01 00 00 00 00 00 CB [19:37:49]Write i2c OK [19:37:49]MH_I2C_Read... [19:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:49]Read from MH i2c: E2 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: E2 0E 00 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: E2 0E 00 DB 73 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A9 [19:37:49]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:37:49]wFMCommunicate OK [19:37:49]SAM_PROTO_GetShiftState done [19:37:49]FM_GetShiftState done [19:37:49]opened in 1729728961 [19:37:49]opened+sec_in_day 1729815361 [19:37:49]quantity*price = 250050 [19:37:49]sum+1 = 250052 [19:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 388 24.10.2024 19:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189315 ФПД: 8582235109479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189315&fm=8582235109479&tin=02508201610067®Number=0000000000100030&sum=250051 [19:37:50]StoreToDocumentArchive [19:37:50]shift 463 fd 189315 [19:37:50]save to /storage/0463/doc_00189315 [19:37:50]save last doc name /storage/0463/doc_00189315 to /storage/kkm_last_doc_name [19:37:50]save OK [19:37:50]Clear old archive folders... [19:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:37:50]tlvbuf is 015174B0 [19:37:50]SAM_PROTO_ClearQueue [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 09 00 00 [19:37:50]Write to MH i2c: E2 08 00 E8 73 80 09 00 00 00 00 00 00 CD [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 E8 73 00 90 00 CF [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]SAM_PROTO_ClearQueue done [19:37:50]KKMCreateOFDPacket [19:37:50]OFDProtocolAddRootSTLVToBuf [19:37:50]FM_MakeSignedData [19:37:50]FM_MakeSignedData [19:37:50]SAM_PROTO_SignData [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 01 02 [19:37:50]Write to MH i2c: E2 08 00 E9 73 80 0D 01 02 00 00 00 00 D5 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 E9 73 00 90 00 D0 [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=255 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 11 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E3 02 [19:37:50]Write to MH i2c: E2 02 01 EA 73 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 11 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E3 02 00 00 1B [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 EA 73 00 90 00 D1 [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=16 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 07 CE 35 13 38 67 [19:37:50]Write to MH i2c: E2 13 00 EB 73 80 0D 02 02 0B 00 00 35 04 06 00 07 CE 35 13 38 67 00 00 E9 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 EB 73 00 90 00 D2 [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 03 02 [19:37:50]Write to MH i2c: E2 08 00 EC 73 80 0D 03 02 00 00 00 00 DA [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0B 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0B 00 EC 73 00 18 43 52 3B BE 47 88 B3 90 00 03 [19:37:50]RAPDU: 18 43 52 3B BE 47 88 B3 90 00 [19:37:50]wFMCommunicate OK [19:37:50]SAM_PROTO_SignData done [19:37:50]FM_MakeSignedData done [19:37:50]CreateOFDProtocolMessage [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 11 00 00 [19:37:50]Write to MH i2c: E2 08 00 ED 73 80 11 00 00 00 00 00 00 DA [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 17 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 17 00 ED 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [19:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:50]wFMCommunicate OK [19:37:50]CreateOFDProtocolMessage done [19:37:50]OFDSenderStorePacket 189315 [19:37:50]StoreOFDPacket docnum=189315 [19:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 31 0D 01 61 F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 11 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E3 02 00 35 04 06 00 07 CE 35 13 38 67 18 43 52 3B BE 47 88 B3 [19:37:50]CheckFolder [19:37:50]dirname=/storage/ofd_packets [19:37:50]CheckFolder done [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00189315 [19:37:50]NVStorageSaveData ofd_packets/00189315 [19:37:50]File name is /storage/ofd_packets/00189315 [19:37:50]Write 307 bytes [19:37:50]NVStorageSaveData done [19:37:50]OFDSenderStorePacket done [19:37:50]KKMCreateOFDPacket done [19:37:50]NVStorageSaveData kkm_last_timestamp [19:37:50]File name is /storage/kkm_last_timestamp [19:37:50]Write 4 bytes [19:37:50]NVStorageSaveData done [19:37:50]ExternCall_PrintAddStr [19:37:50]wPrintStart [19:37:50]Write to MH i2c: 01 00 00 EE 73 61 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 07 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 07 00 EE 73 00 00 00 00 00 FF 0F 76 [19:37:50]RasterBufferAndPrint [19:37:50]line Счет N : (1)211379 [19:37:50]line ИНН: 02508201610067 [19:37:50]line Контрольно-Кассовый Чек [19:37:50]line ПРОДАЖА [19:37:50]line ТРК (МРК, ГНК) : 11 [19:37:50]line Товар: 2710194210 [19:37:50]line D-ENERGY ДТ-К-5 [19:37:50]line 32.390 * 77.20 [19:37:50]line = 2500.51 [19:37:50]line НДС 12% НСП 1% [19:37:50]line > о реализуемом товаре [19:37:50]line ИТОГО: 2500.51 [19:37:50]line НСП 1% : 22.13 [19:37:50]line НДС 12% : 265.54 [19:37:50]line Наличными: 0.00 [19:37:50]line Безнал.: 2500.51 [19:37:50]line Место: АЗС № 86 "Партнер Нефть" [19:37:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:37:50]line СНО: Общий режим [19:37:50]line Чек 388 24.10.2024 19:37 [19:37:50]line Смена: 463 ФФД: 1.0 [19:37:50]line ЗНМ: 0300000155 [19:37:50]line РНМ: 0000000000100030 [19:37:50]line Версия ККМ: 001 [19:37:50]line Платежная система: Mbank [19:37:50]line ФМ: 0000000000965340 [19:37:50]line ФД: 189315 [19:37:50]line ФПД: 8582235109479 [19:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189315&fm=8582235109479&tin=02508201610067®Number=0000000000100030&sum=250051 [19:37:50]written 0, free lines is 4095 [19:37:50]OFD Sender: Processing packet 189315 [packets to send 1062, broken 1061] [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00189315 [19:37:50]OFD Sender: To server: pG, [19:37:50]CommunicateWithHost lk.salyk.kg:30040 [19:37:50]ConnectInit lk.salyk.kg [19:37:51]Connected sock=8 [19:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 31 0D 01 61 F4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 11 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E3 02 00 35 04 06 00 07 CE 35 13 38 67 18 43 52 3B BE 47 88 B3 [19:37:51]Write to MH i2c: 01 00 00 17 74 8B [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 17 74 00 00 00 00 00 89 0C 27 [19:37:51]RasterBufferAndPrint [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]written 0, free lines is 3213 [19:37:51]MH_Cut [19:37:51]Write to MH i2c: D1 01 00 1E 74 01 64 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 01 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 01 00 1E 74 00 63 [19:37:51]Write to MH i2c: 01 00 00 1F 74 93 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 B1 47 00 00 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E3 02 00 F4 03 04 00 F9 4B 1A 67 B6 04 01 00 00 2E 5A 72 C7 0B 41 E4 73 [19:37:51]CommunicateWithHost err = 0 [19:37:51]CheckOFDResponse [19:37:51]1017 (14) - 77093643461234 [19:37:51]1041 (16) - 0000000000965340 [19:37:51]1040 (4) - 189315 [19:37:51]1012 (4) - 24.10.2024 13:30 [19:37:51]1206 (1) - 0 [19:37:51]OFD Sender: Remove packet 189315 [19:37:51]ProducePacketName [19:37:51]name=ofd_packets/00189315 [19:37:51]NVStorageDeleteData [19:37:52]OFD Sender: No OFD packet to send [19:37:52]*** Cut start [19:37:52]*** Partial cut [19:37:52]*** CUTSNS_PIN = 1 [19:37:52]*** CUTSNS_PIN = 0 [19:37:52]*** Brake cut motor [19:37:53]Read from MH i2c: 01 [19:37:53]MH_I2C_Read... [19:37:53]*** Stop cut motor [19:37:53]*** Cut end [19:37:53]Read from MH i2c: 01 07 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: 01 07 00 1F 74 00 00 00 00 00 FF 0F A8 [19:37:53]process_action close_receipt done [19:37:53]requested_data is exist [19:37:53]produce_requested_data [19:37:53]requested_item fm.sn is exist - process it [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 11 00 00 [19:37:53]Write to MH i2c: E2 08 00 20 74 80 11 00 00 00 00 00 00 0E [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 17 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 17 00 20 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [19:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:53]wFMCommunicate OK [19:37:53]requested_item fd.num is exist - process it [19:37:53]SAM_PROTO_GetFieldsCounters [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 13 00 00 [19:37:53]Write to MH i2c: E2 08 00 21 74 80 13 00 00 00 00 00 00 11 [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 62 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 62 00 21 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E3 02 00 0E 04 04 00 CF 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 DF [19:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E3 02 00 0E 04 04 00 CF 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 [19:37:53]wFMCommunicate OK [19:37:53]SAM_PROTO_GetFieldsCounters done [19:37:53]requested_item shift.num is exist - process it [19:37:53]requested_item shift.opened is exist - process it [19:37:53]req_shift_opened [19:37:53]FM_GetShiftState [19:37:53]SAM_PROTO_GetShiftState [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 13 01 00 [19:37:53]Write to MH i2c: E2 08 00 22 74 80 13 01 00 00 00 00 00 13 [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 22 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F1 [19:37:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:37:53]wFMCommunicate OK [19:37:53]SAM_PROTO_GetShiftState done [19:37:53]FM_GetShiftState done [19:37:53]req_shift_opened done [19:37:53]requested_item shift.open_date is exist - process it [19:37:53]req_shift_open_date [19:37:53]req_shift_open_date done [19:37:53]produce_requested_data done [19:37:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189315,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:37:53]process_action_free close_receipt [19:37:53]json_value_free [19:37:53]json_value_free done [19:37:53]process_json_proto returns [19:37:53]Send response to host [19:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189315,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:37:53]free response buf [19:37:53]execute_script done [19:37:53]execute_script returns [19:37:53]free content buf [19:37:53]Sock 9.Close socket [19:37:53]Sock 9.Thread stoped [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:21]accept exits with 10 [19:38:21]New connection [19:38:21]New thread 3067071844 created [19:38:21]Thread 3067215204 joined [19:38:21]Waiting for new connection... [19:38:21] Sock 10.Parse request [19:38:21]Sock 10.Check first char [19:38:21]Sock 10.First char is OK [19:38:21]request: POST /json_proto HTTP/1.0 [19:38:21]Method: POST [19:38:21]URL: /json_proto [19:38:21]Method is POST - this is cgi request [19:38:21]url: /json_proto [19:38:21]query_string will be loaded in cgi processing [19:38:21]execute_cgi json_proto POST (null) [19:38:21]execute_cgi path=json_proto method=POST [19:38:21]POST find Content-Length [19:38:21]Host: 172.17.42.131:8080 [19:38:21]Content-Length: 766 [19:38:21]Content-Type: application/json [19:38:21] [19:38:21]POST finish read [19:38:21]Found Content-Length = 766 [19:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:21]execute_script... [19:38: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)211381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:21]POST & json_proto [19:38:21]process_json_proto [19:38:21]json parsed OK: [19:38:21]protocol is kg_v1.0 [19:38:21]action value=close_receipt [19:38:21]process_action close_receipt [19:38:21]cmd_close_receipt [19:38:21]MH_GetDate [19:38:21]Write to MH i2c: F0 00 00 23 74 86 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 09 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: F0 09 00 23 74 00 32 A2 1A 67 A0 18 CA 66 CC [19:38:21]GetLastDocTimeStamp 1729798673 [19:38:21]current date 1729798706 [19:38:21]FM_GetShiftState [19:38:21]SAM_PROTO_GetShiftState [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 13 01 00 [19:38:21]Write to MH i2c: E2 08 00 24 74 80 13 01 00 00 00 00 00 15 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0E 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0E 00 24 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F3 [19:38:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:38:21]wFMCommunicate OK [19:38:21]SAM_PROTO_GetShiftState done [19:38:21]FM_GetShiftState done [19:38:21]opened in 1729728961 [19:38:21]opened+sec_in_day 1729815361 [19:38:21]quantity*price = 100050 [19:38:21]sum+1 = 100052 [19:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 389 24.10.2024 19:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189316 ФПД: 232994322640922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193826&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189316&fm=232994322640922&tin=02508201610067®Number=0000000000100030&sum=100051 [19:38:22]StoreToDocumentArchive [19:38:22]shift 463 fd 189316 [19:38:22]save to /storage/0463/doc_00189316 [19:38:22]save last doc name /storage/0463/doc_00189316 to /storage/kkm_last_doc_name [19:38:22]save OK [19:38:22]Clear old archive folders... [19:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:38:22]tlvbuf is 015BED60 [19:38:22]SAM_PROTO_ClearQueue [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 09 00 00 [19:38:22]Write to MH i2c: E2 08 00 31 74 80 09 00 00 00 00 00 00 17 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 31 74 00 90 00 19 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_ClearQueue done [19:38:22]KKMCreateOFDPacket [19:38:22]OFDProtocolAddRootSTLVToBuf [19:38:22]FM_MakeSignedData [19:38:22]FM_MakeSignedData [19:38:22]SAM_PROTO_SignData [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 01 02 [19:38:22]Write to MH i2c: E2 08 00 32 74 80 0D 01 02 00 00 00 00 1F [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 32 74 00 90 00 1A [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=255 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 85 01 00 00 F4 03 04 00 32 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E3 02 00 35 04 06 00 D3 E8 37 D5 [19:38:22]Write to MH i2c: E2 02 01 33 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 85 01 00 00 F4 03 04 00 32 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E3 02 00 35 04 06 00 D3 E8 37 D5 00 00 CB [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 33 74 00 90 00 1B [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=7 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 02 F0 1A [19:38:22]Write to MH i2c: E2 0A 00 34 74 80 0D 02 02 02 00 F0 1A 00 00 30 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 34 74 00 90 00 1C [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 03 02 [19:38:22]Write to MH i2c: E2 08 00 35 74 80 0D 03 02 00 00 00 00 24 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 35 74 00 EC 4A 6E C7 EE 9C 7F 58 90 00 F1 [19:38:22]RAPDU: EC 4A 6E C7 EE 9C 7F 58 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_SignData done [19:38:22]FM_MakeSignedData done [19:38:22]CreateOFDProtocolMessage [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 11 00 00 [19:38:22]Write to MH i2c: E2 08 00 36 74 80 11 00 00 00 00 00 00 24 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 36 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [19:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:22]wFMCommunicate OK [19:38:22]CreateOFDProtocolMessage done [19:38:22]OFDSenderStorePacket 189316 [19:38:22]StoreOFDPacket docnum=189316 [19:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EA F9 04 01 EA 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 85 01 00 00 F4 03 04 00 32 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E3 02 00 35 04 06 00 D3 E8 37 D5 F0 1A EC 4A 6E C7 EE 9C 7F 58 [19:38:22]CheckFolder [19:38:22]dirname=/storage/ofd_packets [19:38:22]CheckFolder done [19:38:22]ProducePacketName [19:38:22]name=ofd_packets/00189316 [19:38:22]NVStorageSaveData ofd_packets/00189316 [19:38:22]File name is /storage/ofd_packets/00189316 [19:38:22]Write 298 bytes [19:38:22]NVStorageSaveData done [19:38:22]OFDSenderStorePacket done [19:38:22]KKMCreateOFDPacket done [19:38:22]NVStorageSaveData kkm_last_timestamp [19:38:22]File name is /storage/kkm_last_timestamp [19:38:22]Write 4 bytes [19:38:22]NVStorageSaveData done [19:38:22]ExternCall_PrintAddStr [19:38:22]wPrintStart [19:38:22]Write to MH i2c: 01 00 00 37 74 AB [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 37 74 00 00 00 00 00 FF 0F C0 [19:38:22]RasterBufferAndPrint [19:38:22]line Счет N : (1)211381 [19:38:22]line ИНН: 02508201610067 [19:38:22]line Контрольно-Кассовый Чек [19:38:22]line ПРОДАЖА [19:38:22]line ТРК (МРК, ГНК) : 51 [19:38:22]line Товар: 2710194210 [19:38:22]line ДТ-К-5 [19:38:22]line 13.130 * 76.20 [19:38:22]line = 1000.51 [19:38:22]line НДС 12% НСП 1% [19:38:22]line > о реализуемом товаре [19:38:22]line ИТОГО: 1000.51 [19:38:22]line НСП 1% : 8.85 [19:38:22]line НДС 12% : 106.25 [19:38:22]line Наличными: 0.00 [19:38:22]line Безнал.: 1000.51 [19:38:22]line Место: АЗС № 86 "Партнер Нефть" [19:38:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:38:22]line СНО: Общий режим [19:38:22]line Чек 389 24.10.2024 19:38 [19:38:22]line Смена: 463 ФФД: 1.0 [19:38:22]line ЗНМ: 0300000155 [19:38:22]line РНМ: 0000000000100030 [19:38:22]line Версия ККМ: 001 [19:38:22]line Платежная система: Mbank [19:38:22]line ФМ: 0000000000965340 [19:38:22]line ФД: 189316 [19:38:22]line ФПД: 232994322640922 [19:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193826&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189316&fm=232994322640922&tin=02508201610067®Number=0000000000100030&sum=100051 [19:38:22]written 0, free lines is 4095 [19:38:22]OFD Sender: Processing packet 189316 [packets to send 1062, broken 1061] [19:38:22]ProducePacketName [19:38:22]name=ofd_packets/00189316 [19:38:22]OFD Sender: To server: pG, [19:38:22]CommunicateWithHost lk.salyk.kg:30040 [19:38:22]ConnectInit lk.salyk.kg [19:38:23]Connected sock=9 [19:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EA F9 04 01 EA 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 85 01 00 00 F4 03 04 00 32 A2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E3 02 00 35 04 06 00 D3 E8 37 D5 F0 1A EC 4A 6E C7 EE 9C 7F 58 [19:38:23]Write to MH i2c: 01 00 00 60 74 D4 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 60 74 00 00 00 00 00 8B 0C 72 [19:38:23]RasterBufferAndPrint [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]written 0, free lines is 3214 [19:38:23]MH_Cut [19:38:23]Write to MH i2c: D1 01 00 67 74 01 AD [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 67 74 00 AC [19:38:23]Write to MH i2c: 01 00 00 68 74 DC [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 58 47 00 5D 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E3 02 00 F4 03 04 00 19 4C 1A 67 B6 04 01 00 00 D1 95 A8 5E E2 26 B7 E2 [19:38:23]CommunicateWithHost err = 0 [19:38:23]CheckOFDResponse [19:38:23]1017 (14) - 77093643461234 [19:38:23]1041 (16) - 0000000000965340 [19:38:23]1040 (4) - 189316 [19:38:23]1012 (4) - 24.10.2024 13:31 [19:38:23]1206 (1) - 0 [19:38:23]OFD Sender: Remove packet 189316 [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00189316 [19:38:23]NVStorageDeleteData [19:38:24]OFD Sender: No OFD packet to send [19:38:24]*** Cut start [19:38:24]*** Partial cut [19:38:24]*** CUTSNS_PIN = 1 [19:38:24]*** CUTSNS_PIN = 0 [19:38:24]*** Brake cut motor [19:38:25]Read from MH i2c: 01 [19:38:25]MH_I2C_Read... [19:38:25]*** Stop cut motor [19:38:25]*** Cut end [19:38:25]Read from MH i2c: 01 07 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 68 74 00 00 00 00 00 FF 0F F1 [19:38:25]process_action close_receipt done [19:38:25]requested_data is exist [19:38:25]produce_requested_data [19:38:25]requested_item fm.sn is exist - process it [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 11 00 00 [19:38:25]Write to MH i2c: E2 08 00 69 74 80 11 00 00 00 00 00 00 57 [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 17 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 17 00 69 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [19:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:25]wFMCommunicate OK [19:38:25]requested_item fd.num is exist - process it [19:38:25]SAM_PROTO_GetFieldsCounters [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 13 00 00 [19:38:25]Write to MH i2c: E2 08 00 6A 74 80 13 00 00 00 00 00 00 5A [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 62 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 62 00 6A 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E3 02 00 0E 04 04 00 CF 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 2C [19:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E3 02 00 0E 04 04 00 CF 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 [19:38:25]wFMCommunicate OK [19:38:25]SAM_PROTO_GetFieldsCounters done [19:38:25]requested_item shift.num is exist - process it [19:38:25]requested_item shift.opened is exist - process it [19:38:25]req_shift_opened [19:38:25]FM_GetShiftState [19:38:25]SAM_PROTO_GetShiftState [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 13 01 00 [19:38:25]Write to MH i2c: E2 08 00 6B 74 80 13 01 00 00 00 00 00 5C [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 0E 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 0E 00 6B 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3A [19:38:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:38:25]wFMCommunicate OK [19:38:25]SAM_PROTO_GetShiftState done [19:38:25]FM_GetShiftState done [19:38:25]req_shift_opened done [19:38:25]requested_item shift.open_date is exist - process it [19:38:25]req_shift_open_date [19:38:25]req_shift_open_date done [19:38:25]produce_requested_data done [19:38:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189316,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:38:25]process_action_free close_receipt [19:38:25]json_value_free [19:38:25]json_value_free done [19:38:25]process_json_proto returns [19:38:25]Send response to host [19:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189316,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:38:25]free response buf [19:38:25]execute_script done [19:38:25]execute_script returns [19:38:25]free content buf [19:38:25]Sock 10.Close socket [19:38:25]Sock 10.Thread stoped [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40: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:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:44]accept exits with 8 [19:43:44]New connection [19:43:44]New thread 3067215204 created [19:43:44]Thread 3067071844 joined [19:43:44]Waiting for new connection... [19:43:44] Sock 8.Parse request [19:43:44]Sock 8.Check first char [19:43:44]Sock 8.First char is OK [19:43:44]request: POST /json_proto HTTP/1.0 [19:43:44]Method: POST [19:43:44]URL: /json_proto [19:43:44]Method is POST - this is cgi request [19:43:44]url: /json_proto [19:43:44]query_string will be loaded in cgi processing [19:43:44]execute_cgi json_proto POST (null) [19:43:44]execute_cgi path=json_proto method=POST [19:43:44]POST find Content-Length [19:43:44]Host: 172.17.42.131:8080 [19:43:44]Content-Length: 682 [19:43:44]Content-Type: application/json [19:43:44] [19:43:44]POST finish read [19:43:44]Found Content-Length = 682 [19:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:44]execute_script... [19:43: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)211382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:44]POST & json_proto [19:43:44]process_json_proto [19:43:44]json parsed OK: [19:43:44]protocol is kg_v1.0 [19:43:44]action value=close_receipt [19:43:44]process_action close_receipt [19:43:44]cmd_close_receipt [19:43:44]MH_GetDate [19:43:44]Write to MH i2c: F0 00 00 6C 74 CF [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: F0 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: F0 09 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: F0 09 00 6C 74 00 75 A3 1A 67 A0 18 CA 66 59 [19:43:44]GetLastDocTimeStamp 1729798706 [19:43:44]current date 1729799029 [19:43:44]FM_GetShiftState [19:43:44]SAM_PROTO_GetShiftState [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 13 01 00 [19:43:44]Write to MH i2c: E2 08 00 6D 74 80 13 01 00 00 00 00 00 5E [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0E 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0E 00 6D 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3C [19:43:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_GetShiftState done [19:43:44]FM_GetShiftState done [19:43:44]opened in 1729728961 [19:43:44]opened+sec_in_day 1729815361 [19:43:44]quantity*price = 100015 [19:43:44]sum+1 = 100017 [19:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 390 24.10.2024 19:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189317 ФПД: 159179437605184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189317&fm=159179437605184&tin=02508201610067®Number=0000000000100030&sum=100000 [19:43:45]StoreToDocumentArchive [19:43:45]shift 463 fd 189317 [19:43:45]save to /storage/0463/doc_00189317 [19:43:45]save last doc name /storage/0463/doc_00189317 to /storage/kkm_last_doc_name [19:43:45]save OK [19:43:45]Clear old archive folders... [19:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:45]tlvbuf is 014C3030 [19:43:45]SAM_PROTO_ClearQueue [19:43:45]wFMCommunicate request_size=4 [19:43:45]MH_SAM_APDU [19:43:45]CAPDU: 80 09 00 00 [19:43:45]Write to MH i2c: E2 08 00 7A 74 80 09 00 00 00 00 00 00 60 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 7A 74 00 90 00 62 [19:43:45]RAPDU: 90 00 [19:43:45]wFMCommunicate OK [19:43:45]SAM_PROTO_ClearQueue done [19:43:45]KKMCreateOFDPacket [19:43:45]OFDProtocolAddRootSTLVToBuf [19:43:45]FM_MakeSignedData [19:43:45]FM_MakeSignedData [19:43:45]SAM_PROTO_SignData [19:43:45]wFMCommunicate request_size=4 [19:43:45]MH_SAM_APDU [19:43:45]CAPDU: 80 0D 01 02 [19:43:45]Write to MH i2c: E2 08 00 7B 74 80 0D 01 02 00 00 00 00 68 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 7B 74 00 90 00 63 [19:43:45]RAPDU: 90 00 [19:43:45]wFMCommunicate OK [19:43:45]wFMCommunicate request_size=255 [19:43:45]MH_SAM_APDU [19:43: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 75 A3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E3 02 00 35 04 06 00 90 [19:43:45]Write to MH i2c: E2 02 01 7C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 75 A3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E3 02 00 35 04 06 00 90 00 00 BF [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]OFD Sender: No OFD packet to send [19:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 7C 74 00 90 00 64 [19:43:45]RAPDU: 90 00 [19:43:45]wFMCommunicate OK [19:43:45]wFMCommunicate request_size=10 [19:43:45]MH_SAM_APDU [19:43:45]CAPDU: 80 0D 02 02 05 C5 D9 D5 81 40 [19:43:45]Write to MH i2c: E2 0D 00 7D 74 80 0D 02 02 05 00 C5 D9 D5 81 40 00 00 A9 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 03 00 7D 74 00 90 00 65 [19:43:45]RAPDU: 90 00 [19:43:45]wFMCommunicate OK [19:43:45]wFMCommunicate request_size=4 [19:43:45]MH_SAM_APDU [19:43:45]CAPDU: 80 0D 03 02 [19:43:45]Write to MH i2c: E2 08 00 7E 74 80 0D 03 02 00 00 00 00 6D [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 0B 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 0B 00 7E 74 00 5A 68 35 C9 6E AF F4 47 90 00 86 [19:43:45]RAPDU: 5A 68 35 C9 6E AF F4 47 90 00 [19:43:45]wFMCommunicate OK [19:43:45]SAM_PROTO_SignData done [19:43:45]FM_MakeSignedData done [19:43:45]CreateOFDProtocolMessage [19:43:45]wFMCommunicate request_size=4 [19:43:45]MH_SAM_APDU [19:43:45]CAPDU: 80 11 00 00 [19:43:45]Write to MH i2c: E2 08 00 7F 74 80 11 00 00 00 00 00 00 6D [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:45]Read from MH i2c: E2 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 17 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: E2 17 00 7F 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [19:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:43:45]wFMCommunicate OK [19:43:45]CreateOFDProtocolMessage done [19:43:45]OFDSenderStorePacket 189317 [19:43:45]StoreOFDPacket docnum=189317 [19:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B 35 07 01 9D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 75 A3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E3 02 00 35 04 06 00 90 C5 D9 D5 81 40 5A 68 35 C9 6E AF F4 47 [19:43:45]CheckFolder [19:43:45]dirname=/storage/ofd_packets [19:43:45]CheckFolder done [19:43:45]ProducePacketName [19:43:45]name=ofd_packets/00189317 [19:43:45]NVStorageSaveData ofd_packets/00189317 [19:43:45]File name is /storage/ofd_packets/00189317 [19:43:45]Write 301 bytes [19:43:45]NVStorageSaveData done [19:43:45]OFDSenderStorePacket done [19:43:45]KKMCreateOFDPacket done [19:43:45]NVStorageSaveData kkm_last_timestamp [19:43:45]File name is /storage/kkm_last_timestamp [19:43:45]Write 4 bytes [19:43:45]NVStorageSaveData done [19:43:45]ExternCall_PrintAddStr [19:43:45]wPrintStart [19:43:45]Write to MH i2c: 01 00 00 80 74 F4 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 80 74 00 00 00 00 00 FF 0F 09 [19:43:45]RasterBufferAndPrint [19:43:45]line Счет N : (1)211382 [19:43:45]line ИНН: 02508201610067 [19:43:45]line Контрольно-Кассовый Чек [19:43:45]line ПРОДАЖА [19:43:45]line ТРК (МРК, ГНК) : 42 [19:43:45]line Товар: 2710124130 [19:43:45]line Аи-92-К-3 [19:43:45]line 14.950 * 66.90 [19:43:45]line = 1000.16 [19:43:45]line НДС 12% НСП 1% [19:43:45]line > о реализуемом товаре [19:43:45]line ОКРУГЛЕНИЕ: -0.16 [19:43:45]line ИТОГО: 1000.00 [19:43:45]line Внесено: 1000.00 [19:43:45]line СДАЧА: 0.00 [19:43:45]line НСП 1% : 8.85 [19:43:45]line НДС 12% : 106.21 [19:43:45]line Наличными: 1000.00 [19:43:45]line Безнал.: 0.00 [19:43:45]line Место: АЗС № 86 "Партнер Нефть" [19:43:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:43:45]line СНО: Общий режим [19:43:45]line Чек 390 24.10.2024 19:43 [19:43:45]line Смена: 463 ФФД: 1.0 [19:43:45]line ЗНМ: 0300000155 [19:43:45]line РНМ: 0000000000100030 [19:43:45]line Версия ККМ: 001 [19:43:45]line ФМ: 0000000000965340 [19:43:45]line ФД: 189317 [19:43:45]line ФПД: 159179437605184 [19:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189317&fm=159179437605184&tin=02508201610067®Number=0000000000100030&sum=100000 [19:43:45]written 0, free lines is 4095 [19:43:45]OFD Sender: Processing packet 189317 [packets to send 1062, broken 1061] [19:43:45]ProducePacketName [19:43:45]name=ofd_packets/00189317 [19:43:45]OFD Sender: To server: pG, [19:43:45]CommunicateWithHost lk.salyk.kg:30040 [19:43:45]ConnectInit lk.salyk.kg [19:43:46]Connected sock=10 [19:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B 35 07 01 9D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 75 A3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E3 02 00 35 04 06 00 90 C5 D9 D5 81 40 5A 68 35 C9 6E AF F4 47 [19:43:46]Write to MH i2c: 01 00 00 AB 74 1F [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 07 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 07 00 AB 74 00 00 00 00 00 55 0C 87 [19:43:46]RasterBufferAndPrint [19:43:46]line [19:43:46]line [19:43:46]line [19:43:46]line [19:43:46]line [19:43:46]written 0, free lines is 3161 [19:43:46]MH_Cut [19:43:46]Write to MH i2c: D1 01 00 B2 74 01 F8 [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: D1 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: D1 01 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: D1 01 00 B2 74 00 F7 [19:43:46]Write to MH i2c: 01 00 00 B3 74 27 [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 27 47 00 E0 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 39 36 35 33 34 30 10 04 04 00 85 E3 02 00 F4 03 04 00 5C 4D 1A 67 B6 04 01 00 00 3B C0 8B 88 D3 E5 82 A5 [19:43:46]CommunicateWithHost err = 0 [19:43:46]CheckOFDResponse [19:43:46]1017 (14) - 77093643461234 [19:43:46]1041 (16) - 0000000000965340 [19:43:46]1040 (4) - 189317 [19:43:46]1012 (4) - 24.10.2024 13:36 [19:43:46]1206 (1) - 0 [19:43:46]OFD Sender: Remove packet 189317 [19:43:46]ProducePacketName [19:43:46]name=ofd_packets/00189317 [19:43:46]NVStorageDeleteData [19:43:47]OFD Sender: No OFD packet to send [19:43:47]*** Cut start [19:43:47]*** Partial cut [19:43:47]*** CUTSNS_PIN = 1 [19:43:47]*** CUTSNS_PIN = 0 [19:43:47]*** Brake cut motor [19:43:48]Read from MH i2c: 01 [19:43:48]MH_I2C_Read... [19:43:48]*** Stop cut motor [19:43:48]*** Cut end [19:43:48]Read from MH i2c: 01 07 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 07 00 B3 74 00 00 00 00 00 FF 0F 3C [19:43:48]process_action close_receipt done [19:43:48]requested_data is exist [19:43:48]produce_requested_data [19:43:48]requested_item fm.sn is exist - process it [19:43:48]wFMCommunicate request_size=4 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 11 00 00 [19:43:48]Write to MH i2c: E2 08 00 B4 74 80 11 00 00 00 00 00 00 A2 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 B4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [19:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:43:48]wFMCommunicate OK [19:43:48]requested_item fd.num is exist - process it [19:43:48]SAM_PROTO_GetFieldsCounters [19:43:48]wFMCommunicate request_size=4 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 13 00 00 [19:43:48]Write to MH i2c: E2 08 00 B5 74 80 13 00 00 00 00 00 00 A5 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 62 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 62 00 B5 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E3 02 00 0E 04 04 00 CF 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 7B [19:43:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E3 02 00 0E 04 04 00 CF 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 [19:43:48]wFMCommunicate OK [19:43:48]SAM_PROTO_GetFieldsCounters done [19:43:48]requested_item shift.num is exist - process it [19:43:48]requested_item shift.opened is exist - process it [19:43:48]req_shift_opened [19:43:48]FM_GetShiftState [19:43:48]SAM_PROTO_GetShiftState [19:43:48]wFMCommunicate request_size=4 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 13 01 00 [19:43:48]Write to MH i2c: E2 08 00 B6 74 80 13 01 00 00 00 00 00 A7 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 0E 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 0E 00 B6 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 85 [19:43:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:43:48]wFMCommunicate OK [19:43:48]SAM_PROTO_GetShiftState done [19:43:48]FM_GetShiftState done [19:43:48]req_shift_opened done [19:43:48]requested_item shift.open_date is exist - process it [19:43:48]req_shift_open_date [19:43:48]req_shift_open_date done [19:43:48]produce_requested_data done [19:43:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189317,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:43:48]process_action_free close_receipt [19:43:48]json_value_free [19:43:48]json_value_free done [19:43:48]process_json_proto returns [19:43:48]Send response to host [19:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189317,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:43:48]free response buf [19:43:48]execute_script done [19:43:48]execute_script returns [19:43:48]free content buf [19:43:48]Sock 8.Close socket [19:43:48]Sock 8.Thread stoped [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:55]accept exits with 9 [19:52:55]New connection [19:52:55]New thread 3067071844 created [19:52:55]Thread 3067215204 joined [19:52:55]Waiting for new connection... [19:52:55] Sock 9.Parse request [19:52:55]Sock 9.Check first char [19:52:55]Sock 9.First char is OK [19:52:55]request: POST /json_proto HTTP/1.0 [19:52:55]Method: POST [19:52:55]URL: /json_proto [19:52:55]Method is POST - this is cgi request [19:52:55]url: /json_proto [19:52:55]query_string will be loaded in cgi processing [19:52:55]execute_cgi json_proto POST (null) [19:52:55]execute_cgi path=json_proto method=POST [19:52:55]POST find Content-Length [19:52:55]Host: 172.17.42.131:8080 [19:52:55]Content-Length: 677 [19:52:55]Content-Type: application/json [19:52:55] [19:52:55]POST finish read [19:52:55]Found Content-Length = 677 [19:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "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" ] } } [19:52:55]execute_script... [19:52: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)211383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "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" ] } } [19:52:55]POST & json_proto [19:52:55]process_json_proto [19:52:55]json parsed OK: [19:52:55]protocol is kg_v1.0 [19:52:55]action value=close_receipt [19:52:55]process_action close_receipt [19:52:55]cmd_close_receipt [19:52:55]MH_GetDate [19:52:55]Write to MH i2c: F0 00 00 B7 74 1A [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: F0 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: F0 09 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: F0 09 00 B7 74 00 9C A5 1A 67 A0 18 CA 66 CD [19:52:55]GetLastDocTimeStamp 1729799029 [19:52:55]current date 1729799580 [19:52:55]FM_GetShiftState [19:52:55]SAM_PROTO_GetShiftState [19:52:55]wFMCommunicate request_size=4 [19:52:55]MH_SAM_APDU [19:52:55]CAPDU: 80 13 01 00 [19:52:55]Write to MH i2c: E2 08 00 B8 74 80 13 01 00 00 00 00 00 A9 [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:55]Read from MH i2c: E2 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 0E 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: E2 0E 00 B8 74 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 87 [19:52:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:52:55]wFMCommunicate OK [19:52:55]SAM_PROTO_GetShiftState done [19:52:55]FM_GetShiftState done [19:52:55]opened in 1729728961 [19:52:55]opened+sec_in_day 1729815361 [19:52:55]quantity*price = 44020 [19:52:55]sum+1 = 44021 [19:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 391 24.10.2024 19:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189318 ФПД: 129612673403997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189318&fm=129612673403997&tin=02508201610067®Number=0000000000100030&sum=44000 [19:52:56]StoreToDocumentArchive [19:52:56]shift 463 fd 189318 [19:52:56]save to /storage/0463/doc_00189318 [19:52:56]save last doc name /storage/0463/doc_00189318 to /storage/kkm_last_doc_name [19:52:56]save OK [19:52:56]Clear old archive folders... [19:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:56]tlvbuf is 015BED30 [19:52:56]SAM_PROTO_ClearQueue [19:52:56]wFMCommunicate request_size=4 [19:52:56]MH_SAM_APDU [19:52:56]CAPDU: 80 09 00 00 [19:52:56]Write to MH i2c: E2 08 00 C5 74 80 09 00 00 00 00 00 00 AB [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:56]Read from MH i2c: E2 03 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 03 00 C5 74 00 90 00 AD [19:52:56]RAPDU: 90 00 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_ClearQueue done [19:52:56]KKMCreateOFDPacket [19:52:56]OFDProtocolAddRootSTLVToBuf [19:52:56]FM_MakeSignedData [19:52:56]FM_MakeSignedData [19:52:56]SAM_PROTO_SignData [19:52:56]wFMCommunicate request_size=4 [19:52:56]MH_SAM_APDU [19:52:56]CAPDU: 80 0D 01 02 [19:52:56]Write to MH i2c: E2 08 00 C6 74 80 0D 01 02 00 00 00 00 B3 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 03 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 03 00 C6 74 00 90 00 AE [19:52:56]RAPDU: 90 00 [19:52:56]wFMCommunicate OK [19:52:56]wFMCommunicate request_size=255 [19:52:56]MH_SAM_APDU [19:52: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 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 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 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 87 01 00 00 F4 03 04 00 9C A5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E3 02 00 35 04 06 00 75 [19:52:56]Write to MH i2c: E2 02 01 C7 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 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 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 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 87 01 00 00 F4 03 04 00 9C A5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E3 02 00 35 04 06 00 75 00 00 35 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 C7 74 00 90 00 AF [19:52:57]RAPDU: 90 00 [19:52:57]wFMCommunicate OK [19:52:57]wFMCommunicate request_size=10 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 0D 02 02 05 E1 CD 5B 4C 5D [19:52:57]Write to MH i2c: E2 0D 00 C8 74 80 0D 02 02 05 00 E1 CD 5B 4C 5D 00 00 72 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 C8 74 00 90 00 B0 [19:52:57]RAPDU: 90 00 [19:52:57]wFMCommunicate OK [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 0D 03 02 [19:52:57]Write to MH i2c: E2 08 00 C9 74 80 0D 03 02 00 00 00 00 B8 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 0B 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 0B 00 C9 74 00 79 9D 18 6A FB 81 C7 97 90 00 2B [19:52:57]RAPDU: 79 9D 18 6A FB 81 C7 97 90 00 [19:52:57]wFMCommunicate OK [19:52:57]SAM_PROTO_SignData done [19:52:57]FM_MakeSignedData done [19:52:57]CreateOFDProtocolMessage [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 11 00 00 [19:52:57]Write to MH i2c: E2 08 00 CA 74 80 11 00 00 00 00 00 00 B8 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 17 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 17 00 CA 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [19:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:52:57]wFMCommunicate OK [19:52:57]CreateOFDProtocolMessage done [19:52:57]OFDSenderStorePacket 189318 [19:52:57]StoreOFDPacket docnum=189318 [19:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 B4 07 01 AE 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 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 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 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 87 01 00 00 F4 03 04 00 9C A5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E3 02 00 35 04 06 00 75 E1 CD 5B 4C 5D 79 9D 18 6A FB 81 C7 97 [19:52:57]CheckFolder [19:52:57]dirname=/storage/ofd_packets [19:52:57]CheckFolder done [19:52:57]ProducePacketName [19:52:57]name=ofd_packets/00189318 [19:52:57]NVStorageSaveData ofd_packets/00189318 [19:52:57]File name is /storage/ofd_packets/00189318 [19:52:57]Write 301 bytes [19:52:57]NVStorageSaveData done [19:52:57]OFDSenderStorePacket done [19:52:57]KKMCreateOFDPacket done [19:52:57]NVStorageSaveData kkm_last_timestamp [19:52:57]File name is /storage/kkm_last_timestamp [19:52:57]Write 4 bytes [19:52:57]NVStorageSaveData done [19:52:57]ExternCall_PrintAddStr [19:52:57]wPrintStart [19:52:57]Write to MH i2c: 01 00 00 CB 74 3F [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 07 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 07 00 CB 74 00 00 00 00 00 FF 0F 54 [19:52:57]RasterBufferAndPrint [19:52:57]line Счет N : (1)211383 [19:52:57]line ИНН: 02508201610067 [19:52:57]line Контрольно-Кассовый Чек [19:52:57]line ПРОДАЖА [19:52:57]line ТРК (МРК, ГНК) : 42 [19:52:57]line Товар: 2710124130 [19:52:57]line Аи-92-К-3 [19:52:57]line 6.580 * 66.90 [19:52:57]line = 440.20 [19:52:57]line НДС 12% НСП 1% [19:52:57]line > о реализуемом товаре [19:52:57]line ОКРУГЛЕНИЕ: -0.20 [19:52:57]line ИТОГО: 440.00 [19:52:57]line Внесено: 440.00 [19:52:57]line СДАЧА: 0.00 [19:52:57]line НСП 1% : 3.90 [19:52:57]line НДС 12% : 46.75 [19:52:57]line Наличными: 440.00 [19:52:57]line Безнал.: 0.00 [19:52:57]line Место: АЗС № 86 "Партнер Нефть" [19:52:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:52:57]line СНО: Общий режим [19:52:57]line Чек 391 24.10.2024 19:53 [19:52:57]line Смена: 463 ФФД: 1.0 [19:52:57]line ЗНМ: 0300000155 [19:52:57]line РНМ: 0000000000100030 [19:52:57]line Версия ККМ: 001 [19:52:57]line ФМ: 0000000000965340 [19:52:57]line ФД: 189318 [19:52:57]line ФПД: 129612673403997 [19:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189318&fm=129612673403997&tin=02508201610067®Number=0000000000100030&sum=44000 [19:52:57]OFD Sender: Processing packet 189318 [packets to send 1062, broken 1061] [19:52:57]ProducePacketName [19:52:57]name=ofd_packets/00189318 [19:52:57]OFD Sender: To server: pG, [19:52:57]CommunicateWithHost lk.salyk.kg:30040 [19:52:57]ConnectInit lk.salyk.kg [19:52:57]written 0, free lines is 4095 [19:52:57]Connected sock=10 [19:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 B4 07 01 AE 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 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 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 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 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 87 01 00 00 F4 03 04 00 9C A5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E3 02 00 35 04 06 00 75 E1 CD 5B 4C 5D 79 9D 18 6A FB 81 C7 97 [19:52:57]Write to MH i2c: 01 00 00 F6 74 6A [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 07 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 07 00 F6 74 00 00 00 00 00 53 0C D0 [19:52:57]RasterBufferAndPrint [19:52:57]line [19:52:57]line [19:52:57]line [19:52:57]line [19:52:57]line [19:52:57]written 0, free lines is 3159 [19:52:57]MH_Cut [19:52:57]Write to MH i2c: D1 01 00 FD 74 01 43 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: D1 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: D1 01 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: D1 01 00 FD 74 00 42 [19:52:58]Write to MH i2c: 01 00 00 FE 74 72 [19:52:58]Write i2c OK [19:52:58]MH_I2C_Read... [19:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 24 47 00 6C 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 39 36 35 33 34 30 10 04 04 00 86 E3 02 00 F4 03 04 00 83 4F 1A 67 B6 04 01 00 00 DF 38 79 C4 B6 2A 52 C1 [19:52:58]CommunicateWithHost err = 0 [19:52:58]CheckOFDResponse [19:52:58]1017 (14) - 77093643461234 [19:52:58]1041 (16) - 0000000000965340 [19:52:58]1040 (4) - 189318 [19:52:58]1012 (4) - 24.10.2024 13:45 [19:52:58]1206 (1) - 0 [19:52:58]OFD Sender: Remove packet 189318 [19:52:58]ProducePacketName [19:52:58]name=ofd_packets/00189318 [19:52:58]NVStorageDeleteData [19:52:58]OFD Sender: No OFD packet to send [19:52:59]*** Cut start [19:52:59]*** Partial cut [19:52:59]*** CUTSNS_PIN = 1 [19:52:59]*** CUTSNS_PIN = 0 [19:52:59]*** Brake cut motor [19:52:59]Read from MH i2c: 01 [19:52:59]MH_I2C_Read... [19:52:59]*** Stop cut motor [19:52:59]*** Cut end [19:52:59]Read from MH i2c: 01 07 00 [19:52:59]MH_I2C_Read... [19:52:59]Read from MH i2c: 01 07 00 FE 74 00 00 00 00 00 FF 0F 87 [19:52:59]process_action close_receipt done [19:52:59]requested_data is exist [19:52:59]produce_requested_data [19:52:59]requested_item fm.sn is exist - process it [19:52:59]wFMCommunicate request_size=4 [19:52:59]MH_SAM_APDU [19:52:59]CAPDU: 80 11 00 00 [19:52:59]Write to MH i2c: E2 08 00 FF 74 80 11 00 00 00 00 00 00 ED [19:52:59]Write i2c OK [19:52:59]MH_I2C_Read... [19:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:00]Read from MH i2c: E2 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 17 00 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 17 00 FF 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [19:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:53:00]wFMCommunicate OK [19:53:00]requested_item fd.num is exist - process it [19:53:00]SAM_PROTO_GetFieldsCounters [19:53:00]wFMCommunicate request_size=4 [19:53:00]MH_SAM_APDU [19:53:00]CAPDU: 80 13 00 00 [19:53:00]Write to MH i2c: E2 08 00 00 75 80 13 00 00 00 00 00 00 F1 [19:53:00]Write i2c OK [19:53:00]MH_I2C_Read... [19:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:00]Read from MH i2c: E2 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 62 00 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 62 00 00 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E3 02 00 0E 04 04 00 CF 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 CB [19:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E3 02 00 0E 04 04 00 CF 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 [19:53:00]wFMCommunicate OK [19:53:00]SAM_PROTO_GetFieldsCounters done [19:53:00]requested_item shift.num is exist - process it [19:53:00]requested_item shift.opened is exist - process it [19:53:00]req_shift_opened [19:53:00]FM_GetShiftState [19:53:00]SAM_PROTO_GetShiftState [19:53:00]wFMCommunicate request_size=4 [19:53:00]MH_SAM_APDU [19:53:00]CAPDU: 80 13 01 00 [19:53:00]Write to MH i2c: E2 08 00 01 75 80 13 01 00 00 00 00 00 F3 [19:53:00]Write i2c OK [19:53:00]MH_I2C_Read... [19:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:00]Read from MH i2c: E2 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 0E 00 [19:53:00]MH_I2C_Read... [19:53:00]Read from MH i2c: E2 0E 00 01 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D1 [19:53:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [19:53:00]wFMCommunicate OK [19:53:00]SAM_PROTO_GetShiftState done [19:53:00]FM_GetShiftState done [19:53:00]req_shift_opened done [19:53:00]requested_item shift.open_date is exist - process it [19:53:00]req_shift_open_date [19:53:00]req_shift_open_date done [19:53:00]produce_requested_data done [19:53:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189318,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [19:53:00]process_action_free close_receipt [19:53:00]json_value_free [19:53:00]json_value_free done [19:53:00]process_json_proto returns [19:53:00]Send response to host [19:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189318,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [19:53:00]free response buf [19:53:00]execute_script done [19:53:00]execute_script returns [19:53:00]free content buf [19:53:00]Sock 9.Close socket [19:53:00]Sock 9.Thread stoped [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57: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:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]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:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:53]accept exits with 8 [20:08:53]New connection [20:08:53]New thread 3067215204 created [20:08:53]Thread 3067071844 joined [20:08:53]Waiting for new connection... [20:08:53] Sock 8.Parse request [20:08:53]Sock 8.Check first char [20:08:53]Sock 8.First char is OK [20:08:53]request: POST /json_proto HTTP/1.0 [20:08:53]Method: POST [20:08:53]URL: /json_proto [20:08:53]Method is POST - this is cgi request [20:08:53]url: /json_proto [20:08:53]query_string will be loaded in cgi processing [20:08:53]execute_cgi json_proto POST (null) [20:08:53]execute_cgi path=json_proto method=POST [20:08:53]POST find Content-Length [20:08:53]Host: 172.17.42.131:8080 [20:08:53]Content-Length: 797 [20:08:53]Content-Type: application/json [20:08:53] [20:08:53]POST finish read [20:08:53]Found Content-Length = 797 [20:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\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\u000A4295797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:53]execute_script... [20:08: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)211384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\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\u000A4295797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:53]POST & json_proto [20:08:53]process_json_proto [20:08:53]json parsed OK: [20:08:53]protocol is kg_v1.0 [20:08:53]action value=close_receipt [20:08:53]process_action close_receipt [20:08:53]cmd_close_receipt [20:08:53]MH_GetDate [20:08:53]Write to MH i2c: F0 00 00 02 75 66 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: F0 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: F0 09 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: F0 09 00 02 75 00 5A A9 1A 67 A0 18 CA 66 DB [20:08:53]GetLastDocTimeStamp 1729799580 [20:08:53]current date 1729800538 [20:08:53]FM_GetShiftState [20:08:53]SAM_PROTO_GetShiftState [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 13 01 00 [20:08:53]Write to MH i2c: E2 08 00 03 75 80 13 01 00 00 00 00 00 F5 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0E 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0E 00 03 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D3 [20:08:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:08:53]wFMCommunicate OK [20:08:53]SAM_PROTO_GetShiftState done [20:08:53]FM_GetShiftState done [20:08:53]opened in 1729728961 [20:08:53]opened+sec_in_day 1729815361 [20:08:53]quantity*price = 0 [20:08:53]sum+1 = 1 [20:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 392 24.10.2024 20:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4295797 ФМ: 0000000000965340 ФД: 189319 ФПД: 136773456617491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189319&fm=136773456617491&tin=02508201610067®Number=0000000000100030&sum=0 [20:08:54]StoreToDocumentArchive [20:08:54]shift 463 fd 189319 [20:08:54]save to /storage/0463/doc_00189319 [20:08:54]save last doc name /storage/0463/doc_00189319 to /storage/kkm_last_doc_name [20:08:54]save OK [20:08:54]Clear old archive folders... [20:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:54]tlvbuf is 01533D30 [20:08:54]SAM_PROTO_ClearQueue [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 09 00 00 [20:08:54]Write to MH i2c: E2 08 00 10 75 80 09 00 00 00 00 00 00 F7 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 10 75 00 90 00 F9 [20:08:54]RAPDU: 90 00 [20:08:54]wFMCommunicate OK [20:08:54]SAM_PROTO_ClearQueue done [20:08:54]KKMCreateOFDPacket [20:08:54]OFDProtocolAddRootSTLVToBuf [20:08:54]FM_MakeSignedData [20:08:54]FM_MakeSignedData [20:08:54]SAM_PROTO_SignData [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 0D 01 02 [20:08:54]Write to MH i2c: E2 08 00 11 75 80 0D 01 02 00 00 00 00 FF [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 11 75 00 90 00 FA [20:08:54]RAPDU: 90 00 [20:08:54]wFMCommunicate OK [20:08:54]wFMCommunicate request_size=255 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5A A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E3 02 00 35 04 06 00 7C 65 0D 4B [20:08:54]Write to MH i2c: E2 02 01 12 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5A A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E3 02 00 35 04 06 00 7C 65 0D 4B 00 00 FB [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 12 75 00 90 00 FB [20:08:54]RAPDU: 90 00 [20:08:54]wFMCommunicate OK [20:08:54]wFMCommunicate request_size=7 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 0D 02 02 02 E0 13 [20:08:54]Write to MH i2c: E2 0A 00 13 75 80 0D 02 02 02 00 E0 13 00 00 F9 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 03 00 13 75 00 90 00 FC [20:08:54]RAPDU: 90 00 [20:08:54]wFMCommunicate OK [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 0D 03 02 [20:08:54]Write to MH i2c: E2 08 00 14 75 80 0D 03 02 00 00 00 00 04 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 0B 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 0B 00 14 75 00 40 C0 1C 5A C5 06 FD DD 90 00 20 [20:08:54]RAPDU: 40 C0 1C 5A C5 06 FD DD 90 00 [20:08:54]wFMCommunicate OK [20:08:54]SAM_PROTO_SignData done [20:08:54]FM_MakeSignedData done [20:08:54]CreateOFDProtocolMessage [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 11 00 00 [20:08:54]Write to MH i2c: E2 08 00 15 75 80 11 00 00 00 00 00 00 04 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 17 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 17 00 15 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [20:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:54]wFMCommunicate OK [20:08:54]CreateOFDProtocolMessage done [20:08:54]OFDSenderStorePacket 189319 [20:08:54]StoreOFDPacket docnum=189319 [20:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D8 01 04 01 DB DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5A A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E3 02 00 35 04 06 00 7C 65 0D 4B E0 13 40 C0 1C 5A C5 06 FD DD [20:08:54]CheckFolder [20:08:54]dirname=/storage/ofd_packets [20:08:54]CheckFolder done [20:08:54]ProducePacketName [20:08:54]name=ofd_packets/00189319 [20:08:54]NVStorageSaveData ofd_packets/00189319 [20:08:54]File name is /storage/ofd_packets/00189319 [20:08:54]Write 298 bytes [20:08:54]NVStorageSaveData done [20:08:54]OFDSenderStorePacket done [20:08:54]KKMCreateOFDPacket done [20:08:54]NVStorageSaveData kkm_last_timestamp [20:08:54]File name is /storage/kkm_last_timestamp [20:08:54]Write 4 bytes [20:08:54]NVStorageSaveData done [20:08:54]ExternCall_PrintAddStr [20:08:54]wPrintStart [20:08:54]Write to MH i2c: 01 00 00 16 75 8B [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 16 75 00 00 00 00 00 FF 0F A0 [20:08:54]RasterBufferAndPrint [20:08:54]line Счет N : (1)211384 [20:08:54]line ИНН: 02508201610067 [20:08:54]line Контрольно-Кассовый Чек [20:08:54]line ПРОДАЖА [20:08:54]line ТРК (МРК, ГНК) : 51 [20:08:54]line Товар: 2710194210 [20:08:54]line ДТ-К-5 [20:08:54]line 10.000 * 0.00 [20:08:54]line = 0.00 [20:08:54]line НДС 12% НСП 1% [20:08:54]line > о реализуемом товаре [20:08:54]line ИТОГО: 0.00 [20:08:54]line НСП 1% : 0.00 [20:08:54]line НДС 12% : 0.00 [20:08:54]line Наличными: 0.00 [20:08:54]line Безнал.: 0.00 [20:08:54]line Место: АЗС № 86 "Партнер Нефть" [20:08:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:08:54]line СНО: Общий режим [20:08:54]line Чек 392 24.10.2024 20:08 [20:08:54]line Смена: 463 ФФД: 1.0 [20:08:54]line ЗНМ: 0300000155 [20:08:54]line РНМ: 0000000000100030 [20:08:54]line Версия ККМ: 001 [20:08:54]line Талоны: Топливные Талоны [20:08:54]line 4295797 [20:08:54]line ФМ: 0000000000965340 [20:08:54]line ФД: 189319 [20:08:54]line ФПД: 136773456617491 [20:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189319&fm=136773456617491&tin=02508201610067®Number=0000000000100030&sum=0 [20:08:54]written 0, free lines is 4095 [20:08:54]OFD Sender: Processing packet 189319 [packets to send 1062, broken 1061] [20:08:54]ProducePacketName [20:08:54]name=ofd_packets/00189319 [20:08:54]OFD Sender: To server: pG, [20:08:54]CommunicateWithHost lk.salyk.kg:30040 [20:08:54]ConnectInit lk.salyk.kg [20:08:55]Connected sock=10 [20:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D8 01 04 01 DB DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5A A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E3 02 00 35 04 06 00 7C 65 0D 4B E0 13 40 C0 1C 5A C5 06 FD DD [20:08:55]Write to MH i2c: 01 00 00 40 75 B5 [20:08:55]Write i2c OK [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: 01 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: 01 07 00 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: 01 07 00 40 75 00 00 00 00 00 64 0C 2C [20:08:55]RasterBufferAndPrint [20:08:55]line [20:08:55]line [20:08:55]line [20:08:55]line [20:08:55]line [20:08:55]written 0, free lines is 3177 [20:08:55]MH_Cut [20:08:55]Write to MH i2c: D1 01 00 47 75 01 8E [20:08:55]Write i2c OK [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: D1 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: D1 01 00 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: D1 01 00 47 75 00 8D [20:08:55]Write to MH i2c: 01 00 00 48 75 BD [20:08:55]Write i2c OK [20:08:55]MH_I2C_Read... [20:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 1D 47 00 62 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E3 02 00 F4 03 04 00 41 53 1A 67 B6 04 01 00 00 BD 47 25 9C FD 18 63 97 [20:08:55]CommunicateWithHost err = 0 [20:08:55]CheckOFDResponse [20:08:55]1017 (14) - 77093643461234 [20:08:55]1041 (16) - 0000000000965340 [20:08:55]1040 (4) - 189319 [20:08:55]1012 (4) - 24.10.2024 14:01 [20:08:55]1206 (1) - 0 [20:08:55]OFD Sender: Remove packet 189319 [20:08:55]ProducePacketName [20:08:55]name=ofd_packets/00189319 [20:08:55]NVStorageDeleteData [20:08:56]OFD Sender: No OFD packet to send [20:08:56]*** Cut start [20:08:56]*** Partial cut [20:08:56]*** CUTSNS_PIN = 1 [20:08:56]*** CUTSNS_PIN = 0 [20:08:56]*** Brake cut motor [20:08:57]Read from MH i2c: 01 [20:08:57]MH_I2C_Read... [20:08:57]*** Stop cut motor [20:08:57]*** Cut end [20:08:57]Read from MH i2c: 01 07 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: 01 07 00 48 75 00 00 00 00 00 FF 0F D2 [20:08:57]process_action close_receipt done [20:08:57]requested_data is exist [20:08:57]produce_requested_data [20:08:57]requested_item fm.sn is exist - process it [20:08:57]wFMCommunicate request_size=4 [20:08:57]MH_SAM_APDU [20:08:57]CAPDU: 80 11 00 00 [20:08:57]Write to MH i2c: E2 08 00 49 75 80 11 00 00 00 00 00 00 38 [20:08:57]Write i2c OK [20:08:57]MH_I2C_Read... [20:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:57]Read from MH i2c: E2 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 17 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 17 00 49 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [20:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:57]wFMCommunicate OK [20:08:57]requested_item fd.num is exist - process it [20:08:57]SAM_PROTO_GetFieldsCounters [20:08:57]wFMCommunicate request_size=4 [20:08:57]MH_SAM_APDU [20:08:57]CAPDU: 80 13 00 00 [20:08:57]Write to MH i2c: E2 08 00 4A 75 80 13 00 00 00 00 00 00 3B [20:08:57]Write i2c OK [20:08:57]MH_I2C_Read... [20:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:57]Read from MH i2c: E2 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 62 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 62 00 4A 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E3 02 00 0E 04 04 00 CF 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 19 [20:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E3 02 00 0E 04 04 00 CF 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 [20:08:57]wFMCommunicate OK [20:08:57]SAM_PROTO_GetFieldsCounters done [20:08:57]requested_item shift.num is exist - process it [20:08:57]requested_item shift.opened is exist - process it [20:08:57]req_shift_opened [20:08:57]FM_GetShiftState [20:08:57]SAM_PROTO_GetShiftState [20:08:57]wFMCommunicate request_size=4 [20:08:57]MH_SAM_APDU [20:08:57]CAPDU: 80 13 01 00 [20:08:57]Write to MH i2c: E2 08 00 4B 75 80 13 01 00 00 00 00 00 3D [20:08:57]Write i2c OK [20:08:57]MH_I2C_Read... [20:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:57]Read from MH i2c: E2 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 0E 00 [20:08:57]MH_I2C_Read... [20:08:57]Read from MH i2c: E2 0E 00 4B 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1B [20:08:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:08:57]wFMCommunicate OK [20:08:57]SAM_PROTO_GetShiftState done [20:08:57]FM_GetShiftState done [20:08:57]req_shift_opened done [20:08:57]requested_item shift.open_date is exist - process it [20:08:57]req_shift_open_date [20:08:57]req_shift_open_date done [20:08:57]produce_requested_data done [20:08:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189319,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:08:57]process_action_free close_receipt [20:08:57]json_value_free [20:08:57]json_value_free done [20:08:57]process_json_proto returns [20:08:57]Send response to host [20:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189319,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:08:57]free response buf [20:08:57]execute_script done [20:08:57]execute_script returns [20:08:57]free content buf [20:08:57]Sock 8.Close socket [20:08:57]Sock 8.Thread stoped [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:33]accept exits with 9 [20:09:33]New connection [20:09:33]New thread 3067071844 created [20:09:33]Thread 3067215204 joined [20:09:33]Waiting for new connection... [20:09:33] Sock 9.Parse request [20:09:33]Sock 9.Check first char [20:09:33]Sock 9.First char is OK [20:09:33]request: POST /json_proto HTTP/1.0 [20:09:33]Method: POST [20:09:33]URL: /json_proto [20:09:33]Method is POST - this is cgi request [20:09:33]url: /json_proto [20:09:33]query_string will be loaded in cgi processing [20:09:33]execute_cgi json_proto POST (null) [20:09:33]execute_cgi path=json_proto method=POST [20:09:33]POST find Content-Length [20:09:33]Host: 172.17.42.131:8080 [20:09:33]Content-Length: 674 [20:09:33]Content-Type: application/json [20:09:33] [20:09:33]POST finish read [20:09:33]Found Content-Length = 674 [20:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.150, "sum" : 240.03, "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:09:33]execute_script... [20:09: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)211385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.150, "sum" : 240.03, "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:09:33]POST & json_proto [20:09:33]process_json_proto [20:09:33]json parsed OK: [20:09:33]protocol is kg_v1.0 [20:09:33]action value=close_receipt [20:09:33]process_action close_receipt [20:09:33]cmd_close_receipt [20:09:33]MH_GetDate [20:09:33]Write to MH i2c: F0 00 00 4C 75 B0 [20:09:33]Write i2c OK [20:09:33]MH_I2C_Read... [20:09:33]Read from MH i2c: F0 [20:09:33]MH_I2C_Read... [20:09:33]Read from MH i2c: F0 09 00 [20:09:33]MH_I2C_Read... [20:09:33]Read from MH i2c: F0 09 00 4C 75 00 82 A9 1A 67 A0 18 CA 66 4D [20:09:33]GetLastDocTimeStamp 1729800538 [20:09:33]current date 1729800578 [20:09:33]FM_GetShiftState [20:09:33]SAM_PROTO_GetShiftState [20:09:33]wFMCommunicate request_size=4 [20:09:33]MH_SAM_APDU [20:09:33]CAPDU: 80 13 01 00 [20:09:33]Write to MH i2c: E2 08 00 4D 75 80 13 01 00 00 00 00 00 3F [20:09:33]Write i2c OK [20:09:33]MH_I2C_Read... [20:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:33]Read from MH i2c: E2 [20:09:33]MH_I2C_Read... [20:09:33]Read from MH i2c: E2 0E 00 [20:09:33]MH_I2C_Read... [20:09:33]Read from MH i2c: E2 0E 00 4D 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1D [20:09:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:09:33]wFMCommunicate OK [20:09:33]SAM_PROTO_GetShiftState done [20:09:33]FM_GetShiftState done [20:09:33]opened in 1729728961 [20:09:33]opened+sec_in_day 1729815361 [20:09:33]quantity*price = 24003 [20:09:33]sum+1 = 24004 [20:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 393 24.10.2024 20:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189320 ФПД: 14148016378890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189320&fm=14148016378890&tin=02508201610067®Number=0000000000100030&sum=24000 [20:09:34]StoreToDocumentArchive [20:09:34]shift 463 fd 189320 [20:09:34]save to /storage/0463/doc_00189320 [20:09:34]save last doc name /storage/0463/doc_00189320 to /storage/kkm_last_doc_name [20:09:34]save OK [20:09:34]Clear old archive folders... [20:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:09:34]tlvbuf is 017009A0 [20:09:34]SAM_PROTO_ClearQueue [20:09:34]wFMCommunicate request_size=4 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 09 00 00 [20:09:34]Write to MH i2c: E2 08 00 5A 75 80 09 00 00 00 00 00 00 41 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 5A 75 00 90 00 43 [20:09:34]RAPDU: 90 00 [20:09:34]wFMCommunicate OK [20:09:34]SAM_PROTO_ClearQueue done [20:09:34]KKMCreateOFDPacket [20:09:34]OFDProtocolAddRootSTLVToBuf [20:09:34]FM_MakeSignedData [20:09:34]FM_MakeSignedData [20:09:34]SAM_PROTO_SignData [20:09:34]wFMCommunicate request_size=4 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 0D 01 02 [20:09:34]Write to MH i2c: E2 08 00 5B 75 80 0D 01 02 00 00 00 00 49 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 5B 75 00 90 00 44 [20:09:34]RAPDU: 90 00 [20:09:34]wFMCommunicate OK [20:09:34]wFMCommunicate request_size=255 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C3 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 89 01 00 00 F4 03 04 00 82 A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E3 02 00 35 04 06 00 0C DE 17 7D [20:09:34]Write to MH i2c: E2 02 01 5C 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C3 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 89 01 00 00 F4 03 04 00 82 A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E3 02 00 35 04 06 00 0C DE 17 7D 00 00 E4 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 5C 75 00 90 00 45 [20:09:34]RAPDU: 90 00 [20:09:34]wFMCommunicate OK [20:09:34]wFMCommunicate request_size=7 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 0D 02 02 02 94 0A [20:09:34]Write to MH i2c: E2 0A 00 5D 75 80 0D 02 02 02 00 94 0A 00 00 EE [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 03 00 5D 75 00 90 00 46 [20:09:34]RAPDU: 90 00 [20:09:34]wFMCommunicate OK [20:09:34]wFMCommunicate request_size=4 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 0D 03 02 [20:09:34]Write to MH i2c: E2 08 00 5E 75 80 0D 03 02 00 00 00 00 4E [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 0B 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 0B 00 5E 75 00 99 0B A6 00 3B B0 E7 78 90 00 E3 [20:09:34]RAPDU: 99 0B A6 00 3B B0 E7 78 90 00 [20:09:34]wFMCommunicate OK [20:09:34]SAM_PROTO_SignData done [20:09:34]FM_MakeSignedData done [20:09:34]CreateOFDProtocolMessage [20:09:34]wFMCommunicate request_size=4 [20:09:34]MH_SAM_APDU [20:09:34]CAPDU: 80 11 00 00 [20:09:34]Write to MH i2c: E2 08 00 5F 75 80 11 00 00 00 00 00 00 4E [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:34]Read from MH i2c: E2 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 17 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: E2 17 00 5F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [20:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:34]wFMCommunicate OK [20:09:34]CreateOFDProtocolMessage done [20:09:34]OFDSenderStorePacket 189320 [20:09:34]StoreOFDPacket docnum=189320 [20:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4B 0D 04 01 9D E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C3 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 89 01 00 00 F4 03 04 00 82 A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E3 02 00 35 04 06 00 0C DE 17 7D 94 0A 99 0B A6 00 3B B0 E7 78 [20:09:34]CheckFolder [20:09:34]dirname=/storage/ofd_packets [20:09:34]CheckFolder done [20:09:34]ProducePacketName [20:09:34]name=ofd_packets/00189320 [20:09:34]NVStorageSaveData ofd_packets/00189320 [20:09:34]File name is /storage/ofd_packets/00189320 [20:09:34]Write 298 bytes [20:09:34]NVStorageSaveData done [20:09:34]OFDSenderStorePacket done [20:09:34]KKMCreateOFDPacket done [20:09:34]NVStorageSaveData kkm_last_timestamp [20:09:34]File name is /storage/kkm_last_timestamp [20:09:34]Write 4 bytes [20:09:34]NVStorageSaveData done [20:09:34]ExternCall_PrintAddStr [20:09:34]wPrintStart [20:09:34]Write to MH i2c: 01 00 00 60 75 D5 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 60 75 00 00 00 00 00 FF 0F EA [20:09:34]RasterBufferAndPrint [20:09:34]line Счет N : (1)211385 [20:09:34]line ИНН: 02508201610067 [20:09:34]line Контрольно-Кассовый Чек [20:09:34]line ПРОДАЖА [20:09:34]line ТРК (МРК, ГНК) : 51 [20:09:34]line Товар: 2710194210 [20:09:34]line ДТ-К-5 [20:09:34]line 3.150 * 76.20 [20:09:34]line = 240.03 [20:09:34]line НДС 12% НСП 1% [20:09:34]line > о реализуемом товаре [20:09:34]line ОКРУГЛЕНИЕ: -0.03 [20:09:34]line ИТОГО: 240.00 [20:09:34]line Внесено: 240.00 [20:09:34]line СДАЧА: 0.00 [20:09:34]line НСП 1% : 2.12 [20:09:34]line НДС 12% : 25.49 [20:09:34]line Наличными: 240.00 [20:09:34]line Безнал.: 0.00 [20:09:34]line Место: АЗС № 86 "Партнер Нефть" [20:09:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:09:34]line СНО: Общий режим [20:09:34]line Чек 393 24.10.2024 20:09 [20:09:34]line Смена: 463 ФФД: 1.0 [20:09:34]line ЗНМ: 0300000155 [20:09:34]line РНМ: 0000000000100030 [20:09:34]line Версия ККМ: 001 [20:09:34]line ФМ: 0000000000965340 [20:09:34]line ФД: 189320 [20:09:34]line ФПД: 14148016378890 [20:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189320&fm=14148016378890&tin=02508201610067®Number=0000000000100030&sum=24000 [20:09:34]written 0, free lines is 4095 [20:09:34]OFD Sender: Processing packet 189320 [packets to send 1062, broken 1061] [20:09:34]ProducePacketName [20:09:34]name=ofd_packets/00189320 [20:09:34]OFD Sender: To server: pG, [20:09:34]CommunicateWithHost lk.salyk.kg:30040 [20:09:34]ConnectInit lk.salyk.kg [20:09:35]Connected sock=10 [20:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4B 0D 04 01 9D E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C3 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 89 01 00 00 F4 03 04 00 82 A9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E3 02 00 35 04 06 00 0C DE 17 7D 94 0A 99 0B A6 00 3B B0 E7 78 [20:09:35]Write to MH i2c: 01 00 00 8B 75 00 [20:09:35]Write i2c OK [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: 01 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: 01 07 00 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: 01 07 00 8B 75 00 00 00 00 00 59 0C 6C [20:09:35]RasterBufferAndPrint [20:09:35]line [20:09:35]line [20:09:35]line [20:09:35]line [20:09:35]line [20:09:35]written 0, free lines is 3165 [20:09:35]MH_Cut [20:09:35]Write to MH i2c: D1 01 00 92 75 01 D9 [20:09:35]Write i2c OK [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: D1 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: D1 01 00 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: D1 01 00 92 75 00 D8 [20:09:35]Write to MH i2c: 01 00 00 93 75 08 [20:09:35]Write i2c OK [20:09:35]MH_I2C_Read... [20:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 76 47 00 4A 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 39 36 35 33 34 30 10 04 04 00 88 E3 02 00 F4 03 04 00 69 53 1A 67 B6 04 01 00 00 70 18 8C 93 6A 0F 4B 7A [20:09:35]CommunicateWithHost err = 0 [20:09:35]CheckOFDResponse [20:09:35]1017 (14) - 77093643461234 [20:09:35]1041 (16) - 0000000000965340 [20:09:35]1040 (4) - 189320 [20:09:35]1012 (4) - 24.10.2024 14:02 [20:09:35]1206 (1) - 0 [20:09:35]OFD Sender: Remove packet 189320 [20:09:35]ProducePacketName [20:09:35]name=ofd_packets/00189320 [20:09:35]NVStorageDeleteData [20:09:35]OFD Sender: No OFD packet to send [20:09:36]*** Cut start [20:09:36]*** Partial cut [20:09:36]*** CUTSNS_PIN = 1 [20:09:36]*** CUTSNS_PIN = 0 [20:09:36]*** Brake cut motor [20:09:37]Read from MH i2c: 01 [20:09:37]MH_I2C_Read... [20:09:37]*** Stop cut motor [20:09:37]*** Cut end [20:09:37]Read from MH i2c: 01 07 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: 01 07 00 93 75 00 00 00 00 00 FF 0F 1D [20:09:37]process_action close_receipt done [20:09:37]requested_data is exist [20:09:37]produce_requested_data [20:09:37]requested_item fm.sn is exist - process it [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 11 00 00 [20:09:37]Write to MH i2c: E2 08 00 94 75 80 11 00 00 00 00 00 00 83 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 17 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 17 00 94 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [20:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:37]wFMCommunicate OK [20:09:37]requested_item fd.num is exist - process it [20:09:37]SAM_PROTO_GetFieldsCounters [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 13 00 00 [20:09:37]Write to MH i2c: E2 08 00 95 75 80 13 00 00 00 00 00 00 86 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 62 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 62 00 95 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E3 02 00 0E 04 04 00 CF 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 68 [20:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E3 02 00 0E 04 04 00 CF 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 [20:09:37]wFMCommunicate OK [20:09:37]SAM_PROTO_GetFieldsCounters done [20:09:37]requested_item shift.num is exist - process it [20:09:37]requested_item shift.opened is exist - process it [20:09:37]req_shift_opened [20:09:37]FM_GetShiftState [20:09:37]SAM_PROTO_GetShiftState [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 13 01 00 [20:09:37]Write to MH i2c: E2 08 00 96 75 80 13 01 00 00 00 00 00 88 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 0E 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 0E 00 96 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 66 [20:09:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:09:37]wFMCommunicate OK [20:09:37]SAM_PROTO_GetShiftState done [20:09:37]FM_GetShiftState done [20:09:37]req_shift_opened done [20:09:37]requested_item shift.open_date is exist - process it [20:09:37]req_shift_open_date [20:09:37]req_shift_open_date done [20:09:37]produce_requested_data done [20:09:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189320,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:09:37]process_action_free close_receipt [20:09:37]json_value_free [20:09:37]json_value_free done [20:09:37]process_json_proto returns [20:09:37]Send response to host [20:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189320,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:09:37]free response buf [20:09:37]execute_script done [20:09:37]execute_script returns [20:09:37]free content buf [20:09:37]Sock 9.Close socket [20:09:37]Sock 9.Thread stoped [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:15:57]accept exits with 8 [20:15:57]New connection [20:15:57]New thread 3067215204 created [20:15:57]Thread 3067071844 joined [20:15:57]Waiting for new connection... [20:15:57] Sock 8.Parse request [20:15:57]Sock 8.Check first char [20:15:57]Sock 8.First char is OK [20:15:57]request: POST /json_proto HTTP/1.0 [20:15:57]Method: POST [20:15:57]URL: /json_proto [20:15:57]Method is POST - this is cgi request [20:15:57]url: /json_proto [20:15:57]query_string will be loaded in cgi processing [20:15:57]execute_cgi json_proto POST (null) [20:15:57]execute_cgi path=json_proto method=POST [20:15:57]POST find Content-Length [20:15:57]Host: 172.17.42.131:8080 [20:15:57]Content-Length: 677 [20:15:57]Content-Type: application/json [20:15:57] [20:15:57]POST finish read [20:15:57]Found Content-Length = 677 [20:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [20:15:57]execute_script... [20:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [20:15:57]POST & json_proto [20:15:57]process_json_proto [20:15:57]json parsed OK: [20:15:57]protocol is kg_v1.0 [20:15:57]action value=close_receipt [20:15:57]process_action close_receipt [20:15:57]cmd_close_receipt [20:15:57]MH_GetDate [20:15:57]Write to MH i2c: F0 00 00 97 75 FB [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: F0 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: F0 09 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: F0 09 00 97 75 00 02 AB 1A 67 A0 18 CA 66 1A [20:15:57]GetLastDocTimeStamp 1729800578 [20:15:57]current date 1729800962 [20:15:57]FM_GetShiftState [20:15:57]SAM_PROTO_GetShiftState [20:15:57]wFMCommunicate request_size=4 [20:15:57]MH_SAM_APDU [20:15:57]CAPDU: 80 13 01 00 [20:15:57]Write to MH i2c: E2 08 00 98 75 80 13 01 00 00 00 00 00 8A [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:57]Read from MH i2c: E2 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 0E 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 0E 00 98 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 68 [20:15:57]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:15:57]wFMCommunicate OK [20:15:57]SAM_PROTO_GetShiftState done [20:15:57]FM_GetShiftState done [20:15:57]opened in 1729728961 [20:15:57]opened+sec_in_day 1729815361 [20:15:57]quantity*price = 60009 [20:15:57]sum+1 = 60010 [20:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 394 24.10.2024 20:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189321 ФПД: 187744235370052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201602&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189321&fm=187744235370052&tin=02508201610067®Number=0000000000100030&sum=60000 [20:15:58]StoreToDocumentArchive [20:15:58]shift 463 fd 189321 [20:15:58]save to /storage/0463/doc_00189321 [20:15:58]save last doc name /storage/0463/doc_00189321 to /storage/kkm_last_doc_name [20:15:58]save OK [20:15:58]Clear old archive folders... [20:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:58]tlvbuf is 01517B90 [20:15:58]SAM_PROTO_ClearQueue [20:15:58]wFMCommunicate request_size=4 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 09 00 00 [20:15:58]Write to MH i2c: E2 08 00 A5 75 80 09 00 00 00 00 00 00 8C [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 A5 75 00 90 00 8E [20:15:58]RAPDU: 90 00 [20:15:58]wFMCommunicate OK [20:15:58]SAM_PROTO_ClearQueue done [20:15:58]KKMCreateOFDPacket [20:15:58]OFDProtocolAddRootSTLVToBuf [20:15:58]FM_MakeSignedData [20:15:58]FM_MakeSignedData [20:15:58]SAM_PROTO_SignData [20:15:58]wFMCommunicate request_size=4 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 0D 01 02 [20:15:58]Write to MH i2c: E2 08 00 A6 75 80 0D 01 02 00 00 00 00 94 [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 A6 75 00 90 00 8F [20:15:59]RAPDU: 90 00 [20:15:59]wFMCommunicate OK [20:15:59]wFMCommunicate request_size=255 [20:15:59]MH_SAM_APDU [20:15: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 8A 01 00 00 F4 03 04 00 02 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E3 02 00 35 04 06 00 AA [20:15:59]Write to MH i2c: E2 02 01 A7 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 8A 01 00 00 F4 03 04 00 02 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E3 02 00 35 04 06 00 AA 00 00 85 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 A7 75 00 90 00 90 [20:15:59]RAPDU: 90 00 [20:15:59]wFMCommunicate OK [20:15:59]wFMCommunicate request_size=10 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 0D 02 02 05 C0 9C 75 36 44 [20:15:59]Write to MH i2c: E2 0D 00 A8 75 80 0D 02 02 05 00 C0 9C 75 36 44 00 00 EC [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 03 00 A8 75 00 90 00 91 [20:15:59]RAPDU: 90 00 [20:15:59]wFMCommunicate OK [20:15:59]wFMCommunicate request_size=4 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 0D 03 02 [20:15:59]Write to MH i2c: E2 08 00 A9 75 80 0D 03 02 00 00 00 00 99 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 0B 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 0B 00 A9 75 00 EA 8E 51 1B 3C 6F F0 07 90 00 20 [20:15:59]RAPDU: EA 8E 51 1B 3C 6F F0 07 90 00 [20:15:59]wFMCommunicate OK [20:15:59]SAM_PROTO_SignData done [20:15:59]FM_MakeSignedData done [20:15:59]CreateOFDProtocolMessage [20:15:59]wFMCommunicate request_size=4 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 11 00 00 [20:15:59]Write to MH i2c: E2 08 00 AA 75 80 11 00 00 00 00 00 00 99 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 17 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 17 00 AA 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [20:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:15:59]wFMCommunicate OK [20:15:59]CreateOFDProtocolMessage done [20:15:59]OFDSenderStorePacket 189321 [20:15:59]StoreOFDPacket docnum=189321 [20:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 45 07 01 64 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 8A 01 00 00 F4 03 04 00 02 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E3 02 00 35 04 06 00 AA C0 9C 75 36 44 EA 8E 51 1B 3C 6F F0 07 [20:15:59]CheckFolder [20:15:59]dirname=/storage/ofd_packets [20:15:59]CheckFolder done [20:15:59]ProducePacketName [20:15:59]name=ofd_packets/00189321 [20:15:59]NVStorageSaveData ofd_packets/00189321 [20:15:59]File name is /storage/ofd_packets/00189321 [20:15:59]Write 301 bytes [20:15:59]NVStorageSaveData done [20:15:59]OFDSenderStorePacket done [20:15:59]KKMCreateOFDPacket done [20:15:59]NVStorageSaveData kkm_last_timestamp [20:15:59]File name is /storage/kkm_last_timestamp [20:15:59]Write 4 bytes [20:15:59]NVStorageSaveData done [20:15:59]ExternCall_PrintAddStr [20:15:59]wPrintStart [20:15:59]Write to MH i2c: 01 00 00 AB 75 20 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 AB 75 00 00 00 00 00 FF 0F 35 [20:15:59]RasterBufferAndPrint [20:15:59]line Счет N : (1)211387 [20:15:59]line ИНН: 02508201610067 [20:15:59]line Контрольно-Кассовый Чек [20:15:59]line ПРОДАЖА [20:15:59]line ТРК (МРК, ГНК) : 42 [20:15:59]line Товар: 2710124130 [20:15:59]line Аи-92-К-3 [20:15:59]line 8.970 * 66.90 [20:15:59]line = 600.09 [20:15:59]line НДС 12% НСП 1% [20:15:59]line > о реализуемом товаре [20:15:59]line ОКРУГЛЕНИЕ: -0.09 [20:15:59]line ИТОГО: 600.00 [20:15:59]line Внесено: 600.00 [20:15:59]line СДАЧА: 0.00 [20:15:59]line НСП 1% : 5.31 [20:15:59]line НДС 12% : 63.73 [20:15:59]line Наличными: 600.00 [20:15:59]line Безнал.: 0.00 [20:15:59]line Место: АЗС № 86 "Партнер Нефть" [20:15:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:15:59]line СНО: Общий режим [20:15:59]line Чек 394 24.10.2024 20:16 [20:15:59]line Смена: 463 ФФД: 1.0 [20:15:59]line ЗНМ: 0300000155 [20:15:59]line РНМ: 0000000000100030 [20:15:59]line Версия ККМ: 001 [20:15:59]line ФМ: 0000000000965340 [20:15:59]line ФД: 189321 [20:15:59]line ФПД: 187744235370052 [20:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201602&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189321&fm=187744235370052&tin=02508201610067®Number=0000000000100030&sum=60000 [20:15:59]written 0, free lines is 4095 [20:15:59]OFD Sender: Processing packet 189321 [packets to send 1062, broken 1061] [20:15:59]ProducePacketName [20:15:59]name=ofd_packets/00189321 [20:15:59]OFD Sender: To server: pG, [20:15:59]CommunicateWithHost lk.salyk.kg:30040 [20:15:59]ConnectInit lk.salyk.kg [20:15:59]Connected sock=10 [20:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 45 07 01 64 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 8A 01 00 00 F4 03 04 00 02 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E3 02 00 35 04 06 00 AA C0 9C 75 36 44 EA 8E 51 1B 3C 6F F0 07 [20:15:59]Write to MH i2c: 01 00 00 D6 75 4B [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 D6 75 00 00 00 00 00 55 0C B3 [20:15:59]RasterBufferAndPrint [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]written 0, free lines is 3161 [20:15:59]MH_Cut [20:15:59]Write to MH i2c: D1 01 00 DD 75 01 24 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: D1 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: D1 01 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: D1 01 00 DD 75 00 23 [20:15:59]Write to MH i2c: 01 00 00 DE 75 53 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 4B 47 00 CB 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 39 36 35 33 34 30 10 04 04 00 89 E3 02 00 F4 03 04 00 E9 54 1A 67 B6 04 01 00 00 7B 6D 52 5C 3C 4C 3D EE [20:16:00]CommunicateWithHost err = 0 [20:16:00]CheckOFDResponse [20:16:00]1017 (14) - 77093643461234 [20:16:00]1041 (16) - 0000000000965340 [20:16:00]1040 (4) - 189321 [20:16:00]1012 (4) - 24.10.2024 14:08 [20:16:00]1206 (1) - 0 [20:16:00]OFD Sender: Remove packet 189321 [20:16:00]ProducePacketName [20:16:00]name=ofd_packets/00189321 [20:16:00]NVStorageDeleteData [20:16:00]OFD Sender: No OFD packet to send [20:16:01]*** Cut start [20:16:01]*** Partial cut [20:16:01]*** CUTSNS_PIN = 1 [20:16:01]*** CUTSNS_PIN = 0 [20:16:01]*** Brake cut motor [20:16:01]Read from MH i2c: 01 [20:16:01]MH_I2C_Read... [20:16:01]*** Stop cut motor [20:16:01]*** Cut end [20:16:01]Read from MH i2c: 01 07 00 [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: 01 07 00 DE 75 00 00 00 00 00 FF 0F 68 [20:16:01]process_action close_receipt done [20:16:01]requested_data is exist [20:16:01]produce_requested_data [20:16:01]requested_item fm.sn is exist - process it [20:16:01]wFMCommunicate request_size=4 [20:16:01]MH_SAM_APDU [20:16:01]CAPDU: 80 11 00 00 [20:16:01]Write to MH i2c: E2 08 00 DF 75 80 11 00 00 00 00 00 00 CE [20:16:01]Write i2c OK [20:16:01]MH_I2C_Read... [20:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:01]Read from MH i2c: E2 [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: E2 17 00 [20:16:01]MH_I2C_Read... [20:16:01]Read from MH i2c: E2 17 00 DF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [20:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:16:01]wFMCommunicate OK [20:16:01]requested_item fd.num is exist - process it [20:16:01]SAM_PROTO_GetFieldsCounters [20:16:01]wFMCommunicate request_size=4 [20:16:01]MH_SAM_APDU [20:16:01]CAPDU: 80 13 00 00 [20:16:01]Write to MH i2c: E2 08 00 E0 75 80 13 00 00 00 00 00 00 D1 [20:16:01]Write i2c OK [20:16:01]MH_I2C_Read... [20:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:02]Read from MH i2c: E2 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: E2 62 00 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: E2 62 00 E0 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E3 02 00 0E 04 04 00 CF 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 B7 [20:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E3 02 00 0E 04 04 00 CF 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 [20:16:02]wFMCommunicate OK [20:16:02]SAM_PROTO_GetFieldsCounters done [20:16:02]requested_item shift.num is exist - process it [20:16:02]requested_item shift.opened is exist - process it [20:16:02]req_shift_opened [20:16:02]FM_GetShiftState [20:16:02]SAM_PROTO_GetShiftState [20:16:02]wFMCommunicate request_size=4 [20:16:02]MH_SAM_APDU [20:16:02]CAPDU: 80 13 01 00 [20:16:02]Write to MH i2c: E2 08 00 E1 75 80 13 01 00 00 00 00 00 D3 [20:16:02]Write i2c OK [20:16:02]MH_I2C_Read... [20:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:02]Read from MH i2c: E2 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: E2 0E 00 [20:16:02]MH_I2C_Read... [20:16:02]Read from MH i2c: E2 0E 00 E1 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B1 [20:16:02]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:16:02]wFMCommunicate OK [20:16:02]SAM_PROTO_GetShiftState done [20:16:02]FM_GetShiftState done [20:16:02]req_shift_opened done [20:16:02]requested_item shift.open_date is exist - process it [20:16:02]req_shift_open_date [20:16:02]req_shift_open_date done [20:16:02]produce_requested_data done [20:16:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189321,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:16:02]process_action_free close_receipt [20:16:02]json_value_free [20:16:02]json_value_free done [20:16:02]process_json_proto returns [20:16:02]Send response to host [20:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189321,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:16:02]free response buf [20:16:02]execute_script done [20:16:02]execute_script returns [20:16:02]free content buf [20:16:02]Sock 8.Close socket [20:16:02]Sock 8.Thread stoped [20:16:05]OFD Sender: No OFD packet to send [20:16:08]accept exits with 9 [20:16:08]New connection [20:16:08]New thread 3067071844 created [20:16:08]Thread 3067215204 joined [20:16:08]Waiting for new connection... [20:16:08] Sock 9.Parse request [20:16:08]Sock 9.Check first char [20:16:08]Sock 9.First char is OK [20:16:08]request: POST /json_proto HTTP/1.0 [20:16:08]Method: POST [20:16:08]URL: /json_proto [20:16:08]Method is POST - this is cgi request [20:16:08]url: /json_proto [20:16:08]query_string will be loaded in cgi processing [20:16:08]execute_cgi json_proto POST (null) [20:16:08]execute_cgi path=json_proto method=POST [20:16:08]POST find Content-Length [20:16:08]Host: 172.17.42.131:8080 [20:16:08]Content-Length: 792 [20:16:08]Content-Type: application/json [20:16:08] [20:16:08]POST finish read [20:16:08]Found Content-Length = 792 [20:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A31246", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:08]execute_script... [20:16: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)211386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A31246", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:08]POST & json_proto [20:16:08]process_json_proto [20:16:08]json parsed OK: [20:16:08]protocol is kg_v1.0 [20:16:08]action value=close_receipt [20:16:08]process_action close_receipt [20:16:08]cmd_close_receipt [20:16:08]MH_GetDate [20:16:08]Write to MH i2c: F0 00 00 E2 75 46 [20:16:08]Write i2c OK [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: F0 [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: F0 09 00 [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: F0 09 00 E2 75 00 0D AB 1A 67 A0 18 CA 66 70 [20:16:08]GetLastDocTimeStamp 1729800962 [20:16:08]current date 1729800973 [20:16:08]FM_GetShiftState [20:16:08]SAM_PROTO_GetShiftState [20:16:08]wFMCommunicate request_size=4 [20:16:08]MH_SAM_APDU [20:16:08]CAPDU: 80 13 01 00 [20:16:08]Write to MH i2c: E2 08 00 E3 75 80 13 01 00 00 00 00 00 D5 [20:16:08]Write i2c OK [20:16:08]MH_I2C_Read... [20:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:08]Read from MH i2c: E2 [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: E2 0E 00 [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: E2 0E 00 E3 75 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B3 [20:16:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:16:08]wFMCommunicate OK [20:16:08]SAM_PROTO_GetShiftState done [20:16:08]FM_GetShiftState done [20:16:08]opened in 1729728961 [20:16:08]opened+sec_in_day 1729815361 [20:16:08]quantity*price = 0 [20:16:08]sum+1 = 1 [20:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 395 24.10.2024 20:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 31246 ФМ: 0000000000965340 ФД: 189322 ФПД: 91101408733925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189322&fm=91101408733925&tin=02508201610067®Number=0000000000100030&sum=0 [20:16:09]StoreToDocumentArchive [20:16:09]shift 463 fd 189322 [20:16:09]save to /storage/0463/doc_00189322 [20:16:09]save last doc name /storage/0463/doc_00189322 to /storage/kkm_last_doc_name [20:16:09]save OK [20:16:09]Clear old archive folders... [20:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:09]tlvbuf is 01556100 [20:16:09]SAM_PROTO_ClearQueue [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 09 00 00 [20:16:09]Write to MH i2c: E2 08 00 F0 75 80 09 00 00 00 00 00 00 D7 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 F0 75 00 90 00 D9 [20:16:09]RAPDU: 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_ClearQueue done [20:16:09]KKMCreateOFDPacket [20:16:09]OFDProtocolAddRootSTLVToBuf [20:16:09]FM_MakeSignedData [20:16:09]FM_MakeSignedData [20:16:09]SAM_PROTO_SignData [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 0D 01 02 [20:16:09]Write to MH i2c: E2 08 00 F1 75 80 0D 01 02 00 00 00 00 DF [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 F1 75 00 90 00 DA [20:16:09]RAPDU: 90 00 [20:16:09]wFMCommunicate OK [20:16:09]wFMCommunicate request_size=255 [20:16:09]MH_SAM_APDU [20: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 33 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 8B 01 00 00 F4 03 04 00 0D AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E3 02 00 35 04 06 00 52 [20:16:09]Write to MH i2c: E2 02 01 F2 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 33 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 8B 01 00 00 F4 03 04 00 0D AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E3 02 00 35 04 06 00 52 00 00 C8 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 F2 75 00 90 00 DB [20:16:09]RAPDU: 90 00 [20:16:09]wFMCommunicate OK [20:16:09]wFMCommunicate request_size=10 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 0D 02 02 05 DB 33 1B 2A E5 [20:16:09]Write to MH i2c: E2 0D 00 F3 75 80 0D 02 02 05 00 DB 33 1B 2A E5 00 00 24 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 03 00 F3 75 00 90 00 DC [20:16:09]RAPDU: 90 00 [20:16:09]wFMCommunicate OK [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 0D 03 02 [20:16:09]Write to MH i2c: E2 08 00 F4 75 80 0D 03 02 00 00 00 00 E4 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0B 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0B 00 F4 75 00 C0 AB 79 22 A6 39 B1 A0 90 00 1B [20:16:09]RAPDU: C0 AB 79 22 A6 39 B1 A0 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_SignData done [20:16:09]FM_MakeSignedData done [20:16:09]CreateOFDProtocolMessage [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 11 00 00 [20:16:09]Write to MH i2c: E2 08 00 F5 75 80 11 00 00 00 00 00 00 E4 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 17 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 17 00 F5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [20:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:16:09]wFMCommunicate OK [20:16:09]CreateOFDProtocolMessage done [20:16:09]OFDSenderStorePacket 189322 [20:16:09]StoreOFDPacket docnum=189322 [20:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 03 07 01 2E 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 33 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 8B 01 00 00 F4 03 04 00 0D AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E3 02 00 35 04 06 00 52 DB 33 1B 2A E5 C0 AB 79 22 A6 39 B1 A0 [20:16:09]CheckFolder [20:16:09]dirname=/storage/ofd_packets [20:16:09]CheckFolder done [20:16:09]ProducePacketName [20:16:09]name=ofd_packets/00189322 [20:16:09]NVStorageSaveData ofd_packets/00189322 [20:16:09]File name is /storage/ofd_packets/00189322 [20:16:09]Write 301 bytes [20:16:09]NVStorageSaveData done [20:16:09]OFDSenderStorePacket done [20:16:09]KKMCreateOFDPacket done [20:16:09]NVStorageSaveData kkm_last_timestamp [20:16:09]File name is /storage/kkm_last_timestamp [20:16:09]Write 4 bytes [20:16:09]NVStorageSaveData done [20:16:09]ExternCall_PrintAddStr [20:16:09]wPrintStart [20:16:09]Write to MH i2c: 01 00 00 F6 75 6B [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: 01 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: 01 07 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: 01 07 00 F6 75 00 00 00 00 00 FF 0F 80 [20:16:09]RasterBufferAndPrint [20:16:09]line Счет N : (1)211386 [20:16:09]line ИНН: 02508201610067 [20:16:09]line Контрольно-Кассовый Чек [20:16:09]line ПРОДАЖА [20:16:09]line ТРК (МРК, ГНК) : 12 [20:16:09]line Товар: 2710124130 [20:16:09]line Аи-92-К-3 [20:16:09]line 30.000 * 0.00 [20:16:09]line = 0.00 [20:16:09]line НДС 12% НСП 1% [20:16:09]line > о реализуемом товаре [20:16:09]line ИТОГО: 0.00 [20:16:09]line НСП 1% : 0.00 [20:16:09]line НДС 12% : 0.00 [20:16:09]line Наличными: 0.00 [20:16:09]line Безнал.: 0.00 [20:16:09]line Место: АЗС № 86 "Партнер Нефть" [20:16:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:16:09]line СНО: Общий режим [20:16:09]line Чек 395 24.10.2024 20:16 [20:16:09]line Смена: 463 ФФД: 1.0 [20:16:09]line ЗНМ: 0300000155 [20:16:09]line РНМ: 0000000000100030 [20:16:09]line Версия ККМ: 001 [20:16:09]line Талоны: Топливная Карта [20:16:09]line 31246 [20:16:09]line ФМ: 0000000000965340 [20:16:09]line ФД: 189322 [20:16:09]line ФПД: 91101408733925 [20:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189322&fm=91101408733925&tin=02508201610067®Number=0000000000100030&sum=0 [20:16:09]written 0, free lines is 4095 [20:16:09]OFD Sender: Processing packet 189322 [packets to send 1062, broken 1061] [20:16:09]ProducePacketName [20:16:09]name=ofd_packets/00189322 [20:16:09]OFD Sender: To server: pG, [20:16:09]CommunicateWithHost lk.salyk.kg:30040 [20:16:09]ConnectInit lk.salyk.kg [20:16:10]Connected sock=8 [20:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 03 07 01 2E 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 33 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 8B 01 00 00 F4 03 04 00 0D AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E3 02 00 35 04 06 00 52 DB 33 1B 2A E5 C0 AB 79 22 A6 39 B1 A0 [20:16:10]Write to MH i2c: 01 00 00 20 76 96 [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 07 00 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: 01 07 00 20 76 00 00 00 00 00 6A 0C 13 [20:16:10]RasterBufferAndPrint [20:16:10]line [20:16:10]line [20:16:10]line [20:16:10]line [20:16:10]line [20:16:10]written 0, free lines is 3186 [20:16:10]MH_Cut [20:16:10]Write to MH i2c: D1 01 00 27 76 01 6F [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: D1 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: D1 01 00 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: D1 01 00 27 76 00 6E [20:16:10]Write to MH i2c: 01 00 00 28 76 9E [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E6 A6 47 00 37 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E3 02 00 F4 03 04 00 F4 54 1A 67 B6 04 01 00 00 A2 2D E2 1E DC 31 A5 A7 [20:16:10]CommunicateWithHost err = 0 [20:16:10]CheckOFDResponse [20:16:10]1017 (14) - 77093643461234 [20:16:10]1041 (16) - 0000000000965340 [20:16:10]1040 (4) - 189322 [20:16:10]1012 (4) - 24.10.2024 14:08 [20:16:10]1206 (1) - 0 [20:16:10]OFD Sender: Remove packet 189322 [20:16:10]ProducePacketName [20:16:10]name=ofd_packets/00189322 [20:16:10]NVStorageDeleteData [20:16:10]OFD Sender: No OFD packet to send [20:16:11]*** Cut start [20:16:11]*** Partial cut [20:16:11]*** CUTSNS_PIN = 1 [20:16:11]*** CUTSNS_PIN = 0 [20:16:11]*** Brake cut motor [20:16:12]Read from MH i2c: 01 [20:16:12]MH_I2C_Read... [20:16:12]*** Stop cut motor [20:16:12]*** Cut end [20:16:12]Read from MH i2c: 01 07 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: 01 07 00 28 76 00 00 00 00 00 FF 0F B3 [20:16:12]process_action close_receipt done [20:16:12]requested_data is exist [20:16:12]produce_requested_data [20:16:12]requested_item fm.sn is exist - process it [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 11 00 00 [20:16:12]Write to MH i2c: E2 08 00 29 76 80 11 00 00 00 00 00 00 19 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 17 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 17 00 29 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [20:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:16:12]wFMCommunicate OK [20:16:12]requested_item fd.num is exist - process it [20:16:12]SAM_PROTO_GetFieldsCounters [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 13 00 00 [20:16:12]Write to MH i2c: E2 08 00 2A 76 80 13 00 00 00 00 00 00 1C [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 62 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 62 00 2A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E3 02 00 0E 04 04 00 CF 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 06 [20:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E3 02 00 0E 04 04 00 CF 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 [20:16:12]wFMCommunicate OK [20:16:12]SAM_PROTO_GetFieldsCounters done [20:16:12]requested_item shift.num is exist - process it [20:16:12]requested_item shift.opened is exist - process it [20:16:12]req_shift_opened [20:16:12]FM_GetShiftState [20:16:12]SAM_PROTO_GetShiftState [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 13 01 00 [20:16:12]Write to MH i2c: E2 08 00 2B 76 80 13 01 00 00 00 00 00 1E [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 0E 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 0E 00 2B 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FC [20:16:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:16:12]wFMCommunicate OK [20:16:12]SAM_PROTO_GetShiftState done [20:16:12]FM_GetShiftState done [20:16:12]req_shift_opened done [20:16:12]requested_item shift.open_date is exist - process it [20:16:12]req_shift_open_date [20:16:12]req_shift_open_date done [20:16:12]produce_requested_data done [20:16:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189322,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:16:12]process_action_free close_receipt [20:16:12]json_value_free [20:16:12]json_value_free done [20:16:12]process_json_proto returns [20:16:12]Send response to host [20:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189322,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:16:12]free response buf [20:16:12]execute_script done [20:16:12]execute_script returns [20:16:12]free content buf [20:16:12]Sock 9.Close socket [20:16:12]Sock 9.Thread stoped [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]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:03]accept exits with 10 [20:20:03]New connection [20:20:03]New thread 3067215204 created [20:20:03]Thread 3067071844 joined [20:20:03]Waiting for new connection... [20:20:03] Sock 10.Parse request [20:20:03]Sock 10.Check first char [20:20:03]Sock 10.First char is OK [20:20:03]request: POST /json_proto HTTP/1.0 [20:20:03]Method: POST [20:20:03]URL: /json_proto [20:20:03]Method is POST - this is cgi request [20:20:03]url: /json_proto [20:20:03]query_string will be loaded in cgi processing [20:20:03]execute_cgi json_proto POST (null) [20:20:03]execute_cgi path=json_proto method=POST [20:20:03]POST find Content-Length [20:20:03]Host: 172.17.42.131:8080 [20:20:03]Content-Length: 679 [20:20:03]Content-Type: application/json [20:20:03] [20:20:03]POST finish read [20:20:03]Found Content-Length = 679 [20:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:03]execute_script... [20:20: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)211389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:03]POST & json_proto [20:20:03]process_json_proto [20:20:03]json parsed OK: [20:20:03]protocol is kg_v1.0 [20:20:03]action value=close_receipt [20:20:03]process_action close_receipt [20:20:03]cmd_close_receipt [20:20:03]MH_GetDate [20:20:03]Write to MH i2c: F0 00 00 2C 76 91 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: F0 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: F0 09 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: F0 09 00 2C 76 00 F8 AB 1A 67 A0 18 CA 66 A6 [20:20:03]GetLastDocTimeStamp 1729800973 [20:20:03]current date 1729801208 [20:20:03]FM_GetShiftState [20:20:03]SAM_PROTO_GetShiftState [20:20:03]wFMCommunicate request_size=4 [20:20:03]MH_SAM_APDU [20:20:03]CAPDU: 80 13 01 00 [20:20:03]Write to MH i2c: E2 08 00 2D 76 80 13 01 00 00 00 00 00 20 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:03]Read from MH i2c: E2 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: E2 0E 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: E2 0E 00 2D 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FE [20:20:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:03]wFMCommunicate OK [20:20:03]SAM_PROTO_GetShiftState done [20:20:03]FM_GetShiftState done [20:20:03]opened in 1729728961 [20:20:03]opened+sec_in_day 1729815361 [20:20:03]quantity*price = 100050 [20:20:03]sum+1 = 100052 [20:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 396 24.10.2024 20:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189323 ФПД: 180536782157412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189323&fm=180536782157412&tin=02508201610067®Number=0000000000100030&sum=100000 [20:20:04]StoreToDocumentArchive [20:20:04]shift 463 fd 189323 [20:20:04]save to /storage/0463/doc_00189323 [20:20:04]save last doc name /storage/0463/doc_00189323 to /storage/kkm_last_doc_name [20:20:04]save OK [20:20:04]Clear old archive folders... [20:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:04]tlvbuf is 01546CE0 [20:20:04]SAM_PROTO_ClearQueue [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 09 00 00 [20:20:04]Write to MH i2c: E2 08 00 3A 76 80 09 00 00 00 00 00 00 22 [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 3A 76 00 90 00 24 [20:20:05]RAPDU: 90 00 [20:20:05]wFMCommunicate OK [20:20:05]SAM_PROTO_ClearQueue done [20:20:05]KKMCreateOFDPacket [20:20:05]OFDProtocolAddRootSTLVToBuf [20:20:05]FM_MakeSignedData [20:20:05]FM_MakeSignedData [20:20:05]SAM_PROTO_SignData [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 0D 01 02 [20:20:05]Write to MH i2c: E2 08 00 3B 76 80 0D 01 02 00 00 00 00 2A [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 3B 76 00 90 00 25 [20:20:05]RAPDU: 90 00 [20:20:05]wFMCommunicate OK [20:20:05]wFMCommunicate request_size=255 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 01 00 00 F4 03 04 00 F8 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E3 02 00 35 04 06 00 A4 32 7E C4 [20:20:05]Write to MH i2c: E2 02 01 3C 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 F8 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E3 02 00 35 04 06 00 A4 32 7E C4 00 00 9E [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 3C 76 00 90 00 26 [20:20:05]RAPDU: 90 00 [20:20:05]wFMCommunicate OK [20:20:05]wFMCommunicate request_size=7 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 0D 02 02 02 F6 64 [20:20:05]Write to MH i2c: E2 0A 00 3D 76 80 0D 02 02 02 00 F6 64 00 00 8B [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 03 00 3D 76 00 90 00 27 [20:20:05]RAPDU: 90 00 [20:20:05]wFMCommunicate OK [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 0D 03 02 [20:20:05]Write to MH i2c: E2 08 00 3E 76 80 0D 03 02 00 00 00 00 2F [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 0B 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 0B 00 3E 76 00 56 CD F3 26 80 32 DE A3 90 00 9F [20:20:05]RAPDU: 56 CD F3 26 80 32 DE A3 90 00 [20:20:05]wFMCommunicate OK [20:20:05]SAM_PROTO_SignData done [20:20:05]FM_MakeSignedData done [20:20:05]CreateOFDProtocolMessage [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 11 00 00 [20:20:05]Write to MH i2c: E2 08 00 3F 76 80 11 00 00 00 00 00 00 2F [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 17 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 17 00 3F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [20:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:05]wFMCommunicate OK [20:20:05]CreateOFDProtocolMessage done [20:20:05]OFDSenderStorePacket 189323 [20:20:05]StoreOFDPacket docnum=189323 [20:20:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0A DA 04 01 FF F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 F8 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E3 02 00 35 04 06 00 A4 32 7E C4 F6 64 56 CD F3 26 80 32 DE A3 [20:20:05]CheckFolder [20:20:05]dirname=/storage/ofd_packets [20:20:05]CheckFolder done [20:20:05]ProducePacketName [20:20:05]name=ofd_packets/00189323 [20:20:05]NVStorageSaveData ofd_packets/00189323 [20:20:05]File name is /storage/ofd_packets/00189323 [20:20:05]Write 298 bytes [20:20:05]NVStorageSaveData done [20:20:05]OFDSenderStorePacket done [20:20:05]KKMCreateOFDPacket done [20:20:05]NVStorageSaveData kkm_last_timestamp [20:20:05]File name is /storage/kkm_last_timestamp [20:20:05]Write 4 bytes [20:20:05]NVStorageSaveData done [20:20:05]ExternCall_PrintAddStr [20:20:05]wPrintStart [20:20:05]Write to MH i2c: 01 00 00 40 76 B6 [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: 01 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: 01 07 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: 01 07 00 40 76 00 00 00 00 00 FF 0F CB [20:20:05]RasterBufferAndPrint [20:20:05]line Счет N : (1)211389 [20:20:05]line ИНН: 02508201610067 [20:20:05]line Контрольно-Кассовый Чек [20:20:05]line ПРОДАЖА [20:20:05]line ТРК (МРК, ГНК) : 51 [20:20:05]line Товар: 2710194210 [20:20:05]line ДТ-К-5 [20:20:05]line 13.130 * 76.20 [20:20:05]line = 1000.51 [20:20:05]line НДС 12% НСП 1% [20:20:05]line > о реализуемом товаре [20:20:05]line ОКРУГЛЕНИЕ: -0.51 [20:20:05]line ИТОГО: 1000.00 [20:20:05]line Внесено: 1000.00 [20:20:05]line СДАЧА: 0.00 [20:20:05]line НСП 1% : 8.85 [20:20:05]line НДС 12% : 106.25 [20:20:05]line Наличными: 1000.00 [20:20:05]line Безнал.: 0.00 [20:20:05]line Место: АЗС № 86 "Партнер Нефть" [20:20:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:20:05]line СНО: Общий режим [20:20:05]line Чек 396 24.10.2024 20:20 [20:20:05]line Смена: 463 ФФД: 1.0 [20:20:05]line ЗНМ: 0300000155 [20:20:05]line РНМ: 0000000000100030 [20:20:05]line Версия ККМ: 001 [20:20:05]line ФМ: 0000000000965340 [20:20:05]line ФД: 189323 [20:20:05]line ФПД: 180536782157412 [20:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189323&fm=180536782157412&tin=02508201610067®Number=0000000000100030&sum=100000 [20:20:05]OFD Sender: Processing packet 189323 [packets to send 1062, broken 1061] [20:20:05]ProducePacketName [20:20:05]name=ofd_packets/00189323 [20:20:05]OFD Sender: To server: pG, [20:20:05]CommunicateWithHost lk.salyk.kg:30040 [20:20:05]ConnectInit lk.salyk.kg [20:20:05]written 0, free lines is 4095 [20:20:05]Connected sock=9 [20:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0A DA 04 01 FF F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 F8 AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E3 02 00 35 04 06 00 A4 32 7E C4 F6 64 56 CD F3 26 80 32 DE A3 [20:20:06]Write to MH i2c: 01 00 00 6B 76 E1 [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: 01 07 00 6B 76 00 00 00 00 00 50 0C 44 [20:20:06]RasterBufferAndPrint [20:20:06]line [20:20:06]line [20:20:06]line [20:20:06]line [20:20:06]line [20:20:06]written 0, free lines is 3155 [20:20:06]MH_Cut [20:20:06]Write to MH i2c: D1 01 00 72 76 01 BA [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: D1 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: D1 01 00 [20:20:06]MH_I2C_Read... [20:20:06]Read from MH i2c: D1 01 00 72 76 00 B9 [20:20:06]Write to MH i2c: 01 00 00 73 76 E9 [20:20:06]Write i2c OK [20:20:06]MH_I2C_Read... [20:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 34 47 00 62 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 39 36 35 33 34 30 10 04 04 00 8B E3 02 00 F4 03 04 00 E0 55 1A 67 B6 04 01 00 00 BA BF 21 A0 EA 6D 05 81 [20:20:06]CommunicateWithHost err = 0 [20:20:06]CheckOFDResponse [20:20:06]1017 (14) - 77093643461234 [20:20:06]1041 (16) - 0000000000965340 [20:20:06]1040 (4) - 189323 [20:20:06]1012 (4) - 24.10.2024 14:12 [20:20:06]1206 (1) - 0 [20:20:06]OFD Sender: Remove packet 189323 [20:20:06]ProducePacketName [20:20:06]name=ofd_packets/00189323 [20:20:06]NVStorageDeleteData [20:20:06]OFD Sender: No OFD packet to send [20:20:07]*** Cut start [20:20:07]*** Partial cut [20:20:07]*** CUTSNS_PIN = 1 [20:20:07]*** CUTSNS_PIN = 0 [20:20:07]*** Brake cut motor [20:20:07]Read from MH i2c: 01 [20:20:07]MH_I2C_Read... [20:20:07]*** Stop cut motor [20:20:07]*** Cut end [20:20:07]Read from MH i2c: 01 07 00 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: 01 07 00 73 76 00 00 00 00 00 FF 0F FE [20:20:07]process_action close_receipt done [20:20:07]requested_data is exist [20:20:07]produce_requested_data [20:20:07]requested_item fm.sn is exist - process it [20:20:07]wFMCommunicate request_size=4 [20:20:07]MH_SAM_APDU [20:20:07]CAPDU: 80 11 00 00 [20:20:07]Write to MH i2c: E2 08 00 74 76 80 11 00 00 00 00 00 00 64 [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 17 00 74 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [20:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:08]wFMCommunicate OK [20:20:08]requested_item fd.num is exist - process it [20:20:08]SAM_PROTO_GetFieldsCounters [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 13 00 00 [20:20:08]Write to MH i2c: E2 08 00 75 76 80 13 00 00 00 00 00 00 67 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 62 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 62 00 75 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E3 02 00 0E 04 04 00 CF 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 55 [20:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E3 02 00 0E 04 04 00 CF 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 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_GetFieldsCounters done [20:20:08]requested_item shift.num is exist - process it [20:20:08]requested_item shift.opened is exist - process it [20:20:08]req_shift_opened [20:20:08]FM_GetShiftState [20:20:08]SAM_PROTO_GetShiftState [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 13 01 00 [20:20:08]Write to MH i2c: E2 08 00 76 76 80 13 01 00 00 00 00 00 69 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0E 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0E 00 76 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 47 [20:20:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_GetShiftState done [20:20:08]FM_GetShiftState done [20:20:08]req_shift_opened done [20:20:08]requested_item shift.open_date is exist - process it [20:20:08]req_shift_open_date [20:20:08]req_shift_open_date done [20:20:08]produce_requested_data done [20:20:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189323,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:20:08]process_action_free close_receipt [20:20:08]json_value_free [20:20:08]json_value_free done [20:20:08]process_json_proto returns [20:20:08]Send response to host [20:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189323,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:20:08]free response buf [20:20:08]execute_script done [20:20:08]execute_script returns [20:20:08]free content buf [20:20:08]Sock 10.Close socket [20:20:08]Sock 10.Thread stoped [20:20:08]accept exits with 8 [20:20:08]New connection [20:20:08]New thread 3067071844 created [20:20:08]Thread 3067215204 joined [20:20:08]Waiting for new connection... [20:20:08] Sock 8.Parse request [20:20:08]Sock 8.Check first char [20:20:08]Sock 8.First char is OK [20:20:08]request: POST /json_proto HTTP/1.0 [20:20:08]Method: POST [20:20:08]URL: /json_proto [20:20:08]Method is POST - this is cgi request [20:20:08]url: /json_proto [20:20:08]query_string will be loaded in cgi processing [20:20:08]execute_cgi json_proto POST (null) [20:20:08]execute_cgi path=json_proto method=POST [20:20:08]POST find Content-Length [20:20:08]Host: 172.17.42.131:8080 [20:20:08]Content-Length: 766 [20:20:08]Content-Type: application/json [20:20:08] [20:20:08]POST finish read [20:20:08]Found Content-Length = 766 [20:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]execute_script... [20:20: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)211388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]POST & json_proto [20:20:08]process_json_proto [20:20:08]json parsed OK: [20:20:08]protocol is kg_v1.0 [20:20:08]action value=close_receipt [20:20:08]process_action close_receipt [20:20:08]cmd_close_receipt [20:20:08]MH_GetDate [20:20:08]Write to MH i2c: F0 00 00 77 76 DC [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 77 76 00 FD AB 1A 67 A0 18 CA 66 F6 [20:20:08]GetLastDocTimeStamp 1729801208 [20:20:08]current date 1729801213 [20:20:08]FM_GetShiftState [20:20:08]SAM_PROTO_GetShiftState [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 13 01 00 [20:20:08]Write to MH i2c: E2 08 00 78 76 80 13 01 00 00 00 00 00 6B [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:08]Read from MH i2c: E2 0E 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0E 00 78 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 49 [20:20:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_GetShiftState done [20:20:08]FM_GetShiftState done [20:20:08]opened in 1729728961 [20:20:08]opened+sec_in_day 1729815361 [20:20:08]quantity*price = 50041 [20:20:08]sum+1 = 50042 [20:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 397 24.10.2024 20:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189324 ФПД: 176423584677871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202013&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189324&fm=176423584677871&tin=02508201610067®Number=0000000000100030&sum=50041 [20:20:09]StoreToDocumentArchive [20:20:09]shift 463 fd 189324 [20:20:09]save to /storage/0463/doc_00189324 [20:20:09]save last doc name /storage/0463/doc_00189324 to /storage/kkm_last_doc_name [20:20:09]save OK [20:20:09]Clear old archive folders... [20:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:09]tlvbuf is 01559110 [20:20:09]SAM_PROTO_ClearQueue [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 09 00 00 [20:20:09]Write to MH i2c: E2 08 00 85 76 80 09 00 00 00 00 00 00 6D [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 85 76 00 90 00 6F [20:20:09]RAPDU: 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_ClearQueue done [20:20:09]KKMCreateOFDPacket [20:20:09]OFDProtocolAddRootSTLVToBuf [20:20:09]FM_MakeSignedData [20:20:09]FM_MakeSignedData [20:20:09]SAM_PROTO_SignData [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 0D 01 02 [20:20:09]Write to MH i2c: E2 08 00 86 76 80 0D 01 02 00 00 00 00 75 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 86 76 00 90 00 70 [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=255 [20:20:10]MH_SAM_APDU [20:20: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 FD AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E3 02 00 35 04 06 00 A0 [20:20:10]Write to MH i2c: E2 02 01 87 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 FD AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E3 02 00 35 04 06 00 A0 00 00 D2 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 87 76 00 90 00 71 [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=10 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 0D 02 02 05 74 D1 18 3F EF [20:20:10]Write to MH i2c: E2 0D 00 88 76 80 0D 02 02 05 00 74 D1 18 3F EF 00 00 0D [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 88 76 00 90 00 72 [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 0D 03 02 [20:20:10]Write to MH i2c: E2 08 00 89 76 80 0D 03 02 00 00 00 00 7A [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0B 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0B 00 89 76 00 72 7E DC 26 6B 6A 24 97 90 00 FD [20:20:10]RAPDU: 72 7E DC 26 6B 6A 24 97 90 00 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_SignData done [20:20:10]FM_MakeSignedData done [20:20:10]CreateOFDProtocolMessage [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 11 00 00 [20:20:10]Write to MH i2c: E2 08 00 8A 76 80 11 00 00 00 00 00 00 7A [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 8A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [20:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:10]wFMCommunicate OK [20:20:10]CreateOFDProtocolMessage done [20:20:10]OFDSenderStorePacket 189324 [20:20:10]StoreOFDPacket docnum=189324 [20:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 47 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 FD AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E3 02 00 35 04 06 00 A0 74 D1 18 3F EF 72 7E DC 26 6B 6A 24 97 [20:20:10]CheckFolder [20:20:10]dirname=/storage/ofd_packets [20:20:10]CheckFolder done [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00189324 [20:20:10]NVStorageSaveData ofd_packets/00189324 [20:20:10]File name is /storage/ofd_packets/00189324 [20:20:10]Write 301 bytes [20:20:10]NVStorageSaveData done [20:20:10]OFDSenderStorePacket done [20:20:10]KKMCreateOFDPacket done [20:20:10]NVStorageSaveData kkm_last_timestamp [20:20:10]File name is /storage/kkm_last_timestamp [20:20:10]Write 4 bytes [20:20:10]NVStorageSaveData done [20:20:10]ExternCall_PrintAddStr [20:20:10]wPrintStart [20:20:10]Write to MH i2c: 01 00 00 8B 76 01 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 8B 76 00 00 00 00 00 FF 0F 16 [20:20:10]RasterBufferAndPrint [20:20:10]line Счет N : (1)211388 [20:20:10]line ИНН: 02508201610067 [20:20:10]line Контрольно-Кассовый Чек [20:20:10]line ПРОДАЖА [20:20:10]line ТРК (МРК, ГНК) : 32 [20:20:10]line Товар: 2710124130 [20:20:10]line Аи-92-К-3 [20:20:10]line 7.480 * 66.90 [20:20:10]line = 500.41 [20:20:10]line НДС 12% НСП 1% [20:20:10]line > о реализуемом товаре [20:20:10]line ИТОГО: 500.41 [20:20:10]line НСП 1% : 4.43 [20:20:10]line НДС 12% : 53.14 [20:20:10]line Наличными: 0.00 [20:20:10]line Безнал.: 500.41 [20:20:10]line Место: АЗС № 86 "Партнер Нефть" [20:20:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:20:10]line СНО: Общий режим [20:20:10]line Чек 397 24.10.2024 20:20 [20:20:10]line Смена: 463 ФФД: 1.0 [20:20:10]line ЗНМ: 0300000155 [20:20:10]line РНМ: 0000000000100030 [20:20:10]line Версия ККМ: 001 [20:20:10]line Платежная система: Mbank [20:20:10]line ФМ: 0000000000965340 [20:20:10]line ФД: 189324 [20:20:10]line ФПД: 176423584677871 [20:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202013&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189324&fm=176423584677871&tin=02508201610067®Number=0000000000100030&sum=50041 [20:20:10]OFD Sender: Processing packet 189324 [packets to send 1062, broken 1061] [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00189324 [20:20:10]OFD Sender: To server: pG, [20:20:10]CommunicateWithHost lk.salyk.kg:30040 [20:20:10]ConnectInit lk.salyk.kg [20:20:10]written 0, free lines is 4095 [20:20:11]Connected sock=11 [20:20:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 47 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 FD AB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E3 02 00 35 04 06 00 A0 74 D1 18 3F EF 72 7E DC 26 6B 6A 24 97 [20:20:11]Write to MH i2c: 01 00 00 B4 76 2A [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 B4 76 00 00 00 00 00 8C 0C C9 [20:20:11]RasterBufferAndPrint [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]written 0, free lines is 3219 [20:20:11]MH_Cut [20:20:11]Write to MH i2c: D1 01 00 BB 76 01 03 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 01 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 01 00 BB 76 00 02 [20:20:11]Write to MH i2c: 01 00 00 BC 76 32 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 47 47 00 6E 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E3 02 00 F4 03 04 00 E5 55 1A 67 B6 04 01 00 00 86 46 C1 0B 21 76 31 CA [20:20:11]CommunicateWithHost err = 0 [20:20:11]CheckOFDResponse [20:20:11]1017 (14) - 77093643461234 [20:20:11]1041 (16) - 0000000000965340 [20:20:11]1040 (4) - 189324 [20:20:11]1012 (4) - 24.10.2024 14:12 [20:20:11]1206 (1) - 0 [20:20:11]OFD Sender: Remove packet 189324 [20:20:11]ProducePacketName [20:20:11]name=ofd_packets/00189324 [20:20:11]NVStorageDeleteData [20:20:12]OFD Sender: No OFD packet to send [20:20:12]*** Cut start [20:20:12]*** Partial cut [20:20:12]*** CUTSNS_PIN = 1 [20:20:12]*** CUTSNS_PIN = 0 [20:20:12]*** Brake cut motor [20:20:13]Read from MH i2c: 01 [20:20:13]MH_I2C_Read... [20:20:13]*** Stop cut motor [20:20:13]*** Cut end [20:20:13]Read from MH i2c: 01 07 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: 01 07 00 BC 76 00 00 00 00 00 FF 0F 47 [20:20:13]process_action close_receipt done [20:20:13]requested_data is exist [20:20:13]produce_requested_data [20:20:13]requested_item fm.sn is exist - process it [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 11 00 00 [20:20:13]Write to MH i2c: E2 08 00 BD 76 80 11 00 00 00 00 00 00 AD [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 17 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 17 00 BD 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [20:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:13]wFMCommunicate OK [20:20:13]requested_item fd.num is exist - process it [20:20:13]SAM_PROTO_GetFieldsCounters [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 13 00 00 [20:20:13]Write to MH i2c: E2 08 00 BE 76 80 13 00 00 00 00 00 00 B0 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 62 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 62 00 BE 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E3 02 00 0E 04 04 00 CF 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 A2 [20:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E3 02 00 0E 04 04 00 CF 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 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_GetFieldsCounters done [20:20:13]requested_item shift.num is exist - process it [20:20:13]requested_item shift.opened is exist - process it [20:20:13]req_shift_opened [20:20:13]FM_GetShiftState [20:20:13]SAM_PROTO_GetShiftState [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 13 01 00 [20:20:13]Write to MH i2c: E2 08 00 BF 76 80 13 01 00 00 00 00 00 B2 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 BF 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 90 [20:20:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_GetShiftState done [20:20:13]FM_GetShiftState done [20:20:13]req_shift_opened done [20:20:13]requested_item shift.open_date is exist - process it [20:20:13]req_shift_open_date [20:20:13]req_shift_open_date done [20:20:13]produce_requested_data done [20:20:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189324,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:20:13]process_action_free close_receipt [20:20:13]json_value_free [20:20:13]json_value_free done [20:20:13]process_json_proto returns [20:20:13]Send response to host [20:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189324,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:20:13]free response buf [20:20:13]execute_script done [20:20:13]execute_script returns [20:20:13]free content buf [20:20:13]Sock 8.Close socket [20:20:13]Sock 8.Thread stoped [20:20:17]OFD Sender: No OFD packet to send [20:20:21]accept exits with 9 [20:20:21]New connection [20:20:21]New thread 3067215204 created [20:20:21]Thread 3067071844 joined [20:20:21]Waiting for new connection... [20:20:21] Sock 9.Parse request [20:20:21]Sock 9.Check first char [20:20:21]Sock 9.First char is OK [20:20:21]request: POST /json_proto HTTP/1.0 [20:20:21]Method: POST [20:20:21]URL: /json_proto [20:20:21]Method is POST - this is cgi request [20:20:21]url: /json_proto [20:20:21]query_string will be loaded in cgi processing [20:20:21]execute_cgi json_proto POST (null) [20:20:21]execute_cgi path=json_proto method=POST [20:20:21]POST find Content-Length [20:20:21]Host: 172.17.42.131:8080 [20:20:21]Content-Length: 677 [20:20:21]Content-Type: application/json [20:20:21] [20:20:21]POST finish read [20:20:21]Found Content-Length = 677 [20:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:21]execute_script... [20:20: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)211390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:21]POST & json_proto [20:20:21]process_json_proto [20:20:21]json parsed OK: [20:20:21]protocol is kg_v1.0 [20:20:21]action value=close_receipt [20:20:21]process_action close_receipt [20:20:21]cmd_close_receipt [20:20:21]MH_GetDate [20:20:21]Write to MH i2c: F0 00 00 C0 76 25 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: F0 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: F0 09 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: F0 09 00 C0 76 00 0A AC 1A 67 A0 18 CA 66 4D [20:20:21]GetLastDocTimeStamp 1729801213 [20:20:21]current date 1729801226 [20:20:21]FM_GetShiftState [20:20:21]SAM_PROTO_GetShiftState [20:20:21]wFMCommunicate request_size=4 [20:20:21]MH_SAM_APDU [20:20:21]CAPDU: 80 13 01 00 [20:20:21]Write to MH i2c: E2 08 00 C1 76 80 13 01 00 00 00 00 00 B4 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:21]Read from MH i2c: E2 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 0E 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 0E 00 C1 76 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 92 [20:20:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:21]wFMCommunicate OK [20:20:21]SAM_PROTO_GetShiftState done [20:20:21]FM_GetShiftState done [20:20:21]opened in 1729728961 [20:20:21]opened+sec_in_day 1729815361 [20:20:21]quantity*price = 40006 [20:20:21]sum+1 = 40007 [20:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 398 24.10.2024 20:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189325 ФПД: 138617560840771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189325&fm=138617560840771&tin=02508201610067®Number=0000000000100030&sum=40000 [20:20:21]StoreToDocumentArchive [20:20:21]shift 463 fd 189325 [20:20:21]save to /storage/0463/doc_00189325 [20:20:21]save last doc name /storage/0463/doc_00189325 to /storage/kkm_last_doc_name [20:20:21]save OK [20:20:21]Clear old archive folders... [20:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:21]tlvbuf is 015DC350 [20:20:21]SAM_PROTO_ClearQueue [20:20:21]wFMCommunicate request_size=4 [20:20:21]MH_SAM_APDU [20:20:21]CAPDU: 80 09 00 00 [20:20:21]Write to MH i2c: E2 08 00 CE 76 80 09 00 00 00 00 00 00 B6 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 CE 76 00 90 00 B8 [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]SAM_PROTO_ClearQueue done [20:20:22]KKMCreateOFDPacket [20:20:22]OFDProtocolAddRootSTLVToBuf [20:20:22]FM_MakeSignedData [20:20:22]FM_MakeSignedData [20:20:22]SAM_PROTO_SignData [20:20:22]wFMCommunicate request_size=4 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 01 02 [20:20:22]Write to MH i2c: E2 08 00 CF 76 80 0D 01 02 00 00 00 00 BE [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 CF 76 00 90 00 B9 [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=255 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 0A AC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E3 02 00 35 04 06 00 7E [20:20:22]Write to MH i2c: E2 02 01 D0 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 0A AC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E3 02 00 35 04 06 00 7E 00 00 86 [20:20:22]OFD Sender: No OFD packet to send [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 D0 76 00 90 00 BA [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=10 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 02 02 05 12 6A 79 3A 43 [20:20:22]Write to MH i2c: E2 0D 00 D1 76 80 0D 02 02 05 00 12 6A 79 3A 43 00 00 3D [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 D1 76 00 90 00 BB [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=4 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 03 02 [20:20:22]Write to MH i2c: E2 08 00 D2 76 80 0D 03 02 00 00 00 00 C3 [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 0B 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 0B 00 D2 76 00 53 1B FE 77 8F 62 39 A9 90 00 7A [20:20:22]RAPDU: 53 1B FE 77 8F 62 39 A9 90 00 [20:20:22]wFMCommunicate OK [20:20:22]SAM_PROTO_SignData done [20:20:22]FM_MakeSignedData done [20:20:22]CreateOFDProtocolMessage [20:20:22]wFMCommunicate request_size=4 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 11 00 00 [20:20:22]Write to MH i2c: E2 08 00 D3 76 80 11 00 00 00 00 00 00 C3 [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 17 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 17 00 D3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [20:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:22]wFMCommunicate OK [20:20:22]CreateOFDProtocolMessage done [20:20:22]OFDSenderStorePacket 189325 [20:20:22]StoreOFDPacket docnum=189325 [20:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C 09 07 01 A3 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 0A AC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E3 02 00 35 04 06 00 7E 12 6A 79 3A 43 53 1B FE 77 8F 62 39 A9 [20:20:22]CheckFolder [20:20:22]dirname=/storage/ofd_packets [20:20:22]CheckFolder done [20:20:22]ProducePacketName [20:20:22]name=ofd_packets/00189325 [20:20:22]NVStorageSaveData ofd_packets/00189325 [20:20:22]File name is /storage/ofd_packets/00189325 [20:20:22]Write 301 bytes [20:20:22]NVStorageSaveData done [20:20:22]OFDSenderStorePacket done [20:20:22]KKMCreateOFDPacket done [20:20:22]NVStorageSaveData kkm_last_timestamp [20:20:22]File name is /storage/kkm_last_timestamp [20:20:22]Write 4 bytes [20:20:22]NVStorageSaveData done [20:20:22]ExternCall_PrintAddStr [20:20:22]wPrintStart [20:20:22]Write to MH i2c: 01 00 00 D4 76 4A [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 07 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 07 00 D4 76 00 00 00 00 00 FF 0F 5F [20:20:22]RasterBufferAndPrint [20:20:22]line Счет N : (1)211390 [20:20:22]line ИНН: 02508201610067 [20:20:22]line Контрольно-Кассовый Чек [20:20:22]line ПРОДАЖА [20:20:22]line ТРК (МРК, ГНК) : 12 [20:20:22]line Товар: 2710124130 [20:20:22]line Аи-92-К-3 [20:20:22]line 5.980 * 66.90 [20:20:22]line = 400.06 [20:20:22]line НДС 12% НСП 1% [20:20:22]line > о реализуемом товаре [20:20:22]line ОКРУГЛЕНИЕ: -0.06 [20:20:22]line ИТОГО: 400.00 [20:20:22]line Внесено: 400.00 [20:20:22]line СДАЧА: 0.00 [20:20:22]line НСП 1% : 3.54 [20:20:22]line НДС 12% : 42.48 [20:20:22]line Наличными: 400.00 [20:20:22]line Безнал.: 0.00 [20:20:22]line Место: АЗС № 86 "Партнер Нефть" [20:20:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:20:22]line СНО: Общий режим [20:20:22]line Чек 398 24.10.2024 20:20 [20:20:22]line Смена: 463 ФФД: 1.0 [20:20:22]line ЗНМ: 0300000155 [20:20:22]line РНМ: 0000000000100030 [20:20:22]line Версия ККМ: 001 [20:20:22]line ФМ: 0000000000965340 [20:20:22]line ФД: 189325 [20:20:22]line ФПД: 138617560840771 [20:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189325&fm=138617560840771&tin=02508201610067®Number=0000000000100030&sum=40000 [20:20:22]written 0, free lines is 4095 [20:20:23]OFD Sender: Processing packet 189325 [packets to send 1062, broken 1061] [20:20:23]ProducePacketName [20:20:23]name=ofd_packets/00189325 [20:20:23]OFD Sender: To server: pG, [20:20:23]CommunicateWithHost lk.salyk.kg:30040 [20:20:23]ConnectInit lk.salyk.kg [20:20:23]Connected sock=10 [20:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C 09 07 01 A3 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 0A AC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E3 02 00 35 04 06 00 7E 12 6A 79 3A 43 53 1B FE 77 8F 62 39 A9 [20:20:23]Write to MH i2c: 01 00 00 FF 76 75 [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 07 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 07 00 FF 76 00 00 00 00 00 69 0C F1 [20:20:23]RasterBufferAndPrint [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]written 0, free lines is 3184 [20:20:23]MH_Cut [20:20:23]Write to MH i2c: D1 01 00 06 77 01 4F [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 01 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 01 00 06 77 00 4E [20:20:23]Write to MH i2c: 01 00 00 07 77 7E [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 5A 47 00 13 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E3 02 00 F4 03 04 00 F1 55 1A 67 B6 04 01 00 00 F5 68 B6 2B 4A 4E 80 7A [20:20:23]CommunicateWithHost err = 0 [20:20:23]CheckOFDResponse [20:20:23]1017 (14) - 77093643461234 [20:20:23]1041 (16) - 0000000000965340 [20:20:23]1040 (4) - 189325 [20:20:23]1012 (4) - 24.10.2024 14:13 [20:20:23]1206 (1) - 0 [20:20:23]OFD Sender: Remove packet 189325 [20:20:23]ProducePacketName [20:20:23]name=ofd_packets/00189325 [20:20:23]NVStorageDeleteData [20:20:24]OFD Sender: No OFD packet to send [20:20:24]*** Cut start [20:20:24]*** Partial cut [20:20:24]*** CUTSNS_PIN = 1 [20:20:24]*** CUTSNS_PIN = 0 [20:20:24]*** Brake cut motor [20:20:25]Read from MH i2c: 01 [20:20:25]MH_I2C_Read... [20:20:25]*** Stop cut motor [20:20:25]*** Cut end [20:20:25]Read from MH i2c: 01 07 00 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: 01 07 00 07 77 00 00 00 00 00 FF 0F 93 [20:20:25]process_action close_receipt done [20:20:25]requested_data is exist [20:20:25]produce_requested_data [20:20:25]requested_item fm.sn is exist - process it [20:20:25]wFMCommunicate request_size=4 [20:20:25]MH_SAM_APDU [20:20:25]CAPDU: 80 11 00 00 [20:20:25]Write to MH i2c: E2 08 00 08 77 80 11 00 00 00 00 00 00 F9 [20:20:25]Write i2c OK [20:20:25]MH_I2C_Read... [20:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:25]Read from MH i2c: E2 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 17 00 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 17 00 08 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [20:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:25]wFMCommunicate OK [20:20:25]requested_item fd.num is exist - process it [20:20:25]SAM_PROTO_GetFieldsCounters [20:20:25]wFMCommunicate request_size=4 [20:20:25]MH_SAM_APDU [20:20:25]CAPDU: 80 13 00 00 [20:20:25]Write to MH i2c: E2 08 00 09 77 80 13 00 00 00 00 00 00 FC [20:20:25]Write i2c OK [20:20:25]MH_I2C_Read... [20:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:25]Read from MH i2c: E2 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 62 00 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 62 00 09 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E3 02 00 0E 04 04 00 CF 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 F2 [20:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E3 02 00 0E 04 04 00 CF 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 [20:20:25]wFMCommunicate OK [20:20:25]SAM_PROTO_GetFieldsCounters done [20:20:25]requested_item shift.num is exist - process it [20:20:25]requested_item shift.opened is exist - process it [20:20:25]req_shift_opened [20:20:25]FM_GetShiftState [20:20:25]SAM_PROTO_GetShiftState [20:20:25]wFMCommunicate request_size=4 [20:20:25]MH_SAM_APDU [20:20:25]CAPDU: 80 13 01 00 [20:20:25]Write to MH i2c: E2 08 00 0A 77 80 13 01 00 00 00 00 00 FE [20:20:25]Write i2c OK [20:20:25]MH_I2C_Read... [20:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:25]Read from MH i2c: E2 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 0E 00 [20:20:25]MH_I2C_Read... [20:20:25]Read from MH i2c: E2 0E 00 0A 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DC [20:20:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:20:25]wFMCommunicate OK [20:20:25]SAM_PROTO_GetShiftState done [20:20:25]FM_GetShiftState done [20:20:25]req_shift_opened done [20:20:25]requested_item shift.open_date is exist - process it [20:20:25]req_shift_open_date [20:20:25]req_shift_open_date done [20:20:25]produce_requested_data done [20:20:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189325,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:20:25]process_action_free close_receipt [20:20:25]json_value_free [20:20:25]json_value_free done [20:20:25]process_json_proto returns [20:20:25]Send response to host [20:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189325,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:20:25]free response buf [20:20:25]execute_script done [20:20:25]execute_script returns [20:20:25]free content buf [20:20:25]Sock 9.Close socket [20:20:25]Sock 9.Thread stoped [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:38]ConnectInit Can't connect to host [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:15]accept exits with 8 [20:27:15]New connection [20:27:15]New thread 3067071844 created [20:27:15]Thread 3067215204 joined [20:27:15]Waiting for new connection... [20:27:15] Sock 8.Parse request [20:27:15]Sock 8.Check first char [20:27:15]Sock 8.First char is OK [20:27:15]request: POST /json_proto HTTP/1.0 [20:27:15]Method: POST [20:27:15]URL: /json_proto [20:27:15]Method is POST - this is cgi request [20:27:15]url: /json_proto [20:27:15]query_string will be loaded in cgi processing [20:27:15]execute_cgi json_proto POST (null) [20:27:15]execute_cgi path=json_proto method=POST [20:27:15]POST find Content-Length [20:27:15]Host: 172.17.42.131:8080 [20:27:15]Content-Length: 769 [20:27:15]Content-Type: application/json [20:27:15] [20:27:15]POST finish read [20:27:15]Found Content-Length = 769 [20:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:15]execute_script... [20:27: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)211391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:15]POST & json_proto [20:27:15]process_json_proto [20:27:15]json parsed OK: [20:27:15]protocol is kg_v1.0 [20:27:15]action value=close_receipt [20:27:15]process_action close_receipt [20:27:15]cmd_close_receipt [20:27:15]MH_GetDate [20:27:15]Write to MH i2c: F0 00 00 0B 77 71 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: F0 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: F0 09 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: F0 09 00 0B 77 00 A8 AD 1A 67 A0 18 CA 66 38 [20:27:15]GetLastDocTimeStamp 1729801226 [20:27:15]current date 1729801640 [20:27:15]FM_GetShiftState [20:27:15]SAM_PROTO_GetShiftState [20:27:15]wFMCommunicate request_size=4 [20:27:15]MH_SAM_APDU [20:27:15]CAPDU: 80 13 01 00 [20:27:15]Write to MH i2c: E2 08 00 0C 77 80 13 01 00 00 00 00 00 00 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:15]Read from MH i2c: E2 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 0E 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: E2 0E 00 0C 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DE [20:27:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:27:15]wFMCommunicate OK [20:27:15]SAM_PROTO_GetShiftState done [20:27:15]FM_GetShiftState done [20:27:15]opened in 1729728961 [20:27:15]opened+sec_in_day 1729815361 [20:27:15]quantity*price = 100021 [20:27:15]sum+1 = 100023 [20:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 399 24.10.2024 20:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189326 ФПД: 111232121240665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189326&fm=111232121240665&tin=02508201610067®Number=0000000000100030&sum=100022 [20:27:16]StoreToDocumentArchive [20:27:16]shift 463 fd 189326 [20:27:16]save to /storage/0463/doc_00189326 [20:27:16]save last doc name /storage/0463/doc_00189326 to /storage/kkm_last_doc_name [20:27:16]save OK [20:27:16]Clear old archive folders... [20:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:16]tlvbuf is 0174CCE0 [20:27:16]SAM_PROTO_ClearQueue [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 09 00 00 [20:27:16]Write to MH i2c: E2 08 00 19 77 80 09 00 00 00 00 00 00 02 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 19 77 00 90 00 04 [20:27:16]RAPDU: 90 00 [20:27:16]wFMCommunicate OK [20:27:16]SAM_PROTO_ClearQueue done [20:27:16]KKMCreateOFDPacket [20:27:16]OFDProtocolAddRootSTLVToBuf [20:27:16]FM_MakeSignedData [20:27:16]FM_MakeSignedData [20:27:16]SAM_PROTO_SignData [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 0D 01 02 [20:27:16]Write to MH i2c: E2 08 00 1A 77 80 0D 01 02 00 00 00 00 0A [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 03 00 1A 77 00 90 00 05 [20:27:16]RAPDU: 90 00 [20:27:16]wFMCommunicate OK [20:27:16]wFMCommunicate request_size=255 [20:27:16]MH_SAM_APDU [20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 8F 01 00 00 F4 03 04 00 A8 AD 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E3 02 00 35 04 06 00 65 [20:27:16]Write to MH i2c: E2 02 01 1B 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 33 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 8F 01 00 00 F4 03 04 00 A8 AD 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E3 02 00 35 04 06 00 65 00 00 D4 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:17]Read from MH i2c: E2 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 03 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 03 00 1B 77 00 90 00 06 [20:27:17]RAPDU: 90 00 [20:27:17]wFMCommunicate OK [20:27:17]wFMCommunicate request_size=10 [20:27:17]MH_SAM_APDU [20:27:17]CAPDU: 80 0D 02 02 05 2A 3F 12 FC 59 [20:27:17]Write to MH i2c: E2 0D 00 1C 77 80 0D 02 02 05 00 2A 3F 12 FC 59 00 00 E7 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:17]Read from MH i2c: E2 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 03 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 03 00 1C 77 00 90 00 07 [20:27:17]RAPDU: 90 00 [20:27:17]wFMCommunicate OK [20:27:17]wFMCommunicate request_size=4 [20:27:17]MH_SAM_APDU [20:27:17]CAPDU: 80 0D 03 02 [20:27:17]Write to MH i2c: E2 08 00 1D 77 80 0D 03 02 00 00 00 00 0F [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:17]Read from MH i2c: E2 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 0B 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 0B 00 1D 77 00 30 A8 C2 4C 8C 8B 94 7D 90 00 1E [20:27:17]RAPDU: 30 A8 C2 4C 8C 8B 94 7D 90 00 [20:27:17]wFMCommunicate OK [20:27:17]SAM_PROTO_SignData done [20:27:17]FM_MakeSignedData done [20:27:17]CreateOFDProtocolMessage [20:27:17]wFMCommunicate request_size=4 [20:27:17]MH_SAM_APDU [20:27:17]CAPDU: 80 11 00 00 [20:27:17]Write to MH i2c: E2 08 00 1E 77 80 11 00 00 00 00 00 00 0F [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:17]Read from MH i2c: E2 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 17 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 17 00 1E 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [20:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:27:17]wFMCommunicate OK [20:27:17]CreateOFDProtocolMessage done [20:27:17]OFDSenderStorePacket 189326 [20:27:17]StoreOFDPacket docnum=189326 [20:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 44 07 01 46 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 33 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 8F 01 00 00 F4 03 04 00 A8 AD 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E3 02 00 35 04 06 00 65 2A 3F 12 FC 59 30 A8 C2 4C 8C 8B 94 7D [20:27:17]CheckFolder [20:27:17]dirname=/storage/ofd_packets [20:27:17]CheckFolder done [20:27:17]ProducePacketName [20:27:17]name=ofd_packets/00189326 [20:27:17]NVStorageSaveData ofd_packets/00189326 [20:27:17]File name is /storage/ofd_packets/00189326 [20:27:17]Write 301 bytes [20:27:17]NVStorageSaveData done [20:27:17]OFDSenderStorePacket done [20:27:17]KKMCreateOFDPacket done [20:27:17]NVStorageSaveData kkm_last_timestamp [20:27:17]File name is /storage/kkm_last_timestamp [20:27:17]Write 4 bytes [20:27:17]NVStorageSaveData done [20:27:17]ExternCall_PrintAddStr [20:27:17]wPrintStart [20:27:17]Write to MH i2c: 01 00 00 1F 77 96 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 1F 77 00 00 00 00 00 FF 0F AB [20:27:17]RasterBufferAndPrint [20:27:17]line Счет N : (1)211391 [20:27:17]line ИНН: 02508201610067 [20:27:17]line Контрольно-Кассовый Чек [20:27:17]line ПРОДАЖА [20:27:17]line ТРК (МРК, ГНК) : 13 [20:27:17]line Товар: 2710124500 [20:27:17]line Аи-95-К-3 [20:27:17]line 13.480 * 74.20 [20:27:17]line = 1000.22 [20:27:17]line НДС 12% НСП 1% [20:27:17]line > о реализуемом товаре [20:27:17]line ИТОГО: 1000.22 [20:27:17]line НСП 1% : 8.85 [20:27:17]line НДС 12% : 106.22 [20:27:17]line Наличными: 0.00 [20:27:17]line Безнал.: 1000.22 [20:27:17]line Место: АЗС № 86 "Партнер Нефть" [20:27:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:27:17]line СНО: Общий режим [20:27:17]line Чек 399 24.10.2024 20:27 [20:27:17]line Смена: 463 ФФД: 1.0 [20:27:17]line ЗНМ: 0300000155 [20:27:17]line РНМ: 0000000000100030 [20:27:17]line Версия ККМ: 001 [20:27:17]line Платежная система: Mbank [20:27:17]line ФМ: 0000000000965340 [20:27:17]line ФД: 189326 [20:27:17]line ФПД: 111232121240665 [20:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189326&fm=111232121240665&tin=02508201610067®Number=0000000000100030&sum=100022 [20:27:17]written 0, free lines is 4095 [20:27:17]OFD Sender: Processing packet 189326 [packets to send 1062, broken 1061] [20:27:17]ProducePacketName [20:27:17]name=ofd_packets/00189326 [20:27:17]OFD Sender: To server: pG, [20:27:17]CommunicateWithHost lk.salyk.kg:30040 [20:27:17]ConnectInit lk.salyk.kg [20:27:17]Connected sock=10 [20:27:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EC 44 07 01 46 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 33 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 8F 01 00 00 F4 03 04 00 A8 AD 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E3 02 00 35 04 06 00 65 2A 3F 12 FC 59 30 A8 C2 4C 8C 8B 94 7D [20:27:17]Write to MH i2c: 01 00 00 48 77 BF [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: 01 07 00 48 77 00 00 00 00 00 8B 0C 5D [20:27:17]RasterBufferAndPrint [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]line [20:27:17]written 0, free lines is 3215 [20:27:17]MH_Cut [20:27:17]Write to MH i2c: D1 01 00 4F 77 01 98 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 01 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: D1 01 00 4F 77 00 97 [20:27:17]Write to MH i2c: 01 00 00 50 77 C7 [20:27:17]Write i2c OK [20:27:17]MH_I2C_Read... [20:27:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 05 47 00 1B 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 39 36 35 33 34 30 10 04 04 00 8E E3 02 00 F4 03 04 00 8F 57 1A 67 B6 04 01 00 00 C4 82 80 6A 0A DE 62 B3 [20:27:17]CommunicateWithHost err = 0 [20:27:17]CheckOFDResponse [20:27:17]1017 (14) - 77093643461234 [20:27:17]1041 (16) - 0000000000965340 [20:27:17]1040 (4) - 189326 [20:27:17]1012 (4) - 24.10.2024 14:19 [20:27:17]1206 (1) - 0 [20:27:17]OFD Sender: Remove packet 189326 [20:27:17]ProducePacketName [20:27:17]name=ofd_packets/00189326 [20:27:17]NVStorageDeleteData [20:27:18]OFD Sender: No OFD packet to send [20:27:18]*** Cut start [20:27:18]*** Partial cut [20:27:18]*** CUTSNS_PIN = 1 [20:27:19]*** CUTSNS_PIN = 0 [20:27:19]*** Brake cut motor [20:27:19]Read from MH i2c: 01 [20:27:19]MH_I2C_Read... [20:27:19]*** Stop cut motor [20:27:19]*** Cut end [20:27:19]Read from MH i2c: 01 07 00 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: 01 07 00 50 77 00 00 00 00 00 FF 0F DC [20:27:19]process_action close_receipt done [20:27:19]requested_data is exist [20:27:19]produce_requested_data [20:27:19]requested_item fm.sn is exist - process it [20:27:19]wFMCommunicate request_size=4 [20:27:19]MH_SAM_APDU [20:27:19]CAPDU: 80 11 00 00 [20:27:19]Write to MH i2c: E2 08 00 51 77 80 11 00 00 00 00 00 00 42 [20:27:19]Write i2c OK [20:27:19]MH_I2C_Read... [20:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:19]Read from MH i2c: E2 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 17 00 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 17 00 51 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [20:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:27:19]wFMCommunicate OK [20:27:19]requested_item fd.num is exist - process it [20:27:19]SAM_PROTO_GetFieldsCounters [20:27:19]wFMCommunicate request_size=4 [20:27:19]MH_SAM_APDU [20:27:19]CAPDU: 80 13 00 00 [20:27:19]Write to MH i2c: E2 08 00 52 77 80 13 00 00 00 00 00 00 45 [20:27:19]Write i2c OK [20:27:19]MH_I2C_Read... [20:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:19]Read from MH i2c: E2 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 62 00 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 62 00 52 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E3 02 00 0E 04 04 00 CF 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 3F [20:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E3 02 00 0E 04 04 00 CF 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 [20:27:19]wFMCommunicate OK [20:27:19]SAM_PROTO_GetFieldsCounters done [20:27:19]requested_item shift.num is exist - process it [20:27:19]requested_item shift.opened is exist - process it [20:27:19]req_shift_opened [20:27:19]FM_GetShiftState [20:27:19]SAM_PROTO_GetShiftState [20:27:19]wFMCommunicate request_size=4 [20:27:19]MH_SAM_APDU [20:27:19]CAPDU: 80 13 01 00 [20:27:19]Write to MH i2c: E2 08 00 53 77 80 13 01 00 00 00 00 00 47 [20:27:19]Write i2c OK [20:27:19]MH_I2C_Read... [20:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:19]Read from MH i2c: E2 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 0E 00 [20:27:19]MH_I2C_Read... [20:27:19]Read from MH i2c: E2 0E 00 53 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 25 [20:27:19]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:27:19]wFMCommunicate OK [20:27:19]SAM_PROTO_GetShiftState done [20:27:19]FM_GetShiftState done [20:27:19]req_shift_opened done [20:27:19]requested_item shift.open_date is exist - process it [20:27:19]req_shift_open_date [20:27:19]req_shift_open_date done [20:27:19]produce_requested_data done [20:27:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189326,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:27:19]process_action_free close_receipt [20:27:19]json_value_free [20:27:19]json_value_free done [20:27:19]process_json_proto returns [20:27:19]Send response to host [20:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189326,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:27:19]free response buf [20:27:19]execute_script done [20:27:19]execute_script returns [20:27:19]free content buf [20:27:19]Sock 8.Close socket [20:27:19]Sock 8.Thread stoped [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:51]accept exits with 9 [20:33:51]New connection [20:33:51]New thread 3067215204 created [20:33:51]Thread 3067071844 joined [20:33:51]Waiting for new connection... [20:33:51] Sock 9.Parse request [20:33:51]Sock 9.Check first char [20:33:51]Sock 9.First char is OK [20:33:51]request: POST /json_proto HTTP/1.0 [20:33:51]Method: POST [20:33:51]URL: /json_proto [20:33:51]Method is POST - this is cgi request [20:33:51]url: /json_proto [20:33:51]query_string will be loaded in cgi processing [20:33:51]execute_cgi json_proto POST (null) [20:33:51]execute_cgi path=json_proto method=POST [20:33:51]POST find Content-Length [20:33:51]Host: 172.17.42.131:8080 [20:33:51]Content-Length: 688 [20:33:51]Content-Type: application/json [20:33:51] [20:33:51]POST finish read [20:33:51]Found Content-Length = 688 [20:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.370, "sum" : 2190.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2190.00, "total" : 2190.00, "payments": [ { "type": 0, "sum" : 2190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:51]execute_script... [20:33: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)211392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.370, "sum" : 2190.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2190.00, "total" : 2190.00, "payments": [ { "type": 0, "sum" : 2190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:51]POST & json_proto [20:33:51]process_json_proto [20:33:51]json parsed OK: [20:33:51]protocol is kg_v1.0 [20:33:51]action value=close_receipt [20:33:51]process_action close_receipt [20:33:51]cmd_close_receipt [20:33:51]MH_GetDate [20:33:51]Write to MH i2c: F0 00 00 54 77 BA [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: F0 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: F0 09 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: F0 09 00 54 77 00 34 AF 1A 67 A0 18 CA 66 0F [20:33:51]GetLastDocTimeStamp 1729801640 [20:33:51]current date 1729802036 [20:33:51]FM_GetShiftState [20:33:51]SAM_PROTO_GetShiftState [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 13 01 00 [20:33:51]Write to MH i2c: E2 08 00 55 77 80 13 01 00 00 00 00 00 49 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0E 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0E 00 55 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 27 [20:33:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_GetShiftState done [20:33:51]FM_GetShiftState done [20:33:51]opened in 1729728961 [20:33:51]opened+sec_in_day 1729815361 [20:33:51]quantity*price = 219016 [20:33:51]sum+1 = 219017 [20:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2190.00 Внесено: 2190.00 СДАЧА: 0.00 НСП 1% : 19.38 НДС 12% : 232.58 Наличными: 2190.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 400 24.10.2024 20:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189327 ФПД: 229887098158763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189327&fm=229887098158763&tin=02508201610067®Number=0000000000100030&sum=219000 [20:33:52]StoreToDocumentArchive [20:33:52]shift 463 fd 189327 [20:33:52]save to /storage/0463/doc_00189327 [20:33:52]save last doc name /storage/0463/doc_00189327 to /storage/kkm_last_doc_name [20:33:52]save OK [20:33:52]Clear old archive folders... [20:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:33:52]tlvbuf is 016764E0 [20:33:52]SAM_PROTO_ClearQueue [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 09 00 00 [20:33:52]Write to MH i2c: E2 08 00 62 77 80 09 00 00 00 00 00 00 4B [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 62 77 00 90 00 4D [20:33:52]RAPDU: 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_ClearQueue done [20:33:52]KKMCreateOFDPacket [20:33:52]OFDProtocolAddRootSTLVToBuf [20:33:52]FM_MakeSignedData [20:33:52]FM_MakeSignedData [20:33:52]SAM_PROTO_SignData [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 0D 01 02 [20:33:52]Write to MH i2c: E2 08 00 63 77 80 0D 01 02 00 00 00 00 53 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 63 77 00 90 00 4E [20:33:52]RAPDU: 90 00 [20:33:52]wFMCommunicate OK [20:33:52]wFMCommunicate request_size=255 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 6E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 88 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 5A 00 00 00 00 07 04 06 00 78 57 03 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 34 AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E3 02 [20:33:52]Write to MH i2c: E2 02 01 64 77 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 6E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 88 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 5A 00 00 00 00 07 04 06 00 78 57 03 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 34 AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E3 02 00 00 E0 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 64 77 00 90 00 4F [20:33:52]RAPDU: 90 00 [20:33:52]wFMCommunicate OK [20:33:52]wFMCommunicate request_size=16 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D1 14 C2 D2 FE AB [20:33:52]Write to MH i2c: E2 13 00 65 77 80 0D 02 02 0B 00 00 35 04 06 00 D1 14 C2 D2 FE AB 00 00 CD [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 03 00 65 77 00 90 00 50 [20:33:52]RAPDU: 90 00 [20:33:52]wFMCommunicate OK [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 0D 03 02 [20:33:52]Write to MH i2c: E2 08 00 66 77 80 0D 03 02 00 00 00 00 58 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0B 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0B 00 66 77 00 3D 4B 58 00 37 60 EB CB 90 00 86 [20:33:52]RAPDU: 3D 4B 58 00 37 60 EB CB 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_SignData done [20:33:52]FM_MakeSignedData done [20:33:52]CreateOFDProtocolMessage [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 11 00 00 [20:33:52]Write to MH i2c: E2 08 00 67 77 80 11 00 00 00 00 00 00 58 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 17 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 17 00 67 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [20:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:33:52]wFMCommunicate OK [20:33:52]CreateOFDProtocolMessage done [20:33:52]OFDSenderStorePacket 189327 [20:33:52]StoreOFDPacket docnum=189327 [20:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 1A 0D 01 2C 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 6E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 88 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 5A 00 00 00 00 07 04 06 00 78 57 03 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 34 AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E3 02 00 35 04 06 00 D1 14 C2 D2 FE AB 3D 4B 58 00 37 60 EB CB [20:33:52]CheckFolder [20:33:52]dirname=/storage/ofd_packets [20:33:52]CheckFolder done [20:33:52]ProducePacketName [20:33:52]name=ofd_packets/00189327 [20:33:52]NVStorageSaveData ofd_packets/00189327 [20:33:52]File name is /storage/ofd_packets/00189327 [20:33:52]Write 307 bytes [20:33:52]NVStorageSaveData done [20:33:52]OFDSenderStorePacket done [20:33:52]KKMCreateOFDPacket done [20:33:52]NVStorageSaveData kkm_last_timestamp [20:33:52]File name is /storage/kkm_last_timestamp [20:33:52]Write 4 bytes [20:33:52]NVStorageSaveData done [20:33:53]ExternCall_PrintAddStr [20:33:53]wPrintStart [20:33:53]Write to MH i2c: 01 00 00 68 77 DF [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 07 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 07 00 68 77 00 00 00 00 00 FF 0F F4 [20:33:53]RasterBufferAndPrint [20:33:53]line Счет N : (1)211392 [20:33:53]line ИНН: 02508201610067 [20:33:53]line Контрольно-Кассовый Чек [20:33:53]line ПРОДАЖА [20:33:53]line ТРК (МРК, ГНК) : 41 [20:33:53]line Товар: 2710194210 [20:33:53]line D-ENERGY ДТ-К-5 [20:33:53]line 28.370 * 77.20 [20:33:53]line = 2190.16 [20:33:53]line НДС 12% НСП 1% [20:33:53]line > о реализуемом товаре [20:33:53]line ОКРУГЛЕНИЕ: -0.16 [20:33:53]line ИТОГО: 2190.00 [20:33:53]line Внесено: 2190.00 [20:33:53]line СДАЧА: 0.00 [20:33:53]line НСП 1% : 19.38 [20:33:53]line НДС 12% : 232.58 [20:33:53]line Наличными: 2190.00 [20:33:53]line Безнал.: 0.00 [20:33:53]line Место: АЗС № 86 "Партнер Нефть" [20:33:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:33:53]line СНО: Общий режим [20:33:53]line Чек 400 24.10.2024 20:33 [20:33:53]line Смена: 463 ФФД: 1.0 [20:33:53]line ЗНМ: 0300000155 [20:33:53]line РНМ: 0000000000100030 [20:33:53]line Версия ККМ: 001 [20:33:53]line ФМ: 0000000000965340 [20:33:53]line ФД: 189327 [20:33:53]line ФПД: 229887098158763 [20:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189327&fm=229887098158763&tin=02508201610067®Number=0000000000100030&sum=219000 [20:33:53]written 0, free lines is 4095 [20:33:53]OFD Sender: Processing packet 189327 [packets to send 1062, broken 1061] [20:33:53]ProducePacketName [20:33:53]name=ofd_packets/00189327 [20:33:53]OFD Sender: To server: pG, [20:33:53]CommunicateWithHost lk.salyk.kg:30040 [20:33:53]ConnectInit lk.salyk.kg [20:33:53]Connected sock=10 [20:33:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 1A 0D 01 2C 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 6E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 88 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 5A 00 00 00 00 07 04 06 00 78 57 03 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 34 AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E3 02 00 35 04 06 00 D1 14 C2 D2 FE AB 3D 4B 58 00 37 60 EB CB [20:33:53]Write to MH i2c: 01 00 00 93 77 0A [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 07 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 07 00 93 77 00 00 00 00 00 62 0C 7F [20:33:53]RasterBufferAndPrint [20:33:53]line [20:33:53]line [20:33:53]line [20:33:53]line [20:33:53]line [20:33:53]written 0, free lines is 3174 [20:33:53]MH_Cut [20:33:53]Write to MH i2c: D1 01 00 9A 77 01 E3 [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: D1 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: D1 01 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: D1 01 00 9A 77 00 E2 [20:33:53]Write to MH i2c: 01 00 00 9B 77 12 [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A8 12 47 00 30 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E3 02 00 F4 03 04 00 1B 59 1A 67 B6 04 01 00 00 A1 8F 01 08 09 4E 54 3E [20:33:53]CommunicateWithHost err = 0 [20:33:53]CheckOFDResponse [20:33:53]1017 (14) - 77093643461234 [20:33:53]1041 (16) - 0000000000965340 [20:33:53]1040 (4) - 189327 [20:33:53]1012 (4) - 24.10.2024 14:26 [20:33:53]1206 (1) - 0 [20:33:53]OFD Sender: Remove packet 189327 [20:33:53]ProducePacketName [20:33:53]name=ofd_packets/00189327 [20:33:53]NVStorageDeleteData [20:33:54]OFD Sender: No OFD packet to send [20:33:54]*** Cut start [20:33:54]*** Partial cut [20:33:54]*** CUTSNS_PIN = 1 [20:33:54]*** CUTSNS_PIN = 0 [20:33:55]*** Brake cut motor [20:33:55]Read from MH i2c: 01 [20:33:55]MH_I2C_Read... [20:33:55]*** Stop cut motor [20:33:55]*** Cut end [20:33:55]Read from MH i2c: 01 07 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: 01 07 00 9B 77 00 00 00 00 00 FF 0F 27 [20:33:55]process_action close_receipt done [20:33:55]requested_data is exist [20:33:55]produce_requested_data [20:33:55]requested_item fm.sn is exist - process it [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 11 00 00 [20:33:55]Write to MH i2c: E2 08 00 9C 77 80 11 00 00 00 00 00 00 8D [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 17 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 17 00 9C 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [20:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:33:55]wFMCommunicate OK [20:33:55]requested_item fd.num is exist - process it [20:33:55]SAM_PROTO_GetFieldsCounters [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 13 00 00 [20:33:55]Write to MH i2c: E2 08 00 9D 77 80 13 00 00 00 00 00 00 90 [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 62 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 62 00 9D 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E3 02 00 0E 04 04 00 CF 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 8E [20:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E3 02 00 0E 04 04 00 CF 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 [20:33:55]wFMCommunicate OK [20:33:55]SAM_PROTO_GetFieldsCounters done [20:33:55]requested_item shift.num is exist - process it [20:33:55]requested_item shift.opened is exist - process it [20:33:55]req_shift_opened [20:33:55]FM_GetShiftState [20:33:55]SAM_PROTO_GetShiftState [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 13 01 00 [20:33:55]Write to MH i2c: E2 08 00 9E 77 80 13 01 00 00 00 00 00 92 [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 0E 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 0E 00 9E 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 70 [20:33:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:33:55]wFMCommunicate OK [20:33:55]SAM_PROTO_GetShiftState done [20:33:55]FM_GetShiftState done [20:33:55]req_shift_opened done [20:33:55]requested_item shift.open_date is exist - process it [20:33:55]req_shift_open_date [20:33:55]req_shift_open_date done [20:33:55]produce_requested_data done [20:33:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189327,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:33:55]process_action_free close_receipt [20:33:55]json_value_free [20:33:55]json_value_free done [20:33:55]process_json_proto returns [20:33:55]Send response to host [20:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189327,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:33:55]free response buf [20:33:55]execute_script done [20:33:55]execute_script returns [20:33:55]free content buf [20:33:55]Sock 9.Close socket [20:33:55]Sock 9.Thread stoped [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:50]accept exits with 8 [20:34:50]New connection [20:34:50]New thread 3067071844 created [20:34:50]Thread 3067215204 joined [20:34:50]Waiting for new connection... [20:34:50] Sock 8.Parse request [20:34:50]Sock 8.Check first char [20:34:50]Sock 8.First char is OK [20:34:50]request: POST /json_proto HTTP/1.0 [20:34:50]Method: POST [20:34:50]URL: /json_proto [20:34:50]Method is POST - this is cgi request [20:34:50]url: /json_proto [20:34:50]query_string will be loaded in cgi processing [20:34:50]execute_cgi json_proto POST (null) [20:34:50]execute_cgi path=json_proto method=POST [20:34:50]POST find Content-Length [20:34:50]Host: 172.17.42.131:8080 [20:34:50]Content-Length: 682 [20:34:50]Content-Type: application/json [20:34:50] [20:34:50]POST finish read [20:34:50]Found Content-Length = 682 [20:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:34:50]execute_script... [20: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)211393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:34:50]POST & json_proto [20:34:50]process_json_proto [20:34:50]json parsed OK: [20:34:50]protocol is kg_v1.0 [20:34:50]action value=close_receipt [20:34:50]process_action close_receipt [20:34:50]cmd_close_receipt [20:34:50]MH_GetDate [20:34:50]Write to MH i2c: F0 00 00 9F 77 05 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: F0 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: F0 09 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: F0 09 00 9F 77 00 6F AF 1A 67 A0 18 CA 66 95 [20:34:50]GetLastDocTimeStamp 1729802036 [20:34:50]current date 1729802095 [20:34:50]FM_GetShiftState [20:34:50]SAM_PROTO_GetShiftState [20:34:50]wFMCommunicate request_size=4 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 13 01 00 [20:34:50]Write to MH i2c: E2 08 00 A0 77 80 13 01 00 00 00 00 00 94 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 0E 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 0E 00 A0 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 72 [20:34:50]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:34:50]wFMCommunicate OK [20:34:50]SAM_PROTO_GetShiftState done [20:34:50]FM_GetShiftState done [20:34:50]opened in 1729728961 [20:34:50]opened+sec_in_day 1729815361 [20:34:50]quantity*price = 100021 [20:34:50]sum+1 = 100023 [20:34: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 401 24.10.2024 20:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189328 ФПД: 169507313438294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189328&fm=169507313438294&tin=02508201610067®Number=0000000000100030&sum=100000 [20:34:51]StoreToDocumentArchive [20:34:51]shift 463 fd 189328 [20:34:51]save to /storage/0463/doc_00189328 [20:34:51]save last doc name /storage/0463/doc_00189328 to /storage/kkm_last_doc_name [20:34:51]save OK [20:34:51]Clear old archive folders... [20:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:51]tlvbuf is 0174D0D0 [20:34:51]SAM_PROTO_ClearQueue [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 09 00 00 [20:34:51]Write to MH i2c: E2 08 00 AD 77 80 09 00 00 00 00 00 00 96 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 AD 77 00 90 00 98 [20:34:51]RAPDU: 90 00 [20:34:51]wFMCommunicate OK [20:34:51]SAM_PROTO_ClearQueue done [20:34:51]KKMCreateOFDPacket [20:34:51]OFDProtocolAddRootSTLVToBuf [20:34:51]FM_MakeSignedData [20:34:51]FM_MakeSignedData [20:34:51]SAM_PROTO_SignData [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 0D 01 02 [20:34:51]Write to MH i2c: E2 08 00 AE 77 80 0D 01 02 00 00 00 00 9E [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 AE 77 00 90 00 99 [20:34:51]RAPDU: 90 00 [20:34:51]wFMCommunicate OK [20:34:51]wFMCommunicate request_size=255 [20:34:51]MH_SAM_APDU [20: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 33 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 6F AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E3 02 00 35 04 06 00 9A [20:34:51]Write to MH i2c: E2 02 01 AF 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 33 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 6F AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E3 02 00 35 04 06 00 9A 00 00 3E [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 03 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 03 00 AF 77 00 90 00 9A [20:34:52]RAPDU: 90 00 [20:34:52]wFMCommunicate OK [20:34:52]wFMCommunicate request_size=10 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 0D 02 02 05 2A 7F 34 4E 56 [20:34:52]Write to MH i2c: E2 0D 00 B0 77 80 0D 02 02 05 00 2A 7F 34 4E 56 00 00 2C [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 03 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 03 00 B0 77 00 90 00 9B [20:34:52]RAPDU: 90 00 [20:34:52]wFMCommunicate OK [20:34:52]wFMCommunicate request_size=4 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 0D 03 02 [20:34:52]Write to MH i2c: E2 08 00 B1 77 80 0D 03 02 00 00 00 00 A3 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 0B 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 0B 00 B1 77 00 04 80 A1 F1 F0 62 E4 CD 90 00 BD [20:34:52]RAPDU: 04 80 A1 F1 F0 62 E4 CD 90 00 [20:34:52]wFMCommunicate OK [20:34:52]SAM_PROTO_SignData done [20:34:52]FM_MakeSignedData done [20:34:52]CreateOFDProtocolMessage [20:34:52]wFMCommunicate request_size=4 [20:34:52]MH_SAM_APDU [20:34:52]CAPDU: 80 11 00 00 [20:34:52]Write to MH i2c: E2 08 00 B2 77 80 11 00 00 00 00 00 00 A3 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:52]Read from MH i2c: E2 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 17 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: E2 17 00 B2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [20:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:34:52]wFMCommunicate OK [20:34:52]CreateOFDProtocolMessage done [20:34:52]OFDSenderStorePacket 189328 [20:34:52]StoreOFDPacket docnum=189328 [20:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 7D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 6F AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E3 02 00 35 04 06 00 9A 2A 7F 34 4E 56 04 80 A1 F1 F0 62 E4 CD [20:34:52]CheckFolder [20:34:52]dirname=/storage/ofd_packets [20:34:52]CheckFolder done [20:34:52]ProducePacketName [20:34:52]name=ofd_packets/00189328 [20:34:52]NVStorageSaveData ofd_packets/00189328 [20:34:52]File name is /storage/ofd_packets/00189328 [20:34:52]Write 301 bytes [20:34:52]NVStorageSaveData done [20:34:52]OFDSenderStorePacket done [20:34:52]KKMCreateOFDPacket done [20:34:52]NVStorageSaveData kkm_last_timestamp [20:34:52]File name is /storage/kkm_last_timestamp [20:34:52]Write 4 bytes [20:34:52]NVStorageSaveData done [20:34:52]ExternCall_PrintAddStr [20:34:52]wPrintStart [20:34:52]Write to MH i2c: 01 00 00 B3 77 2A [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 B3 77 00 00 00 00 00 FF 0F 3F [20:34:52]RasterBufferAndPrint [20:34:52]line Счет N : (1)211393 [20:34:52]line ИНН: 02508201610067 [20:34:52]line Контрольно-Кассовый Чек [20:34:52]line ПРОДАЖА [20:34:52]line ТРК (МРК, ГНК) : 33 [20:34:52]line Товар: 2710124500 [20:34:52]line Аи-95-К-3 [20:34:52]line 13.480 * 74.20 [20:34:52]line = 1000.22 [20:34:52]line НДС 12% НСП 1% [20:34:52]line > о реализуемом товаре [20:34:52]line ОКРУГЛЕНИЕ: -0.22 [20:34:52]line ИТОГО: 1000.00 [20:34:52]line Внесено: 1000.00 [20:34:52]line СДАЧА: 0.00 [20:34:52]line НСП 1% : 8.85 [20:34:52]line НДС 12% : 106.22 [20:34:52]line Наличными: 1000.00 [20:34:52]line Безнал.: 0.00 [20:34:52]line Место: АЗС № 86 "Партнер Нефть" [20:34:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:34:52]line СНО: Общий режим [20:34:52]line Чек 401 24.10.2024 20:34 [20:34:52]line Смена: 463 ФФД: 1.0 [20:34:52]line ЗНМ: 0300000155 [20:34:52]line РНМ: 0000000000100030 [20:34:52]line Версия ККМ: 001 [20:34:52]line ФМ: 0000000000965340 [20:34:52]line ФД: 189328 [20:34:52]line ФПД: 169507313438294 [20:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189328&fm=169507313438294&tin=02508201610067®Number=0000000000100030&sum=100000 [20:34:52]written 0, free lines is 4095 [20:34:52]OFD Sender: Processing packet 189328 [packets to send 1062, broken 1061] [20:34:52]ProducePacketName [20:34:52]name=ofd_packets/00189328 [20:34:52]OFD Sender: To server: pG, [20:34:52]CommunicateWithHost lk.salyk.kg:30040 [20:34:52]ConnectInit lk.salyk.kg [20:34:52]Connected sock=11 [20:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 7D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 6F AF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E3 02 00 35 04 06 00 9A 2A 7F 34 4E 56 04 80 A1 F1 F0 62 E4 CD [20:34:52]Write to MH i2c: 01 00 00 DE 77 55 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 DE 77 00 00 00 00 00 59 0C C1 [20:34:52]RasterBufferAndPrint [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]written 0, free lines is 3165 [20:34:52]MH_Cut [20:34:52]Write to MH i2c: D1 01 00 E5 77 01 2E [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 01 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 01 00 E5 77 00 2D [20:34:52]Write to MH i2c: 01 00 00 E6 77 5D [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AC 2A 47 00 87 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 39 36 35 33 34 30 10 04 04 00 90 E3 02 00 F4 03 04 00 56 59 1A 67 B6 04 01 00 00 72 3D 63 A9 05 99 6D C2 [20:34:53]CommunicateWithHost err = 0 [20:34:53]CheckOFDResponse [20:34:53]1017 (14) - 77093643461234 [20:34:53]1041 (16) - 0000000000965340 [20:34:53]1040 (4) - 189328 [20:34:53]1012 (4) - 24.10.2024 14:27 [20:34:53]1206 (1) - 0 [20:34:53]OFD Sender: Remove packet 189328 [20:34:53]ProducePacketName [20:34:53]name=ofd_packets/00189328 [20:34:53]NVStorageDeleteData [20:34:53]OFD Sender: No OFD packet to send [20:34:53]*** Cut start [20:34:53]*** Partial cut [20:34:53]*** CUTSNS_PIN = 1 [20:34:54]*** CUTSNS_PIN = 0 [20:34:54]*** Brake cut motor [20:34:54]Read from MH i2c: 01 [20:34:54]MH_I2C_Read... [20:34:54]*** Stop cut motor [20:34:54]*** Cut end [20:34:54]Read from MH i2c: 01 07 00 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: 01 07 00 E6 77 00 00 00 00 00 FF 0F 72 [20:34:54]process_action close_receipt done [20:34:54]requested_data is exist [20:34:54]produce_requested_data [20:34:54]requested_item fm.sn is exist - process it [20:34:54]wFMCommunicate request_size=4 [20:34:54]MH_SAM_APDU [20:34:54]CAPDU: 80 11 00 00 [20:34:54]Write to MH i2c: E2 08 00 E7 77 80 11 00 00 00 00 00 00 D8 [20:34:54]Write i2c OK [20:34:54]MH_I2C_Read... [20:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:54]Read from MH i2c: E2 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 17 00 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 17 00 E7 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [20:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:34:54]wFMCommunicate OK [20:34:54]requested_item fd.num is exist - process it [20:34:54]SAM_PROTO_GetFieldsCounters [20:34:54]wFMCommunicate request_size=4 [20:34:54]MH_SAM_APDU [20:34:54]CAPDU: 80 13 00 00 [20:34:54]Write to MH i2c: E2 08 00 E8 77 80 13 00 00 00 00 00 00 DB [20:34:54]Write i2c OK [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 [20:34:54]MH_I2C_Read... [20:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:54]Read from MH i2c: E2 62 00 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 62 00 E8 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E3 02 00 0E 04 04 00 CF 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 DD [20:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E3 02 00 0E 04 04 00 CF 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 [20:34:54]wFMCommunicate OK [20:34:54]SAM_PROTO_GetFieldsCounters done [20:34:54]requested_item shift.num is exist - process it [20:34:54]requested_item shift.opened is exist - process it [20:34:54]req_shift_opened [20:34:54]FM_GetShiftState [20:34:54]SAM_PROTO_GetShiftState [20:34:54]wFMCommunicate request_size=4 [20:34:54]MH_SAM_APDU [20:34:54]CAPDU: 80 13 01 00 [20:34:54]Write to MH i2c: E2 08 00 E9 77 80 13 01 00 00 00 00 00 DD [20:34:54]Write i2c OK [20:34:54]MH_I2C_Read... [20:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:54]Read from MH i2c: E2 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 0E 00 [20:34:54]MH_I2C_Read... [20:34:54]Read from MH i2c: E2 0E 00 E9 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BB [20:34:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:34:54]wFMCommunicate OK [20:34:54]SAM_PROTO_GetShiftState done [20:34:54]FM_GetShiftState done [20:34:54]req_shift_opened done [20:34:54]requested_item shift.open_date is exist - process it [20:34:54]req_shift_open_date [20:34:54]req_shift_open_date done [20:34:54]produce_requested_data done [20:34:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189328,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:34:54]process_action_free close_receipt [20:34:54]json_value_free [20:34:54]json_value_free done [20:34:54]process_json_proto returns [20:34:54]Send response to host [20:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189328,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:34:54]free response buf [20:34:54]execute_script done [20:34:54]execute_script returns [20:34:54]free content buf [20:34:54]Sock 8.Close socket [20:34:54]Sock 8.Thread stoped [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:07]accept exits with 9 [20:38:07]New connection [20:38:07]New thread 3067215204 created [20:38:07]Thread 3067071844 joined [20:38:07]Waiting for new connection... [20:38:07] Sock 9.Parse request [20:38:07]Sock 9.Check first char [20:38:07]Sock 9.First char is OK [20:38:07]request: POST /json_proto HTTP/1.0 [20:38:07]Method: POST [20:38:07]URL: /json_proto [20:38:07]Method is POST - this is cgi request [20:38:07]url: /json_proto [20:38:07]query_string will be loaded in cgi processing [20:38:07]execute_cgi json_proto POST (null) [20:38:07]execute_cgi path=json_proto method=POST [20:38:07]POST find Content-Length [20:38:07]Host: 172.17.42.131:8080 [20:38:07]Content-Length: 769 [20:38:07]Content-Type: application/json [20:38:07] [20:38:07]POST finish read [20:38:07]Found Content-Length = 769 [20:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:07]execute_script... [20:38: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)211394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:07]POST & json_proto [20:38:07]process_json_proto [20:38:07]json parsed OK: [20:38:07]protocol is kg_v1.0 [20:38:07]action value=close_receipt [20:38:07]process_action close_receipt [20:38:07]cmd_close_receipt [20:38:07]MH_GetDate [20:38:07]Write to MH i2c: F0 00 00 EA 77 50 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: F0 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: F0 09 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: F0 09 00 EA 77 00 34 B0 1A 67 A0 18 CA 66 A6 [20:38:07]GetLastDocTimeStamp 1729802095 [20:38:07]current date 1729802292 [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 EB 77 80 13 01 00 00 00 00 00 DF [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 EB 77 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 BD [20:38:07]RAPDU: 09 00 01 C1 91 19 67 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]opened in 1729728961 [20:38:07]opened+sec_in_day 1729815361 [20:38:07]quantity*price = 100015 [20:38:07]sum+1 = 100017 [20:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 402 24.10.2024 20:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189329 ФПД: 72681366210565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203812&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189329&fm=72681366210565&tin=02508201610067®Number=0000000000100030&sum=100016 [20:38:08]StoreToDocumentArchive [20:38:08]shift 463 fd 189329 [20:38:08]save to /storage/0463/doc_00189329 [20:38:08]save last doc name /storage/0463/doc_00189329 to /storage/kkm_last_doc_name [20:38:08]save OK [20:38:08]Clear old archive folders... [20:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:08]tlvbuf is 016D7010 [20:38:08]SAM_PROTO_ClearQueue [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 09 00 00 [20:38:08]Write to MH i2c: E2 08 00 F8 77 80 09 00 00 00 00 00 00 E1 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 F8 77 00 90 00 E3 [20:38:08]RAPDU: 90 00 [20:38:08]wFMCommunicate OK [20:38:08]SAM_PROTO_ClearQueue done [20:38:08]KKMCreateOFDPacket [20:38:08]OFDProtocolAddRootSTLVToBuf [20:38:08]FM_MakeSignedData [20:38:08]FM_MakeSignedData [20:38:08]SAM_PROTO_SignData [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 0D 01 02 [20:38:08]Write to MH i2c: E2 08 00 F9 77 80 0D 01 02 00 00 00 00 E9 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 F9 77 00 90 00 E4 [20:38:08]RAPDU: 90 00 [20:38:08]wFMCommunicate OK [20:38:08]wFMCommunicate request_size=255 [20:38:08]MH_SAM_APDU [20:38: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 34 B0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E3 02 00 35 04 06 00 42 [20:38:08]Write to MH i2c: E2 02 01 FA 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 34 B0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E3 02 00 35 04 06 00 42 00 00 F6 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 FA 77 00 90 00 E5 [20:38:08]RAPDU: 90 00 [20:38:08]wFMCommunicate OK [20:38:08]wFMCommunicate request_size=10 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 0D 02 02 05 1A 73 03 C8 05 [20:38:08]Write to MH i2c: E2 0D 00 FB 77 80 0D 02 02 05 00 1A 73 03 C8 05 00 00 53 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 03 00 FB 77 00 90 00 E6 [20:38:08]RAPDU: 90 00 [20:38:08]wFMCommunicate OK [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 0D 03 02 [20:38:08]Write to MH i2c: E2 08 00 FC 77 80 0D 03 02 00 00 00 00 EE [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 0B 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 0B 00 FC 77 00 D2 D3 33 96 31 23 3A 74 90 00 5F [20:38:08]RAPDU: D2 D3 33 96 31 23 3A 74 90 00 [20:38:08]wFMCommunicate OK [20:38:08]SAM_PROTO_SignData done [20:38:08]FM_MakeSignedData done [20:38:08]CreateOFDProtocolMessage [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 11 00 00 [20:38:08]Write to MH i2c: E2 08 00 FD 77 80 11 00 00 00 00 00 00 EE [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 FD 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [20:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:38:08]wFMCommunicate OK [20:38:08]CreateOFDProtocolMessage done [20:38:08]OFDSenderStorePacket 189329 [20:38:08]StoreOFDPacket docnum=189329 [20:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 9F 07 01 AC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 34 B0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E3 02 00 35 04 06 00 42 1A 73 03 C8 05 D2 D3 33 96 31 23 3A 74 [20:38:08]CheckFolder [20:38:08]dirname=/storage/ofd_packets [20:38:08]CheckFolder done [20:38:08]ProducePacketName [20:38:08]name=ofd_packets/00189329 [20:38:08]NVStorageSaveData ofd_packets/00189329 [20:38:08]File name is /storage/ofd_packets/00189329 [20:38:08]Write 301 bytes [20:38:08]NVStorageSaveData done [20:38:08]OFDSenderStorePacket done [20:38:08]KKMCreateOFDPacket done [20:38:08]NVStorageSaveData kkm_last_timestamp [20:38:08]File name is /storage/kkm_last_timestamp [20:38:08]Write 4 bytes [20:38:08]NVStorageSaveData done [20:38:08]ExternCall_PrintAddStr [20:38:08]wPrintStart [20:38:08]Write to MH i2c: 01 00 00 FE 77 75 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: 01 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: 01 07 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: 01 07 00 FE 77 00 00 00 00 00 FF 0F 8A [20:38:08]RasterBufferAndPrint [20:38:08]line Счет N : (1)211394 [20:38:08]line ИНН: 02508201610067 [20:38:08]line Контрольно-Кассовый Чек [20:38:08]line ПРОДАЖА [20:38:08]line ТРК (МРК, ГНК) : 42 [20:38:08]line Товар: 2710124130 [20:38:08]line Аи-92-К-3 [20:38:08]line 14.950 * 66.90 [20:38:08]line = 1000.16 [20:38:08]line НДС 12% НСП 1% [20:38:08]line > о реализуемом товаре [20:38:08]line ИТОГО: 1000.16 [20:38:08]line НСП 1% : 8.85 [20:38:08]line НДС 12% : 106.21 [20:38:08]line Наличными: 0.00 [20:38:08]line Безнал.: 1000.16 [20:38:08]line Место: АЗС № 86 "Партнер Нефть" [20:38:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:38:08]line СНО: Общий режим [20:38:08]line Чек 402 24.10.2024 20:38 [20:38:08]line Смена: 463 ФФД: 1.0 [20:38:08]line ЗНМ: 0300000155 [20:38:08]line РНМ: 0000000000100030 [20:38:08]line Версия ККМ: 001 [20:38:08]line Платежная система: Mbank [20:38:08]line ФМ: 0000000000965340 [20:38:08]line ФД: 189329 [20:38:08]line ФПД: 72681366210565 [20:38:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203812&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189329&fm=72681366210565&tin=02508201610067®Number=0000000000100030&sum=100016 [20:38:08]written 0, free lines is 4095 [20:38:09]OFD Sender: Processing packet 189329 [packets to send 1062, broken 1061] [20:38:09]ProducePacketName [20:38:09]name=ofd_packets/00189329 [20:38:09]OFD Sender: To server: pG, [20:38:09]CommunicateWithHost lk.salyk.kg:30040 [20:38:09]ConnectInit lk.salyk.kg [20:38:09]Write to MH i2c: 01 00 00 27 78 9F [20:38:09]Write i2c OK [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: 01 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: 01 07 00 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: 01 07 00 27 78 00 00 00 00 00 80 0C 32 [20:38:09]RasterBufferAndPrint [20:38:09]line [20:38:09]line [20:38:09]line [20:38:09]line [20:38:09]line [20:38:09]written 0, free lines is 3206 [20:38:09]MH_Cut [20:38:09]Write to MH i2c: D1 01 00 2E 78 01 78 [20:38:09]Write i2c OK [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: D1 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: D1 01 00 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: D1 01 00 2E 78 00 77 [20:38:09]Write to MH i2c: 01 00 00 2F 78 A7 [20:38:09]Write i2c OK [20:38:09]MH_I2C_Read... [20:38:09]Connected sock=10 [20:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 9F 07 01 AC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 34 B0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E3 02 00 35 04 06 00 42 1A 73 03 C8 05 D2 D3 33 96 31 23 3A 74 [20:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 83 CA 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 39 36 35 33 34 30 10 04 04 00 91 E3 02 00 F4 03 04 00 1B 5A 1A 67 B6 04 01 00 00 96 F9 35 DB 0F 4A BD 9D [20:38:09]CommunicateWithHost err = 0 [20:38:09]CheckOFDResponse [20:38:09]1017 (14) - 77093643461234 [20:38:09]1041 (16) - 0000000000965340 [20:38:09]1040 (4) - 189329 [20:38:09]1012 (4) - 24.10.2024 14:30 [20:38:09]1206 (1) - 0 [20:38:09]OFD Sender: Remove packet 189329 [20:38:09]ProducePacketName [20:38:09]name=ofd_packets/00189329 [20:38:09]NVStorageDeleteData [20:38:10]OFD Sender: No OFD packet to send [20:38:10]*** Cut start [20:38:10]*** Partial cut [20:38:10]*** CUTSNS_PIN = 1 [20:38:10]*** CUTSNS_PIN = 0 [20:38:11]*** Brake cut motor [20:38:11]Read from MH i2c: 01 [20:38:11]MH_I2C_Read... [20:38:11]*** Stop cut motor [20:38:11]*** Cut end [20:38:11]Read from MH i2c: 01 07 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: 01 07 00 2F 78 00 00 00 00 00 FF 0F BC [20:38:11]process_action close_receipt done [20:38:11]requested_data is exist [20:38:11]produce_requested_data [20:38:11]requested_item fm.sn is exist - process it [20:38:11]wFMCommunicate request_size=4 [20:38:11]MH_SAM_APDU [20:38:11]CAPDU: 80 11 00 00 [20:38:11]Write to MH i2c: E2 08 00 30 78 80 11 00 00 00 00 00 00 22 [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:11]Read from MH i2c: E2 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 17 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 17 00 30 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [20:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:38:11]wFMCommunicate OK [20:38:11]requested_item fd.num is exist - process it [20:38:11]SAM_PROTO_GetFieldsCounters [20:38:11]wFMCommunicate request_size=4 [20:38:11]MH_SAM_APDU [20:38:11]CAPDU: 80 13 00 00 [20:38:11]Write to MH i2c: E2 08 00 31 78 80 13 00 00 00 00 00 00 25 [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:11]Read from MH i2c: E2 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 62 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 62 00 31 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E3 02 00 0E 04 04 00 CF 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 2B [20:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E3 02 00 0E 04 04 00 CF 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 [20:38:11]wFMCommunicate OK [20:38:11]SAM_PROTO_GetFieldsCounters done [20:38:11]requested_item shift.num is exist - process it [20:38:11]requested_item shift.opened is exist - process it [20:38:11]req_shift_opened [20:38:11]FM_GetShiftState [20:38:11]SAM_PROTO_GetShiftState [20:38:11]wFMCommunicate request_size=4 [20:38:11]MH_SAM_APDU [20:38:11]CAPDU: 80 13 01 00 [20:38:11]Write to MH i2c: E2 08 00 32 78 80 13 01 00 00 00 00 00 27 [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:11]Read from MH i2c: E2 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 0E 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 0E 00 32 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 05 [20:38:11]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:38:11]wFMCommunicate OK [20:38:11]SAM_PROTO_GetShiftState done [20:38:11]FM_GetShiftState done [20:38:11]req_shift_opened done [20:38:11]requested_item shift.open_date is exist - process it [20:38:11]req_shift_open_date [20:38:11]req_shift_open_date done [20:38:11]produce_requested_data done [20:38:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189329,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:38:11]process_action_free close_receipt [20:38:11]json_value_free [20:38:11]json_value_free done [20:38:11]process_json_proto returns [20:38:11]Send response to host [20:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189329,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:38:11]free response buf [20:38:11]execute_script done [20:38:11]execute_script returns [20:38:11]free content buf [20:38:11]Sock 9.Close socket [20:38:11]Sock 9.Thread stoped [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]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:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]accept exits with 8 [20:46:37]New connection [20:46:37]New thread 3067071844 created [20:46:37]Thread 3067215204 joined [20:46:37]Waiting for new connection... [20:46:37] Sock 8.Parse request [20:46:37]Sock 8.Check first char [20:46:37]Sock 8.First char is OK [20:46:37]request: POST /json_proto HTTP/1.0 [20:46:37]Method: POST [20:46:37]URL: /json_proto [20:46:37]Method is POST - this is cgi request [20:46:37]url: /json_proto [20:46:37]query_string will be loaded in cgi processing [20:46:37]execute_cgi json_proto POST (null) [20:46:37]execute_cgi path=json_proto method=POST [20:46:37]POST find Content-Length [20:46:37]Host: 172.17.42.131:8080 [20:46:37]Content-Length: 791 [20:46:37]Content-Type: application/json [20:46:37] [20:46:37]POST finish read [20:46:37]Found Content-Length = 791 [20:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 7.010, "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\u000A53577", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:37]execute_script... [20:46: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)211395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 7.010, "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\u000A53577", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:37]POST & json_proto [20:46:37]process_json_proto [20:46:37]json parsed OK: [20:46:37]protocol is kg_v1.0 [20:46:37]action value=close_receipt [20:46:37]process_action close_receipt [20:46:37]cmd_close_receipt [20:46:37]MH_GetDate [20:46:37]Write to MH i2c: F0 00 00 33 78 9A [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: F0 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: F0 09 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: F0 09 00 33 78 00 32 B2 1A 67 A0 18 CA 66 F0 [20:46:37]GetLastDocTimeStamp 1729802292 [20:46:37]current date 1729802802 [20:46:37]FM_GetShiftState [20:46:37]SAM_PROTO_GetShiftState [20:46:37]wFMCommunicate request_size=4 [20:46:37]MH_SAM_APDU [20:46:37]CAPDU: 80 13 01 00 [20:46:37]Write to MH i2c: E2 08 00 34 78 80 13 01 00 00 00 00 00 29 [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:37]Read from MH i2c: E2 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 0E 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: E2 0E 00 34 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 07 [20:46:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:46:37]wFMCommunicate OK [20:46:37]SAM_PROTO_GetShiftState done [20:46:37]FM_GetShiftState done [20:46:37]opened in 1729728961 [20:46:37]opened+sec_in_day 1729815361 [20:46:37]quantity*price = 0 [20:46:37]sum+1 = 1 [20:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 403 24.10.2024 20:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53577 ФМ: 0000000000965340 ФД: 189330 ФПД: 28115763526833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189330&fm=28115763526833&tin=02508201610067®Number=0000000000100030&sum=0 [20:46:38]StoreToDocumentArchive [20:46:38]shift 463 fd 189330 [20:46:38]save to /storage/0463/doc_00189330 [20:46:38]save last doc name /storage/0463/doc_00189330 to /storage/kkm_last_doc_name [20:46:38]save OK [20:46:38]Clear old archive folders... [20:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:38]tlvbuf is 016485C0 [20:46:38]SAM_PROTO_ClearQueue [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 09 00 00 [20:46:38]Write to MH i2c: E2 08 00 41 78 80 09 00 00 00 00 00 00 2B [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 41 78 00 90 00 2D [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]SAM_PROTO_ClearQueue done [20:46:38]KKMCreateOFDPacket [20:46:38]OFDProtocolAddRootSTLVToBuf [20:46:38]FM_MakeSignedData [20:46:38]FM_MakeSignedData [20:46:38]SAM_PROTO_SignData [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 0D 01 02 [20:46:38]Write to MH i2c: E2 08 00 42 78 80 0D 01 02 00 00 00 00 33 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 03 00 42 78 00 90 00 2E [20:46:38]RAPDU: 90 00 [20:46:38]wFMCommunicate OK [20:46:38]wFMCommunicate request_size=255 [20:46:38]MH_SAM_APDU [20:46: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 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 32 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E3 02 00 35 04 06 00 19 [20:46:38]Write to MH i2c: E2 02 01 43 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 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 32 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E3 02 00 35 04 06 00 19 00 00 F7 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 43 78 00 90 00 2F [20:46:39]RAPDU: 90 00 [20:46:39]wFMCommunicate OK [20:46:39]wFMCommunicate request_size=10 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 0D 02 02 05 92 36 18 FC B1 [20:46:39]Write to MH i2c: E2 0D 00 44 78 80 0D 02 02 05 00 92 36 18 FC B1 00 00 CD [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 44 78 00 90 00 30 [20:46:39]RAPDU: 90 00 [20:46:39]wFMCommunicate OK [20:46:39]wFMCommunicate request_size=4 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 0D 03 02 [20:46:39]Write to MH i2c: E2 08 00 45 78 80 0D 03 02 00 00 00 00 38 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 0B 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 0B 00 45 78 00 1A 0B 3E 8C F0 56 08 80 90 00 F6 [20:46:39]RAPDU: 1A 0B 3E 8C F0 56 08 80 90 00 [20:46:39]wFMCommunicate OK [20:46:39]SAM_PROTO_SignData done [20:46:39]FM_MakeSignedData done [20:46:39]CreateOFDProtocolMessage [20:46:39]wFMCommunicate request_size=4 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 11 00 00 [20:46:39]Write to MH i2c: E2 08 00 46 78 80 11 00 00 00 00 00 00 38 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 17 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 17 00 46 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [20:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:39]wFMCommunicate OK [20:46:39]CreateOFDProtocolMessage done [20:46:39]OFDSenderStorePacket 189330 [20:46:39]StoreOFDPacket docnum=189330 [20:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 09 07 01 56 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 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 32 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E3 02 00 35 04 06 00 19 92 36 18 FC B1 1A 0B 3E 8C F0 56 08 80 [20:46:39]CheckFolder [20:46:39]dirname=/storage/ofd_packets [20:46:39]CheckFolder done [20:46:39]ProducePacketName [20:46:39]name=ofd_packets/00189330 [20:46:39]NVStorageSaveData ofd_packets/00189330 [20:46:39]File name is /storage/ofd_packets/00189330 [20:46:39]Write 301 bytes [20:46:39]NVStorageSaveData done [20:46:39]OFDSenderStorePacket done [20:46:39]KKMCreateOFDPacket done [20:46:39]NVStorageSaveData kkm_last_timestamp [20:46:39]File name is /storage/kkm_last_timestamp [20:46:39]Write 4 bytes [20:46:39]NVStorageSaveData done [20:46:39]ExternCall_PrintAddStr [20:46:39]wPrintStart [20:46:39]Write to MH i2c: 01 00 00 47 78 BF [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 47 78 00 00 00 00 00 FF 0F D4 [20:46:39]RasterBufferAndPrint [20:46:39]line Счет N : (1)211395 [20:46:39]line ИНН: 02508201610067 [20:46:39]line Контрольно-Кассовый Чек [20:46:39]line ПРОДАЖА [20:46:39]line ТРК (МРК, ГНК) : 42 [20:46:39]line Товар: 2710124130 [20:46:39]line Аи-92-К-3 [20:46:39]line 7.010 * 0.00 [20:46:39]line = 0.00 [20:46:39]line НДС 12% НСП 1% [20:46:39]line > о реализуемом товаре [20:46:39]line ИТОГО: 0.00 [20:46:39]line НСП 1% : 0.00 [20:46:39]line НДС 12% : 0.00 [20:46:39]line Наличными: 0.00 [20:46:39]line Безнал.: 0.00 [20:46:39]line Место: АЗС № 86 "Партнер Нефть" [20:46:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:46:39]line СНО: Общий режим [20:46:39]line Чек 403 24.10.2024 20:46 [20:46:39]line Смена: 463 ФФД: 1.0 [20:46:39]line ЗНМ: 0300000155 [20:46:39]line РНМ: 0000000000100030 [20:46:39]line Версия ККМ: 001 [20:46:39]line Талоны: Топливная Карта [20:46:39]line 53577 [20:46:39]line ФМ: 0000000000965340 [20:46:39]line ФД: 189330 [20:46:39]line ФПД: 28115763526833 [20:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189330&fm=28115763526833&tin=02508201610067®Number=0000000000100030&sum=0 [20:46:39]written 0, free lines is 4095 [20:46:39]OFD Sender: Processing packet 189330 [packets to send 1062, broken 1061] [20:46:39]ProducePacketName [20:46:39]name=ofd_packets/00189330 [20:46:39]OFD Sender: To server: pG, [20:46:39]CommunicateWithHost lk.salyk.kg:30040 [20:46:39]ConnectInit lk.salyk.kg [20:46:39]Write to MH i2c: 01 00 00 71 78 E9 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: 01 07 00 71 78 00 00 00 00 00 6A 0C 66 [20:46:39]RasterBufferAndPrint [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]line [20:46:39]written 0, free lines is 3182 [20:46:39]MH_Cut [20:46:39]Write to MH i2c: D1 01 00 78 78 01 C2 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 01 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: D1 01 00 78 78 00 C1 [20:46:39]Write to MH i2c: 01 00 00 79 78 F1 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:40]*** Cut start [20:46:40]*** Partial cut [20:46:40]*** CUTSNS_PIN = 1 [20:46:40]*** CUTSNS_PIN = 0 [20:46:41]*** Brake cut motor [20:46:41]Read from MH i2c: 01 [20:46:41]MH_I2C_Read... [20:46:41]*** Stop cut motor [20:46:41]*** Cut end [20:46:41]Read from MH i2c: 01 07 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: 01 07 00 79 78 00 00 00 00 00 FF 0F 06 [20:46:41]process_action close_receipt done [20:46:41]requested_data is exist [20:46:41]produce_requested_data [20:46:41]requested_item fm.sn is exist - process it [20:46:41]wFMCommunicate request_size=4 [20:46:41]MH_SAM_APDU [20:46:41]CAPDU: 80 11 00 00 [20:46:41]Write to MH i2c: E2 08 00 7A 78 80 11 00 00 00 00 00 00 6C [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:41]Read from MH i2c: E2 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 17 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 17 00 7A 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [20:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:41]wFMCommunicate OK [20:46:41]requested_item fd.num is exist - process it [20:46:41]SAM_PROTO_GetFieldsCounters [20:46:41]wFMCommunicate request_size=4 [20:46:41]MH_SAM_APDU [20:46:41]CAPDU: 80 13 00 00 [20:46:41]Write to MH i2c: E2 08 00 7B 78 80 13 00 00 00 00 00 00 6F [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:41]Read from MH i2c: E2 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 62 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 62 00 7B 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E3 02 00 0E 04 04 00 CF 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 79 [20:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E3 02 00 0E 04 04 00 CF 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 [20:46:41]wFMCommunicate OK [20:46:41]SAM_PROTO_GetFieldsCounters done [20:46:41]requested_item shift.num is exist - process it [20:46:41]requested_item shift.opened is exist - process it [20:46:41]req_shift_opened [20:46:41]FM_GetShiftState [20:46:41]SAM_PROTO_GetShiftState [20:46:41]wFMCommunicate request_size=4 [20:46:41]MH_SAM_APDU [20:46:41]CAPDU: 80 13 01 00 [20:46:41]Write to MH i2c: E2 08 00 7C 78 80 13 01 00 00 00 00 00 71 [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:41]Read from MH i2c: E2 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 0E 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: E2 0E 00 7C 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4F [20:46:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:46:41]wFMCommunicate OK [20:46:41]SAM_PROTO_GetShiftState done [20:46:41]FM_GetShiftState done [20:46:41]req_shift_opened done [20:46:41]requested_item shift.open_date is exist - process it [20:46:41]req_shift_open_date [20:46:41]req_shift_open_date done [20:46:41]produce_requested_data done [20:46:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189330,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:46:41]process_action_free close_receipt [20:46:41]json_value_free [20:46:41]json_value_free done [20:46:41]process_json_proto returns [20:46:41]Send response to host [20:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189330,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:46:41]free response buf [20:46:41]execute_script done [20:46:41]execute_script returns [20:46:41]free content buf [20:46:41]Sock 8.Close socket [20:46:41]Sock 8.Thread stoped [20:47:49]accept exits with 9 [20:47:49]New connection [20:47:49]New thread 3067215204 created [20:47:49]Thread 3067071844 joined [20:47:49]Waiting for new connection... [20:47:49] Sock 9.Parse request [20:47:49]Sock 9.Check first char [20:47:49]Sock 9.First char is OK [20:47:49]request: POST /json_proto HTTP/1.0 [20:47:49]Method: POST [20:47:49]URL: /json_proto [20:47:49]Method is POST - this is cgi request [20:47:49]url: /json_proto [20:47:49]query_string will be loaded in cgi processing [20:47:49]execute_cgi json_proto POST (null) [20:47:49]execute_cgi path=json_proto method=POST [20:47:49]POST find Content-Length [20:47:49]Host: 172.17.42.131:8080 [20:47:49]Content-Length: 819 [20:47:49]Content-Type: application/json [20:47:49] [20:47:49]POST finish read [20:47:49]Found Content-Length = 819 [20:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:49]execute_script... [20:47: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)211396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:49]POST & json_proto [20:47:49]process_json_proto [20:47:49]json parsed OK: [20:47:49]protocol is kg_v1.0 [20:47:49]action value=close_receipt [20:47:49]process_action close_receipt [20:47:49]cmd_close_receipt [20:47:49]MH_GetDate [20:47:49]Write to MH i2c: F0 00 00 7D 78 E4 [20:47:49]Write i2c OK [20:47:49]MH_I2C_Read... [20:47:49]Read from MH i2c: F0 [20:47:49]MH_I2C_Read... [20:47:49]Read from MH i2c: F0 09 00 [20:47:49]MH_I2C_Read... [20:47:49]Read from MH i2c: F0 09 00 7D 78 00 7A B2 1A 67 A0 18 CA 66 82 [20:47:49]GetLastDocTimeStamp 1729802802 [20:47:49]current date 1729802874 [20:47:49]FM_GetShiftState [20:47:49]SAM_PROTO_GetShiftState [20:47:49]wFMCommunicate request_size=4 [20:47:49]MH_SAM_APDU [20:47:49]CAPDU: 80 13 01 00 [20:47:49]Write to MH i2c: E2 08 00 7E 78 80 13 01 00 00 00 00 00 73 [20:47:49]Write i2c OK [20:47:49]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 7E 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 51 [20:47:49]RAPDU: 09 00 01 C1 91 19 67 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 1729728961 [20:47:49]opened+sec_in_day 1729815361 [20:47:49]quantity*price = 100021 [20:47:49]sum+1 = 100023 [20:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 404 24.10.2024 20:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189331 ФПД: 76348358540034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189331&fm=76348358540034&tin=02508201610067®Number=0000000000100030&sum=100022 [20:47:50]StoreToDocumentArchive [20:47:50]shift 463 fd 189331 [20:47:50]save to /storage/0463/doc_00189331 [20:47:50]save last doc name /storage/0463/doc_00189331 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=251 [20:47:50]tlvbuf is 0168DD70 [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 8B 78 80 09 00 00 00 00 00 00 75 [20:47:50]Write i2c OK [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 [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 8B 78 00 90 00 77 [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 8C 78 80 0D 01 02 00 00 00 00 7D [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 8C 78 00 90 00 78 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 94 01 00 00 F4 03 04 00 7A B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E3 02 00 35 04 06 00 45 [20:47:50]Write to MH i2c: E2 02 01 8D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 94 01 00 00 F4 03 04 00 7A B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E3 02 00 35 04 06 00 45 00 00 08 [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 8D 78 00 90 00 79 [20:47:50]RAPDU: 90 00 [20:47:50]wFMCommunicate OK [20:47:50]wFMCommunicate request_size=10 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 0D 02 02 05 70 3C CA 3B 02 [20:47:50]Write to MH i2c: E2 0D 00 8E 78 80 0D 02 02 05 00 70 3C CA 3B 02 00 00 3D [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 8E 78 00 90 00 7A [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 8F 78 80 0D 03 02 00 00 00 00 82 [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 8F 78 00 BB 59 57 78 01 07 73 AE 90 00 8F [20:47:50]RAPDU: BB 59 57 78 01 07 73 AE 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 90 78 80 11 00 00 00 00 00 00 82 [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 90 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [20:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:47:50]wFMCommunicate OK [20:47:50]CreateOFDProtocolMessage done [20:47:50]OFDSenderStorePacket 189331 [20:47:50]StoreOFDPacket docnum=189331 [20:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 45 07 01 17 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 33 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 94 01 00 00 F4 03 04 00 7A B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E3 02 00 35 04 06 00 45 70 3C CA 3B 02 BB 59 57 78 01 07 73 AE [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/00189331 [20:47:50]NVStorageSaveData ofd_packets/00189331 [20:47:50]File name is /storage/ofd_packets/00189331 [20:47:50]Write 301 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 91 78 09 [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 91 78 00 00 00 00 00 FF 0F 1E [20:47:50]RasterBufferAndPrint [20:47:50]line Счет N : (1)211396 [20:47:50]line ИНН: 02508201610067 [20:47:50]line Контрольно-Кассовый Чек [20:47:50]line ПРОДАЖА [20:47:50]line ТРК (МРК, ГНК) : 33 [20:47:50]line Товар: 2710124500 [20:47:50]line Аи-95-К-3 [20:47:50]line 13.480 * 74.20 [20:47:50]line = 1000.22 [20:47:50]line НДС 12% НСП 1% [20:47:50]line > о реализуемом товаре [20:47:50]line ИТОГО: 1000.22 [20:47:50]line НСП 1% : 8.85 [20:47:50]line НДС 12% : 106.22 [20:47:50]line Наличными: 0.00 [20:47:50]line Безнал.: 1000.22 [20:47:50]line Место: АЗС № 86 "Партнер Нефть" [20:47:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:47:50]line СНО: Общий режим [20:47:50]line Чек 404 24.10.2024 20:47 [20:47:50]line Смена: 463 ФФД: 1.0 [20:47:50]line ЗНМ: 0300000155 [20:47:50]line РНМ: 0000000000100030 [20:47:50]line Версия ККМ: 001 [20:47:50]line Платежная система: Бакай Банк [20:47:50]line ФМ: 0000000000965340 [20:47:50]line ФД: 189331 [20:47:50]line ФПД: 76348358540034 [20:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189331&fm=76348358540034&tin=02508201610067®Number=0000000000100030&sum=100022 [20:47:50]written 0, free lines is 4095 [20:47:51]Write to MH i2c: 01 00 00 BB 78 33 [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 BB 78 00 00 00 00 00 69 0C AF [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 3181 [20:47:51]MH_Cut [20:47:51]Write to MH i2c: D1 01 00 C2 78 01 0C [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 C2 78 00 0B [20:47:51]Write to MH i2c: 01 00 00 C3 78 3B [20:47:51]Write i2c OK [20:47:51]MH_I2C_Read... [20:47:52]*** Cut start [20:47:52]*** Partial cut [20:47:52]*** CUTSNS_PIN = 1 [20:47:52]*** CUTSNS_PIN = 0 [20:47:53]*** Brake cut motor [20:47:53]Read from MH i2c: 01 [20:47:53]MH_I2C_Read... [20:47:53]*** Stop cut motor [20:47:53]*** Cut end [20:47:53]Read from MH i2c: 01 07 00 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: 01 07 00 C3 78 00 00 00 00 00 FF 0F 50 [20:47:53]process_action close_receipt done [20:47:53]requested_data is exist [20:47:53]produce_requested_data [20:47:53]requested_item fm.sn is exist - process it [20:47:53]wFMCommunicate request_size=4 [20:47:53]MH_SAM_APDU [20:47:53]CAPDU: 80 11 00 00 [20:47:53]Write to MH i2c: E2 08 00 C4 78 80 11 00 00 00 00 00 00 B6 [20:47:53]Write i2c OK [20:47:53]MH_I2C_Read... [20:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:53]Read from MH i2c: E2 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 17 00 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 17 00 C4 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [20:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:47:53]wFMCommunicate OK [20:47:53]requested_item fd.num is exist - process it [20:47:53]SAM_PROTO_GetFieldsCounters [20:47:53]wFMCommunicate request_size=4 [20:47:53]MH_SAM_APDU [20:47:53]CAPDU: 80 13 00 00 [20:47:53]Write to MH i2c: E2 08 00 C5 78 80 13 00 00 00 00 00 00 B9 [20:47:53]Write i2c OK [20:47:53]MH_I2C_Read... [20:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:53]Read from MH i2c: E2 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 62 00 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 62 00 C5 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E3 02 00 0E 04 04 00 CF 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 C7 [20:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E3 02 00 0E 04 04 00 CF 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 [20:47:53]wFMCommunicate OK [20:47:53]SAM_PROTO_GetFieldsCounters done [20:47:53]requested_item shift.num is exist - process it [20:47:53]requested_item shift.opened is exist - process it [20:47:53]req_shift_opened [20:47:53]FM_GetShiftState [20:47:53]SAM_PROTO_GetShiftState [20:47:53]wFMCommunicate request_size=4 [20:47:53]MH_SAM_APDU [20:47:53]CAPDU: 80 13 01 00 [20:47:53]Write to MH i2c: E2 08 00 C6 78 80 13 01 00 00 00 00 00 BB [20:47:53]Write i2c OK [20:47:53]MH_I2C_Read... [20:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:53]Read from MH i2c: E2 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 0E 00 [20:47:53]MH_I2C_Read... [20:47:53]Read from MH i2c: E2 0E 00 C6 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 99 [20:47:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:47:53]wFMCommunicate OK [20:47:53]SAM_PROTO_GetShiftState done [20:47:53]FM_GetShiftState done [20:47:53]req_shift_opened done [20:47:53]requested_item shift.open_date is exist - process it [20:47:53]req_shift_open_date [20:47:53]req_shift_open_date done [20:47:53]produce_requested_data done [20:47:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189331,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:47:53]process_action_free close_receipt [20:47:53]json_value_free [20:47:53]json_value_free done [20:47:53]process_json_proto returns [20:47:53]Send response to host [20:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189331,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:47:53]free response buf [20:47:53]execute_script done [20:47:53]execute_script returns [20:47:53]free content buf [20:47:53]Sock 9.Close socket [20:47:53]Sock 9.Thread stoped [20:48:51]ConnectInit Can't connect to host [20:48:51]CommunicateWithHost connect error [20:48:51]CommunicateWithHost err = -1 [20:48:51]OFD Sender: Server communicate error [20:48:51]OFD Sender: Processing packet 189330 [packets to send 1063, broken 1061] [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00189330 [20:48:51]OFD Sender: To server: pG, [20:48:51]CommunicateWithHost lk.salyk.kg:30040 [20:48:51]ConnectInit lk.salyk.kg [20:48:51]Connected sock=9 [20:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 09 07 01 56 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 33 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 32 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E3 02 00 35 04 06 00 19 92 36 18 FC B1 1A 0B 3E 8C F0 56 08 80 [20:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2E C4 47 00 48 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 39 36 35 33 34 30 10 04 04 00 92 E3 02 00 F4 03 04 00 9E 5C 1A 67 B6 04 01 00 00 E7 9F 76 A6 68 A4 80 DB [20:48:52]CommunicateWithHost err = 0 [20:48:52]CheckOFDResponse [20:48:52]1017 (14) - 77093643461234 [20:48:52]1041 (16) - 0000000000965340 [20:48:52]1040 (4) - 189330 [20:48:52]1012 (4) - 24.10.2024 14:41 [20:48:52]1206 (1) - 0 [20:48:52]OFD Sender: Remove packet 189330 [20:48:52]ProducePacketName [20:48:52]name=ofd_packets/00189330 [20:48:52]NVStorageDeleteData [20:48:52]OFD Sender: Processing packet 189331 [packets to send 1062, broken 1061] [20:48:52]ProducePacketName [20:48:52]name=ofd_packets/00189331 [20:48:52]OFD Sender: To server: pG, [20:48:52]CommunicateWithHost lk.salyk.kg:30040 [20:48:52]ConnectInit lk.salyk.kg [20:48:53]Connected sock=10 [20:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 45 07 01 17 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 33 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 94 01 00 00 F4 03 04 00 7A B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E3 02 00 35 04 06 00 45 70 3C CA 3B 02 BB 59 57 78 01 07 73 AE [20:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 60 47 00 89 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 39 36 35 33 34 30 10 04 04 00 93 E3 02 00 F4 03 04 00 9F 5C 1A 67 B6 04 01 00 00 3F A9 5D B6 17 BA B1 D6 [20:48:53]CommunicateWithHost err = 0 [20:48:53]CheckOFDResponse [20:48:53]1017 (14) - 77093643461234 [20:48:53]1041 (16) - 0000000000965340 [20:48:53]1040 (4) - 189331 [20:48:53]1012 (4) - 24.10.2024 14:41 [20:48:53]1206 (1) - 0 [20:48:53]OFD Sender: Remove packet 189331 [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00189331 [20:48:53]NVStorageDeleteData [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:15]accept exits with 8 [20:49:15]New connection [20:49:15]New thread 3067071844 created [20:49:15]Thread 3067215204 joined [20:49:15]Waiting for new connection... [20:49:15] Sock 8.Parse request [20:49:15]Sock 8.Check first char [20:49:15]Sock 8.First char is OK [20:49:15]request: POST /json_proto HTTP/1.0 [20:49:15]Method: POST [20:49:15]URL: /json_proto [20:49:15]Method is POST - this is cgi request [20:49:15]url: /json_proto [20:49:15]query_string will be loaded in cgi processing [20:49:15]execute_cgi json_proto POST (null) [20:49:15]execute_cgi path=json_proto method=POST [20:49:15]POST find Content-Length [20:49:15]Host: 172.17.42.131:8080 [20:49:15]Content-Length: 775 [20:49:15]Content-Type: application/json [20:49:15] [20:49:15]POST finish read [20:49:15]Found Content-Length = 775 [20:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:15]execute_script... [20:49: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)211397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:15]POST & json_proto [20:49:15]process_json_proto [20:49:15]json parsed OK: [20:49:15]protocol is kg_v1.0 [20:49:15]action value=close_receipt [20:49:15]process_action close_receipt [20:49:15]cmd_close_receipt [20:49:15]MH_GetDate [20:49:15]Write to MH i2c: F0 00 00 C7 78 2E [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 09 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: F0 09 00 C7 78 00 D0 B2 1A 67 A0 18 CA 66 22 [20:49:15]GetLastDocTimeStamp 1729802874 [20:49:15]current date 1729802960 [20:49:15]FM_GetShiftState [20:49:15]SAM_PROTO_GetShiftState [20:49:15]wFMCommunicate request_size=4 [20:49:15]MH_SAM_APDU [20:49:15]CAPDU: 80 13 01 00 [20:49:15]Write to MH i2c: E2 08 00 C8 78 80 13 01 00 00 00 00 00 BD [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:15]Read from MH i2c: E2 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 C8 78 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9B [20:49:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:49:15]wFMCommunicate OK [20:49:15]SAM_PROTO_GetShiftState done [20:49:15]FM_GetShiftState done [20:49:15]opened in 1729728961 [20:49:15]opened+sec_in_day 1729815361 [20:49:15]quantity*price = 150076 [20:49:15]sum+1 = 150078 [20:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 405 24.10.2024 20:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189332 ФПД: 91556438249374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189332&fm=91556438249374&tin=02508201610067®Number=0000000000100030&sum=150077 [20:49:16]StoreToDocumentArchive [20:49:16]shift 463 fd 189332 [20:49:16]save to /storage/0463/doc_00189332 [20:49:16]save last doc name /storage/0463/doc_00189332 to /storage/kkm_last_doc_name [20:49:16]save OK [20:49:16]Clear old archive folders... [20:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:49:16]tlvbuf is 0160C410 [20:49:16]SAM_PROTO_ClearQueue [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 09 00 00 [20:49:16]Write to MH i2c: E2 08 00 D5 78 80 09 00 00 00 00 00 00 BF [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 D5 78 00 90 00 C1 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]SAM_PROTO_ClearQueue done [20:49:16]KKMCreateOFDPacket [20:49:16]OFDProtocolAddRootSTLVToBuf [20:49:16]FM_MakeSignedData [20:49:16]FM_MakeSignedData [20:49:16]SAM_PROTO_SignData [20:49:16]wFMCommunicate request_size=4 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 0D 01 02 [20:49:16]Write to MH i2c: E2 08 00 D6 78 80 0D 01 02 00 00 00 00 C7 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:16]Read from MH i2c: E2 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 [20:49:16]MH_I2C_Read... [20:49:16]Read from MH i2c: E2 03 00 D6 78 00 90 00 C2 [20:49:16]RAPDU: 90 00 [20:49:16]wFMCommunicate OK [20:49:16]wFMCommunicate request_size=255 [20:49:16]MH_SAM_APDU [20:49:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 D0 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E3 02 [20:49:16]Write to MH i2c: E2 02 01 D7 78 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 D0 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E3 02 00 00 F4 [20:49:16]Write i2c OK [20:49:16]MH_I2C_Read... [20:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:17]Read from MH i2c: E2 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 03 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 03 00 D7 78 00 90 00 C3 [20:49:17]RAPDU: 90 00 [20:49:17]wFMCommunicate OK [20:49:17]wFMCommunicate request_size=16 [20:49:17]MH_SAM_APDU [20:49:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 53 45 24 FA 8F 9E [20:49:17]Write to MH i2c: E2 13 00 D8 78 80 0D 02 02 0B 00 00 35 04 06 00 53 45 24 FA 8F 9E 00 00 02 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:17]Read from MH i2c: E2 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 03 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 03 00 D8 78 00 90 00 C4 [20:49:17]RAPDU: 90 00 [20:49:17]wFMCommunicate OK [20:49:17]wFMCommunicate request_size=4 [20:49:17]MH_SAM_APDU [20:49:17]CAPDU: 80 0D 03 02 [20:49:17]Write to MH i2c: E2 08 00 D9 78 80 0D 03 02 00 00 00 00 CC [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:17]Read from MH i2c: E2 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 0B 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 0B 00 D9 78 00 36 30 0E B2 F9 47 AF 55 90 00 37 [20:49:17]RAPDU: 36 30 0E B2 F9 47 AF 55 90 00 [20:49:17]wFMCommunicate OK [20:49:17]SAM_PROTO_SignData done [20:49:17]FM_MakeSignedData done [20:49:17]CreateOFDProtocolMessage [20:49:17]wFMCommunicate request_size=4 [20:49:17]MH_SAM_APDU [20:49:17]CAPDU: 80 11 00 00 [20:49:17]Write to MH i2c: E2 08 00 DA 78 80 11 00 00 00 00 00 00 CC [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:17]Read from MH i2c: E2 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 17 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: E2 17 00 DA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [20:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:49:17]wFMCommunicate OK [20:49:17]CreateOFDProtocolMessage done [20:49:17]OFDSenderStorePacket 189332 [20:49:17]StoreOFDPacket docnum=189332 [20:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4B D4 0D 01 CA B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 D0 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E3 02 00 35 04 06 00 53 45 24 FA 8F 9E 36 30 0E B2 F9 47 AF 55 [20:49:17]CheckFolder [20:49:17]dirname=/storage/ofd_packets [20:49:17]CheckFolder done [20:49:17]ProducePacketName [20:49:17]name=ofd_packets/00189332 [20:49:17]NVStorageSaveData ofd_packets/00189332 [20:49:17]File name is /storage/ofd_packets/00189332 [20:49:17]Write 307 bytes [20:49:17]NVStorageSaveData done [20:49:17]OFDSenderStorePacket done [20:49:17]KKMCreateOFDPacket done [20:49:17]NVStorageSaveData kkm_last_timestamp [20:49:17]File name is /storage/kkm_last_timestamp [20:49:17]Write 4 bytes [20:49:17]NVStorageSaveData done [20:49:17]ExternCall_PrintAddStr [20:49:17]wPrintStart [20:49:17]Write to MH i2c: 01 00 00 DB 78 53 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 DB 78 00 00 00 00 00 FF 0F 68 [20:49:17]RasterBufferAndPrint [20:49:17]line Счет N : (1)211397 [20:49:17]line ИНН: 02508201610067 [20:49:17]line Контрольно-Кассовый Чек [20:49:17]line ПРОДАЖА [20:49:17]line ТРК (МРК, ГНК) : 21 [20:49:17]line Товар: 2710194210 [20:49:17]line D-ENERGY ДТ-К-5 [20:49:17]line 19.440 * 77.20 [20:49:17]line = 1500.77 [20:49:17]line НДС 12% НСП 1% [20:49:17]line > о реализуемом товаре [20:49:17]line ИТОГО: 1500.77 [20:49:17]line НСП 1% : 13.28 [20:49:17]line НДС 12% : 159.37 [20:49:17]line Наличными: 0.00 [20:49:17]line Безнал.: 1500.77 [20:49:17]line Место: АЗС № 86 "Партнер Нефть" [20:49:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:49:17]line СНО: Общий режим [20:49:17]line Чек 405 24.10.2024 20:49 [20:49:17]line Смена: 463 ФФД: 1.0 [20:49:17]line ЗНМ: 0300000155 [20:49:17]line РНМ: 0000000000100030 [20:49:17]line Версия ККМ: 001 [20:49:17]line Платежная система: Mbank [20:49:17]line ФМ: 0000000000965340 [20:49:17]line ФД: 189332 [20:49:17]line ФПД: 91556438249374 [20:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189332&fm=91556438249374&tin=02508201610067®Number=0000000000100030&sum=150077 [20:49:17]written 0, free lines is 4095 [20:49:17]OFD Sender: Processing packet 189332 [packets to send 1062, broken 1061] [20:49:17]ProducePacketName [20:49:17]name=ofd_packets/00189332 [20:49:17]OFD Sender: To server: pG, [20:49:17]CommunicateWithHost lk.salyk.kg:30040 [20:49:17]ConnectInit lk.salyk.kg [20:49:17]Connected sock=10 [20:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4B D4 0D 01 CA B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 D0 B2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E3 02 00 35 04 06 00 53 45 24 FA 8F 9E 36 30 0E B2 F9 47 AF 55 [20:49:17]Write to MH i2c: 01 00 00 04 79 7D [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 04 79 00 00 00 00 00 8A 0C 1A [20:49:17]RasterBufferAndPrint [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]line [20:49:17]written 0, free lines is 3214 [20:49:17]MH_Cut [20:49:17]Write to MH i2c: D1 01 00 0B 79 01 56 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 01 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: D1 01 00 0B 79 00 55 [20:49:17]Write to MH i2c: 01 00 00 0C 79 85 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD D2 47 00 6C FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E3 02 00 F4 03 04 00 B7 5C 1A 67 B6 04 01 00 00 A7 4E 8A 4A ED C0 F3 22 [20:49:18]CommunicateWithHost err = 0 [20:49:18]CheckOFDResponse [20:49:18]1017 (14) - 77093643461234 [20:49:18]1041 (16) - 0000000000965340 [20:49:18]1040 (4) - 189332 [20:49:18]1012 (4) - 24.10.2024 14:41 [20:49:18]1206 (1) - 0 [20:49:18]OFD Sender: Remove packet 189332 [20:49:18]ProducePacketName [20:49:18]name=ofd_packets/00189332 [20:49:18]NVStorageDeleteData [20:49:18]OFD Sender: No OFD packet to send [20:49:19]*** Cut start [20:49:19]*** Partial cut [20:49:19]*** CUTSNS_PIN = 1 [20:49:19]*** CUTSNS_PIN = 0 [20:49:19]*** Brake cut motor [20:49:19]Read from MH i2c: 01 [20:49:19]MH_I2C_Read... [20:49:19]*** Stop cut motor [20:49:19]*** Cut end [20:49:19]Read from MH i2c: 01 07 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: 01 07 00 0C 79 00 00 00 00 00 FF 0F 9A [20:49:19]process_action close_receipt done [20:49:19]requested_data is exist [20:49:19]produce_requested_data [20:49:19]requested_item fm.sn is exist - process it [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 11 00 00 [20:49:19]Write to MH i2c: E2 08 00 0D 79 80 11 00 00 00 00 00 00 00 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 17 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 17 00 0D 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [20:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:49:19]wFMCommunicate OK [20:49:19]requested_item fd.num is exist - process it [20:49:19]SAM_PROTO_GetFieldsCounters [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 13 00 00 [20:49:19]Write to MH i2c: E2 08 00 0E 79 80 13 00 00 00 00 00 00 03 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 62 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 62 00 0E 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E3 02 00 0E 04 04 00 CF 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 15 [20:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E3 02 00 0E 04 04 00 CF 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 [20:49:19]wFMCommunicate OK [20:49:19]SAM_PROTO_GetFieldsCounters done [20:49:19]requested_item shift.num is exist - process it [20:49:19]requested_item shift.opened is exist - process it [20:49:19]req_shift_opened [20:49:19]FM_GetShiftState [20:49:19]SAM_PROTO_GetShiftState [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 13 01 00 [20:49:19]Write to MH i2c: E2 08 00 0F 79 80 13 01 00 00 00 00 00 05 [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 0F 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E3 [20:49:19]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:49:19]wFMCommunicate OK [20:49:19]SAM_PROTO_GetShiftState done [20:49:19]FM_GetShiftState done [20:49:19]req_shift_opened done [20:49:19]requested_item shift.open_date is exist - process it [20:49:19]req_shift_open_date [20:49:19]req_shift_open_date done [20:49:19]produce_requested_data done [20:49:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189332,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:49:19]process_action_free close_receipt [20:49:19]json_value_free [20:49:19]json_value_free done [20:49:19]process_json_proto returns [20:49:19]Send response to host [20:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189332,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:49:19]free response buf [20:49:19]execute_script done [20:49:19]execute_script returns [20:49:19]free content buf [20:49:19]Sock 8.Close socket [20:49:19]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:22]accept exits with 9 [20:51:22]New connection [20:51:22]New thread 3067215204 created [20:51:22]Thread 3067071844 joined [20:51:22]Waiting for new connection... [20:51:22] Sock 9.Parse request [20:51:22]Sock 9.Check first char [20:51:22]Sock 9.First char is OK [20:51:22]request: POST /json_proto HTTP/1.0 [20:51:22]Method: POST [20:51:22]URL: /json_proto [20:51:22]Method is POST - this is cgi request [20:51:22]url: /json_proto [20:51:22]query_string will be loaded in cgi processing [20:51:22]execute_cgi json_proto POST (null) [20:51:22]execute_cgi path=json_proto method=POST [20:51:22]POST find Content-Length [20:51:22]Host: 172.17.42.131:8080 [20:51:22]Content-Length: 688 [20:51:22]Content-Type: application/json [20:51:22] [20:51:22]POST finish read [20:51:22]Found Content-Length = 688 [20:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:51:22]execute_script... [20:51: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)211398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:51:22]POST & json_proto [20:51:22]process_json_proto [20:51:22]json parsed OK: [20:51:22]protocol is kg_v1.0 [20:51:22]action value=close_receipt [20:51:22]process_action close_receipt [20:51:22]cmd_close_receipt [20:51:22]MH_GetDate [20:51:22]Write to MH i2c: F0 00 00 10 79 78 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: F0 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: F0 09 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: F0 09 00 10 79 00 4F B3 1A 67 A0 18 CA 66 EC [20:51:22]GetLastDocTimeStamp 1729802960 [20:51:22]current date 1729803087 [20:51:22]FM_GetShiftState [20:51:22]SAM_PROTO_GetShiftState [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 13 01 00 [20:51:22]Write to MH i2c: E2 08 00 11 79 80 13 01 00 00 00 00 00 07 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0E 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0E 00 11 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E5 [20:51:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_GetShiftState done [20:51:22]FM_GetShiftState done [20:51:22]opened in 1729728961 [20:51:22]opened+sec_in_day 1729815361 [20:51:22]quantity*price = 100051 [20:51:22]sum+1 = 100052 [20:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 406 24.10.2024 20:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189333 ФПД: 195463772829797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189333&fm=195463772829797&tin=02508201610067®Number=0000000000100030&sum=100000 [20:51:23]StoreToDocumentArchive [20:51:23]shift 463 fd 189333 [20:51:23]save to /storage/0463/doc_00189333 [20:51:23]save last doc name /storage/0463/doc_00189333 to /storage/kkm_last_doc_name [20:51:23]save OK [20:51:23]Clear old archive folders... [20:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:51:23]tlvbuf is 0160C7A0 [20:51:23]SAM_PROTO_ClearQueue [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 09 00 00 [20:51:23]Write to MH i2c: E2 08 00 1E 79 80 09 00 00 00 00 00 00 09 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 1E 79 00 90 00 0B [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_ClearQueue done [20:51:23]KKMCreateOFDPacket [20:51:23]OFDProtocolAddRootSTLVToBuf [20:51:23]FM_MakeSignedData [20:51:23]FM_MakeSignedData [20:51:23]SAM_PROTO_SignData [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 01 02 [20:51:23]Write to MH i2c: E2 08 00 1F 79 80 0D 01 02 00 00 00 00 11 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 1F 79 00 90 00 0C [20:51:24]RAPDU: 90 00 [20:51:24]wFMCommunicate OK [20:51:24]wFMCommunicate request_size=255 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 96 01 00 00 F4 03 04 00 4F B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E3 02 [20:51:24]Write to MH i2c: E2 02 01 20 79 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 96 01 00 00 F4 03 04 00 4F B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E3 02 00 00 D2 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]OFD Sender: No OFD packet to send [20:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 20 79 00 90 00 0D [20:51:24]RAPDU: 90 00 [20:51:24]wFMCommunicate OK [20:51:24]wFMCommunicate request_size=16 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B1 C5 F4 BE F8 65 [20:51:24]Write to MH i2c: E2 13 00 21 79 80 0D 02 02 0B 00 00 35 04 06 00 B1 C5 F4 BE F8 65 00 00 EE [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 21 79 00 90 00 0E [20:51:24]RAPDU: 90 00 [20:51:24]wFMCommunicate OK [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 0D 03 02 [20:51:24]Write to MH i2c: E2 08 00 22 79 80 0D 03 02 00 00 00 00 16 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 0B 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 0B 00 22 79 00 23 99 49 59 8E 05 97 39 90 00 D8 [20:51:24]RAPDU: 23 99 49 59 8E 05 97 39 90 00 [20:51:24]wFMCommunicate OK [20:51:24]SAM_PROTO_SignData done [20:51:24]FM_MakeSignedData done [20:51:24]CreateOFDProtocolMessage [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 11 00 00 [20:51:24]Write to MH i2c: E2 08 00 23 79 80 11 00 00 00 00 00 00 16 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 23 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [20:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:51:24]wFMCommunicate OK [20:51:24]CreateOFDProtocolMessage done [20:51:24]OFDSenderStorePacket 189333 [20:51:24]StoreOFDPacket docnum=189333 [20:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E D0 0D 01 1A F5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 96 01 00 00 F4 03 04 00 4F B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E3 02 00 35 04 06 00 B1 C5 F4 BE F8 65 23 99 49 59 8E 05 97 39 [20:51:24]CheckFolder [20:51:24]dirname=/storage/ofd_packets [20:51:24]CheckFolder done [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00189333 [20:51:24]NVStorageSaveData ofd_packets/00189333 [20:51:24]File name is /storage/ofd_packets/00189333 [20:51:24]Write 307 bytes [20:51:24]NVStorageSaveData done [20:51:24]OFDSenderStorePacket done [20:51:24]KKMCreateOFDPacket done [20:51:24]NVStorageSaveData kkm_last_timestamp [20:51:24]File name is /storage/kkm_last_timestamp [20:51:24]Write 4 bytes [20:51:24]NVStorageSaveData done [20:51:24]ExternCall_PrintAddStr [20:51:24]wPrintStart [20:51:24]Write to MH i2c: 01 00 00 24 79 9D [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 24 79 00 00 00 00 00 FF 0F B2 [20:51:24]RasterBufferAndPrint [20:51:24]line Счет N : (1)211398 [20:51:24]line ИНН: 02508201610067 [20:51:24]line Контрольно-Кассовый Чек [20:51:24]line ПРОДАЖА [20:51:24]line ТРК (МРК, ГНК) : 41 [20:51:24]line Товар: 2710194210 [20:51:24]line D-ENERGY ДТ-К-5 [20:51:24]line 12.960 * 77.20 [20:51:24]line = 1000.51 [20:51:24]line НДС 12% НСП 1% [20:51:24]line > о реализуемом товаре [20:51:24]line ОКРУГЛЕНИЕ: -0.51 [20:51:24]line ИТОГО: 1000.00 [20:51:24]line Внесено: 1000.00 [20:51:24]line СДАЧА: 0.00 [20:51:24]line НСП 1% : 8.85 [20:51:24]line НДС 12% : 106.25 [20:51:24]line Наличными: 1000.00 [20:51:24]line Безнал.: 0.00 [20:51:24]line Место: АЗС № 86 "Партнер Нефть" [20:51:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:51:24]line СНО: Общий режим [20:51:24]line Чек 406 24.10.2024 20:51 [20:51:24]line Смена: 463 ФФД: 1.0 [20:51:24]line ЗНМ: 0300000155 [20:51:24]line РНМ: 0000000000100030 [20:51:24]line Версия ККМ: 001 [20:51:24]line ФМ: 0000000000965340 [20:51:24]line ФД: 189333 [20:51:24]line ФПД: 195463772829797 [20:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189333&fm=195463772829797&tin=02508201610067®Number=0000000000100030&sum=100000 [20:51:24]written 0, free lines is 4095 [20:51:24]OFD Sender: Processing packet 189333 [packets to send 1062, broken 1061] [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00189333 [20:51:24]OFD Sender: To server: pG, [20:51:24]CommunicateWithHost lk.salyk.kg:30040 [20:51:24]ConnectInit lk.salyk.kg [20:51:24]Connected sock=10 [20:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E D0 0D 01 1A F5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 96 01 00 00 F4 03 04 00 4F B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 E3 02 00 35 04 06 00 B1 C5 F4 BE F8 65 23 99 49 59 8E 05 97 39 [20:51:24]Write to MH i2c: 01 00 00 4F 79 C8 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 4F 79 00 00 00 00 00 5C 0C 37 [20:51:24]RasterBufferAndPrint [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]written 0, free lines is 3167 [20:51:24]MH_Cut [20:51:24]Write to MH i2c: D1 01 00 56 79 01 A1 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 56 79 00 A0 [20:51:24]Write to MH i2c: 01 00 00 57 79 D0 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D7 4C 47 00 64 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 39 36 35 33 34 30 10 04 04 00 95 E3 02 00 F4 03 04 00 37 5D 1A 67 B6 04 01 00 00 C5 6D 16 92 2F 3E DA DE [20:51:25]CommunicateWithHost err = 0 [20:51:25]CheckOFDResponse [20:51:25]1017 (14) - 77093643461234 [20:51:25]1041 (16) - 0000000000965340 [20:51:25]1040 (4) - 189333 [20:51:25]1012 (4) - 24.10.2024 14:44 [20:51:25]1206 (1) - 0 [20:51:25]OFD Sender: Remove packet 189333 [20:51:25]ProducePacketName [20:51:25]name=ofd_packets/00189333 [20:51:25]NVStorageDeleteData [20:51:25]OFD Sender: No OFD packet to send [20:51:26]*** Cut start [20:51:26]*** Partial cut [20:51:26]*** CUTSNS_PIN = 1 [20:51:26]*** CUTSNS_PIN = 0 [20:51:26]*** Brake cut motor [20:51:26]Read from MH i2c: 01 [20:51:26]MH_I2C_Read... [20:51:26]*** Stop cut motor [20:51:26]*** Cut end [20:51:26]Read from MH i2c: 01 07 00 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: 01 07 00 57 79 00 00 00 00 00 FF 0F E5 [20:51:26]process_action close_receipt done [20:51:26]requested_data is exist [20:51:26]produce_requested_data [20:51:26]requested_item fm.sn is exist - process it [20:51:26]wFMCommunicate request_size=4 [20:51:26]MH_SAM_APDU [20:51:26]CAPDU: 80 11 00 00 [20:51:26]Write to MH i2c: E2 08 00 58 79 80 11 00 00 00 00 00 00 4B [20:51:26]Write i2c OK [20:51:26]MH_I2C_Read... [20:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:26]Read from MH i2c: E2 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: E2 17 00 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: E2 17 00 58 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [20:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:51:26]wFMCommunicate OK [20:51:26]requested_item fd.num is exist - process it [20:51:26]SAM_PROTO_GetFieldsCounters [20:51:26]wFMCommunicate request_size=4 [20:51:26]MH_SAM_APDU [20:51:26]CAPDU: 80 13 00 00 [20:51:26]Write to MH i2c: E2 08 00 59 79 80 13 00 00 00 00 00 00 4E [20:51:26]Write i2c OK [20:51:26]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 59 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E3 02 00 0E 04 04 00 CF 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 64 [20:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 E3 02 00 0E 04 04 00 CF 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 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetFieldsCounters done [20:51:27]requested_item shift.num is exist - process it [20:51:27]requested_item shift.opened is exist - process it [20:51:27]req_shift_opened [20:51:27]FM_GetShiftState [20:51:27]SAM_PROTO_GetShiftState [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 01 00 [20:51:27]Write to MH i2c: E2 08 00 5A 79 80 13 01 00 00 00 00 00 50 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 5A 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2E [20:51:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetShiftState done [20:51:27]FM_GetShiftState done [20:51:27]req_shift_opened done [20:51:27]requested_item shift.open_date is exist - process it [20:51:27]req_shift_open_date [20:51:27]req_shift_open_date done [20:51:27]produce_requested_data done [20:51:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189333,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:51:27]process_action_free close_receipt [20:51:27]json_value_free [20:51:27]json_value_free done [20:51:27]process_json_proto returns [20:51:27]Send response to host [20:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189333,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:51:27]free response buf [20:51:27]execute_script done [20:51:27]execute_script returns [20:51:27]free content buf [20:51:27]Sock 9.Close socket [20:51:27]Sock 9.Thread stoped [20:51:27]accept exits with 8 [20:51:27]New connection [20:51:27]New thread 3067071844 created [20:51:27]Thread 3067215204 joined [20:51:27]Waiting for new connection... [20:51:27] Sock 8.Parse request [20:51:27]Sock 8.Check first char [20:51:27]Sock 8.First char is OK [20:51:27]request: POST /json_proto HTTP/1.0 [20:51:27]Method: POST [20:51:27]URL: /json_proto [20:51:27]Method is POST - this is cgi request [20:51:27]url: /json_proto [20:51:27]query_string will be loaded in cgi processing [20:51:27]execute_cgi json_proto POST (null) [20:51:27]execute_cgi path=json_proto method=POST [20:51:27]POST find Content-Length [20:51:27]Host: 172.17.42.131:8080 [20:51:27]Content-Length: 677 [20:51:27]Content-Type: application/json [20:51:27] [20:51:27]POST finish read [20:51:27]Found Content-Length = 677 [20:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:51:27]execute_script... [20: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)211399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:51:27]POST & json_proto [20:51:27]process_json_proto [20:51:27]json parsed OK: [20:51:27]protocol is kg_v1.0 [20:51:27]action value=close_receipt [20:51:27]process_action close_receipt [20:51:27]cmd_close_receipt [20:51:27]MH_GetDate [20:51:27]Write to MH i2c: F0 00 00 5B 79 C3 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: F0 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: F0 09 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: F0 09 00 5B 79 00 54 B3 1A 67 A0 18 CA 66 3C [20:51:27]GetLastDocTimeStamp 1729803087 [20:51:27]current date 1729803092 [20:51:27]FM_GetShiftState [20:51:27]SAM_PROTO_GetShiftState [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 01 00 [20:51:27]Write to MH i2c: E2 08 00 5C 79 80 13 01 00 00 00 00 00 52 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 5C 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 30 [20:51:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetShiftState done [20:51:27]FM_GetShiftState done [20:51:27]opened in 1729728961 [20:51:27]opened+sec_in_day 1729815361 [20:51:27]quantity*price = 50010 [20:51:27]sum+1 = 50012 [20:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 407 24.10.2024 20:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189334 ФПД: 214607709837161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205132&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189334&fm=214607709837161&tin=02508201610067®Number=0000000000100030&sum=50000 [20:51:28]StoreToDocumentArchive [20:51:28]shift 463 fd 189334 [20:51:28]save to /storage/0463/doc_00189334 [20:51:28]save last doc name /storage/0463/doc_00189334 to /storage/kkm_last_doc_name [20:51:28]save OK [20:51:28]Clear old archive folders... [20:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:28]tlvbuf is 017008F0 [20:51:28]SAM_PROTO_ClearQueue [20:51:28]wFMCommunicate request_size=4 [20:51:28]MH_SAM_APDU [20:51:28]CAPDU: 80 09 00 00 [20:51:28]Write to MH i2c: E2 08 00 69 79 80 09 00 00 00 00 00 00 54 [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:28]Read from MH i2c: E2 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 03 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 03 00 69 79 00 90 00 56 [20:51:28]RAPDU: 90 00 [20:51:28]wFMCommunicate OK [20:51:28]SAM_PROTO_ClearQueue done [20:51:28]KKMCreateOFDPacket [20:51:28]OFDProtocolAddRootSTLVToBuf [20:51:28]FM_MakeSignedData [20:51:28]FM_MakeSignedData [20:51:28]SAM_PROTO_SignData [20:51:28]wFMCommunicate request_size=4 [20:51:28]MH_SAM_APDU [20:51:28]CAPDU: 80 0D 01 02 [20:51:28]Write to MH i2c: E2 08 00 6A 79 80 0D 01 02 00 00 00 00 5C [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:28]Read from MH i2c: E2 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 03 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 03 00 6A 79 00 90 00 57 [20:51:28]RAPDU: 90 00 [20:51:28]wFMCommunicate OK [20:51:28]wFMCommunicate request_size=255 [20:51:28]MH_SAM_APDU [20:51: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 33 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 97 01 00 00 F4 03 04 00 54 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E3 02 00 35 04 06 00 C3 [20:51:28]Write to MH i2c: E2 02 01 6B 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 33 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 97 01 00 00 F4 03 04 00 54 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E3 02 00 35 04 06 00 C3 00 00 D5 [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 6B 79 00 90 00 58 [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=10 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 02 02 05 2F 40 4F 97 69 [20:51:29]Write to MH i2c: E2 0D 00 6C 79 80 0D 02 02 05 00 2F 40 4F 97 69 00 00 27 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 6C 79 00 90 00 59 [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 03 02 [20:51:29]Write to MH i2c: E2 08 00 6D 79 80 0D 03 02 00 00 00 00 61 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 6D 79 00 C9 F9 67 7B A5 40 C5 8C 90 00 3C [20:51:29]RAPDU: C9 F9 67 7B A5 40 C5 8C 90 00 [20:51:29]wFMCommunicate OK [20:51:29]SAM_PROTO_SignData done [20:51:29]FM_MakeSignedData done [20:51:29]CreateOFDProtocolMessage [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 11 00 00 [20:51:29]Write to MH i2c: E2 08 00 6E 79 80 11 00 00 00 00 00 00 61 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 6E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [20:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:51:29]wFMCommunicate OK [20:51:29]CreateOFDProtocolMessage done [20:51:29]OFDSenderStorePacket 189334 [20:51:29]StoreOFDPacket docnum=189334 [20:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 17 07 01 17 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 33 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 97 01 00 00 F4 03 04 00 54 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E3 02 00 35 04 06 00 C3 2F 40 4F 97 69 C9 F9 67 7B A5 40 C5 8C [20:51:29]CheckFolder [20:51:29]dirname=/storage/ofd_packets [20:51:29]CheckFolder done [20:51:29]ProducePacketName [20:51:29]name=ofd_packets/00189334 [20:51:29]NVStorageSaveData ofd_packets/00189334 [20:51:29]File name is /storage/ofd_packets/00189334 [20:51:29]Write 301 bytes [20:51:29]NVStorageSaveData done [20:51:29]OFDSenderStorePacket done [20:51:29]KKMCreateOFDPacket done [20:51:29]NVStorageSaveData kkm_last_timestamp [20:51:29]File name is /storage/kkm_last_timestamp [20:51:29]Write 4 bytes [20:51:29]NVStorageSaveData done [20:51:29]ExternCall_PrintAddStr [20:51:29]wPrintStart [20:51:29]Write to MH i2c: 01 00 00 6F 79 E8 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 6F 79 00 00 00 00 00 FF 0F FD [20:51:29]RasterBufferAndPrint [20:51:29]line Счет N : (1)211399 [20:51:29]line ИНН: 02508201610067 [20:51:29]line Контрольно-Кассовый Чек [20:51:29]line ПРОДАЖА [20:51:29]line ТРК (МРК, ГНК) : 33 [20:51:29]line Товар: 2710124500 [20:51:29]line Аи-95-К-3 [20:51:29]line 6.740 * 74.20 [20:51:29]line = 500.11 [20:51:29]line НДС 12% НСП 1% [20:51:29]line > о реализуемом товаре [20:51:29]line ОКРУГЛЕНИЕ: -0.11 [20:51:29]line ИТОГО: 500.00 [20:51:29]line Внесено: 500.00 [20:51:29]line СДАЧА: 0.00 [20:51:29]line НСП 1% : 4.43 [20:51:29]line НДС 12% : 53.11 [20:51:29]line Наличными: 500.00 [20:51:29]line Безнал.: 0.00 [20:51:29]line Место: АЗС № 86 "Партнер Нефть" [20:51:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:51:29]line СНО: Общий режим [20:51:29]line Чек 407 24.10.2024 20:51 [20:51:29]line Смена: 463 ФФД: 1.0 [20:51:29]line ЗНМ: 0300000155 [20:51:29]line РНМ: 0000000000100030 [20:51:29]line Версия ККМ: 001 [20:51:29]line ФМ: 0000000000965340 [20:51:29]line ФД: 189334 [20:51:29]line ФПД: 214607709837161 [20:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205132&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189334&fm=214607709837161&tin=02508201610067®Number=0000000000100030&sum=50000 [20:51:29]written 0, free lines is 4095 [20:51:29]OFD Sender: Processing packet 189334 [packets to send 1062, broken 1061] [20:51:29]ProducePacketName [20:51:29]name=ofd_packets/00189334 [20:51:29]OFD Sender: To server: pG, [20:51:29]CommunicateWithHost lk.salyk.kg:30040 [20:51:29]ConnectInit lk.salyk.kg [20:51:29]Connected sock=10 [20:51:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 17 07 01 17 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 33 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 97 01 00 00 F4 03 04 00 54 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E3 02 00 35 04 06 00 C3 2F 40 4F 97 69 C9 F9 67 7B A5 40 C5 8C [20:51:29]Write to MH i2c: 01 00 00 9A 79 13 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 9A 79 00 00 00 00 00 58 0C 7E [20:51:29]RasterBufferAndPrint [20:51:29]line [20:51:29]line [20:51:29]line [20:51:29]line [20:51:29]line [20:51:29]written 0, free lines is 3167 [20:51:30]MH_Cut [20:51:30]Write to MH i2c: D1 01 00 A1 79 01 EC [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 01 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 01 00 A1 79 00 EB [20:51:30]Write to MH i2c: 01 00 00 A2 79 1B [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F D6 47 00 BA B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 E3 02 00 F4 03 04 00 3C 5D 1A 67 B6 04 01 00 00 AD A0 22 51 7A 51 C8 80 [20:51:30]CommunicateWithHost err = 0 [20:51:30]CheckOFDResponse [20:51:30]1017 (14) - 77093643461234 [20:51:30]1041 (16) - 0000000000965340 [20:51:30]1040 (4) - 189334 [20:51:30]1012 (4) - 24.10.2024 14:44 [20:51:30]1206 (1) - 0 [20:51:30]OFD Sender: Remove packet 189334 [20:51:30]ProducePacketName [20:51:30]name=ofd_packets/00189334 [20:51:30]NVStorageDeleteData [20:51:30]OFD Sender: No OFD packet to send [20:51:31]*** Cut start [20:51:31]*** Partial cut [20:51:31]*** CUTSNS_PIN = 1 [20:51:31]*** CUTSNS_PIN = 0 [20:51:31]*** Brake cut motor [20:51:31]Read from MH i2c: 01 [20:51:31]MH_I2C_Read... [20:51:31]*** Stop cut motor [20:51:31]*** Cut end [20:51:31]Read from MH i2c: 01 07 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: 01 07 00 A2 79 00 00 00 00 00 FF 0F 30 [20:51:31]process_action close_receipt done [20:51:31]requested_data is exist [20:51:31]produce_requested_data [20:51:31]requested_item fm.sn is exist - process it [20:51:31]wFMCommunicate request_size=4 [20:51:31]MH_SAM_APDU [20:51:31]CAPDU: 80 11 00 00 [20:51:31]Write to MH i2c: E2 08 00 A3 79 80 11 00 00 00 00 00 00 96 [20:51:31]Write i2c OK [20:51:31]MH_I2C_Read... [20:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:31]Read from MH i2c: E2 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 17 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 17 00 A3 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [20:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:51:31]wFMCommunicate OK [20:51:31]requested_item fd.num is exist - process it [20:51:31]SAM_PROTO_GetFieldsCounters [20:51:31]wFMCommunicate request_size=4 [20:51:31]MH_SAM_APDU [20:51:31]CAPDU: 80 13 00 00 [20:51:31]Write to MH i2c: E2 08 00 A4 79 80 13 00 00 00 00 00 00 99 [20:51:32]Write i2c OK [20:51:32]MH_I2C_Read... [20:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:32]Read from MH i2c: E2 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: E2 62 00 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: E2 62 00 A4 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E3 02 00 0E 04 04 00 CF 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 B3 [20:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 E3 02 00 0E 04 04 00 CF 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 [20:51:32]wFMCommunicate OK [20:51:32]SAM_PROTO_GetFieldsCounters done [20:51:32]requested_item shift.num is exist - process it [20:51:32]requested_item shift.opened is exist - process it [20:51:32]req_shift_opened [20:51:32]FM_GetShiftState [20:51:32]SAM_PROTO_GetShiftState [20:51:32]wFMCommunicate request_size=4 [20:51:32]MH_SAM_APDU [20:51:32]CAPDU: 80 13 01 00 [20:51:32]Write to MH i2c: E2 08 00 A5 79 80 13 01 00 00 00 00 00 9B [20:51:32]Write i2c OK [20:51:32]MH_I2C_Read... [20:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:32]Read from MH i2c: E2 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: E2 0E 00 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: E2 0E 00 A5 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 79 [20:51:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:51:32]wFMCommunicate OK [20:51:32]SAM_PROTO_GetShiftState done [20:51:32]FM_GetShiftState done [20:51:32]req_shift_opened done [20:51:32]requested_item shift.open_date is exist - process it [20:51:32]req_shift_open_date [20:51:32]req_shift_open_date done [20:51:32]produce_requested_data done [20:51:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189334,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:51:32]process_action_free close_receipt [20:51:32]json_value_free [20:51:32]json_value_free done [20:51:32]process_json_proto returns [20:51:32]Send response to host [20:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189334,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:51:32]free response buf [20:51:32]execute_script done [20:51:32]execute_script returns [20:51:32]free content buf [20:51:32]Sock 8.Close socket [20:51:32]Sock 8.Thread stoped [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:17]accept exits with 9 [20:52:17]New connection [20:52:17]New thread 3067215204 created [20:52:17]Thread 3067071844 joined [20:52:17]Waiting for new connection... [20:52:17] Sock 9.Parse request [20:52:17]Sock 9.Check first char [20:52:17]Sock 9.First char is OK [20:52:17]request: POST /json_proto HTTP/1.0 [20:52:17]Method: POST [20:52:17]URL: /json_proto [20:52:17]Method is POST - this is cgi request [20:52:17]url: /json_proto [20:52:17]query_string will be loaded in cgi processing [20:52:17]execute_cgi json_proto POST (null) [20:52:17]execute_cgi path=json_proto method=POST [20:52:17]POST find Content-Length [20:52:17]Host: 172.17.42.131:8080 [20:52:17]Content-Length: 683 [20:52:17]Content-Type: application/json [20:52:17] [20:52:17]POST finish read [20:52:17]Found Content-Length = 683 [20:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.090, "sum" : 470.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:17]execute_script... [20: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)211400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.090, "sum" : 470.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:17]POST & json_proto [20:52:17]process_json_proto [20:52:17]json parsed OK: [20:52:17]protocol is kg_v1.0 [20:52:17]action value=close_receipt [20:52:17]process_action close_receipt [20:52:17]cmd_close_receipt [20:52:17]MH_GetDate [20:52:17]Write to MH i2c: F0 00 00 A6 79 0E [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 09 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 09 00 A6 79 00 86 B3 1A 67 A0 18 CA 66 B9 [20:52:17]GetLastDocTimeStamp 1729803092 [20:52:17]current date 1729803142 [20:52:17]FM_GetShiftState [20:52:17]SAM_PROTO_GetShiftState [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 01 00 [20:52:17]Write to MH i2c: E2 08 00 A7 79 80 13 01 00 00 00 00 00 9D [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 A7 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7B [20:52:17]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_GetShiftState done [20:52:17]FM_GetShiftState done [20:52:17]opened in 1729728961 [20:52:17]opened+sec_in_day 1729815361 [20:52:17]quantity*price = 47014 [20:52:17]sum+1 = 47016 [20:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.93 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 408 24.10.2024 20:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189335 ФПД: 152827028989795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189335&fm=152827028989795&tin=02508201610067®Number=0000000000100030&sum=47000 [20:52:18]StoreToDocumentArchive [20:52:18]shift 463 fd 189335 [20:52:18]save to /storage/0463/doc_00189335 [20:52:18]save last doc name /storage/0463/doc_00189335 to /storage/kkm_last_doc_name [20:52:18]save OK [20:52:18]Clear old archive folders... [20:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:52:18]tlvbuf is 01667560 [20:52:18]SAM_PROTO_ClearQueue [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 09 00 00 [20:52:18]Write to MH i2c: E2 08 00 B4 79 80 09 00 00 00 00 00 00 9F [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 B4 79 00 90 00 A1 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]SAM_PROTO_ClearQueue done [20:52:19]KKMCreateOFDPacket [20:52:19]OFDProtocolAddRootSTLVToBuf [20:52:19]FM_MakeSignedData [20:52:19]FM_MakeSignedData [20:52:19]SAM_PROTO_SignData [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 01 02 [20:52:19]Write to MH i2c: E2 08 00 B5 79 80 0D 01 02 00 00 00 00 A7 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 B5 79 00 90 00 A2 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]wFMCommunicate request_size=255 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 13 00 00 00 00 07 04 06 00 98 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 98 01 00 00 F4 03 04 00 86 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E3 02 [20:52:19]Write to MH i2c: E2 02 01 B6 79 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 13 00 00 00 00 07 04 06 00 98 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 98 01 00 00 F4 03 04 00 86 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E3 02 00 00 19 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 B6 79 00 90 00 A3 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]wFMCommunicate request_size=16 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8A FE D0 C6 67 63 [20:52:19]Write to MH i2c: E2 13 00 B7 79 80 0D 02 02 0B 00 00 35 04 06 00 8A FE D0 C6 67 63 00 00 E7 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 B7 79 00 90 00 A4 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 03 02 [20:52:19]Write to MH i2c: E2 08 00 B8 79 80 0D 03 02 00 00 00 00 AC [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0B 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0B 00 B8 79 00 69 AC 6A EE 53 3C 6C 3E 90 00 53 [20:52:19]RAPDU: 69 AC 6A EE 53 3C 6C 3E 90 00 [20:52:19]wFMCommunicate OK [20:52:19]SAM_PROTO_SignData done [20:52:19]FM_MakeSignedData done [20:52:19]CreateOFDProtocolMessage [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 11 00 00 [20:52:19]Write to MH i2c: E2 08 00 B9 79 80 11 00 00 00 00 00 00 AC [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 B9 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [20:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:52:19]wFMCommunicate OK [20:52:19]CreateOFDProtocolMessage done [20:52:19]OFDSenderStorePacket 189335 [20:52:19]StoreOFDPacket docnum=189335 [20:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E7 30 0D 01 31 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 13 00 00 00 00 07 04 06 00 98 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 98 01 00 00 F4 03 04 00 86 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E3 02 00 35 04 06 00 8A FE D0 C6 67 63 69 AC 6A EE 53 3C 6C 3E [20:52:19]CheckFolder [20:52:19]dirname=/storage/ofd_packets [20:52:19]CheckFolder done [20:52:19]ProducePacketName [20:52:19]name=ofd_packets/00189335 [20:52:19]NVStorageSaveData ofd_packets/00189335 [20:52:19]File name is /storage/ofd_packets/00189335 [20:52:19]Write 307 bytes [20:52:19]NVStorageSaveData done [20:52:19]OFDSenderStorePacket done [20:52:19]KKMCreateOFDPacket done [20:52:19]NVStorageSaveData kkm_last_timestamp [20:52:19]File name is /storage/kkm_last_timestamp [20:52:19]Write 4 bytes [20:52:19]NVStorageSaveData done [20:52:19]ExternCall_PrintAddStr [20:52:19]wPrintStart [20:52:19]Write to MH i2c: 01 00 00 BA 79 33 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 BA 79 00 00 00 00 00 FF 0F 48 [20:52:19]RasterBufferAndPrint [20:52:19]line Счет N : (1)211400 [20:52:19]line ИНН: 02508201610067 [20:52:19]line Контрольно-Кассовый Чек [20:52:19]line ПРОДАЖА [20:52:19]line ТРК (МРК, ГНК) : 11 [20:52:19]line Товар: 2710194210 [20:52:19]line D-ENERGY ДТ-К-5 [20:52:19]line 6.090 * 77.20 [20:52:19]line = 470.15 [20:52:19]line НДС 12% НСП 1% [20:52:19]line > о реализуемом товаре [20:52:19]line ОКРУГЛЕНИЕ: -0.15 [20:52:19]line ИТОГО: 470.00 [20:52:19]line Внесено: 470.00 [20:52:19]line СДАЧА: 0.00 [20:52:19]line НСП 1% : 4.16 [20:52:19]line НДС 12% : 49.93 [20:52:19]line Наличными: 470.00 [20:52:19]line Безнал.: 0.00 [20:52:19]line Место: АЗС № 86 "Партнер Нефть" [20:52:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:52:19]line СНО: Общий режим [20:52:19]line Чек 408 24.10.2024 20:52 [20:52:19]line Смена: 463 ФФД: 1.0 [20:52:19]line ЗНМ: 0300000155 [20:52:19]line РНМ: 0000000000100030 [20:52:19]line Версия ККМ: 001 [20:52:19]line ФМ: 0000000000965340 [20:52:19]line ФД: 189335 [20:52:19]line ФПД: 152827028989795 [20:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189335&fm=152827028989795&tin=02508201610067®Number=0000000000100030&sum=47000 [20:52:19]written 0, free lines is 4095 [20:52:19]OFD Sender: Processing packet 189335 [packets to send 1062, broken 1061] [20:52:19]ProducePacketName [20:52:19]name=ofd_packets/00189335 [20:52:19]OFD Sender: To server: pG, [20:52:19]CommunicateWithHost lk.salyk.kg:30040 [20:52:19]ConnectInit lk.salyk.kg [20:52:19]Connected sock=10 [20:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E7 30 0D 01 31 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 13 00 00 00 00 07 04 06 00 98 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 98 01 00 00 F4 03 04 00 86 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 E3 02 00 35 04 06 00 8A FE D0 C6 67 63 69 AC 6A EE 53 3C 6C 3E [20:52:19]Write to MH i2c: 01 00 00 E5 79 5E [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 E5 79 00 00 00 00 00 59 0C CA [20:52:19]RasterBufferAndPrint [20:52:19]line [20:52:19]line [20:52:19]line [20:52:19]line [20:52:19]line [20:52:19]written 0, free lines is 3165 [20:52:19]MH_Cut [20:52:19]Write to MH i2c: D1 01 00 EC 79 01 37 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: D1 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: D1 01 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: D1 01 00 EC 79 00 36 [20:52:20]Write to MH i2c: 01 00 00 ED 79 66 [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DF CF 47 00 8D 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 39 36 35 33 34 30 10 04 04 00 97 E3 02 00 F4 03 04 00 6E 5D 1A 67 B6 04 01 00 00 82 EE E3 0B 80 6A 49 74 [20:52:20]CommunicateWithHost err = 0 [20:52:20]CheckOFDResponse [20:52:20]1017 (14) - 77093643461234 [20:52:20]1041 (16) - 0000000000965340 [20:52:20]1040 (4) - 189335 [20:52:20]1012 (4) - 24.10.2024 14:45 [20:52:20]1206 (1) - 0 [20:52:20]OFD Sender: Remove packet 189335 [20:52:20]ProducePacketName [20:52:20]name=ofd_packets/00189335 [20:52:20]NVStorageDeleteData [20:52:20]OFD Sender: No OFD packet to send [20:52:21]*** Cut start [20:52:21]*** Partial cut [20:52:21]*** CUTSNS_PIN = 1 [20:52:21]*** CUTSNS_PIN = 0 [20:52:21]*** Brake cut motor [20:52:21]Read from MH i2c: 01 [20:52:21]MH_I2C_Read... [20:52:21]*** Stop cut motor [20:52:21]*** Cut end [20:52:21]Read from MH i2c: 01 07 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: 01 07 00 ED 79 00 00 00 00 00 FF 0F 7B [20:52:21]process_action close_receipt done [20:52:21]requested_data is exist [20:52:21]produce_requested_data [20:52:21]requested_item fm.sn is exist - process it [20:52:21]wFMCommunicate request_size=4 [20:52:21]MH_SAM_APDU [20:52:21]CAPDU: 80 11 00 00 [20:52:21]Write to MH i2c: E2 08 00 EE 79 80 11 00 00 00 00 00 00 E1 [20:52:21]Write i2c OK [20:52:21]MH_I2C_Read... [20:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:21]Read from MH i2c: E2 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 17 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 17 00 EE 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [20:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:52:21]wFMCommunicate OK [20:52:21]requested_item fd.num is exist - process it [20:52:21]SAM_PROTO_GetFieldsCounters [20:52:21]wFMCommunicate request_size=4 [20:52:21]MH_SAM_APDU [20:52:21]CAPDU: 80 13 00 00 [20:52:21]Write to MH i2c: E2 08 00 EF 79 80 13 00 00 00 00 00 00 E4 [20:52:21]Write i2c OK [20:52:21]MH_I2C_Read... [20:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:22]Read from MH i2c: E2 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 62 00 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 62 00 EF 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E3 02 00 0E 04 04 00 CF 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 02 [20:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 E3 02 00 0E 04 04 00 CF 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 [20:52:22]wFMCommunicate OK [20:52:22]SAM_PROTO_GetFieldsCounters done [20:52:22]requested_item shift.num is exist - process it [20:52:22]requested_item shift.opened is exist - process it [20:52:22]req_shift_opened [20:52:22]FM_GetShiftState [20:52:22]SAM_PROTO_GetShiftState [20:52:22]wFMCommunicate request_size=4 [20:52:22]MH_SAM_APDU [20:52:22]CAPDU: 80 13 01 00 [20:52:22]Write to MH i2c: E2 08 00 F0 79 80 13 01 00 00 00 00 00 E6 [20:52:22]Write i2c OK [20:52:22]MH_I2C_Read... [20:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:22]Read from MH i2c: E2 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 0E 00 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 0E 00 F0 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C4 [20:52:22]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:52:22]wFMCommunicate OK [20:52:22]SAM_PROTO_GetShiftState done [20:52:22]FM_GetShiftState done [20:52:22]req_shift_opened done [20:52:22]requested_item shift.open_date is exist - process it [20:52:22]req_shift_open_date [20:52:22]req_shift_open_date done [20:52:22]produce_requested_data done [20:52:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189335,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:52:22]process_action_free close_receipt [20:52:22]json_value_free [20:52:22]json_value_free done [20:52:22]process_json_proto returns [20:52:22]Send response to host [20:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189335,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:52:22]free response buf [20:52:22]execute_script done [20:52:22]execute_script returns [20:52:22]free content buf [20:52:22]Sock 9.Close socket [20:52:22]Sock 9.Thread stoped [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:48]accept exits with 8 [20:53:48]New connection [20:53:48]New thread 3067071844 created [20:53:48]Thread 3067215204 joined [20:53:48]Waiting for new connection... [20:53:48] Sock 8.Parse request [20:53:48]Sock 8.Check first char [20:53:48]Sock 8.First char is OK [20:53:48]request: POST /json_proto HTTP/1.0 [20:53:48]Method: POST [20:53:48]URL: /json_proto [20:53:48]Method is POST - this is cgi request [20:53:48]url: /json_proto [20:53:48]query_string will be loaded in cgi processing [20:53:48]execute_cgi json_proto POST (null) [20:53:48]execute_cgi path=json_proto method=POST [20:53:48]POST find Content-Length [20:53:48]Host: 172.17.42.131:8080 [20:53:48]Content-Length: 766 [20:53:48]Content-Type: application/json [20:53:48] [20:53:48]POST finish read [20:53:48]Found Content-Length = 766 [20:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.290, "sum" : 220.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: Mbank", "payments": [ { "type": 1, "sum" : 220.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:48]execute_script... [20:53: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)211401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.290, "sum" : 220.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: Mbank", "payments": [ { "type": 1, "sum" : 220.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:48]POST & json_proto [20:53:48]process_json_proto [20:53:48]json parsed OK: [20:53:48]protocol is kg_v1.0 [20:53:48]action value=close_receipt [20:53:48]process_action close_receipt [20:53:48]cmd_close_receipt [20:53:48]MH_GetDate [20:53:48]Write to MH i2c: F0 00 00 F1 79 59 [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: F0 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: F0 09 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: F0 09 00 F1 79 00 E1 B3 1A 67 A0 18 CA 66 5F [20:53:48]GetLastDocTimeStamp 1729803142 [20:53:48]current date 1729803233 [20:53:48]FM_GetShiftState [20:53:48]SAM_PROTO_GetShiftState [20:53:48]wFMCommunicate request_size=4 [20:53:48]MH_SAM_APDU [20:53:48]CAPDU: 80 13 01 00 [20:53:48]Write to MH i2c: E2 08 00 F2 79 80 13 01 00 00 00 00 00 E8 [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:48]Read from MH i2c: E2 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 0E 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 0E 00 F2 79 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C6 [20:53:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:53:48]wFMCommunicate OK [20:53:48]SAM_PROTO_GetShiftState done [20:53:48]FM_GetShiftState done [20:53:48]opened in 1729728961 [20:53:48]opened+sec_in_day 1729815361 [20:53:48]quantity*price = 22010 [20:53:48]sum+1 = 22011 [20:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.10 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 0.00 Безнал.: 220.10 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 409 24.10.2024 20:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189336 ФПД: 69732278248042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189336&fm=69732278248042&tin=02508201610067®Number=0000000000100030&sum=22010 [20:53:49]StoreToDocumentArchive [20:53:49]shift 463 fd 189336 [20:53:49]save to /storage/0463/doc_00189336 [20:53:49]save last doc name /storage/0463/doc_00189336 to /storage/kkm_last_doc_name [20:53:49]save OK [20:53:49]Clear old archive folders... [20:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:49]tlvbuf is 015B8E60 [20:53:49]SAM_PROTO_ClearQueue [20:53:49]wFMCommunicate request_size=4 [20:53:49]MH_SAM_APDU [20:53:49]CAPDU: 80 09 00 00 [20:53:49]Write to MH i2c: E2 08 00 FF 79 80 09 00 00 00 00 00 00 EA [20:53:49]Write i2c OK [20:53:49]MH_I2C_Read... [20:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:49]Read from MH i2c: E2 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: E2 03 00 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: E2 03 00 FF 79 00 90 00 EC [20:53:49]RAPDU: 90 00 [20:53:49]wFMCommunicate OK [20:53:49]SAM_PROTO_ClearQueue done [20:53:49]KKMCreateOFDPacket [20:53:49]OFDProtocolAddRootSTLVToBuf [20:53:49]FM_MakeSignedData [20:53:49]FM_MakeSignedData [20:53:49]SAM_PROTO_SignData [20:53:49]wFMCommunicate request_size=4 [20:53:49]MH_SAM_APDU [20:53:49]CAPDU: 80 0D 01 02 [20:53:49]Write to MH i2c: E2 08 00 00 7A 80 0D 01 02 00 00 00 00 F3 [20:53:49]Write i2c OK [20:53:49]MH_I2C_Read... [20:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:49]Read from MH i2c: E2 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: E2 03 00 [20:53:49]MH_I2C_Read... [20:53:49]Read from MH i2c: E2 03 00 00 7A 00 90 00 EE [20:53:49]RAPDU: 90 00 [20:53:49]wFMCommunicate OK [20:53:49]wFMCommunicate request_size=255 [20:53:49]MH_SAM_APDU [20:53: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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 E1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E3 02 00 35 04 06 00 3F [20:53:49]Write to MH i2c: E2 02 01 01 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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 E1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E3 02 00 35 04 06 00 3F 00 00 18 [20:53:49]Write i2c OK [20:53:49]MH_I2C_Read... [20:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:50]Read from MH i2c: E2 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 03 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 03 00 01 7A 00 90 00 EF [20:53:50]RAPDU: 90 00 [20:53:50]wFMCommunicate OK [20:53:50]wFMCommunicate request_size=10 [20:53:50]MH_SAM_APDU [20:53:50]CAPDU: 80 0D 02 02 05 6B CF AC A2 6A [20:53:50]Write to MH i2c: E2 0D 00 02 7A 80 0D 02 02 05 00 6B CF AC A2 6A 00 00 F2 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:50]Read from MH i2c: E2 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 03 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 03 00 02 7A 00 90 00 F0 [20:53:50]RAPDU: 90 00 [20:53:50]wFMCommunicate OK [20:53:50]wFMCommunicate request_size=4 [20:53:50]MH_SAM_APDU [20:53:50]CAPDU: 80 0D 03 02 [20:53:50]Write to MH i2c: E2 08 00 03 7A 80 0D 03 02 00 00 00 00 F8 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:50]Read from MH i2c: E2 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 0B 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 0B 00 03 7A 00 A3 E4 33 E7 AE B0 83 F6 90 00 71 [20:53:50]RAPDU: A3 E4 33 E7 AE B0 83 F6 90 00 [20:53:50]wFMCommunicate OK [20:53:50]SAM_PROTO_SignData done [20:53:50]FM_MakeSignedData done [20:53:50]CreateOFDProtocolMessage [20:53:50]wFMCommunicate request_size=4 [20:53:50]MH_SAM_APDU [20:53:50]CAPDU: 80 11 00 00 [20:53:50]Write to MH i2c: E2 08 00 04 7A 80 11 00 00 00 00 00 00 F8 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:50]Read from MH i2c: E2 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 17 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: E2 17 00 04 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [20:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:53:50]wFMCommunicate OK [20:53:50]CreateOFDProtocolMessage done [20:53:50]OFDSenderStorePacket 189336 [20:53:50]StoreOFDPacket docnum=189336 [20:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 1C 07 01 CD 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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 E1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E3 02 00 35 04 06 00 3F 6B CF AC A2 6A A3 E4 33 E7 AE B0 83 F6 [20:53:50]CheckFolder [20:53:50]dirname=/storage/ofd_packets [20:53:50]CheckFolder done [20:53:50]ProducePacketName [20:53:50]name=ofd_packets/00189336 [20:53:50]NVStorageSaveData ofd_packets/00189336 [20:53:50]File name is /storage/ofd_packets/00189336 [20:53:50]Write 301 bytes [20:53:50]NVStorageSaveData done [20:53:50]OFDSenderStorePacket done [20:53:50]KKMCreateOFDPacket done [20:53:50]NVStorageSaveData kkm_last_timestamp [20:53:50]File name is /storage/kkm_last_timestamp [20:53:50]Write 4 bytes [20:53:50]NVStorageSaveData done [20:53:50]ExternCall_PrintAddStr [20:53:50]wPrintStart [20:53:50]Write to MH i2c: 01 00 00 05 7A 7F [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 07 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 07 00 05 7A 00 00 00 00 00 FF 0F 94 [20:53:50]RasterBufferAndPrint [20:53:50]line Счет N : (1)211401 [20:53:50]line ИНН: 02508201610067 [20:53:50]line Контрольно-Кассовый Чек [20:53:50]line ПРОДАЖА [20:53:50]line ТРК (МРК, ГНК) : 22 [20:53:50]line Товар: 2710124130 [20:53:50]line Аи-92-К-3 [20:53:50]line 3.290 * 66.90 [20:53:50]line = 220.10 [20:53:50]line НДС 12% НСП 1% [20:53:50]line > о реализуемом товаре [20:53:50]line ИТОГО: 220.10 [20:53:50]line НСП 1% : 1.95 [20:53:50]line НДС 12% : 23.37 [20:53:50]line Наличными: 0.00 [20:53:50]line Безнал.: 220.10 [20:53:50]line Место: АЗС № 86 "Партнер Нефть" [20:53:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:53:50]line СНО: Общий режим [20:53:50]line Чек 409 24.10.2024 20:53 [20:53:50]line Смена: 463 ФФД: 1.0 [20:53:50]line ЗНМ: 0300000155 [20:53:50]line РНМ: 0000000000100030 [20:53:50]line Версия ККМ: 001 [20:53:50]line Платежная система: Mbank [20:53:50]line ФМ: 0000000000965340 [20:53:50]line ФД: 189336 [20:53:50]line ФПД: 69732278248042 [20:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189336&fm=69732278248042&tin=02508201610067®Number=0000000000100030&sum=22010 [20:53:50]written 0, free lines is 4095 [20:53:50]OFD Sender: Processing packet 189336 [packets to send 1062, broken 1061] [20:53:50]ProducePacketName [20:53:50]name=ofd_packets/00189336 [20:53:50]OFD Sender: To server: pG, [20:53:50]CommunicateWithHost lk.salyk.kg:30040 [20:53:50]ConnectInit lk.salyk.kg [20:53:50]Connected sock=9 [20:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 1C 07 01 CD 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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 E1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 E3 02 00 35 04 06 00 3F 6B CF AC A2 6A A3 E4 33 E7 AE B0 83 F6 [20:53:50]Write to MH i2c: 01 00 00 2E 7A A8 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 07 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: 01 07 00 2E 7A 00 00 00 00 00 86 0C 41 [20:53:50]RasterBufferAndPrint [20:53:50]line [20:53:50]line [20:53:50]line [20:53:50]line [20:53:50]line [20:53:50]written 0, free lines is 3211 [20:53:50]MH_Cut [20:53:50]Write to MH i2c: D1 01 00 35 7A 01 81 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: D1 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: D1 01 00 [20:53:50]MH_I2C_Read... [20:53:50]Read from MH i2c: D1 01 00 35 7A 00 80 [20:53:50]Write to MH i2c: 01 00 00 36 7A B0 [20:53:50]Write i2c OK [20:53:50]MH_I2C_Read... [20:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B BC 47 00 AF 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 39 36 35 33 34 30 10 04 04 00 98 E3 02 00 F4 03 04 00 C8 5D 1A 67 B6 04 01 00 00 EE 6E CC 36 28 90 41 97 [20:53:50]CommunicateWithHost err = 0 [20:53:50]CheckOFDResponse [20:53:50]1017 (14) - 77093643461234 [20:53:50]1041 (16) - 0000000000965340 [20:53:50]1040 (4) - 189336 [20:53:50]1012 (4) - 24.10.2024 14:46 [20:53:50]1206 (1) - 0 [20:53:50]OFD Sender: Remove packet 189336 [20:53:50]ProducePacketName [20:53:50]name=ofd_packets/00189336 [20:53:50]NVStorageDeleteData [20:53:51]OFD Sender: No OFD packet to send [20:53:51]*** Cut start [20:53:51]*** Partial cut [20:53:51]*** CUTSNS_PIN = 1 [20:53:52]*** CUTSNS_PIN = 0 [20:53:52]*** Brake cut motor [20:53:52]Read from MH i2c: 01 [20:53:52]MH_I2C_Read... [20:53:52]*** Stop cut motor [20:53:52]*** Cut end [20:53:52]Read from MH i2c: 01 07 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: 01 07 00 36 7A 00 00 00 00 00 FF 0F C5 [20:53:52]process_action close_receipt done [20:53:52]requested_data is exist [20:53:52]produce_requested_data [20:53:52]requested_item fm.sn is exist - process it [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 11 00 00 [20:53:52]Write to MH i2c: E2 08 00 37 7A 80 11 00 00 00 00 00 00 2B [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 17 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 17 00 37 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [20:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:53:52]wFMCommunicate OK [20:53:52]requested_item fd.num is exist - process it [20:53:52]SAM_PROTO_GetFieldsCounters [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 13 00 00 [20:53:52]Write to MH i2c: E2 08 00 38 7A 80 13 00 00 00 00 00 00 2E [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 62 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 62 00 38 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E3 02 00 0E 04 04 00 CF 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 50 [20:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 E3 02 00 0E 04 04 00 CF 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 [20:53:52]wFMCommunicate OK [20:53:52]SAM_PROTO_GetFieldsCounters done [20:53:52]requested_item shift.num is exist - process it [20:53:52]requested_item shift.opened is exist - process it [20:53:52]req_shift_opened [20:53:52]FM_GetShiftState [20:53:52]SAM_PROTO_GetShiftState [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 13 01 00 [20:53:52]Write to MH i2c: E2 08 00 39 7A 80 13 01 00 00 00 00 00 30 [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 0E 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 0E 00 39 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0E [20:53:52]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:53:52]wFMCommunicate OK [20:53:52]SAM_PROTO_GetShiftState done [20:53:52]FM_GetShiftState done [20:53:52]req_shift_opened done [20:53:52]requested_item shift.open_date is exist - process it [20:53:52]req_shift_open_date [20:53:52]req_shift_open_date done [20:53:52]produce_requested_data done [20:53:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189336,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:53:52]process_action_free close_receipt [20:53:52]json_value_free [20:53:52]json_value_free done [20:53:52]process_json_proto returns [20:53:52]Send response to host [20:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189336,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:53:52]free response buf [20:53:52]execute_script done [20:53:52]execute_script returns [20:53:52]free content buf [20:53:52]Sock 8.Close socket [20:53:52]Sock 8.Thread stoped [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:04]accept exits with 10 [20:54:04]New connection [20:54:04]New thread 3067215204 created [20:54:04]Thread 3067071844 joined [20:54:04]Waiting for new connection... [20:54:04] Sock 10.Parse request [20:54:04]Sock 10.Check first char [20:54:04]Sock 10.First char is OK [20:54:04]request: POST /json_proto HTTP/1.0 [20:54:04]Method: POST [20:54:04]URL: /json_proto [20:54:04]Method is POST - this is cgi request [20:54:04]url: /json_proto [20:54:04]query_string will be loaded in cgi processing [20:54:04]execute_cgi json_proto POST (null) [20:54:04]execute_cgi path=json_proto method=POST [20:54:04]POST find Content-Length [20:54:04]Host: 172.17.42.131:8080 [20:54:04]Content-Length: 677 [20:54:04]Content-Type: application/json [20:54:04] [20:54:04]POST finish read [20:54:04]Found Content-Length = 677 [20:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:54:04]execute_script... [20:54: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)211402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:54:04]POST & json_proto [20:54:04]process_json_proto [20:54:04]json parsed OK: [20:54:04]protocol is kg_v1.0 [20:54:04]action value=close_receipt [20:54:04]process_action close_receipt [20:54:04]cmd_close_receipt [20:54:04]MH_GetDate [20:54:04]Write to MH i2c: F0 00 00 3A 7A A3 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 09 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 09 00 3A 7A 00 F1 B3 1A 67 A0 18 CA 66 B9 [20:54:04]GetLastDocTimeStamp 1729803233 [20:54:04]current date 1729803249 [20:54:04]FM_GetShiftState [20:54:04]SAM_PROTO_GetShiftState [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 13 01 00 [20:54:04]Write to MH i2c: E2 08 00 3B 7A 80 13 01 00 00 00 00 00 32 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0E 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0E 00 3B 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 10 [20:54:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:54:04]wFMCommunicate OK [20:54:04]SAM_PROTO_GetShiftState done [20:54:04]FM_GetShiftState done [20:54:04]opened in 1729728961 [20:54:04]opened+sec_in_day 1729815361 [20:54:04]quantity*price = 50041 [20:54:04]sum+1 = 50042 [20:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 410 24.10.2024 20:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189337 ФПД: 118257591062943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189337&fm=118257591062943&tin=02508201610067®Number=0000000000100030&sum=50000 [20:54:05]StoreToDocumentArchive [20:54:05]shift 463 fd 189337 [20:54:05]save to /storage/0463/doc_00189337 [20:54:05]save last doc name /storage/0463/doc_00189337 to /storage/kkm_last_doc_name [20:54:05]save OK [20:54:05]Clear old archive folders... [20:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:05]tlvbuf is 016415A0 [20:54:05]SAM_PROTO_ClearQueue [20:54:05]wFMCommunicate request_size=4 [20:54:05]MH_SAM_APDU [20:54:05]CAPDU: 80 09 00 00 [20:54:05]Write to MH i2c: E2 08 00 48 7A 80 09 00 00 00 00 00 00 34 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:05]Read from MH i2c: E2 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 48 7A 00 90 00 36 [20:54:05]RAPDU: 90 00 [20:54:05]wFMCommunicate OK [20:54:05]SAM_PROTO_ClearQueue done [20:54:05]KKMCreateOFDPacket [20:54:05]OFDProtocolAddRootSTLVToBuf [20:54:05]FM_MakeSignedData [20:54:05]FM_MakeSignedData [20:54:05]SAM_PROTO_SignData [20:54:05]wFMCommunicate request_size=4 [20:54:05]MH_SAM_APDU [20:54:05]CAPDU: 80 0D 01 02 [20:54:05]Write to MH i2c: E2 08 00 49 7A 80 0D 01 02 00 00 00 00 3C [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:05]Read from MH i2c: E2 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 49 7A 00 90 00 37 [20:54:05]RAPDU: 90 00 [20:54:05]wFMCommunicate OK [20:54:05]wFMCommunicate request_size=255 [20:54:05]MH_SAM_APDU [20:54: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E3 02 00 35 04 06 00 6B [20:54:05]Write to MH i2c: E2 02 01 4A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E3 02 00 35 04 06 00 6B 00 00 28 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 4A 7A 00 90 00 38 [20:54:06]RAPDU: 90 00 [20:54:06]wFMCommunicate OK [20:54:06]wFMCommunicate request_size=10 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 0D 02 02 05 8D FD B5 11 9F [20:54:06]Write to MH i2c: E2 0D 00 4B 7A 80 0D 02 02 05 00 8D FD B5 11 9F 00 00 38 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 4B 7A 00 90 00 39 [20:54:06]RAPDU: 90 00 [20:54:06]wFMCommunicate OK [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 0D 03 02 [20:54:06]Write to MH i2c: E2 08 00 4C 7A 80 0D 03 02 00 00 00 00 41 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0B 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0B 00 4C 7A 00 FF 88 09 8F 9B 46 22 48 90 00 AC [20:54:06]RAPDU: FF 88 09 8F 9B 46 22 48 90 00 [20:54:06]wFMCommunicate OK [20:54:06]SAM_PROTO_SignData done [20:54:06]FM_MakeSignedData done [20:54:06]CreateOFDProtocolMessage [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 11 00 00 [20:54:06]Write to MH i2c: E2 08 00 4D 7A 80 11 00 00 00 00 00 00 41 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 4D 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [20:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:06]wFMCommunicate OK [20:54:06]CreateOFDProtocolMessage done [20:54:06]OFDSenderStorePacket 189337 [20:54:06]StoreOFDPacket docnum=189337 [20:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 04 07 01 1C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E3 02 00 35 04 06 00 6B 8D FD B5 11 9F FF 88 09 8F 9B 46 22 48 [20:54:06]CheckFolder [20:54:06]dirname=/storage/ofd_packets [20:54:06]CheckFolder done [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00189337 [20:54:06]NVStorageSaveData ofd_packets/00189337 [20:54:06]File name is /storage/ofd_packets/00189337 [20:54:06]Write 301 bytes [20:54:06]NVStorageSaveData done [20:54:06]OFDSenderStorePacket done [20:54:06]KKMCreateOFDPacket done [20:54:06]NVStorageSaveData kkm_last_timestamp [20:54:06]File name is /storage/kkm_last_timestamp [20:54:06]Write 4 bytes [20:54:06]NVStorageSaveData done [20:54:06]ExternCall_PrintAddStr [20:54:06]wPrintStart [20:54:06]Write to MH i2c: 01 00 00 4E 7A C8 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 4E 7A 00 00 00 00 00 FF 0F DD [20:54:06]RasterBufferAndPrint [20:54:06]line Счет N : (1)211402 [20:54:06]line ИНН: 02508201610067 [20:54:06]line Контрольно-Кассовый Чек [20:54:06]line ПРОДАЖА [20:54:06]line ТРК (МРК, ГНК) : 42 [20:54:06]line Товар: 2710124130 [20:54:06]line Аи-92-К-3 [20:54:06]line 7.480 * 66.90 [20:54:06]line = 500.41 [20:54:06]line НДС 12% НСП 1% [20:54:06]line > о реализуемом товаре [20:54:06]line ОКРУГЛЕНИЕ: -0.41 [20:54:06]line ИТОГО: 500.00 [20:54:06]line Внесено: 500.00 [20:54:06]line СДАЧА: 0.00 [20:54:06]line НСП 1% : 4.43 [20:54:06]line НДС 12% : 53.14 [20:54:06]line Наличными: 500.00 [20:54:06]line Безнал.: 0.00 [20:54:06]line Место: АЗС № 86 "Партнер Нефть" [20:54:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:54:06]line СНО: Общий режим [20:54:06]line Чек 410 24.10.2024 20:54 [20:54:06]line Смена: 463 ФФД: 1.0 [20:54:06]line ЗНМ: 0300000155 [20:54:06]line РНМ: 0000000000100030 [20:54:06]line Версия ККМ: 001 [20:54:06]line ФМ: 0000000000965340 [20:54:06]line ФД: 189337 [20:54:06]line ФПД: 118257591062943 [20:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189337&fm=118257591062943&tin=02508201610067®Number=0000000000100030&sum=50000 [20:54:06]written 0, free lines is 4095 [20:54:06]OFD Sender: Processing packet 189337 [packets to send 1062, broken 1061] [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00189337 [20:54:06]OFD Sender: To server: pG, [20:54:06]CommunicateWithHost lk.salyk.kg:30040 [20:54:06]ConnectInit lk.salyk.kg [20:54:06]Connected sock=9 [20:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 04 07 01 1C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F1 B3 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 E3 02 00 35 04 06 00 6B 8D FD B5 11 9F FF 88 09 8F 9B 46 22 48 [20:54:06]Write to MH i2c: 01 00 00 79 7A F3 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 79 7A 00 00 00 00 00 56 0C 5C [20:54:06]RasterBufferAndPrint [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]written 0, free lines is 3162 [20:54:06]MH_Cut [20:54:06]Write to MH i2c: D1 01 00 80 7A 01 CC [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 01 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 01 00 80 7A 00 CB [20:54:06]Write to MH i2c: 01 00 00 81 7A FB [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 77 47 00 99 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 39 36 35 33 34 30 10 04 04 00 99 E3 02 00 F4 03 04 00 D8 5D 1A 67 B6 04 01 00 00 48 15 41 1A A6 1B CC 44 [20:54:06]CommunicateWithHost err = 0 [20:54:06]CheckOFDResponse [20:54:06]1017 (14) - 77093643461234 [20:54:06]1041 (16) - 0000000000965340 [20:54:06]1040 (4) - 189337 [20:54:06]1012 (4) - 24.10.2024 14:46 [20:54:06]1206 (1) - 0 [20:54:06]OFD Sender: Remove packet 189337 [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00189337 [20:54:06]NVStorageDeleteData [20:54:07]OFD Sender: No OFD packet to send [20:54:07]*** Cut start [20:54:07]*** Partial cut [20:54:07]*** CUTSNS_PIN = 1 [20:54:07]*** CUTSNS_PIN = 0 [20:54:08]*** Brake cut motor [20:54:08]Read from MH i2c: 01 [20:54:08]MH_I2C_Read... [20:54:08]*** Stop cut motor [20:54:08]*** Cut end [20:54:08]Read from MH i2c: 01 07 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 07 00 81 7A 00 00 00 00 00 FF 0F 10 [20:54:08]process_action close_receipt done [20:54:08]requested_data is exist [20:54:08]produce_requested_data [20:54:08]requested_item fm.sn is exist - process it [20:54:08]wFMCommunicate request_size=4 [20:54:08]MH_SAM_APDU [20:54:08]CAPDU: 80 11 00 00 [20:54:08]Write to MH i2c: E2 08 00 82 7A 80 11 00 00 00 00 00 00 76 [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:08]Read from MH i2c: E2 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 17 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 17 00 82 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [20:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:08]wFMCommunicate OK [20:54:08]requested_item fd.num is exist - process it [20:54:08]SAM_PROTO_GetFieldsCounters [20:54:08]wFMCommunicate request_size=4 [20:54:08]MH_SAM_APDU [20:54:08]CAPDU: 80 13 00 00 [20:54:08]Write to MH i2c: E2 08 00 83 7A 80 13 00 00 00 00 00 00 79 [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:08]Read from MH i2c: E2 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 62 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 62 00 83 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E3 02 00 0E 04 04 00 CF 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 9F [20:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 E3 02 00 0E 04 04 00 CF 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 [20:54:08]wFMCommunicate OK [20:54:08]SAM_PROTO_GetFieldsCounters done [20:54:08]requested_item shift.num is exist - process it [20:54:08]requested_item shift.opened is exist - process it [20:54:08]req_shift_opened [20:54:08]FM_GetShiftState [20:54:08]SAM_PROTO_GetShiftState [20:54:08]wFMCommunicate request_size=4 [20:54:08]MH_SAM_APDU [20:54:08]CAPDU: 80 13 01 00 [20:54:08]Write to MH i2c: E2 08 00 84 7A 80 13 01 00 00 00 00 00 7B [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:08]Read from MH i2c: E2 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 0E 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: E2 0E 00 84 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 59 [20:54:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [20:54:08]wFMCommunicate OK [20:54:08]SAM_PROTO_GetShiftState done [20:54:08]FM_GetShiftState done [20:54:08]req_shift_opened done [20:54:08]requested_item shift.open_date is exist - process it [20:54:08]req_shift_open_date [20:54:08]req_shift_open_date done [20:54:08]produce_requested_data done [20:54:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189337,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [20:54:08]process_action_free close_receipt [20:54:08]json_value_free [20:54:08]json_value_free done [20:54:08]process_json_proto returns [20:54:08]Send response to host [20:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189337,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [20:54:08]free response buf [20:54:08]execute_script done [20:54:08]execute_script returns [20:54:08]free content buf [20:54:08]Sock 10.Close socket [20:54:08]Sock 10.Thread stoped [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:03]accept exits with 8 [21:01:03]New connection [21:01:03]New thread 3067071844 created [21:01:03]Thread 3067215204 joined [21:01:03]Waiting for new connection... [21:01:03] Sock 8.Parse request [21:01:03]Sock 8.Check first char [21:01:03]Sock 8.First char is OK [21:01:03]request: POST /json_proto HTTP/1.0 [21:01:03]Method: POST [21:01:03]URL: /json_proto [21:01:03]Method is POST - this is cgi request [21:01:03]url: /json_proto [21:01:03]query_string will be loaded in cgi processing [21:01:03]execute_cgi json_proto POST (null) [21:01:03]execute_cgi path=json_proto method=POST [21:01:03]POST find Content-Length [21:01:03]Host: 172.17.42.131:8080 [21:01:03]Content-Length: 677 [21:01:03]Content-Type: application/json [21:01:03] [21:01:03]POST finish read [21:01:03]Found Content-Length = 677 [21:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:03]execute_script... [21: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)211403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:03]POST & json_proto [21:01:03]process_json_proto [21:01:03]json parsed OK: [21:01:03]protocol is kg_v1.0 [21:01:03]action value=close_receipt [21:01:03]process_action close_receipt [21:01:03]cmd_close_receipt [21:01:03]MH_GetDate [21:01:03]Write to MH i2c: F0 00 00 85 7A EE [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: F0 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: F0 09 00 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: F0 09 00 85 7A 00 94 B5 1A 67 A0 18 CA 66 A9 [21:01:03]GetLastDocTimeStamp 1729803249 [21:01:03]current date 1729803668 [21:01:03]FM_GetShiftState [21:01:03]SAM_PROTO_GetShiftState [21:01:03]wFMCommunicate request_size=4 [21:01:03]MH_SAM_APDU [21:01:03]CAPDU: 80 13 01 00 [21:01:03]Write to MH i2c: E2 08 00 86 7A 80 13 01 00 00 00 00 00 7D [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:03]Read from MH i2c: E2 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 0E 00 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 0E 00 86 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5B [21:01:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:01:03]wFMCommunicate OK [21:01:03]SAM_PROTO_GetShiftState done [21:01:03]FM_GetShiftState done [21:01:03]opened in 1729728961 [21:01:03]opened+sec_in_day 1729815361 [21:01:03]quantity*price = 60009 [21:01:03]sum+1 = 60010 [21:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 411 24.10.2024 21:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189338 ФПД: 4529292725282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189338&fm=4529292725282&tin=02508201610067®Number=0000000000100030&sum=60000 [21:01:04]StoreToDocumentArchive [21:01:04]shift 463 fd 189338 [21:01:04]save to /storage/0463/doc_00189338 [21:01:04]save last doc name /storage/0463/doc_00189338 to /storage/kkm_last_doc_name [21:01:04]save OK [21:01:04]Clear old archive folders... [21:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:04]tlvbuf is B6F951D0 [21:01:04]SAM_PROTO_ClearQueue [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 09 00 00 [21:01:04]Write to MH i2c: E2 08 00 93 7A 80 09 00 00 00 00 00 00 7F [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 93 7A 00 90 00 81 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]SAM_PROTO_ClearQueue done [21:01:04]KKMCreateOFDPacket [21:01:04]OFDProtocolAddRootSTLVToBuf [21:01:04]FM_MakeSignedData [21:01:04]FM_MakeSignedData [21:01:04]SAM_PROTO_SignData [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 0D 01 02 [21:01:04]Write to MH i2c: E2 08 00 94 7A 80 0D 01 02 00 00 00 00 87 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 94 7A 00 90 00 82 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]wFMCommunicate request_size=255 [21:01:04]MH_SAM_APDU [21: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 9B 01 00 00 F4 03 04 00 94 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E3 02 00 35 04 06 00 04 [21:01:04]Write to MH i2c: E2 02 01 95 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 9B 01 00 00 F4 03 04 00 94 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E3 02 00 35 04 06 00 04 00 00 90 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 95 7A 00 90 00 83 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]wFMCommunicate request_size=10 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 0D 02 02 05 1E 8E E2 4C 22 [21:01:04]Write to MH i2c: E2 0D 00 96 7A 80 0D 02 02 05 00 1E 8E E2 4C 22 00 00 90 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 96 7A 00 90 00 84 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 0D 03 02 [21:01:04]Write to MH i2c: E2 08 00 97 7A 80 0D 03 02 00 00 00 00 8C [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0B 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0B 00 97 7A 00 AF 74 8F 2F 05 21 DA E7 90 00 55 [21:01:04]RAPDU: AF 74 8F 2F 05 21 DA E7 90 00 [21:01:04]wFMCommunicate OK [21:01:04]SAM_PROTO_SignData done [21:01:04]FM_MakeSignedData done [21:01:04]CreateOFDProtocolMessage [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 11 00 00 [21:01:04]Write to MH i2c: E2 08 00 98 7A 80 11 00 00 00 00 00 00 8C [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 17 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 17 00 98 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [21:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:04]wFMCommunicate OK [21:01:04]CreateOFDProtocolMessage done [21:01:04]OFDSenderStorePacket 189338 [21:01:04]StoreOFDPacket docnum=189338 [21:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 80 07 01 73 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 9B 01 00 00 F4 03 04 00 94 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E3 02 00 35 04 06 00 04 1E 8E E2 4C 22 AF 74 8F 2F 05 21 DA E7 [21:01:04]CheckFolder [21:01:04]dirname=/storage/ofd_packets [21:01:04]CheckFolder done [21:01:04]ProducePacketName [21:01:04]name=ofd_packets/00189338 [21:01:04]NVStorageSaveData ofd_packets/00189338 [21:01:04]File name is /storage/ofd_packets/00189338 [21:01:04]Write 301 bytes [21:01:04]NVStorageSaveData done [21:01:04]OFDSenderStorePacket done [21:01:04]KKMCreateOFDPacket done [21:01:04]NVStorageSaveData kkm_last_timestamp [21:01:04]File name is /storage/kkm_last_timestamp [21:01:04]Write 4 bytes [21:01:04]NVStorageSaveData done [21:01:04]ExternCall_PrintAddStr [21:01:04]wPrintStart [21:01:04]Write to MH i2c: 01 00 00 99 7A 13 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 99 7A 00 00 00 00 00 FF 0F 28 [21:01:04]RasterBufferAndPrint [21:01:04]line Счет N : (1)211403 [21:01:04]line ИНН: 02508201610067 [21:01:04]line Контрольно-Кассовый Чек [21:01:04]line ПРОДАЖА [21:01:04]line ТРК (МРК, ГНК) : 42 [21:01:04]line Товар: 2710124130 [21:01:04]line Аи-92-К-3 [21:01:04]line 8.970 * 66.90 [21:01:04]line = 600.09 [21:01:04]line НДС 12% НСП 1% [21:01:04]line > о реализуемом товаре [21:01:04]line ОКРУГЛЕНИЕ: -0.09 [21:01:04]line ИТОГО: 600.00 [21:01:04]line Внесено: 600.00 [21:01:04]line СДАЧА: 0.00 [21:01:04]line НСП 1% : 5.31 [21:01:04]line НДС 12% : 63.73 [21:01:04]line Наличными: 600.00 [21:01:04]line Безнал.: 0.00 [21:01:04]line Место: АЗС № 86 "Партнер Нефть" [21:01:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:04]line СНО: Общий режим [21:01:04]line Чек 411 24.10.2024 21:01 [21:01:04]line Смена: 463 ФФД: 1.0 [21:01:04]line ЗНМ: 0300000155 [21:01:04]line РНМ: 0000000000100030 [21:01:04]line Версия ККМ: 001 [21:01:04]line ФМ: 0000000000965340 [21:01:04]line ФД: 189338 [21:01:04]line ФПД: 4529292725282 [21:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189338&fm=4529292725282&tin=02508201610067®Number=0000000000100030&sum=60000 [21:01:04]OFD Sender: Processing packet 189338 [packets to send 1062, broken 1061] [21:01:04]ProducePacketName [21:01:04]name=ofd_packets/00189338 [21:01:04]OFD Sender: To server: pG, [21:01:04]CommunicateWithHost lk.salyk.kg:30040 [21:01:04]ConnectInit lk.salyk.kg [21:01:04]written 0, free lines is 4095 [21:01:05]Connected sock=11 [21:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AA 80 07 01 73 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 9B 01 00 00 F4 03 04 00 94 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A E3 02 00 35 04 06 00 04 1E 8E E2 4C 22 AF 74 8F 2F 05 21 DA E7 [21:01:05]Write to MH i2c: 01 00 00 C4 7A 3E [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 C4 7A 00 00 00 00 00 59 0C AA [21:01:05]RasterBufferAndPrint [21:01:05]line [21:01:05]line [21:01:05]line [21:01:05]line [21:01:05]line [21:01:05]written 0, free lines is 3164 [21:01:05]MH_Cut [21:01:05]Write to MH i2c: D1 01 00 CB 7A 01 17 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: D1 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: D1 01 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: D1 01 00 CB 7A 00 16 [21:01:05]Write to MH i2c: 01 00 00 CC 7A 46 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F6 FB 47 00 7A 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 39 36 35 33 34 30 10 04 04 00 9A E3 02 00 F4 03 04 00 7B 5F 1A 67 B6 04 01 00 00 CE DC A7 9C 9F 4C C4 C0 [21:01:05]CommunicateWithHost err = 0 [21:01:05]CheckOFDResponse [21:01:05]1017 (14) - 77093643461234 [21:01:05]1041 (16) - 0000000000965340 [21:01:05]1040 (4) - 189338 [21:01:05]1012 (4) - 24.10.2024 14:53 [21:01:05]1206 (1) - 0 [21:01:05]OFD Sender: Remove packet 189338 [21:01:05]ProducePacketName [21:01:05]name=ofd_packets/00189338 [21:01:05]NVStorageDeleteData [21:01:06]OFD Sender: No OFD packet to send [21:01:06]*** Cut start [21:01:06]*** Partial cut [21:01:06]*** CUTSNS_PIN = 1 [21:01:06]*** CUTSNS_PIN = 0 [21:01:06]*** Brake cut motor [21:01:07]Read from MH i2c: 01 [21:01:07]MH_I2C_Read... [21:01:07]*** Stop cut motor [21:01:07]*** Cut end [21:01:07]Read from MH i2c: 01 07 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: 01 07 00 CC 7A 00 00 00 00 00 FF 0F 5B [21:01:07]process_action close_receipt done [21:01:07]requested_data is exist [21:01:07]produce_requested_data [21:01:07]requested_item fm.sn is exist - process it [21:01:07]wFMCommunicate request_size=4 [21:01:07]MH_SAM_APDU [21:01:07]CAPDU: 80 11 00 00 [21:01:07]Write to MH i2c: E2 08 00 CD 7A 80 11 00 00 00 00 00 00 C1 [21:01:07]Write i2c OK [21:01:07]MH_I2C_Read... [21:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:07]Read from MH i2c: E2 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 17 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 17 00 CD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [21:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:07]wFMCommunicate OK [21:01:07]requested_item fd.num is exist - process it [21:01:07]SAM_PROTO_GetFieldsCounters [21:01:07]wFMCommunicate request_size=4 [21:01:07]MH_SAM_APDU [21:01:07]CAPDU: 80 13 00 00 [21:01:07]Write to MH i2c: E2 08 00 CE 7A 80 13 00 00 00 00 00 00 C4 [21:01:07]Write i2c OK [21:01:07]MH_I2C_Read... [21:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:07]Read from MH i2c: E2 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 62 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 62 00 CE 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E3 02 00 0E 04 04 00 CF 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 EE [21:01:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A E3 02 00 0E 04 04 00 CF 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 [21:01:07]wFMCommunicate OK [21:01:07]SAM_PROTO_GetFieldsCounters done [21:01:07]requested_item shift.num is exist - process it [21:01:07]requested_item shift.opened is exist - process it [21:01:07]req_shift_opened [21:01:07]FM_GetShiftState [21:01:07]SAM_PROTO_GetShiftState [21:01:07]wFMCommunicate request_size=4 [21:01:07]MH_SAM_APDU [21:01:07]CAPDU: 80 13 01 00 [21:01:07]Write to MH i2c: E2 08 00 CF 7A 80 13 01 00 00 00 00 00 C6 [21:01:07]Write i2c OK [21:01:07]MH_I2C_Read... [21:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:07]Read from MH i2c: E2 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 0E 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 0E 00 CF 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A4 [21:01:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:01:07]wFMCommunicate OK [21:01:07]SAM_PROTO_GetShiftState done [21:01:07]FM_GetShiftState done [21:01:07]req_shift_opened done [21:01:07]requested_item shift.open_date is exist - process it [21:01:07]req_shift_open_date [21:01:07]req_shift_open_date done [21:01:07]produce_requested_data done [21:01:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189338,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:01:07]process_action_free close_receipt [21:01:07]json_value_free [21:01:07]json_value_free done [21:01:07]process_json_proto returns [21:01:07]Send response to host [21:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189338,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:01:07]free response buf [21:01:07]execute_script done [21:01:07]execute_script returns [21:01:07]free content buf [21:01:07]Sock 8.Close socket [21:01:07]Sock 8.Thread stoped [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [21:01:40]New connection [21:01:40]New thread 3067215204 created [21:01:40]Thread 3067071844 joined [21:01:40]Waiting for new connection... [21:01:40] Sock 9.Parse request [21:01:40]Sock 9.Check first char [21:01:40]Sock 9.First char is OK [21:01:40]request: POST /json_proto HTTP/1.0 [21:01:40]Method: POST [21:01:40]URL: /json_proto [21:01:40]Method is POST - this is cgi request [21:01:40]url: /json_proto [21:01:40]query_string will be loaded in cgi processing [21:01:40]execute_cgi json_proto POST (null) [21:01:40]execute_cgi path=json_proto method=POST [21:01:40]POST find Content-Length [21:01:40]Host: 172.17.42.131:8080 [21:01:40]Content-Length: 678 [21:01:40]Content-Type: application/json [21:01:40] [21:01:40]POST finish read [21:01:40]Found Content-Length = 678 [21:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [21:01:40]execute_script... [21: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)211404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [21:01:40]POST & json_proto [21:01:40]process_json_proto [21:01:40]json parsed OK: [21:01:40]protocol is kg_v1.0 [21:01:40]action value=close_receipt [21:01:40]process_action close_receipt [21:01:40]cmd_close_receipt [21:01:40]MH_GetDate [21:01:40]Write to MH i2c: F0 00 00 D0 7A 39 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: F0 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: F0 09 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: F0 09 00 D0 7A 00 B9 B5 1A 67 A0 18 CA 66 19 [21:01:40]GetLastDocTimeStamp 1729803668 [21:01:40]current date 1729803705 [21:01:40]FM_GetShiftState [21:01:40]SAM_PROTO_GetShiftState [21:01:40]wFMCommunicate request_size=4 [21:01:40]MH_SAM_APDU [21:01:40]CAPDU: 80 13 01 00 [21:01:40]Write to MH i2c: E2 08 00 D1 7A 80 13 01 00 00 00 00 00 C8 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 0E 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 0E 00 D1 7A 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A6 [21:01:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:01:40]wFMCommunicate OK [21:01:40]SAM_PROTO_GetShiftState done [21:01:40]FM_GetShiftState done [21:01:40]opened in 1729728961 [21:01:40]opened+sec_in_day 1729815361 [21:01:40]quantity*price = 90047 [21:01:40]sum+1 = 90048 [21:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 412 24.10.2024 21:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189339 ФПД: 174960751842672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189339&fm=174960751842672&tin=02508201610067®Number=0000000000100030&sum=90000 [21:01:41]StoreToDocumentArchive [21:01:41]shift 463 fd 189339 [21:01:41]save to /storage/0463/doc_00189339 [21:01:41]save last doc name /storage/0463/doc_00189339 to /storage/kkm_last_doc_name [21:01:41]save OK [21:01:41]Clear old archive folders... [21:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:41]tlvbuf is 01700BE0 [21:01:41]SAM_PROTO_ClearQueue [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 09 00 00 [21:01:41]Write to MH i2c: E2 08 00 DE 7A 80 09 00 00 00 00 00 00 CA [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 DE 7A 00 90 00 CC [21:01:41]RAPDU: 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_ClearQueue done [21:01:41]KKMCreateOFDPacket [21:01:41]OFDProtocolAddRootSTLVToBuf [21:01:41]FM_MakeSignedData [21:01:41]FM_MakeSignedData [21:01:41]SAM_PROTO_SignData [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 0D 01 02 [21:01:41]Write to MH i2c: E2 08 00 DF 7A 80 0D 01 02 00 00 00 00 D2 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:41]OFD Sender: No OFD packet to send [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 DF 7A 00 90 00 CD [21:01:41]RAPDU: 90 00 [21:01:41]wFMCommunicate OK [21:01:41]wFMCommunicate request_size=255 [21:01:41]MH_SAM_APDU [21: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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 9C 01 00 00 F4 03 04 00 B9 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E3 02 00 35 04 06 00 9F [21:01:41]Write to MH i2c: E2 02 01 E0 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 9C 01 00 00 F4 03 04 00 B9 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E3 02 00 35 04 06 00 9F 00 00 DD [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 E0 7A 00 90 00 CE [21:01:41]RAPDU: 90 00 [21:01:41]wFMCommunicate OK [21:01:41]wFMCommunicate request_size=10 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 0D 02 02 05 20 39 76 95 70 [21:01:41]Write to MH i2c: E2 0D 00 E1 7A 80 0D 02 02 05 00 20 39 76 95 70 00 00 B3 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 03 00 E1 7A 00 90 00 CF [21:01:41]RAPDU: 90 00 [21:01:41]wFMCommunicate OK [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 0D 03 02 [21:01:41]Write to MH i2c: E2 08 00 E2 7A 80 0D 03 02 00 00 00 00 D7 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0B 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0B 00 E2 7A 00 BE 1A D2 68 0B C6 95 27 90 00 77 [21:01:41]RAPDU: BE 1A D2 68 0B C6 95 27 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_SignData done [21:01:41]FM_MakeSignedData done [21:01:41]CreateOFDProtocolMessage [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 11 00 00 [21:01:41]Write to MH i2c: E2 08 00 E3 7A 80 11 00 00 00 00 00 00 D7 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 E3 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [21:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:41]wFMCommunicate OK [21:01:41]CreateOFDProtocolMessage done [21:01:41]OFDSenderStorePacket 189339 [21:01:41]StoreOFDPacket docnum=189339 [21:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E A6 07 01 26 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 9C 01 00 00 F4 03 04 00 B9 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E3 02 00 35 04 06 00 9F 20 39 76 95 70 BE 1A D2 68 0B C6 95 27 [21:01:41]CheckFolder [21:01:41]dirname=/storage/ofd_packets [21:01:41]CheckFolder done [21:01:41]ProducePacketName [21:01:41]name=ofd_packets/00189339 [21:01:41]NVStorageSaveData ofd_packets/00189339 [21:01:41]File name is /storage/ofd_packets/00189339 [21:01:41]Write 301 bytes [21:01:41]NVStorageSaveData done [21:01:41]OFDSenderStorePacket done [21:01:41]KKMCreateOFDPacket done [21:01:41]NVStorageSaveData kkm_last_timestamp [21:01:41]File name is /storage/kkm_last_timestamp [21:01:41]Write 4 bytes [21:01:41]NVStorageSaveData done [21:01:41]ExternCall_PrintAddStr [21:01:41]wPrintStart [21:01:41]Write to MH i2c: 01 00 00 E4 7A 5E [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 E4 7A 00 00 00 00 00 FF 0F 73 [21:01:41]RasterBufferAndPrint [21:01:41]line Счет N : (1)211404 [21:01:41]line ИНН: 02508201610067 [21:01:41]line Контрольно-Кассовый Чек [21:01:41]line ПРОДАЖА [21:01:41]line ТРК (МРК, ГНК) : 32 [21:01:41]line Товар: 2710124130 [21:01:41]line Аи-92-К-3 [21:01:41]line 13.460 * 66.90 [21:01:41]line = 900.47 [21:01:41]line НДС 12% НСП 1% [21:01:41]line > о реализуемом товаре [21:01:41]line ОКРУГЛЕНИЕ: -0.47 [21:01:41]line ИТОГО: 900.00 [21:01:41]line Внесено: 900.00 [21:01:41]line СДАЧА: 0.00 [21:01:41]line НСП 1% : 7.97 [21:01:41]line НДС 12% : 95.62 [21:01:41]line Наличными: 900.00 [21:01:41]line Безнал.: 0.00 [21:01:41]line Место: АЗС № 86 "Партнер Нефть" [21:01:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:41]line СНО: Общий режим [21:01:41]line Чек 412 24.10.2024 21:01 [21:01:41]line Смена: 463 ФФД: 1.0 [21:01:41]line ЗНМ: 0300000155 [21:01:41]line РНМ: 0000000000100030 [21:01:41]line Версия ККМ: 001 [21:01:41]line ФМ: 0000000000965340 [21:01:41]line ФД: 189339 [21:01:41]line ФПД: 174960751842672 [21:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189339&fm=174960751842672&tin=02508201610067®Number=0000000000100030&sum=90000 [21:01:41]written 0, free lines is 4095 [21:01:41]OFD Sender: Processing packet 189339 [packets to send 1062, broken 1061] [21:01:41]ProducePacketName [21:01:41]name=ofd_packets/00189339 [21:01:41]OFD Sender: To server: pG, [21:01:41]CommunicateWithHost lk.salyk.kg:30040 [21:01:41]ConnectInit lk.salyk.kg [21:01:42]Connected sock=10 [21:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E A6 07 01 26 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 9C 01 00 00 F4 03 04 00 B9 B5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B E3 02 00 35 04 06 00 9F 20 39 76 95 70 BE 1A D2 68 0B C6 95 27 [21:01:42]Write to MH i2c: 01 00 00 0F 7B 8A [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: 01 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: 01 07 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: 01 07 00 0F 7B 00 00 00 00 00 55 0C F2 [21:01:42]RasterBufferAndPrint [21:01:42]line [21:01:42]line [21:01:42]line [21:01:42]line [21:01:42]line [21:01:42]written 0, free lines is 3161 [21:01:42]MH_Cut [21:01:42]Write to MH i2c: D1 01 00 16 7B 01 63 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: D1 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: D1 01 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: D1 01 00 16 7B 00 62 [21:01:42]Write to MH i2c: 01 00 00 17 7B 92 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E 7B 47 00 DC 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 39 36 35 33 34 30 10 04 04 00 9B E3 02 00 F4 03 04 00 A0 5F 1A 67 B6 04 01 00 00 A2 6E 5C 2D EB 6A FE 33 [21:01:42]CommunicateWithHost err = 0 [21:01:42]CheckOFDResponse [21:01:42]1017 (14) - 77093643461234 [21:01:42]1041 (16) - 0000000000965340 [21:01:42]1040 (4) - 189339 [21:01:42]1012 (4) - 24.10.2024 14:54 [21:01:42]1206 (1) - 0 [21:01:42]OFD Sender: Remove packet 189339 [21:01:42]ProducePacketName [21:01:42]name=ofd_packets/00189339 [21:01:42]NVStorageDeleteData [21:01:43]OFD Sender: No OFD packet to send [21:01:43]*** Cut start [21:01:43]*** Partial cut [21:01:43]*** CUTSNS_PIN = 1 [21:01:43]*** CUTSNS_PIN = 0 [21:01:43]*** Brake cut motor [21:01:44]Read from MH i2c: 01 [21:01:44]MH_I2C_Read... [21:01:44]*** Stop cut motor [21:01:44]*** Cut end [21:01:44]Read from MH i2c: 01 07 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: 01 07 00 17 7B 00 00 00 00 00 FF 0F A7 [21:01:44]process_action close_receipt done [21:01:44]requested_data is exist [21:01:44]produce_requested_data [21:01:44]requested_item fm.sn is exist - process it [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 11 00 00 [21:01:44]Write to MH i2c: E2 08 00 18 7B 80 11 00 00 00 00 00 00 0D [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 17 00 18 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [21:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:44]wFMCommunicate OK [21:01:44]requested_item fd.num is exist - process it [21:01:44]SAM_PROTO_GetFieldsCounters [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 13 00 00 [21:01:44]Write to MH i2c: E2 08 00 19 7B 80 13 00 00 00 00 00 00 10 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 62 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 62 00 19 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E3 02 00 0E 04 04 00 CF 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 3E [21:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B E3 02 00 0E 04 04 00 CF 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 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_GetFieldsCounters done [21:01:44]requested_item shift.num is exist - process it [21:01:44]requested_item shift.opened is exist - process it [21:01:44]req_shift_opened [21:01:44]FM_GetShiftState [21:01:44]SAM_PROTO_GetShiftState [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 13 01 00 [21:01:44]Write to MH i2c: E2 08 00 1A 7B 80 13 01 00 00 00 00 00 12 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 1A 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F0 [21:01:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_GetShiftState done [21:01:44]FM_GetShiftState done [21:01:44]req_shift_opened done [21:01:44]requested_item shift.open_date is exist - process it [21:01:44]req_shift_open_date [21:01:44]req_shift_open_date done [21:01:44]produce_requested_data done [21:01:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189339,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:01:44]process_action_free close_receipt [21:01:44]json_value_free [21:01:44]json_value_free done [21:01:44]process_json_proto returns [21:01:44]Send response to host [21:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189339,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:01:44]free response buf [21:01:44]execute_script done [21:01:44]execute_script returns [21:01:44]free content buf [21:01:44]Sock 9.Close socket [21:01:44]Sock 9.Thread stoped [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:15]accept exits with 8 [21:03:15]New connection [21:03:15]New thread 3067071844 created [21:03:15]Thread 3067215204 joined [21:03:15]Waiting for new connection... [21:03:15] Sock 8.Parse request [21:03:15]Sock 8.Check first char [21:03:15]Sock 8.First char is OK [21:03:15]request: POST /json_proto HTTP/1.0 [21:03:15]Method: POST [21:03:15]URL: /json_proto [21:03:15]Method is POST - this is cgi request [21:03:15]url: /json_proto [21:03:15]query_string will be loaded in cgi processing [21:03:15]execute_cgi json_proto POST (null) [21:03:15]execute_cgi path=json_proto method=POST [21:03:15]POST find Content-Length [21:03:15]Host: 172.17.42.131:8080 [21:03:15]Content-Length: 682 [21:03:15]Content-Type: application/json [21:03:15] [21:03:15]POST finish read [21:03:15]Found Content-Length = 682 [21:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 31.160, "sum" : 2084.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2084.00, "payments": [ { "type": 0, "sum" : 2084.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:15]execute_script... [21:03: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)211405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 31.160, "sum" : 2084.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2084.00, "payments": [ { "type": 0, "sum" : 2084.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:15]POST & json_proto [21:03:15]process_json_proto [21:03:15]json parsed OK: [21:03:15]protocol is kg_v1.0 [21:03:15]action value=close_receipt [21:03:15]process_action close_receipt [21:03:15]cmd_close_receipt [21:03:15]MH_GetDate [21:03:15]Write to MH i2c: F0 00 00 1B 7B 85 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 09 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 09 00 1B 7B 00 18 B6 1A 67 A0 18 CA 66 C5 [21:03:15]GetLastDocTimeStamp 1729803705 [21:03:15]current date 1729803800 [21:03:15]FM_GetShiftState [21:03:15]SAM_PROTO_GetShiftState [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 13 01 00 [21:03:15]Write to MH i2c: E2 08 00 1C 7B 80 13 01 00 00 00 00 00 14 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0E 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0E 00 1C 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F2 [21:03:15]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:03:15]wFMCommunicate OK [21:03:15]SAM_PROTO_GetShiftState done [21:03:15]FM_GetShiftState done [21:03:15]opened in 1729728961 [21:03:15]opened+sec_in_day 1729815361 [21:03:15]quantity*price = 208460 [21:03:15]sum+1 = 208461 [21:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2084.00 Внесено: 5000.00 СДАЧА: 2916.00 НСП 1% : 18.45 НДС 12% : 221.37 Наличными: 2084.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 413 24.10.2024 21:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189340 ФПД: 244124649390689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189340&fm=244124649390689&tin=02508201610067®Number=0000000000100030&sum=208400 [21:03:16]StoreToDocumentArchive [21:03:16]shift 463 fd 189340 [21:03:16]save to /storage/0463/doc_00189340 [21:03:16]save last doc name /storage/0463/doc_00189340 to /storage/kkm_last_doc_name [21:03:16]save OK [21:03:16]Clear old archive folders... [21:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:16]tlvbuf is 0174D270 [21:03:16]SAM_PROTO_ClearQueue [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 09 00 00 [21:03:16]Write to MH i2c: E2 08 00 29 7B 80 09 00 00 00 00 00 00 16 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 29 7B 00 90 00 18 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]SAM_PROTO_ClearQueue done [21:03:16]KKMCreateOFDPacket [21:03:16]OFDProtocolAddRootSTLVToBuf [21:03:16]FM_MakeSignedData [21:03:16]FM_MakeSignedData [21:03:16]SAM_PROTO_SignData [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 0D 01 02 [21:03:16]Write to MH i2c: E2 08 00 2A 7B 80 0D 01 02 00 00 00 00 1E [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 2A 7B 00 90 00 19 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]wFMCommunicate request_size=255 [21:03:16]MH_SAM_APDU [21:03: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 33 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 56 00 00 00 00 07 04 06 00 10 2E 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 18 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E3 02 00 35 04 06 00 DE [21:03:16]Write to MH i2c: E2 02 01 2B 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 33 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 56 00 00 00 00 07 04 06 00 10 2E 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 18 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E3 02 00 35 04 06 00 DE 00 00 9F [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 03 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 03 00 2B 7B 00 90 00 1A [21:03:17]RAPDU: 90 00 [21:03:17]wFMCommunicate OK [21:03:17]wFMCommunicate request_size=10 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 0D 02 02 05 07 B3 02 02 61 [21:03:17]Write to MH i2c: E2 0D 00 2C 7B 80 0D 02 02 05 00 07 B3 02 02 61 00 00 4A [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 03 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 03 00 2C 7B 00 90 00 1B [21:03:17]RAPDU: 90 00 [21:03:17]wFMCommunicate OK [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 0D 03 02 [21:03:17]Write to MH i2c: E2 08 00 2D 7B 80 0D 03 02 00 00 00 00 23 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0B 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0B 00 2D 7B 00 73 6D D2 F4 BC 21 26 07 90 00 D4 [21:03:17]RAPDU: 73 6D D2 F4 BC 21 26 07 90 00 [21:03:17]wFMCommunicate OK [21:03:17]SAM_PROTO_SignData done [21:03:17]FM_MakeSignedData done [21:03:17]CreateOFDProtocolMessage [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 11 00 00 [21:03:17]Write to MH i2c: E2 08 00 2E 7B 80 11 00 00 00 00 00 00 23 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 17 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 17 00 2E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [21:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:03:17]wFMCommunicate OK [21:03:17]CreateOFDProtocolMessage done [21:03:17]OFDSenderStorePacket 189340 [21:03:17]StoreOFDPacket docnum=189340 [21:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 B7 07 01 0A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 56 00 00 00 00 07 04 06 00 10 2E 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 18 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E3 02 00 35 04 06 00 DE 07 B3 02 02 61 73 6D D2 F4 BC 21 26 07 [21:03:17]CheckFolder [21:03:17]dirname=/storage/ofd_packets [21:03:17]CheckFolder done [21:03:17]ProducePacketName [21:03:17]name=ofd_packets/00189340 [21:03:17]NVStorageSaveData ofd_packets/00189340 [21:03:17]File name is /storage/ofd_packets/00189340 [21:03:17]Write 301 bytes [21:03:17]NVStorageSaveData done [21:03:17]OFDSenderStorePacket done [21:03:17]KKMCreateOFDPacket done [21:03:17]NVStorageSaveData kkm_last_timestamp [21:03:17]File name is /storage/kkm_last_timestamp [21:03:17]Write 4 bytes [21:03:17]NVStorageSaveData done [21:03:17]ExternCall_PrintAddStr [21:03:17]wPrintStart [21:03:17]Write to MH i2c: 01 00 00 2F 7B AA [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 2F 7B 00 00 00 00 00 FF 0F BF [21:03:17]RasterBufferAndPrint [21:03:17]line Счет N : (1)211405 [21:03:17]line ИНН: 02508201610067 [21:03:17]line Контрольно-Кассовый Чек [21:03:17]line ПРОДАЖА [21:03:17]line ТРК (МРК, ГНК) : 22 [21:03:17]line Товар: 2710124130 [21:03:17]line Аи-92-К-3 [21:03:17]line 31.160 * 66.90 [21:03:17]line = 2084.60 [21:03:17]line НДС 12% НСП 1% [21:03:17]line > о реализуемом товаре [21:03:17]line ОКРУГЛЕНИЕ: -0.60 [21:03:17]line ИТОГО: 2084.00 [21:03:17]line Внесено: 5000.00 [21:03:17]line СДАЧА: 2916.00 [21:03:17]line НСП 1% : 18.45 [21:03:17]line НДС 12% : 221.37 [21:03:17]line Наличными: 2084.00 [21:03:17]line Безнал.: 0.00 [21:03:17]line Место: АЗС № 86 "Партнер Нефть" [21:03:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:03:17]line СНО: Общий режим [21:03:17]line Чек 413 24.10.2024 21:03 [21:03:17]line Смена: 463 ФФД: 1.0 [21:03:17]line ЗНМ: 0300000155 [21:03:17]line РНМ: 0000000000100030 [21:03:17]line Версия ККМ: 001 [21:03:17]line ФМ: 0000000000965340 [21:03:17]line ФД: 189340 [21:03:17]line ФПД: 244124649390689 [21:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189340&fm=244124649390689&tin=02508201610067®Number=0000000000100030&sum=208400 [21:03:17]written 0, free lines is 4095 [21:03:17]OFD Sender: Processing packet 189340 [packets to send 1062, broken 1061] [21:03:17]ProducePacketName [21:03:17]name=ofd_packets/00189340 [21:03:17]OFD Sender: To server: pG, [21:03:17]CommunicateWithHost lk.salyk.kg:30040 [21:03:17]ConnectInit lk.salyk.kg [21:03:17]Connected sock=10 [21:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 B7 07 01 0A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 56 00 00 00 00 07 04 06 00 10 2E 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 18 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C E3 02 00 35 04 06 00 DE 07 B3 02 02 61 73 6D D2 F4 BC 21 26 07 [21:03:17]Write to MH i2c: 01 00 00 5A 7B D5 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 5A 7B 00 00 00 00 00 59 0C 41 [21:03:17]RasterBufferAndPrint [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]written 0, free lines is 3165 [21:03:17]MH_Cut [21:03:17]Write to MH i2c: D1 01 00 61 7B 01 AE [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 01 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 01 00 61 7B 00 AD [21:03:17]Write to MH i2c: 01 00 00 62 7B DD [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 65 01 47 00 0C 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 39 36 35 33 34 30 10 04 04 00 9C E3 02 00 F4 03 04 00 FF 5F 1A 67 B6 04 01 00 00 E1 47 05 E0 ED D0 8C EF [21:03:18]CommunicateWithHost err = 0 [21:03:18]CheckOFDResponse [21:03:18]1017 (14) - 77093643461234 [21:03:18]1041 (16) - 0000000000965340 [21:03:18]1040 (4) - 189340 [21:03:18]1012 (4) - 24.10.2024 14:55 [21:03:18]1206 (1) - 0 [21:03:18]OFD Sender: Remove packet 189340 [21:03:18]ProducePacketName [21:03:18]name=ofd_packets/00189340 [21:03:18]NVStorageDeleteData [21:03:18]OFD Sender: No OFD packet to send [21:03:19]*** Cut start [21:03:19]*** Partial cut [21:03:19]*** CUTSNS_PIN = 1 [21:03:19]*** CUTSNS_PIN = 0 [21:03:19]*** Brake cut motor [21:03:19]Read from MH i2c: 01 [21:03:19]MH_I2C_Read... [21:03:19]*** Stop cut motor [21:03:19]*** Cut end [21:03:19]Read from MH i2c: 01 07 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: 01 07 00 62 7B 00 00 00 00 00 FF 0F F2 [21:03:19]process_action close_receipt done [21:03:19]requested_data is exist [21:03:19]produce_requested_data [21:03:19]requested_item fm.sn is exist - process it [21:03:19]wFMCommunicate request_size=4 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 11 00 00 [21:03:19]Write to MH i2c: E2 08 00 63 7B 80 11 00 00 00 00 00 00 58 [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 17 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 17 00 63 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [21:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:03:19]wFMCommunicate OK [21:03:19]requested_item fd.num is exist - process it [21:03:19]SAM_PROTO_GetFieldsCounters [21:03:19]wFMCommunicate request_size=4 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 13 00 00 [21:03:19]Write to MH i2c: E2 08 00 64 7B 80 13 00 00 00 00 00 00 5B [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 62 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 62 00 64 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E3 02 00 0E 04 04 00 CF 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 8D [21:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C E3 02 00 0E 04 04 00 CF 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 [21:03:19]wFMCommunicate OK [21:03:20]SAM_PROTO_GetFieldsCounters done [21:03:20]requested_item shift.num is exist - process it [21:03:20]requested_item shift.opened is exist - process it [21:03:20]req_shift_opened [21:03:20]FM_GetShiftState [21:03:20]SAM_PROTO_GetShiftState [21:03:20]wFMCommunicate request_size=4 [21:03:20]MH_SAM_APDU [21:03:20]CAPDU: 80 13 01 00 [21:03:20]Write to MH i2c: E2 08 00 65 7B 80 13 01 00 00 00 00 00 5D [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:20]Read from MH i2c: E2 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: E2 0E 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: E2 0E 00 65 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3B [21:03:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:03:20]wFMCommunicate OK [21:03:20]SAM_PROTO_GetShiftState done [21:03:20]FM_GetShiftState done [21:03:20]req_shift_opened done [21:03:20]requested_item shift.open_date is exist - process it [21:03:20]req_shift_open_date [21:03:20]req_shift_open_date done [21:03:20]produce_requested_data done [21:03:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189340,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:03:20]process_action_free close_receipt [21:03:20]json_value_free [21:03:20]json_value_free done [21:03:20]process_json_proto returns [21:03:20]Send response to host [21:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189340,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:03:20]free response buf [21:03:20]execute_script done [21:03:20]execute_script returns [21:03:20]free content buf [21:03:20]Sock 8.Close socket [21:03:20]Sock 8.Thread stoped [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:00]accept exits with 9 [21:05:00]New connection [21:05:00]New thread 3067215204 created [21:05:00]Thread 3067071844 joined [21:05:00]Waiting for new connection... [21:05:00] Sock 9.Parse request [21:05:00]Sock 9.Check first char [21:05:00]Sock 9.First char is OK [21:05:00]request: POST /json_proto HTTP/1.0 [21:05:00]Method: POST [21:05:00]URL: /json_proto [21:05:00]Method is POST - this is cgi request [21:05:00]url: /json_proto [21:05:00]query_string will be loaded in cgi processing [21:05:00]execute_cgi json_proto POST (null) [21:05:00]execute_cgi path=json_proto method=POST [21:05:00]POST find Content-Length [21:05:00]Host: 172.17.42.131:8080 [21:05:00]Content-Length: 682 [21:05:00]Content-Type: application/json [21:05:00] [21:05:00]POST finish read [21:05:00]Found Content-Length = 682 [21:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:00]execute_script... [21:05: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)211406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:00]POST & json_proto [21:05:00]process_json_proto [21:05:00]json parsed OK: [21:05:00]protocol is kg_v1.0 [21:05:00]action value=close_receipt [21:05:00]process_action close_receipt [21:05:00]cmd_close_receipt [21:05:00]MH_GetDate [21:05:00]Write to MH i2c: F0 00 00 66 7B D0 [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: F0 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: F0 09 00 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: F0 09 00 66 7B 00 81 B6 1A 67 A0 18 CA 66 79 [21:05:00]GetLastDocTimeStamp 1729803800 [21:05:00]current date 1729803905 [21:05:00]FM_GetShiftState [21:05:00]SAM_PROTO_GetShiftState [21:05:00]wFMCommunicate request_size=4 [21:05:00]MH_SAM_APDU [21:05:00]CAPDU: 80 13 01 00 [21:05:00]Write to MH i2c: E2 08 00 67 7B 80 13 01 00 00 00 00 00 5F [21:05:00]Write i2c OK [21:05:00]MH_I2C_Read... [21:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:00]Read from MH i2c: E2 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: E2 0E 00 [21:05:00]MH_I2C_Read... [21:05:00]Read from MH i2c: E2 0E 00 67 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3D [21:05:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:05:00]wFMCommunicate OK [21:05:00]SAM_PROTO_GetShiftState done [21:05:00]FM_GetShiftState done [21:05:00]opened in 1729728961 [21:05:00]opened+sec_in_day 1729815361 [21:05:00]quantity*price = 100015 [21:05:00]sum+1 = 100017 [21:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 414 24.10.2024 21:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189341 ФПД: 72455976875774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189341&fm=72455976875774&tin=02508201610067®Number=0000000000100030&sum=100000 [21:05:01]StoreToDocumentArchive [21:05:01]shift 463 fd 189341 [21:05:01]save to /storage/0463/doc_00189341 [21:05:01]save last doc name /storage/0463/doc_00189341 to /storage/kkm_last_doc_name [21:05:01]save OK [21:05:01]Clear old archive folders... [21:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:01]tlvbuf is 0160C8C0 [21:05:01]SAM_PROTO_ClearQueue [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 09 00 00 [21:05:01]Write to MH i2c: E2 08 00 74 7B 80 09 00 00 00 00 00 00 61 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 74 7B 00 90 00 63 [21:05:01]RAPDU: 90 00 [21:05:01]wFMCommunicate OK [21:05:01]SAM_PROTO_ClearQueue done [21:05:01]KKMCreateOFDPacket [21:05:01]OFDProtocolAddRootSTLVToBuf [21:05:01]FM_MakeSignedData [21:05:01]FM_MakeSignedData [21:05:01]SAM_PROTO_SignData [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 0D 01 02 [21:05:01]Write to MH i2c: E2 08 00 75 7B 80 0D 01 02 00 00 00 00 69 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 75 7B 00 90 00 64 [21:05:01]RAPDU: 90 00 [21:05:01]wFMCommunicate OK [21:05:01]wFMCommunicate request_size=255 [21:05:01]MH_SAM_APDU [21:05: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 81 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E3 02 00 35 04 06 00 41 [21:05:01]Write to MH i2c: E2 02 01 76 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 81 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E3 02 00 35 04 06 00 41 00 00 C0 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 76 7B 00 90 00 65 [21:05:01]RAPDU: 90 00 [21:05:01]wFMCommunicate OK [21:05:01]wFMCommunicate request_size=10 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 0D 02 02 05 E5 F8 C3 76 FE [21:05:01]Write to MH i2c: E2 0D 00 77 7B 80 0D 02 02 05 00 E5 F8 C3 76 FE 00 00 8A [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 03 00 77 7B 00 90 00 66 [21:05:01]RAPDU: 90 00 [21:05:01]wFMCommunicate OK [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 0D 03 02 [21:05:01]Write to MH i2c: E2 08 00 78 7B 80 0D 03 02 00 00 00 00 6E [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0B 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 0B 00 78 7B 00 1A 9F FA 27 4A 70 CF C6 90 00 98 [21:05:02]RAPDU: 1A 9F FA 27 4A 70 CF C6 90 00 [21:05:02]wFMCommunicate OK [21:05:02]SAM_PROTO_SignData done [21:05:02]FM_MakeSignedData done [21:05:02]CreateOFDProtocolMessage [21:05:02]wFMCommunicate request_size=4 [21:05:02]MH_SAM_APDU [21:05:02]CAPDU: 80 11 00 00 [21:05:02]Write to MH i2c: E2 08 00 79 7B 80 11 00 00 00 00 00 00 6E [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:02]Read from MH i2c: E2 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 17 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: E2 17 00 79 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [21:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:05:02]wFMCommunicate OK [21:05:02]CreateOFDProtocolMessage done [21:05:02]OFDSenderStorePacket 189341 [21:05:02]StoreOFDPacket docnum=189341 [21:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F5 F1 07 01 8F 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 81 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E3 02 00 35 04 06 00 41 E5 F8 C3 76 FE 1A 9F FA 27 4A 70 CF C6 [21:05:02]CheckFolder [21:05:02]dirname=/storage/ofd_packets [21:05:02]CheckFolder done [21:05:02]ProducePacketName [21:05:02]name=ofd_packets/00189341 [21:05:02]NVStorageSaveData ofd_packets/00189341 [21:05:02]File name is /storage/ofd_packets/00189341 [21:05:02]Write 301 bytes [21:05:02]NVStorageSaveData done [21:05:02]OFDSenderStorePacket done [21:05:02]KKMCreateOFDPacket done [21:05:02]NVStorageSaveData kkm_last_timestamp [21:05:02]File name is /storage/kkm_last_timestamp [21:05:02]Write 4 bytes [21:05:02]NVStorageSaveData done [21:05:02]ExternCall_PrintAddStr [21:05:02]wPrintStart [21:05:02]Write to MH i2c: 01 00 00 7A 7B F5 [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 07 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 07 00 7A 7B 00 00 00 00 00 FF 0F 0A [21:05:02]RasterBufferAndPrint [21:05:02]line Счет N : (1)211406 [21:05:02]line ИНН: 02508201610067 [21:05:02]line Контрольно-Кассовый Чек [21:05:02]line ПРОДАЖА [21:05:02]line ТРК (МРК, ГНК) : 12 [21:05:02]line Товар: 2710124130 [21:05:02]line Аи-92-К-3 [21:05:02]line 14.950 * 66.90 [21:05:02]line = 1000.16 [21:05:02]line НДС 12% НСП 1% [21:05:02]line > о реализуемом товаре [21:05:02]line ОКРУГЛЕНИЕ: -0.16 [21:05:02]line ИТОГО: 1000.00 [21:05:02]line Внесено: 1000.00 [21:05:02]line СДАЧА: 0.00 [21:05:02]line НСП 1% : 8.85 [21:05:02]line НДС 12% : 106.21 [21:05:02]line Наличными: 1000.00 [21:05:02]line Безнал.: 0.00 [21:05:02]line Место: АЗС № 86 "Партнер Нефть" [21:05:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:05:02]line СНО: Общий режим [21:05:02]line Чек 414 24.10.2024 21:05 [21:05:02]line Смена: 463 ФФД: 1.0 [21:05:02]line ЗНМ: 0300000155 [21:05:02]line РНМ: 0000000000100030 [21:05:02]line Версия ККМ: 001 [21:05:02]line ФМ: 0000000000965340 [21:05:02]line ФД: 189341 [21:05:02]line ФПД: 72455976875774 [21:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189341&fm=72455976875774&tin=02508201610067®Number=0000000000100030&sum=100000 [21:05:02]written 0, free lines is 4095 [21:05:02]OFD Sender: Processing packet 189341 [packets to send 1062, broken 1061] [21:05:02]ProducePacketName [21:05:02]name=ofd_packets/00189341 [21:05:02]OFD Sender: To server: pG, [21:05:02]CommunicateWithHost lk.salyk.kg:30040 [21:05:02]ConnectInit lk.salyk.kg [21:05:02]Write to MH i2c: 01 00 00 A5 7B 20 [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 07 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: 01 07 00 A5 7B 00 00 00 00 00 4C 0C 7F [21:05:02]RasterBufferAndPrint [21:05:02]line [21:05:02]line [21:05:02]line [21:05:02]line [21:05:02]line [21:05:02]written 0, free lines is 3152 [21:05:02]MH_Cut [21:05:02]Write to MH i2c: D1 01 00 AC 7B 01 F9 [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: D1 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: D1 01 00 [21:05:02]MH_I2C_Read... [21:05:02]Read from MH i2c: D1 01 00 AC 7B 00 F8 [21:05:02]Write to MH i2c: 01 00 00 AD 7B 28 [21:05:02]Write i2c OK [21:05:02]MH_I2C_Read... [21:05:02]Connected sock=10 [21:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F5 F1 07 01 8F 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 81 B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D E3 02 00 35 04 06 00 41 E5 F8 C3 76 FE 1A 9F FA 27 4A 70 CF C6 [21:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 19 47 00 E1 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 39 36 35 33 34 30 10 04 04 00 9D E3 02 00 F4 03 04 00 68 60 1A 67 B6 04 01 00 00 5F 32 BD A4 68 6F 8D DE [21:05:03]CommunicateWithHost err = 0 [21:05:03]CheckOFDResponse [21:05:03]1017 (14) - 77093643461234 [21:05:03]1041 (16) - 0000000000965340 [21:05:03]1040 (4) - 189341 [21:05:03]1012 (4) - 24.10.2024 14:57 [21:05:03]1206 (1) - 0 [21:05:03]OFD Sender: Remove packet 189341 [21:05:03]ProducePacketName [21:05:03]name=ofd_packets/00189341 [21:05:03]NVStorageDeleteData [21:05:03]OFD Sender: No OFD packet to send [21:05:03]*** Cut start [21:05:03]*** Partial cut [21:05:03]*** CUTSNS_PIN = 1 [21:05:03]*** CUTSNS_PIN = 0 [21:05:04]*** Brake cut motor [21:05:04]Read from MH i2c: 01 [21:05:04]MH_I2C_Read... [21:05:04]*** Stop cut motor [21:05:04]*** Cut end [21:05:04]Read from MH i2c: 01 07 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 07 00 AD 7B 00 00 00 00 00 FF 0F 3D [21:05:04]process_action close_receipt done [21:05:04]requested_data is exist [21:05:04]produce_requested_data [21:05:04]requested_item fm.sn is exist - process it [21:05:04]wFMCommunicate request_size=4 [21:05:04]MH_SAM_APDU [21:05:04]CAPDU: 80 11 00 00 [21:05:04]Write to MH i2c: E2 08 00 AE 7B 80 11 00 00 00 00 00 00 A3 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:04]Read from MH i2c: E2 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 17 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 17 00 AE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [21:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:05:04]wFMCommunicate OK [21:05:04]requested_item fd.num is exist - process it [21:05:04]SAM_PROTO_GetFieldsCounters [21:05:04]wFMCommunicate request_size=4 [21:05:04]MH_SAM_APDU [21:05:04]CAPDU: 80 13 00 00 [21:05:04]Write to MH i2c: E2 08 00 AF 7B 80 13 00 00 00 00 00 00 A6 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:04]Read from MH i2c: E2 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 62 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 62 00 AF 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E3 02 00 0E 04 04 00 CF 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 DC [21:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D E3 02 00 0E 04 04 00 CF 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 [21:05:04]wFMCommunicate OK [21:05:04]SAM_PROTO_GetFieldsCounters done [21:05:04]requested_item shift.num is exist - process it [21:05:04]requested_item shift.opened is exist - process it [21:05:04]req_shift_opened [21:05:04]FM_GetShiftState [21:05:04]SAM_PROTO_GetShiftState [21:05:04]wFMCommunicate request_size=4 [21:05:04]MH_SAM_APDU [21:05:04]CAPDU: 80 13 01 00 [21:05:04]Write to MH i2c: E2 08 00 B0 7B 80 13 01 00 00 00 00 00 A8 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:04]Read from MH i2c: E2 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 0E 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 0E 00 B0 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 86 [21:05:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:05:04]wFMCommunicate OK [21:05:04]SAM_PROTO_GetShiftState done [21:05:04]FM_GetShiftState done [21:05:04]req_shift_opened done [21:05:04]requested_item shift.open_date is exist - process it [21:05:04]req_shift_open_date [21:05:04]req_shift_open_date done [21:05:04]produce_requested_data done [21:05:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189341,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:05:04]process_action_free close_receipt [21:05:04]json_value_free [21:05:04]json_value_free done [21:05:04]process_json_proto returns [21:05:04]Send response to host [21:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189341,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:05:04]free response buf [21:05:04]execute_script done [21:05:04]execute_script returns [21:05:04]free content buf [21:05:04]Sock 9.Close socket [21:05:04]Sock 9.Thread stoped [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:00]accept exits with 8 [21:06:00]New connection [21:06:00]New thread 3067071844 created [21:06:00]Thread 3067215204 joined [21:06:00]Waiting for new connection... [21:06:00] Sock 8.Parse request [21:06:00]Sock 8.Check first char [21:06:00]Sock 8.First char is OK [21:06:00]request: POST /json_proto HTTP/1.0 [21:06:00]Method: POST [21:06:00]URL: /json_proto [21:06:00]Method is POST - this is cgi request [21:06:00]url: /json_proto [21:06:00]query_string will be loaded in cgi processing [21:06:00]execute_cgi json_proto POST (null) [21:06:00]execute_cgi path=json_proto method=POST [21:06:00]POST find Content-Length [21:06:00]Host: 172.17.42.131:8080 [21:06:00]Content-Length: 682 [21:06:00]Content-Type: application/json [21:06:00] [21:06:00]POST finish read [21:06:00]Found Content-Length = 682 [21:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:00]execute_script... [21:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:00]POST & json_proto [21:06:00]process_json_proto [21:06:00]json parsed OK: [21:06:00]protocol is kg_v1.0 [21:06:00]action value=close_receipt [21:06:00]process_action close_receipt [21:06:00]cmd_close_receipt [21:06:00]MH_GetDate [21:06:00]Write to MH i2c: F0 00 00 B1 7B 1B [21:06:00]Write i2c OK [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: F0 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: F0 09 00 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: F0 09 00 B1 7B 00 BE B6 1A 67 A0 18 CA 66 01 [21:06:00]GetLastDocTimeStamp 1729803905 [21:06:00]current date 1729803966 [21:06:00]FM_GetShiftState [21:06:00]SAM_PROTO_GetShiftState [21:06:00]wFMCommunicate request_size=4 [21:06:00]MH_SAM_APDU [21:06:00]CAPDU: 80 13 01 00 [21:06:00]Write to MH i2c: E2 08 00 B2 7B 80 13 01 00 00 00 00 00 AA [21:06:00]Write i2c OK [21:06:00]MH_I2C_Read... [21:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:00]Read from MH i2c: E2 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: E2 0E 00 [21:06:00]MH_I2C_Read... [21:06:00]Read from MH i2c: E2 0E 00 B2 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 88 [21:06:00]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:06:00]wFMCommunicate OK [21:06:00]SAM_PROTO_GetShiftState done [21:06:00]FM_GetShiftState done [21:06:00]opened in 1729728961 [21:06:00]opened+sec_in_day 1729815361 [21:06:00]quantity*price = 100015 [21:06:00]sum+1 = 100017 [21:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 415 24.10.2024 21:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189342 ФПД: 126837564386374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189342&fm=126837564386374&tin=02508201610067®Number=0000000000100030&sum=100000 [21:06:02]StoreToDocumentArchive [21:06:02]shift 463 fd 189342 [21:06:02]save to /storage/0463/doc_00189342 [21:06:02]save last doc name /storage/0463/doc_00189342 to /storage/kkm_last_doc_name [21:06:02]save OK [21:06:02]Clear old archive folders... [21:06:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:02]tlvbuf is 01517AF0 [21:06:02]SAM_PROTO_ClearQueue [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 09 00 00 [21:06:02]Write to MH i2c: E2 08 00 BF 7B 80 09 00 00 00 00 00 00 AC [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 BF 7B 00 90 00 AE [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]SAM_PROTO_ClearQueue done [21:06:02]KKMCreateOFDPacket [21:06:02]OFDProtocolAddRootSTLVToBuf [21:06:02]FM_MakeSignedData [21:06:02]FM_MakeSignedData [21:06:02]SAM_PROTO_SignData [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 01 02 [21:06:02]Write to MH i2c: E2 08 00 C0 7B 80 0D 01 02 00 00 00 00 B4 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 C0 7B 00 90 00 AF [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=255 [21:06:02]MH_SAM_APDU [21:06: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BE B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E3 02 00 35 04 06 00 73 [21:06:02]Write to MH i2c: E2 02 01 C1 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BE B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E3 02 00 35 04 06 00 73 00 00 7C [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 C1 7B 00 90 00 B0 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=10 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 02 02 05 5B AB F8 2C 46 [21:06:02]Write to MH i2c: E2 0D 00 C2 7B 80 0D 02 02 05 00 5B AB F8 2C 46 00 00 31 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 03 00 C2 7B 00 90 00 B1 [21:06:02]RAPDU: 90 00 [21:06:02]wFMCommunicate OK [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 0D 03 02 [21:06:02]Write to MH i2c: E2 08 00 C3 7B 80 0D 03 02 00 00 00 00 B9 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0B 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0B 00 C3 7B 00 B8 A0 ED 0A 7B DC D2 19 90 00 4B [21:06:02]RAPDU: B8 A0 ED 0A 7B DC D2 19 90 00 [21:06:02]wFMCommunicate OK [21:06:02]SAM_PROTO_SignData done [21:06:02]FM_MakeSignedData done [21:06:02]CreateOFDProtocolMessage [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 11 00 00 [21:06:02]Write to MH i2c: E2 08 00 C4 7B 80 11 00 00 00 00 00 00 B9 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 17 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 17 00 C4 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [21:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:06:02]wFMCommunicate OK [21:06:02]CreateOFDProtocolMessage done [21:06:02]OFDSenderStorePacket 189342 [21:06:02]StoreOFDPacket docnum=189342 [21:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 66 07 01 F5 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BE B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E3 02 00 35 04 06 00 73 5B AB F8 2C 46 B8 A0 ED 0A 7B DC D2 19 [21:06:02]CheckFolder [21:06:02]dirname=/storage/ofd_packets [21:06:02]CheckFolder done [21:06:02]ProducePacketName [21:06:02]name=ofd_packets/00189342 [21:06:02]NVStorageSaveData ofd_packets/00189342 [21:06:02]File name is /storage/ofd_packets/00189342 [21:06:02]Write 301 bytes [21:06:02]NVStorageSaveData done [21:06:02]OFDSenderStorePacket done [21:06:02]KKMCreateOFDPacket done [21:06:02]NVStorageSaveData kkm_last_timestamp [21:06:02]File name is /storage/kkm_last_timestamp [21:06:02]Write 4 bytes [21:06:02]NVStorageSaveData done [21:06:02]ExternCall_PrintAddStr [21:06:02]wPrintStart [21:06:02]Write to MH i2c: 01 00 00 C5 7B 40 [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 07 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: 01 07 00 C5 7B 00 00 00 00 00 FF 0F 55 [21:06:02]RasterBufferAndPrint [21:06:02]line Счет N : (1)211407 [21:06:02]line ИНН: 02508201610067 [21:06:02]line Контрольно-Кассовый Чек [21:06:02]line ПРОДАЖА [21:06:02]line ТРК (МРК, ГНК) : 32 [21:06:02]line Товар: 2710124130 [21:06:02]line Аи-92-К-3 [21:06:02]line 14.950 * 66.90 [21:06:02]line = 1000.16 [21:06:02]line НДС 12% НСП 1% [21:06:02]line > о реализуемом товаре [21:06:02]line ОКРУГЛЕНИЕ: -0.16 [21:06:02]line ИТОГО: 1000.00 [21:06:02]line Внесено: 1000.00 [21:06:02]line СДАЧА: 0.00 [21:06:02]line НСП 1% : 8.85 [21:06:02]line НДС 12% : 106.21 [21:06:02]line Наличными: 1000.00 [21:06:02]line Безнал.: 0.00 [21:06:02]line Место: АЗС № 86 "Партнер Нефть" [21:06:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:06:02]line СНО: Общий режим [21:06:02]line Чек 415 24.10.2024 21:06 [21:06:02]line Смена: 463 ФФД: 1.0 [21:06:02]line ЗНМ: 0300000155 [21:06:02]line РНМ: 0000000000100030 [21:06:02]line Версия ККМ: 001 [21:06:02]line ФМ: 0000000000965340 [21:06:02]line ФД: 189342 [21:06:02]line ФПД: 126837564386374 [21:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189342&fm=126837564386374&tin=02508201610067®Number=0000000000100030&sum=100000 [21:06:02]written 0, free lines is 4095 [21:06:02]OFD Sender: Processing packet 189342 [packets to send 1062, broken 1061] [21:06:02]ProducePacketName [21:06:02]name=ofd_packets/00189342 [21:06:02]OFD Sender: To server: pG, [21:06:02]CommunicateWithHost lk.salyk.kg:30040 [21:06:02]ConnectInit lk.salyk.kg [21:06:02]Connected sock=9 [21:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 66 07 01 F5 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 BE B6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E E3 02 00 35 04 06 00 73 5B AB F8 2C 46 B8 A0 ED 0A 7B DC D2 19 [21:06:03]Write to MH i2c: 01 00 00 F0 7B 6B [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 F0 7B 00 00 00 00 00 50 0C CE [21:06:03]RasterBufferAndPrint [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]line [21:06:03]written 0, free lines is 3156 [21:06:03]MH_Cut [21:06:03]Write to MH i2c: D1 01 00 F7 7B 01 44 [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 01 00 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: D1 01 00 F7 7B 00 43 [21:06:03]Write to MH i2c: 01 00 00 F8 7B 73 [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D4 9D 47 00 24 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 39 36 35 33 34 30 10 04 04 00 9E E3 02 00 F4 03 04 00 A5 60 1A 67 B6 04 01 00 00 2F 70 B9 CC 52 E4 29 59 [21:06:03]CommunicateWithHost err = 0 [21:06:03]CheckOFDResponse [21:06:03]1017 (14) - 77093643461234 [21:06:03]1041 (16) - 0000000000965340 [21:06:03]1040 (4) - 189342 [21:06:03]1012 (4) - 24.10.2024 14:58 [21:06:03]1206 (1) - 0 [21:06:03]OFD Sender: Remove packet 189342 [21:06:03]ProducePacketName [21:06:03]name=ofd_packets/00189342 [21:06:03]NVStorageDeleteData [21:06:03]OFD Sender: No OFD packet to send [21:06:04]*** Cut start [21:06:04]*** Partial cut [21:06:04]*** CUTSNS_PIN = 1 [21:06:04]*** CUTSNS_PIN = 0 [21:06:04]*** Brake cut motor [21:06:04]Read from MH i2c: 01 [21:06:04]MH_I2C_Read... [21:06:04]*** Stop cut motor [21:06:04]*** Cut end [21:06:04]Read from MH i2c: 01 07 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: 01 07 00 F8 7B 00 00 00 00 00 FF 0F 88 [21:06:04]process_action close_receipt done [21:06:04]requested_data is exist [21:06:04]produce_requested_data [21:06:04]requested_item fm.sn is exist - process it [21:06:05]wFMCommunicate request_size=4 [21:06:05]MH_SAM_APDU [21:06:05]CAPDU: 80 11 00 00 [21:06:05]Write to MH i2c: E2 08 00 F9 7B 80 11 00 00 00 00 00 00 EE [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:05]Read from MH i2c: E2 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 17 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 17 00 F9 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [21:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:06:05]wFMCommunicate OK [21:06:05]requested_item fd.num is exist - process it [21:06:05]SAM_PROTO_GetFieldsCounters [21:06:05]wFMCommunicate request_size=4 [21:06:05]MH_SAM_APDU [21:06:05]CAPDU: 80 13 00 00 [21:06:05]Write to MH i2c: E2 08 00 FA 7B 80 13 00 00 00 00 00 00 F1 [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:05]Read from MH i2c: E2 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 62 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 62 00 FA 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E3 02 00 0E 04 04 00 CF 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 2B [21:06:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E E3 02 00 0E 04 04 00 CF 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 [21:06:05]wFMCommunicate OK [21:06:05]SAM_PROTO_GetFieldsCounters done [21:06:05]requested_item shift.num is exist - process it [21:06:05]requested_item shift.opened is exist - process it [21:06:05]req_shift_opened [21:06:05]FM_GetShiftState [21:06:05]SAM_PROTO_GetShiftState [21:06:05]wFMCommunicate request_size=4 [21:06:05]MH_SAM_APDU [21:06:05]CAPDU: 80 13 01 00 [21:06:05]Write to MH i2c: E2 08 00 FB 7B 80 13 01 00 00 00 00 00 F3 [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:05]Read from MH i2c: E2 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 0E 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: E2 0E 00 FB 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D1 [21:06:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:06:05]wFMCommunicate OK [21:06:05]SAM_PROTO_GetShiftState done [21:06:05]FM_GetShiftState done [21:06:05]req_shift_opened done [21:06:05]requested_item shift.open_date is exist - process it [21:06:05]req_shift_open_date [21:06:05]req_shift_open_date done [21:06:05]produce_requested_data done [21:06:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189342,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:06:05]process_action_free close_receipt [21:06:05]json_value_free [21:06:05]json_value_free done [21:06:05]process_json_proto returns [21:06:05]Send response to host [21:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189342,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:06:05]free response buf [21:06:05]execute_script done [21:06:05]execute_script returns [21:06:05]free content buf [21:06:05]Sock 8.Close socket [21:06:05]Sock 8.Thread stoped [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:10]accept exits with 10 [21:15:10]New connection [21:15:10]New thread 3067215204 created [21:15:10]Thread 3067071844 joined [21:15:10]Waiting for new connection... [21:15:10] Sock 10.Parse request [21:15:10]Sock 10.Check first char [21:15:10]Sock 10.First char is OK [21:15:10]request: POST /json_proto HTTP/1.0 [21:15:10]Method: POST [21:15:10]URL: /json_proto [21:15:10]Method is POST - this is cgi request [21:15:10]url: /json_proto [21:15:10]query_string will be loaded in cgi processing [21:15:10]execute_cgi json_proto POST (null) [21:15:10]execute_cgi path=json_proto method=POST [21:15:10]POST find Content-Length [21:15:10]Host: 172.17.42.131:8080 [21:15:10]Content-Length: 688 [21:15:10]Content-Type: application/json [21:15:10] [21:15:10]POST finish read [21:15:10]Found Content-Length = 688 [21:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [21:15:10]execute_script... [21:15: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)211408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "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" ] } } [21:15:10]POST & json_proto [21:15:10]process_json_proto [21:15:10]json parsed OK: [21:15:10]protocol is kg_v1.0 [21:15:10]action value=close_receipt [21:15:10]process_action close_receipt [21:15:10]cmd_close_receipt [21:15:10]MH_GetDate [21:15:10]Write to MH i2c: F0 00 00 FC 7B 66 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: F0 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: F0 09 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: F0 09 00 FC 7B 00 E3 B8 1A 67 A0 18 CA 66 73 [21:15:10]GetLastDocTimeStamp 1729803966 [21:15:10]current date 1729804515 [21:15:10]FM_GetShiftState [21:15:10]SAM_PROTO_GetShiftState [21:15:10]wFMCommunicate request_size=4 [21:15:10]MH_SAM_APDU [21:15:10]CAPDU: 80 13 01 00 [21:15:10]Write to MH i2c: E2 08 00 FD 7B 80 13 01 00 00 00 00 00 F5 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:10]Read from MH i2c: E2 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 0E 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: E2 0E 00 FD 7B 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 D3 [21:15:10]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:15:10]wFMCommunicate OK [21:15:10]SAM_PROTO_GetShiftState done [21:15:10]FM_GetShiftState done [21:15:10]opened in 1729728961 [21:15:10]opened+sec_in_day 1729815361 [21:15:10]quantity*price = 300076 [21:15:10]sum+1 = 300077 [21:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 416 24.10.2024 21:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189343 ФПД: 8065644611635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189343&fm=8065644611635&tin=02508201610067®Number=0000000000100030&sum=300000 [21:15:11]StoreToDocumentArchive [21:15:11]shift 463 fd 189343 [21:15:11]save to /storage/0463/doc_00189343 [21:15:11]save last doc name /storage/0463/doc_00189343 to /storage/kkm_last_doc_name [21:15:11]save OK [21:15:11]Clear old archive folders... [21:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:15:11]tlvbuf is 01737520 [21:15:11]SAM_PROTO_ClearQueue [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 09 00 00 [21:15:11]Write to MH i2c: E2 08 00 0A 7C 80 09 00 00 00 00 00 00 F8 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 0A 7C 00 90 00 FA [21:15:11]RAPDU: 90 00 [21:15:11]wFMCommunicate OK [21:15:11]SAM_PROTO_ClearQueue done [21:15:11]KKMCreateOFDPacket [21:15:11]OFDProtocolAddRootSTLVToBuf [21:15:11]FM_MakeSignedData [21:15:11]FM_MakeSignedData [21:15:11]SAM_PROTO_SignData [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 0D 01 02 [21:15:11]Write to MH i2c: E2 08 00 0B 7C 80 0D 01 02 00 00 00 00 00 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 0B 7C 00 90 00 FB [21:15:11]RAPDU: 90 00 [21:15:11]wFMCommunicate OK [21:15:11]wFMCommunicate request_size=255 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 A0 01 00 00 F4 03 04 00 E3 B8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E3 02 [21:15:11]Write to MH i2c: E2 02 01 0C 7C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 A0 01 00 00 F4 03 04 00 E3 B8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E3 02 00 00 50 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 0C 7C 00 90 00 FC [21:15:11]RAPDU: 90 00 [21:15:11]wFMCommunicate OK [21:15:11]wFMCommunicate request_size=16 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 07 55 ED E1 C8 33 [21:15:11]Write to MH i2c: E2 13 00 0D 7C 80 0D 02 02 0B 00 00 35 04 06 00 07 55 ED E1 C8 33 00 00 7D [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 03 00 0D 7C 00 90 00 FD [21:15:11]RAPDU: 90 00 [21:15:11]wFMCommunicate OK [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 0D 03 02 [21:15:11]Write to MH i2c: E2 08 00 0E 7C 80 0D 03 02 00 00 00 00 05 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0B 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0B 00 0E 7C 00 38 AF 8F F8 CB 9B 7A DB 90 00 2F [21:15:12]RAPDU: 38 AF 8F F8 CB 9B 7A DB 90 00 [21:15:12]wFMCommunicate OK [21:15:12]SAM_PROTO_SignData done [21:15:12]FM_MakeSignedData done [21:15:12]CreateOFDProtocolMessage [21:15:12]wFMCommunicate request_size=4 [21:15:12]MH_SAM_APDU [21:15:12]CAPDU: 80 11 00 00 [21:15:12]Write to MH i2c: E2 08 00 0F 7C 80 11 00 00 00 00 00 00 05 [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 17 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 17 00 0F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [21:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:15:12]wFMCommunicate OK [21:15:12]CreateOFDProtocolMessage done [21:15:12]OFDSenderStorePacket 189343 [21:15:12]StoreOFDPacket docnum=189343 [21:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 98 BA 0D 01 19 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 A0 01 00 00 F4 03 04 00 E3 B8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E3 02 00 35 04 06 00 07 55 ED E1 C8 33 38 AF 8F F8 CB 9B 7A DB [21:15:12]CheckFolder [21:15:12]dirname=/storage/ofd_packets [21:15:12]CheckFolder done [21:15:12]ProducePacketName [21:15:12]name=ofd_packets/00189343 [21:15:12]NVStorageSaveData ofd_packets/00189343 [21:15:12]File name is /storage/ofd_packets/00189343 [21:15:12]Write 307 bytes [21:15:12]NVStorageSaveData done [21:15:12]OFDSenderStorePacket done [21:15:12]KKMCreateOFDPacket done [21:15:12]NVStorageSaveData kkm_last_timestamp [21:15:12]File name is /storage/kkm_last_timestamp [21:15:12]Write 4 bytes [21:15:12]NVStorageSaveData done [21:15:12]ExternCall_PrintAddStr [21:15:12]wPrintStart [21:15:12]Write to MH i2c: 01 00 00 10 7C 8C [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 07 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 07 00 10 7C 00 00 00 00 00 FF 0F A1 [21:15:12]RasterBufferAndPrint [21:15:12]line Счет N : (1)211408 [21:15:12]line ИНН: 02508201610067 [21:15:12]line Контрольно-Кассовый Чек [21:15:12]line ПРОДАЖА [21:15:12]line ТРК (МРК, ГНК) : 31 [21:15:12]line Товар: 2710194210 [21:15:12]line D-ENERGY ДТ-К-5 [21:15:12]line 38.870 * 77.20 [21:15:12]line = 3000.76 [21:15:12]line НДС 12% НСП 1% [21:15:12]line > о реализуемом товаре [21:15:12]line ОКРУГЛЕНИЕ: -0.76 [21:15:12]line ИТОГО: 3000.00 [21:15:12]line Внесено: 3000.00 [21:15:12]line СДАЧА: 0.00 [21:15:12]line НСП 1% : 26.55 [21:15:12]line НДС 12% : 318.66 [21:15:12]line Наличными: 3000.00 [21:15:12]line Безнал.: 0.00 [21:15:12]line Место: АЗС № 86 "Партнер Нефть" [21:15:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:15:12]line СНО: Общий режим [21:15:12]line Чек 416 24.10.2024 21:15 [21:15:12]line Смена: 463 ФФД: 1.0 [21:15:12]line ЗНМ: 0300000155 [21:15:12]line РНМ: 0000000000100030 [21:15:12]line Версия ККМ: 001 [21:15:12]line ФМ: 0000000000965340 [21:15:12]line ФД: 189343 [21:15:12]line ФПД: 8065644611635 [21:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189343&fm=8065644611635&tin=02508201610067®Number=0000000000100030&sum=300000 [21:15:12]OFD Sender: Processing packet 189343 [packets to send 1062, broken 1061] [21:15:12]ProducePacketName [21:15:12]name=ofd_packets/00189343 [21:15:12]OFD Sender: To server: pG, [21:15:12]CommunicateWithHost lk.salyk.kg:30040 [21:15:12]ConnectInit lk.salyk.kg [21:15:12]written 0, free lines is 4095 [21:15:12]Connected sock=8 [21:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 98 BA 0D 01 19 F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 A0 01 00 00 F4 03 04 00 E3 B8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F E3 02 00 35 04 06 00 07 55 ED E1 C8 33 38 AF 8F F8 CB 9B 7A DB [21:15:12]Write to MH i2c: 01 00 00 3B 7C B7 [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 07 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: 01 07 00 3B 7C 00 00 00 00 00 4C 0C 16 [21:15:12]RasterBufferAndPrint [21:15:12]line [21:15:12]line [21:15:12]line [21:15:12]line [21:15:12]line [21:15:12]written 0, free lines is 3152 [21:15:12]MH_Cut [21:15:12]Write to MH i2c: D1 01 00 42 7C 01 90 [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: D1 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: D1 01 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: D1 01 00 42 7C 00 8F [21:15:12]Write to MH i2c: 01 00 00 43 7C BF [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 72 47 00 03 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 39 36 35 33 34 30 10 04 04 00 9F E3 02 00 F4 03 04 00 CA 62 1A 67 B6 04 01 00 00 25 D6 5C 58 DA 7E 1E F3 [21:15:12]CommunicateWithHost err = 0 [21:15:12]CheckOFDResponse [21:15:12]1017 (14) - 77093643461234 [21:15:12]1041 (16) - 0000000000965340 [21:15:12]1040 (4) - 189343 [21:15:12]1012 (4) - 24.10.2024 15:07 [21:15:12]1206 (1) - 0 [21:15:12]OFD Sender: Remove packet 189343 [21:15:12]ProducePacketName [21:15:12]name=ofd_packets/00189343 [21:15:12]NVStorageDeleteData [21:15:13]OFD Sender: No OFD packet to send [21:15:13]*** Cut start [21:15:13]*** Partial cut [21:15:13]*** CUTSNS_PIN = 1 [21:15:13]*** CUTSNS_PIN = 0 [21:15:14]*** Brake cut motor [21:15:14]Read from MH i2c: 01 [21:15:14]MH_I2C_Read... [21:15:14]*** Stop cut motor [21:15:14]*** Cut end [21:15:14]Read from MH i2c: 01 07 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: 01 07 00 43 7C 00 00 00 00 00 FF 0F D4 [21:15:14]process_action close_receipt done [21:15:14]requested_data is exist [21:15:14]produce_requested_data [21:15:14]requested_item fm.sn is exist - process it [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 11 00 00 [21:15:14]Write to MH i2c: E2 08 00 44 7C 80 11 00 00 00 00 00 00 3A [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 17 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 17 00 44 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [21:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:15:14]wFMCommunicate OK [21:15:14]requested_item fd.num is exist - process it [21:15:14]SAM_PROTO_GetFieldsCounters [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 13 00 00 [21:15:14]Write to MH i2c: E2 08 00 45 7C 80 13 00 00 00 00 00 00 3D [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 62 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 62 00 45 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E3 02 00 0E 04 04 00 CF 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 7B [21:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F E3 02 00 0E 04 04 00 CF 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 [21:15:14]wFMCommunicate OK [21:15:14]SAM_PROTO_GetFieldsCounters done [21:15:14]requested_item shift.num is exist - process it [21:15:14]requested_item shift.opened is exist - process it [21:15:14]req_shift_opened [21:15:14]FM_GetShiftState [21:15:14]SAM_PROTO_GetShiftState [21:15:14]wFMCommunicate request_size=4 [21:15:14]MH_SAM_APDU [21:15:14]CAPDU: 80 13 01 00 [21:15:14]Write to MH i2c: E2 08 00 46 7C 80 13 01 00 00 00 00 00 3F [21:15:14]Write i2c OK [21:15:14]MH_I2C_Read... [21:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:14]Read from MH i2c: E2 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 0E 00 [21:15:14]MH_I2C_Read... [21:15:14]Read from MH i2c: E2 0E 00 46 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1D [21:15:14]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:15:14]wFMCommunicate OK [21:15:14]SAM_PROTO_GetShiftState done [21:15:14]FM_GetShiftState done [21:15:14]req_shift_opened done [21:15:14]requested_item shift.open_date is exist - process it [21:15:14]req_shift_open_date [21:15:14]req_shift_open_date done [21:15:14]produce_requested_data done [21:15:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189343,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:15:14]process_action_free close_receipt [21:15:14]json_value_free [21:15:14]json_value_free done [21:15:14]process_json_proto returns [21:15:14]Send response to host [21:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189343,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:15:14]free response buf [21:15:14]execute_script done [21:15:14]execute_script returns [21:15:14]free content buf [21:15:14]Sock 10.Close socket [21:15:14]Sock 10.Thread stoped [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:49]accept exits with 9 [21:15:49]New connection [21:15:49]New thread 3067071844 created [21:15:49]Thread 3067215204 joined [21:15:49]Waiting for new connection... [21:15:49] Sock 9.Parse request [21:15:49]Sock 9.Check first char [21:15:49]Sock 9.First char is OK [21:15:49]request: POST /json_proto HTTP/1.0 [21:15:49]Method: POST [21:15:49]URL: /json_proto [21:15:49]Method is POST - this is cgi request [21:15:49]url: /json_proto [21:15:49]query_string will be loaded in cgi processing [21:15:49]execute_cgi json_proto POST (null) [21:15:49]execute_cgi path=json_proto method=POST [21:15:49]POST find Content-Length [21:15:49]Host: 172.17.42.131:8080 [21:15:49]Content-Length: 678 [21:15:49]Content-Type: application/json [21:15:49] [21:15:49]POST finish read [21:15:49]Found Content-Length = 678 [21:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:15:49]execute_script... [21: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)211409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:15:49]POST & json_proto [21:15:49]process_json_proto [21:15:49]json parsed OK: [21:15:49]protocol is kg_v1.0 [21:15:49]action value=close_receipt [21:15:49]process_action close_receipt [21:15:49]cmd_close_receipt [21:15:49]MH_GetDate [21:15:49]Write to MH i2c: F0 00 00 47 7C B2 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: F0 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: F0 09 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: F0 09 00 47 7C 00 0A B9 1A 67 A0 18 CA 66 E7 [21:15:49]GetLastDocTimeStamp 1729804515 [21:15:49]current date 1729804554 [21:15:49]FM_GetShiftState [21:15:49]SAM_PROTO_GetShiftState [21:15:49]wFMCommunicate request_size=4 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 13 01 00 [21:15:49]Write to MH i2c: E2 08 00 48 7C 80 13 01 00 00 00 00 00 41 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 0E 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 0E 00 48 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1F [21:15:49]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:15:49]wFMCommunicate OK [21:15:49]SAM_PROTO_GetShiftState done [21:15:49]FM_GetShiftState done [21:15:49]opened in 1729728961 [21:15:49]opened+sec_in_day 1729815361 [21:15:49]quantity*price = 70044 [21:15:49]sum+1 = 70045 [21:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 417 24.10.2024 21:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189344 ФПД: 143076671313728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189344&fm=143076671313728&tin=02508201610067®Number=0000000000100030&sum=70000 [21:15:50]StoreToDocumentArchive [21:15:50]shift 463 fd 189344 [21:15:50]save to /storage/0463/doc_00189344 [21:15:50]save last doc name /storage/0463/doc_00189344 to /storage/kkm_last_doc_name [21:15:50]save OK [21:15:50]Clear old archive folders... [21:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:50]tlvbuf is 0168E590 [21:15:50]SAM_PROTO_ClearQueue [21:15:50]wFMCommunicate request_size=4 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 09 00 00 [21:15:50]Write to MH i2c: E2 08 00 55 7C 80 09 00 00 00 00 00 00 43 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 55 7C 00 90 00 45 [21:15:50]RAPDU: 90 00 [21:15:50]wFMCommunicate OK [21:15:50]SAM_PROTO_ClearQueue done [21:15:50]KKMCreateOFDPacket [21:15:50]OFDProtocolAddRootSTLVToBuf [21:15:50]FM_MakeSignedData [21:15:50]FM_MakeSignedData [21:15:50]SAM_PROTO_SignData [21:15:50]wFMCommunicate request_size=4 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 0D 01 02 [21:15:50]Write to MH i2c: E2 08 00 56 7C 80 0D 01 02 00 00 00 00 4B [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 56 7C 00 90 00 46 [21:15:50]RAPDU: 90 00 [21:15:50]wFMCommunicate OK [21:15:50]wFMCommunicate request_size=255 [21:15:50]MH_SAM_APDU [21: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A1 01 00 00 F4 03 04 00 0A B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E3 02 00 35 04 06 00 82 [21:15:50]Write to MH i2c: E2 02 01 57 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A1 01 00 00 F4 03 04 00 0A B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E3 02 00 35 04 06 00 82 00 00 8B [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 57 7C 00 90 00 47 [21:15:50]RAPDU: 90 00 [21:15:50]wFMCommunicate OK [21:15:50]wFMCommunicate request_size=10 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 0D 02 02 05 20 A2 2B 57 40 [21:15:50]Write to MH i2c: E2 0D 00 58 7C 80 0D 02 02 05 00 20 A2 2B 57 40 00 00 DC [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 03 00 58 7C 00 90 00 48 [21:15:50]RAPDU: 90 00 [21:15:50]wFMCommunicate OK [21:15:50]wFMCommunicate request_size=4 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 0D 03 02 [21:15:50]Write to MH i2c: E2 08 00 59 7C 80 0D 03 02 00 00 00 00 50 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 0B 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 0B 00 59 7C 00 85 9D 25 1C 90 DE A9 7F 90 00 4A [21:15:50]RAPDU: 85 9D 25 1C 90 DE A9 7F 90 00 [21:15:50]wFMCommunicate OK [21:15:50]SAM_PROTO_SignData done [21:15:50]FM_MakeSignedData done [21:15:50]CreateOFDProtocolMessage [21:15:50]wFMCommunicate request_size=4 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 11 00 00 [21:15:50]Write to MH i2c: E2 08 00 5A 7C 80 11 00 00 00 00 00 00 50 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 17 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 17 00 5A 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [21:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:15:50]wFMCommunicate OK [21:15:50]CreateOFDProtocolMessage done [21:15:50]OFDSenderStorePacket 189344 [21:15:50]StoreOFDPacket docnum=189344 [21:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 8C 07 01 12 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A1 01 00 00 F4 03 04 00 0A B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E3 02 00 35 04 06 00 82 20 A2 2B 57 40 85 9D 25 1C 90 DE A9 7F [21:15:50]CheckFolder [21:15:50]dirname=/storage/ofd_packets [21:15:50]CheckFolder done [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00189344 [21:15:50]NVStorageSaveData ofd_packets/00189344 [21:15:50]File name is /storage/ofd_packets/00189344 [21:15:50]Write 301 bytes [21:15:50]NVStorageSaveData done [21:15:50]OFDSenderStorePacket done [21:15:50]KKMCreateOFDPacket done [21:15:50]NVStorageSaveData kkm_last_timestamp [21:15:50]File name is /storage/kkm_last_timestamp [21:15:50]Write 4 bytes [21:15:50]NVStorageSaveData done [21:15:50]ExternCall_PrintAddStr [21:15:50]wPrintStart [21:15:50]Write to MH i2c: 01 00 00 5B 7C D7 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 5B 7C 00 00 00 00 00 FF 0F EC [21:15:50]RasterBufferAndPrint [21:15:50]line Счет N : (1)211409 [21:15:50]line ИНН: 02508201610067 [21:15:50]line Контрольно-Кассовый Чек [21:15:50]line ПРОДАЖА [21:15:50]line ТРК (МРК, ГНК) : 22 [21:15:50]line Товар: 2710124130 [21:15:50]line Аи-92-К-3 [21:15:50]line 10.470 * 66.90 [21:15:50]line = 700.44 [21:15:50]line НДС 12% НСП 1% [21:15:50]line > о реализуемом товаре [21:15:50]line ОКРУГЛЕНИЕ: -0.44 [21:15:50]line ИТОГО: 700.00 [21:15:50]line Внесено: 700.00 [21:15:50]line СДАЧА: 0.00 [21:15:50]line НСП 1% : 6.20 [21:15:50]line НДС 12% : 74.38 [21:15:50]line Наличными: 700.00 [21:15:50]line Безнал.: 0.00 [21:15:50]line Место: АЗС № 86 "Партнер Нефть" [21:15:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:15:50]line СНО: Общий режим [21:15:50]line Чек 417 24.10.2024 21:15 [21:15:50]line Смена: 463 ФФД: 1.0 [21:15:50]line ЗНМ: 0300000155 [21:15:50]line РНМ: 0000000000100030 [21:15:50]line Версия ККМ: 001 [21:15:50]line ФМ: 0000000000965340 [21:15:50]line ФД: 189344 [21:15:50]line ФПД: 143076671313728 [21:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189344&fm=143076671313728&tin=02508201610067®Number=0000000000100030&sum=70000 [21:15:50]written 0, free lines is 4095 [21:15:50]OFD Sender: Processing packet 189344 [packets to send 1062, broken 1061] [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00189344 [21:15:50]OFD Sender: To server: pG, [21:15:50]CommunicateWithHost lk.salyk.kg:30040 [21:15:50]ConnectInit lk.salyk.kg [21:15:51]Connected sock=8 [21:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 8C 07 01 12 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A1 01 00 00 F4 03 04 00 0A B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 E3 02 00 35 04 06 00 82 20 A2 2B 57 40 85 9D 25 1C 90 DE A9 7F [21:15:51]Write to MH i2c: 01 00 00 86 7C 02 [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 07 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 07 00 86 7C 00 00 00 00 00 49 0C 5E [21:15:51]RasterBufferAndPrint [21:15:51]line [21:15:51]line [21:15:51]line [21:15:51]line [21:15:51]line [21:15:51]written 0, free lines is 3149 [21:15:51]MH_Cut [21:15:51]Write to MH i2c: D1 01 00 8D 7C 01 DB [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: D1 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: D1 01 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: D1 01 00 8D 7C 00 DA [21:15:51]Write to MH i2c: 01 00 00 8E 7C 0A [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2C 95 47 00 4B 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 39 36 35 33 34 30 10 04 04 00 A0 E3 02 00 F4 03 04 00 F1 62 1A 67 B6 04 01 00 00 8A DC 2E 2F C6 0C AE B2 [21:15:51]CommunicateWithHost err = 0 [21:15:51]CheckOFDResponse [21:15:51]1017 (14) - 77093643461234 [21:15:51]1041 (16) - 0000000000965340 [21:15:51]1040 (4) - 189344 [21:15:51]1012 (4) - 24.10.2024 15:08 [21:15:51]1206 (1) - 0 [21:15:51]OFD Sender: Remove packet 189344 [21:15:51]ProducePacketName [21:15:51]name=ofd_packets/00189344 [21:15:51]NVStorageDeleteData [21:15:52]OFD Sender: No OFD packet to send [21:15:52]*** Cut start [21:15:52]*** Partial cut [21:15:52]*** CUTSNS_PIN = 1 [21:15:52]*** CUTSNS_PIN = 0 [21:15:53]*** Brake cut motor [21:15:53]Read from MH i2c: 01 [21:15:53]MH_I2C_Read... [21:15:53]*** Stop cut motor [21:15:53]*** Cut end [21:15:53]Read from MH i2c: 01 07 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: 01 07 00 8E 7C 00 00 00 00 00 FF 0F 1F [21:15:53]process_action close_receipt done [21:15:53]requested_data is exist [21:15:53]produce_requested_data [21:15:53]requested_item fm.sn is exist - process it [21:15:53]wFMCommunicate request_size=4 [21:15:53]MH_SAM_APDU [21:15:53]CAPDU: 80 11 00 00 [21:15:53]Write to MH i2c: E2 08 00 8F 7C 80 11 00 00 00 00 00 00 85 [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 [21:15:53]MH_I2C_Read... [21:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:53]Read from MH i2c: E2 17 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 17 00 8F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [21:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:15:53]wFMCommunicate OK [21:15:53]requested_item fd.num is exist - process it [21:15:53]SAM_PROTO_GetFieldsCounters [21:15:53]wFMCommunicate request_size=4 [21:15:53]MH_SAM_APDU [21:15:53]CAPDU: 80 13 00 00 [21:15:53]Write to MH i2c: E2 08 00 90 7C 80 13 00 00 00 00 00 00 88 [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:53]Read from MH i2c: E2 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 62 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 62 00 90 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E3 02 00 0E 04 04 00 CF 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 CA [21:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 E3 02 00 0E 04 04 00 CF 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 [21:15:53]wFMCommunicate OK [21:15:53]SAM_PROTO_GetFieldsCounters done [21:15:53]requested_item shift.num is exist - process it [21:15:53]requested_item shift.opened is exist - process it [21:15:53]req_shift_opened [21:15:53]FM_GetShiftState [21:15:53]SAM_PROTO_GetShiftState [21:15:53]wFMCommunicate request_size=4 [21:15:53]MH_SAM_APDU [21:15:53]CAPDU: 80 13 01 00 [21:15:53]Write to MH i2c: E2 08 00 91 7C 80 13 01 00 00 00 00 00 8A [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:53]Read from MH i2c: E2 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 91 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 68 [21:15:53]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:15:53]wFMCommunicate OK [21:15:53]SAM_PROTO_GetShiftState done [21:15:53]FM_GetShiftState done [21:15:53]req_shift_opened done [21:15:53]requested_item shift.open_date is exist - process it [21:15:53]req_shift_open_date [21:15:53]req_shift_open_date done [21:15:53]produce_requested_data done [21:15:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189344,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:15:53]process_action_free close_receipt [21:15:53]json_value_free [21:15:53]json_value_free done [21:15:53]process_json_proto returns [21:15:53]Send response to host [21:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189344,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:15:53]free response buf [21:15:53]execute_script done [21:15:53]execute_script returns [21:15:53]free content buf [21:15:53]Sock 9.Close socket [21:15:53]Sock 9.Thread stoped [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:13]accept exits with 10 [21:19:13]New connection [21:19:13]New thread 3067215204 created [21:19:13]Thread 3067071844 joined [21:19:13]Waiting for new connection... [21:19:13] Sock 10.Parse request [21:19:13]Sock 10.Check first char [21:19:13]Sock 10.First char is OK [21:19:13]request: POST /json_proto HTTP/1.0 [21:19:13]Method: POST [21:19:13]URL: /json_proto [21:19:13]Method is POST - this is cgi request [21:19:13]url: /json_proto [21:19:13]query_string will be loaded in cgi processing [21:19:13]execute_cgi json_proto POST (null) [21:19:13]execute_cgi path=json_proto method=POST [21:19:13]POST find Content-Length [21:19:13]Host: 172.17.42.131:8080 [21:19:13]Content-Length: 751 [21:19:13]Content-Type: application/json [21:19:13] [21:19:13]POST finish read [21:19:13]Found Content-Length = 751 [21:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:13]execute_script... [21:19: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)211410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:13]POST & json_proto [21:19:13]process_json_proto [21:19:13]json parsed OK: [21:19:13]protocol is kg_v1.0 [21:19:13]action value=close_receipt [21:19:13]process_action close_receipt [21:19:13]cmd_close_receipt [21:19:13]MH_GetDate [21:19:13]Write to MH i2c: F0 00 00 92 7C FD [21:19:13]Write i2c OK [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: F0 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: F0 09 00 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: F0 09 00 92 7C 00 D7 B9 1A 67 A0 18 CA 66 FF [21:19:13]GetLastDocTimeStamp 1729804554 [21:19:13]current date 1729804759 [21:19:13]FM_GetShiftState [21:19:13]SAM_PROTO_GetShiftState [21:19:13]wFMCommunicate request_size=4 [21:19:13]MH_SAM_APDU [21:19:13]CAPDU: 80 13 01 00 [21:19:13]Write to MH i2c: E2 08 00 93 7C 80 13 01 00 00 00 00 00 8C [21:19:13]Write i2c OK [21:19:13]MH_I2C_Read... [21:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:13]Read from MH i2c: E2 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: E2 0E 00 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: E2 0E 00 93 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 6A [21:19:13]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:19:13]wFMCommunicate OK [21:19:13]SAM_PROTO_GetShiftState done [21:19:13]FM_GetShiftState done [21:19:13]opened in 1729728961 [21:19:13]opened+sec_in_day 1729815361 [21:19:13]quantity*price = 0 [21:19:13]sum+1 = 1 [21:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 418 24.10.2024 21:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145330 ФМ: 0000000000965340 ФД: 189345 ФПД: 150168573235469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189345&fm=150168573235469&tin=02508201610067®Number=0000000000100030&sum=0 [21:19:15]StoreToDocumentArchive [21:19:15]shift 463 fd 189345 [21:19:15]save to /storage/0463/doc_00189345 [21:19:15]save last doc name /storage/0463/doc_00189345 to /storage/kkm_last_doc_name [21:19:15]save OK [21:19:15]Clear old archive folders... [21:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:19:15]tlvbuf is 0168E150 [21:19:15]SAM_PROTO_ClearQueue [21:19:15]wFMCommunicate request_size=4 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 09 00 00 [21:19:15]Write to MH i2c: E2 08 00 A0 7C 80 09 00 00 00 00 00 00 8E [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 A0 7C 00 90 00 90 [21:19:15]RAPDU: 90 00 [21:19:15]wFMCommunicate OK [21:19:15]SAM_PROTO_ClearQueue done [21:19:15]KKMCreateOFDPacket [21:19:15]OFDProtocolAddRootSTLVToBuf [21:19:15]FM_MakeSignedData [21:19:15]FM_MakeSignedData [21:19:15]SAM_PROTO_SignData [21:19:15]wFMCommunicate request_size=4 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 0D 01 02 [21:19:15]Write to MH i2c: E2 08 00 A1 7C 80 0D 01 02 00 00 00 00 96 [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 A1 7C 00 90 00 91 [21:19:15]RAPDU: 90 00 [21:19:15]wFMCommunicate OK [21:19:15]wFMCommunicate request_size=255 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 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 A2 01 00 00 F4 03 04 00 D7 B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E3 02 00 35 04 06 00 88 93 D8 76 [21:19:15]Write to MH i2c: E2 02 01 A2 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 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 A2 01 00 00 F4 03 04 00 D7 B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E3 02 00 35 04 06 00 88 93 D8 76 00 00 5F [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 A2 7C 00 90 00 92 [21:19:15]RAPDU: 90 00 [21:19:15]wFMCommunicate OK [21:19:15]wFMCommunicate request_size=7 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 0D 02 02 02 D1 0D [21:19:15]Write to MH i2c: E2 0A 00 A3 7C 80 0D 02 02 02 00 D1 0D 00 00 7B [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 03 00 A3 7C 00 90 00 93 [21:19:15]RAPDU: 90 00 [21:19:15]wFMCommunicate OK [21:19:15]wFMCommunicate request_size=4 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 0D 03 02 [21:19:15]Write to MH i2c: E2 08 00 A4 7C 80 0D 03 02 00 00 00 00 9B [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 0B 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 0B 00 A4 7C 00 17 4F 8F D8 B8 23 08 FC 90 00 48 [21:19:15]RAPDU: 17 4F 8F D8 B8 23 08 FC 90 00 [21:19:15]wFMCommunicate OK [21:19:15]SAM_PROTO_SignData done [21:19:15]FM_MakeSignedData done [21:19:15]CreateOFDProtocolMessage [21:19:15]wFMCommunicate request_size=4 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 11 00 00 [21:19:15]Write to MH i2c: E2 08 00 A5 7C 80 11 00 00 00 00 00 00 9B [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 17 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 17 00 A5 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [21:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:19:15]wFMCommunicate OK [21:19:15]CreateOFDProtocolMessage done [21:19:15]OFDSenderStorePacket 189345 [21:19:15]StoreOFDPacket docnum=189345 [21:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E5 71 04 01 A0 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 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 A2 01 00 00 F4 03 04 00 D7 B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E3 02 00 35 04 06 00 88 93 D8 76 D1 0D 17 4F 8F D8 B8 23 08 FC [21:19:15]CheckFolder [21:19:15]dirname=/storage/ofd_packets [21:19:15]CheckFolder done [21:19:15]ProducePacketName [21:19:15]name=ofd_packets/00189345 [21:19:15]NVStorageSaveData ofd_packets/00189345 [21:19:15]File name is /storage/ofd_packets/00189345 [21:19:15]Write 298 bytes [21:19:15]NVStorageSaveData done [21:19:15]OFDSenderStorePacket done [21:19:15]KKMCreateOFDPacket done [21:19:15]NVStorageSaveData kkm_last_timestamp [21:19:15]File name is /storage/kkm_last_timestamp [21:19:15]Write 4 bytes [21:19:15]NVStorageSaveData done [21:19:15]ExternCall_PrintAddStr [21:19:15]wPrintStart [21:19:15]Write to MH i2c: 01 00 00 A6 7C 22 [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: 01 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: 01 07 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: 01 07 00 A6 7C 00 00 00 00 00 FF 0F 37 [21:19:15]RasterBufferAndPrint [21:19:15]line Счет N : (1)211410 [21:19:15]line ИНН: 02508201610067 [21:19:15]line Контрольно-Кассовый Чек [21:19:15]line ПРОДАЖА [21:19:15]line ТРК (МРК, ГНК) : 51 [21:19:15]line Товар: 2710194210 [21:19:15]line ДТ-К-5 [21:19:15]line 50.000 * 0.00 [21:19:15]line = 0.00 [21:19:15]line НДС 12% НСП 1% [21:19:15]line > о реализуемом товаре [21:19:15]line ИТОГО: 0.00 [21:19:15]line НСП 1% : 0.00 [21:19:15]line НДС 12% : 0.00 [21:19:15]line Наличными: 0.00 [21:19:15]line Безнал.: 0.00 [21:19:15]line Место: АЗС № 86 "Партнер Нефть" [21:19:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:19:15]line СНО: Общий режим [21:19:15]line Чек 418 24.10.2024 21:19 [21:19:15]line Смена: 463 ФФД: 1.0 [21:19:15]line ЗНМ: 0300000155 [21:19:15]line РНМ: 0000000000100030 [21:19:15]line Версия ККМ: 001 [21:19:15]line Талоны: ТК ГПНА Online [21:19:15]line 30145330 [21:19:15]line ФМ: 0000000000965340 [21:19:15]line ФД: 189345 [21:19:15]line ФПД: 150168573235469 [21:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189345&fm=150168573235469&tin=02508201610067®Number=0000000000100030&sum=0 [21:19:15]written 0, free lines is 4095 [21:19:15]OFD Sender: Processing packet 189345 [packets to send 1062, broken 1061] [21:19:15]ProducePacketName [21:19:15]name=ofd_packets/00189345 [21:19:15]OFD Sender: To server: pG, [21:19:15]CommunicateWithHost lk.salyk.kg:30040 [21:19:15]ConnectInit lk.salyk.kg [21:19:16]Write to MH i2c: 01 00 00 D0 7C 4C [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 07 00 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: 01 07 00 D0 7C 00 00 00 00 00 5B 0C BA [21:19:16]RasterBufferAndPrint [21:19:16]line [21:19:16]line [21:19:16]line [21:19:16]line [21:19:16]line [21:19:16]written 0, free lines is 3169 [21:19:16]MH_Cut [21:19:16]Write to MH i2c: D1 01 00 D7 7C 01 25 [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: D1 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: D1 01 00 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: D1 01 00 D7 7C 00 24 [21:19:16]Write to MH i2c: 01 00 00 D8 7C 54 [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]Connected sock=9 [21:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E5 71 04 01 A0 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 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 A2 01 00 00 F4 03 04 00 D7 B9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 E3 02 00 35 04 06 00 88 93 D8 76 D1 0D 17 4F 8F D8 B8 23 08 FC [21:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 F3 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 A1 E3 02 00 F4 03 04 00 BE 63 1A 67 B6 04 01 00 00 DA 41 F8 39 DA 67 06 18 [21:19:16]CommunicateWithHost err = 0 [21:19:16]CheckOFDResponse [21:19:16]1017 (14) - 77093643461234 [21:19:16]1041 (16) - 0000000000965340 [21:19:16]1040 (4) - 189345 [21:19:16]1012 (4) - 24.10.2024 15:11 [21:19:16]1206 (1) - 0 [21:19:16]OFD Sender: Remove packet 189345 [21:19:16]ProducePacketName [21:19:16]name=ofd_packets/00189345 [21:19:16]NVStorageDeleteData [21:19:17]OFD Sender: No OFD packet to send [21:19:17]*** Cut start [21:19:17]*** Partial cut [21:19:17]*** CUTSNS_PIN = 1 [21:19:17]*** CUTSNS_PIN = 0 [21:19:17]*** Brake cut motor [21:19:17]Read from MH i2c: 01 [21:19:17]MH_I2C_Read... [21:19:17]*** Stop cut motor [21:19:17]*** Cut end [21:19:17]Read from MH i2c: 01 07 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 07 00 D8 7C 00 00 00 00 00 FF 0F 69 [21:19:17]process_action close_receipt done [21:19:17]requested_data is exist [21:19:17]produce_requested_data [21:19:17]requested_item fm.sn is exist - process it [21:19:17]wFMCommunicate request_size=4 [21:19:17]MH_SAM_APDU [21:19:17]CAPDU: 80 11 00 00 [21:19:17]Write to MH i2c: E2 08 00 D9 7C 80 11 00 00 00 00 00 00 CF [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:18]Read from MH i2c: E2 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 17 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 17 00 D9 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [21:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:19:18]wFMCommunicate OK [21:19:18]requested_item fd.num is exist - process it [21:19:18]SAM_PROTO_GetFieldsCounters [21:19:18]wFMCommunicate request_size=4 [21:19:18]MH_SAM_APDU [21:19:18]CAPDU: 80 13 00 00 [21:19:18]Write to MH i2c: E2 08 00 DA 7C 80 13 00 00 00 00 00 00 D2 [21:19:18]Write i2c OK [21:19:18]MH_I2C_Read... [21:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:18]Read from MH i2c: E2 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 62 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 62 00 DA 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E3 02 00 0E 04 04 00 CF 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 [21:19:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 E3 02 00 0E 04 04 00 CF 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 [21:19:18]wFMCommunicate OK [21:19:18]SAM_PROTO_GetFieldsCounters done [21:19:18]requested_item shift.num is exist - process it [21:19:18]requested_item shift.opened is exist - process it [21:19:18]req_shift_opened [21:19:18]FM_GetShiftState [21:19:18]SAM_PROTO_GetShiftState [21:19:18]wFMCommunicate request_size=4 [21:19:18]MH_SAM_APDU [21:19:18]CAPDU: 80 13 01 00 [21:19:18]Write to MH i2c: E2 08 00 DB 7C 80 13 01 00 00 00 00 00 D4 [21:19:18]Write i2c OK [21:19:18]MH_I2C_Read... [21:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:18]Read from MH i2c: E2 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 0E 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 0E 00 DB 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B2 [21:19:18]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:19:18]wFMCommunicate OK [21:19:18]SAM_PROTO_GetShiftState done [21:19:18]FM_GetShiftState done [21:19:18]req_shift_opened done [21:19:18]requested_item shift.open_date is exist - process it [21:19:18]req_shift_open_date [21:19:18]req_shift_open_date done [21:19:18]produce_requested_data done [21:19:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189345,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:19:18]process_action_free close_receipt [21:19:18]json_value_free [21:19:18]json_value_free done [21:19:18]process_json_proto returns [21:19:18]Send response to host [21:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189345,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:19:18]free response buf [21:19:18]execute_script done [21:19:18]execute_script returns [21:19:18]free content buf [21:19:18]Sock 10.Close socket [21:19:18]Sock 10.Thread stoped [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:40]accept exits with 8 [21:25:40]New connection [21:25:40]New thread 3067071844 created [21:25:40]Thread 3067215204 joined [21:25:40]Waiting for new connection... [21:25:40] Sock 8.Parse request [21:25:40]Sock 8.Check first char [21:25:40]Sock 8.First char is OK [21:25:40]request: POST /json_proto HTTP/1.0 [21:25:40]Method: POST [21:25:40]URL: /json_proto [21:25:40]Method is POST - this is cgi request [21:25:40]url: /json_proto [21:25:40]query_string will be loaded in cgi processing [21:25:40]execute_cgi json_proto POST (null) [21:25:40]execute_cgi path=json_proto method=POST [21:25:40]POST find Content-Length [21:25:40]Host: 172.17.42.131:8080 [21:25:40]Content-Length: 809 [21:25:40]Content-Type: application/json [21:25:40] [21:25:40]POST finish read [21:25:40]Found Content-Length = 809 [21:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:40]execute_script... [21:25: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)211411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:40]POST & json_proto [21:25:40]process_json_proto [21:25:40]json parsed OK: [21:25:40]protocol is kg_v1.0 [21:25:40]action value=close_receipt [21:25:40]process_action close_receipt [21:25:40]cmd_close_receipt [21:25:40]MH_GetDate [21:25:40]Write to MH i2c: F0 00 00 DC 7C 47 [21:25:40]Write i2c OK [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 09 00 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: F0 09 00 DC 7C 00 59 BB 1A 67 A0 18 CA 66 CD [21:25:40]GetLastDocTimeStamp 1729804759 [21:25:40]current date 1729805145 [21:25:40]FM_GetShiftState [21:25:40]SAM_PROTO_GetShiftState [21:25:40]wFMCommunicate request_size=4 [21:25:40]MH_SAM_APDU [21:25:40]CAPDU: 80 13 01 00 [21:25:40]Write to MH i2c: E2 08 00 DD 7C 80 13 01 00 00 00 00 00 D6 [21:25:40]Write i2c OK [21:25:40]MH_I2C_Read... [21:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:40]Read from MH i2c: E2 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: E2 0E 00 [21:25:40]MH_I2C_Read... [21:25:40]Read from MH i2c: E2 0E 00 DD 7C 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B4 [21:25:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:25:40]wFMCommunicate OK [21:25:40]SAM_PROTO_GetShiftState done [21:25:40]FM_GetShiftState done [21:25:40]opened in 1729728961 [21:25:40]opened+sec_in_day 1729815361 [21:25:40]quantity*price = 400050 [21:25:40]sum+1 = 400051 [21:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 419 24.10.2024 21:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 189346 ФПД: 245022064839269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212545&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189346&fm=245022064839269&tin=02508201610067®Number=0000000000100030&sum=400050 [21:25:41]StoreToDocumentArchive [21:25:41]shift 463 fd 189346 [21:25:41]save to /storage/0463/doc_00189346 [21:25:41]save last doc name /storage/0463/doc_00189346 to /storage/kkm_last_doc_name [21:25:41]save OK [21:25:41]Clear old archive folders... [21:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:25:41]tlvbuf is 01675E40 [21:25:41]SAM_PROTO_ClearQueue [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 09 00 00 [21:25:41]Write to MH i2c: E2 08 00 EA 7C 80 09 00 00 00 00 00 00 D8 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 EA 7C 00 90 00 DA [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_ClearQueue done [21:25:41]KKMCreateOFDPacket [21:25:41]OFDProtocolAddRootSTLVToBuf [21:25:41]FM_MakeSignedData [21:25:41]FM_MakeSignedData [21:25:41]SAM_PROTO_SignData [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 01 02 [21:25:41]Write to MH i2c: E2 08 00 EB 7C 80 0D 01 02 00 00 00 00 E0 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 03 00 EB 7C 00 90 00 DB [21:25:41]RAPDU: 90 00 [21:25:41]wFMCommunicate OK [21:25:41]wFMCommunicate request_size=255 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 59 BB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E3 02 [21:25:41]Write to MH i2c: E2 02 01 EC 7C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 59 BB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E3 02 00 00 56 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:42]Read from MH i2c: E2 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 03 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 03 00 EC 7C 00 90 00 DC [21:25:42]RAPDU: 90 00 [21:25:42]wFMCommunicate OK [21:25:42]wFMCommunicate request_size=16 [21:25:42]MH_SAM_APDU [21:25:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DE D8 A5 23 0A 65 [21:25:42]Write to MH i2c: E2 13 00 ED 7C 80 0D 02 02 0B 00 00 35 04 06 00 DE D8 A5 23 0A 65 00 00 25 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:42]Read from MH i2c: E2 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 03 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 03 00 ED 7C 00 90 00 DD [21:25:42]RAPDU: 90 00 [21:25:42]wFMCommunicate OK [21:25:42]wFMCommunicate request_size=4 [21:25:42]MH_SAM_APDU [21:25:42]CAPDU: 80 0D 03 02 [21:25:42]Write to MH i2c: E2 08 00 EE 7C 80 0D 03 02 00 00 00 00 E5 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:42]Read from MH i2c: E2 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 0B 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 0B 00 EE 7C 00 5B 82 82 BB 29 40 03 F4 90 00 60 [21:25:42]RAPDU: 5B 82 82 BB 29 40 03 F4 90 00 [21:25:42]wFMCommunicate OK [21:25:42]SAM_PROTO_SignData done [21:25:42]FM_MakeSignedData done [21:25:42]CreateOFDProtocolMessage [21:25:42]wFMCommunicate request_size=4 [21:25:42]MH_SAM_APDU [21:25:42]CAPDU: 80 11 00 00 [21:25:42]Write to MH i2c: E2 08 00 EF 7C 80 11 00 00 00 00 00 00 E5 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:42]Read from MH i2c: E2 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 17 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: E2 17 00 EF 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [21:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:42]wFMCommunicate OK [21:25:42]CreateOFDProtocolMessage done [21:25:42]OFDSenderStorePacket 189346 [21:25:42]StoreOFDPacket docnum=189346 [21:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FF BE 0D 01 02 40 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 59 BB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E3 02 00 35 04 06 00 DE D8 A5 23 0A 65 5B 82 82 BB 29 40 03 F4 [21:25:42]CheckFolder [21:25:42]dirname=/storage/ofd_packets [21:25:42]CheckFolder done [21:25:42]ProducePacketName [21:25:42]name=ofd_packets/00189346 [21:25:42]NVStorageSaveData ofd_packets/00189346 [21:25:42]File name is /storage/ofd_packets/00189346 [21:25:42]Write 307 bytes [21:25:42]NVStorageSaveData done [21:25:42]OFDSenderStorePacket done [21:25:42]KKMCreateOFDPacket done [21:25:42]NVStorageSaveData kkm_last_timestamp [21:25:42]File name is /storage/kkm_last_timestamp [21:25:42]Write 4 bytes [21:25:42]NVStorageSaveData done [21:25:42]ExternCall_PrintAddStr [21:25:42]wPrintStart [21:25:42]Write to MH i2c: 01 00 00 F0 7C 6C [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 F0 7C 00 00 00 00 00 FF 0F 81 [21:25:42]RasterBufferAndPrint [21:25:42]line Счет N : (1)211411 [21:25:42]line ИНН: 02508201610067 [21:25:42]line Контрольно-Кассовый Чек [21:25:42]line ПРОДАЖА [21:25:42]line ТРК (МРК, ГНК) : 31 [21:25:42]line Товар: 2710194210 [21:25:42]line D-ENERGY ДТ-К-5 [21:25:42]line 51.820 * 77.20 [21:25:42]line = 4000.50 [21:25:42]line НДС 12% НСП 1% [21:25:42]line > о реализуемом товаре [21:25:42]line ИТОГО: 4000.50 [21:25:42]line НСП 1% : 35.40 [21:25:42]line НДС 12% : 424.83 [21:25:42]line Наличными: 0.00 [21:25:42]line Безнал.: 4000.50 [21:25:42]line Место: АЗС № 86 "Партнер Нефть" [21:25:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:25:42]line СНО: Общий режим [21:25:42]line Чек 419 24.10.2024 21:25 [21:25:42]line Смена: 463 ФФД: 1.0 [21:25:42]line ЗНМ: 0300000155 [21:25:42]line РНМ: 0000000000100030 [21:25:42]line Версия ККМ: 001 [21:25:42]line Платежная система: O! деньги [21:25:42]line ФМ: 0000000000965340 [21:25:42]line ФД: 189346 [21:25:42]line ФПД: 245022064839269 [21:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212545&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189346&fm=245022064839269&tin=02508201610067®Number=0000000000100030&sum=400050 [21:25:42]written 0, free lines is 4095 [21:25:42]OFD Sender: Processing packet 189346 [packets to send 1062, broken 1061] [21:25:42]ProducePacketName [21:25:42]name=ofd_packets/00189346 [21:25:42]OFD Sender: To server: pG, [21:25:42]CommunicateWithHost lk.salyk.kg:30040 [21:25:42]ConnectInit lk.salyk.kg [21:25:42]Connected sock=9 [21:25:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FF BE 0D 01 02 40 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 59 BB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 E3 02 00 35 04 06 00 DE D8 A5 23 0A 65 5B 82 82 BB 29 40 03 F4 [21:25:42]Write to MH i2c: 01 00 00 1A 7D 97 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: 01 07 00 1A 7D 00 00 00 00 00 5F 0C 09 [21:25:42]RasterBufferAndPrint [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]line [21:25:42]written 0, free lines is 3172 [21:25:42]MH_Cut [21:25:42]Write to MH i2c: D1 01 00 21 7D 01 70 [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 01 00 [21:25:42]MH_I2C_Read... [21:25:42]Read from MH i2c: D1 01 00 21 7D 00 6F [21:25:42]Write to MH i2c: 01 00 00 22 7D 9F [21:25:42]Write i2c OK [21:25:42]MH_I2C_Read... [21:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 3E 47 00 FC 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 39 36 35 33 34 30 10 04 04 00 A2 E3 02 00 F4 03 04 00 40 65 1A 67 B6 04 01 00 00 10 A5 1D A3 7D 26 97 61 [21:25:43]CommunicateWithHost err = 0 [21:25:43]CheckOFDResponse [21:25:43]1017 (14) - 77093643461234 [21:25:43]1041 (16) - 0000000000965340 [21:25:43]1040 (4) - 189346 [21:25:43]1012 (4) - 24.10.2024 15:18 [21:25:43]1206 (1) - 0 [21:25:43]OFD Sender: Remove packet 189346 [21:25:43]ProducePacketName [21:25:43]name=ofd_packets/00189346 [21:25:43]NVStorageDeleteData [21:25:43]OFD Sender: No OFD packet to send [21:25:44]*** Cut start [21:25:44]*** Partial cut [21:25:44]*** CUTSNS_PIN = 1 [21:25:44]*** CUTSNS_PIN = 0 [21:25:44]*** Brake cut motor [21:25:44]Read from MH i2c: 01 [21:25:44]MH_I2C_Read... [21:25:44]*** Stop cut motor [21:25:44]*** Cut end [21:25:44]Read from MH i2c: 01 07 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: 01 07 00 22 7D 00 00 00 00 00 FF 0F B4 [21:25:44]process_action close_receipt done [21:25:44]requested_data is exist [21:25:44]produce_requested_data [21:25:44]requested_item fm.sn is exist - process it [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 11 00 00 [21:25:44]Write to MH i2c: E2 08 00 23 7D 80 11 00 00 00 00 00 00 1A [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 17 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 17 00 23 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [21:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:44]wFMCommunicate OK [21:25:44]requested_item fd.num is exist - process it [21:25:44]SAM_PROTO_GetFieldsCounters [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 13 00 00 [21:25:44]Write to MH i2c: E2 08 00 24 7D 80 13 00 00 00 00 00 00 1D [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:45]Read from MH i2c: E2 [21:25:45]MH_I2C_Read... [21:25:45]Read from MH i2c: E2 62 00 [21:25:45]MH_I2C_Read... [21:25:45]Read from MH i2c: E2 62 00 24 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E3 02 00 0E 04 04 00 CF 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 67 [21:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 E3 02 00 0E 04 04 00 CF 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 [21:25:45]wFMCommunicate OK [21:25:45]SAM_PROTO_GetFieldsCounters done [21:25:45]requested_item shift.num is exist - process it [21:25:45]requested_item shift.opened is exist - process it [21:25:45]req_shift_opened [21:25:45]FM_GetShiftState [21:25:45]SAM_PROTO_GetShiftState [21:25:45]wFMCommunicate request_size=4 [21:25:45]MH_SAM_APDU [21:25:45]CAPDU: 80 13 01 00 [21:25:45]Write to MH i2c: E2 08 00 25 7D 80 13 01 00 00 00 00 00 1F [21:25:45]Write i2c OK [21:25:45]MH_I2C_Read... [21:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:45]Read from MH i2c: E2 [21:25:45]MH_I2C_Read... [21:25:45]Read from MH i2c: E2 0E 00 [21:25:45]MH_I2C_Read... [21:25:45]Read from MH i2c: E2 0E 00 25 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FD [21:25:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:25:45]wFMCommunicate OK [21:25:45]SAM_PROTO_GetShiftState done [21:25:45]FM_GetShiftState done [21:25:45]req_shift_opened done [21:25:45]requested_item shift.open_date is exist - process it [21:25:45]req_shift_open_date [21:25:45]req_shift_open_date done [21:25:45]produce_requested_data done [21:25:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189346,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:25:45]process_action_free close_receipt [21:25:45]json_value_free [21:25:45]json_value_free done [21:25:45]process_json_proto returns [21:25:45]Send response to host [21:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189346,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:25:45]free response buf [21:25:45]execute_script done [21:25:45]execute_script returns [21:25:45]free content buf [21:25:45]Sock 8.Close socket [21:25:45]Sock 8.Thread stoped [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:39]accept exits with 10 [21:31:39]New connection [21:31:39]New thread 3067215204 created [21:31:39]Thread 3067071844 joined [21:31:39]Waiting for new connection... [21:31:39] Sock 10.Parse request [21:31:39]Sock 10.Check first char [21:31:39]Sock 10.First char is OK [21:31:39]request: POST /json_proto HTTP/1.0 [21:31:39]Method: POST [21:31:39]URL: /json_proto [21:31:39]Method is POST - this is cgi request [21:31:39]url: /json_proto [21:31:39]query_string will be loaded in cgi processing [21:31:39]execute_cgi json_proto POST (null) [21:31:39]execute_cgi path=json_proto method=POST [21:31:39]POST find Content-Length [21:31:39]Host: 172.17.42.131:8080 [21:31:39]Content-Length: 688 [21:31:39]Content-Type: application/json [21:31:39] [21:31:39]POST finish read [21:31:39]Found Content-Length = 688 [21:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:31:39]execute_script... [21:31: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)211413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:31:39]POST & json_proto [21:31:39]process_json_proto [21:31:39]json parsed OK: [21:31:39]protocol is kg_v1.0 [21:31:39]action value=close_receipt [21:31:39]process_action close_receipt [21:31:39]cmd_close_receipt [21:31:39]MH_GetDate [21:31:39]Write to MH i2c: F0 00 00 26 7D 92 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 09 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 09 00 26 7D 00 C1 BC 1A 67 A0 18 CA 66 81 [21:31:39]GetLastDocTimeStamp 1729805145 [21:31:39]current date 1729805505 [21:31:39]FM_GetShiftState [21:31:39]SAM_PROTO_GetShiftState [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 13 01 00 [21:31:39]Write to MH i2c: E2 08 00 27 7D 80 13 01 00 00 00 00 00 21 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0E 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0E 00 27 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FF [21:31:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:31:39]wFMCommunicate OK [21:31:39]SAM_PROTO_GetShiftState done [21:31:39]FM_GetShiftState done [21:31:39]opened in 1729728961 [21:31:39]opened+sec_in_day 1729815361 [21:31:39]quantity*price = 100051 [21:31:39]sum+1 = 100052 [21:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 420 24.10.2024 21:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189347 ФПД: 233685602492459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189347&fm=233685602492459&tin=02508201610067®Number=0000000000100030&sum=100000 [21:31:41]StoreToDocumentArchive [21:31:41]shift 463 fd 189347 [21:31:41]save to /storage/0463/doc_00189347 [21:31:41]save last doc name /storage/0463/doc_00189347 to /storage/kkm_last_doc_name [21:31:41]save OK [21:31:41]Clear old archive folders... [21:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:31:41]tlvbuf is 0160BFF0 [21:31:41]SAM_PROTO_ClearQueue [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 09 00 00 [21:31:41]Write to MH i2c: E2 08 00 34 7D 80 09 00 00 00 00 00 00 23 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 34 7D 00 90 00 25 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]SAM_PROTO_ClearQueue done [21:31:41]KKMCreateOFDPacket [21:31:41]OFDProtocolAddRootSTLVToBuf [21:31:41]FM_MakeSignedData [21:31:41]FM_MakeSignedData [21:31:41]SAM_PROTO_SignData [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 01 02 [21:31:41]Write to MH i2c: E2 08 00 35 7D 80 0D 01 02 00 00 00 00 2B [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 35 7D 00 90 00 26 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]wFMCommunicate request_size=255 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A4 01 00 00 F4 03 04 00 C1 BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E3 02 [21:31:41]Write to MH i2c: E2 02 01 36 7D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A4 01 00 00 F4 03 04 00 C1 BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E3 02 00 00 83 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 36 7D 00 90 00 27 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]wFMCommunicate request_size=16 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D4 89 2B 53 60 2B [21:31:41]Write to MH i2c: E2 13 00 37 7D 80 0D 02 02 0B 00 00 35 04 06 00 D4 89 2B 53 60 2B 00 00 E9 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 37 7D 00 90 00 28 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 03 02 [21:31:41]Write to MH i2c: E2 08 00 38 7D 80 0D 03 02 00 00 00 00 30 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 0B 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 0B 00 38 7D 00 DF A8 15 EE 72 4F 69 BA 90 00 9F [21:31:41]RAPDU: DF A8 15 EE 72 4F 69 BA 90 00 [21:31:41]wFMCommunicate OK [21:31:41]SAM_PROTO_SignData done [21:31:41]FM_MakeSignedData done [21:31:41]CreateOFDProtocolMessage [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 11 00 00 [21:31:41]Write to MH i2c: E2 08 00 39 7D 80 11 00 00 00 00 00 00 30 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 17 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 17 00 39 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [21:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:31:41]wFMCommunicate OK [21:31:41]CreateOFDProtocolMessage done [21:31:41]OFDSenderStorePacket 189347 [21:31:41]StoreOFDPacket docnum=189347 [21:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 07 0D 01 FE 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A4 01 00 00 F4 03 04 00 C1 BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E3 02 00 35 04 06 00 D4 89 2B 53 60 2B DF A8 15 EE 72 4F 69 BA [21:31:41]CheckFolder [21:31:41]dirname=/storage/ofd_packets [21:31:41]CheckFolder done [21:31:41]ProducePacketName [21:31:41]name=ofd_packets/00189347 [21:31:41]NVStorageSaveData ofd_packets/00189347 [21:31:41]File name is /storage/ofd_packets/00189347 [21:31:41]Write 307 bytes [21:31:41]NVStorageSaveData done [21:31:41]OFDSenderStorePacket done [21:31:41]KKMCreateOFDPacket done [21:31:41]NVStorageSaveData kkm_last_timestamp [21:31:41]File name is /storage/kkm_last_timestamp [21:31:41]Write 4 bytes [21:31:41]NVStorageSaveData done [21:31:41]ExternCall_PrintAddStr [21:31:41]wPrintStart [21:31:41]Write to MH i2c: 01 00 00 3A 7D B7 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 3A 7D 00 00 00 00 00 FF 0F CC [21:31:41]RasterBufferAndPrint [21:31:41]line Счет N : (1)211413 [21:31:41]line ИНН: 02508201610067 [21:31:41]line Контрольно-Кассовый Чек [21:31:41]line ПРОДАЖА [21:31:41]line ТРК (МРК, ГНК) : 41 [21:31:41]line Товар: 2710194210 [21:31:41]line D-ENERGY ДТ-К-5 [21:31:41]line 12.960 * 77.20 [21:31:41]line = 1000.51 [21:31:41]line НДС 12% НСП 1% [21:31:41]line > о реализуемом товаре [21:31:41]line ОКРУГЛЕНИЕ: -0.51 [21:31:41]line ИТОГО: 1000.00 [21:31:41]line Внесено: 1000.00 [21:31:41]line СДАЧА: 0.00 [21:31:41]line НСП 1% : 8.85 [21:31:41]line НДС 12% : 106.25 [21:31:41]line Наличными: 1000.00 [21:31:41]line Безнал.: 0.00 [21:31:41]line Место: АЗС № 86 "Партнер Нефть" [21:31:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:31:41]line СНО: Общий режим [21:31:41]line Чек 420 24.10.2024 21:31 [21:31:41]line Смена: 463 ФФД: 1.0 [21:31:41]line ЗНМ: 0300000155 [21:31:41]line РНМ: 0000000000100030 [21:31:41]line Версия ККМ: 001 [21:31:41]line ФМ: 0000000000965340 [21:31:41]line ФД: 189347 [21:31:41]line ФПД: 233685602492459 [21:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189347&fm=233685602492459&tin=02508201610067®Number=0000000000100030&sum=100000 [21:31:41]written 0, free lines is 4095 [21:31:41]OFD Sender: Processing packet 189347 [packets to send 1062, broken 1061] [21:31:41]ProducePacketName [21:31:41]name=ofd_packets/00189347 [21:31:41]OFD Sender: To server: pG, [21:31:41]CommunicateWithHost lk.salyk.kg:30040 [21:31:41]ConnectInit lk.salyk.kg [21:31:41]Connected sock=9 [21:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 07 0D 01 FE 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 A4 01 00 00 F4 03 04 00 C1 BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 E3 02 00 35 04 06 00 D4 89 2B 53 60 2B DF A8 15 EE 72 4F 69 BA [21:31:42]Write to MH i2c: 01 00 00 65 7D E2 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 07 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 07 00 65 7D 00 00 00 00 00 5A 0C 4F [21:31:42]RasterBufferAndPrint [21:31:42]line [21:31:42]line [21:31:42]line [21:31:42]line [21:31:42]line [21:31:42]written 0, free lines is 3166 [21:31:42]MH_Cut [21:31:42]Write to MH i2c: D1 01 00 6C 7D 01 BB [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: D1 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: D1 01 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: D1 01 00 6C 7D 00 BA [21:31:42]Write to MH i2c: 01 00 00 6D 7D EA [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 12 47 00 28 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 39 36 35 33 34 30 10 04 04 00 A3 E3 02 00 F4 03 04 00 A8 66 1A 67 B6 04 01 00 00 BD 06 49 42 D7 E5 42 FB [21:31:42]CommunicateWithHost err = 0 [21:31:42]CheckOFDResponse [21:31:42]1017 (14) - 77093643461234 [21:31:42]1041 (16) - 0000000000965340 [21:31:42]1040 (4) - 189347 [21:31:42]1012 (4) - 24.10.2024 15:24 [21:31:42]1206 (1) - 0 [21:31:42]OFD Sender: Remove packet 189347 [21:31:42]ProducePacketName [21:31:42]name=ofd_packets/00189347 [21:31:42]NVStorageDeleteData [21:31:42]OFD Sender: No OFD packet to send [21:31:43]*** Cut start [21:31:43]*** Partial cut [21:31:43]*** CUTSNS_PIN = 1 [21:31:43]*** CUTSNS_PIN = 0 [21:31:43]*** Brake cut motor [21:31:44]Read from MH i2c: 01 [21:31:44]MH_I2C_Read... [21:31:44]*** Stop cut motor [21:31:44]*** Cut end [21:31:44]Read from MH i2c: 01 07 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: 01 07 00 6D 7D 00 00 00 00 00 FF 0F FF [21:31:44]process_action close_receipt done [21:31:44]requested_data is exist [21:31:44]produce_requested_data [21:31:44]requested_item fm.sn is exist - process it [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 11 00 00 [21:31:44]Write to MH i2c: E2 08 00 6E 7D 80 11 00 00 00 00 00 00 65 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 6E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [21:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:31:44]wFMCommunicate OK [21:31:44]requested_item fd.num is exist - process it [21:31:44]SAM_PROTO_GetFieldsCounters [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 13 00 00 [21:31:44]Write to MH i2c: E2 08 00 6F 7D 80 13 00 00 00 00 00 00 68 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 62 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 62 00 6F 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E3 02 00 0E 04 04 00 CF 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 B6 [21:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 E3 02 00 0E 04 04 00 CF 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 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_GetFieldsCounters done [21:31:44]requested_item shift.num is exist - process it [21:31:44]requested_item shift.opened is exist - process it [21:31:44]req_shift_opened [21:31:44]FM_GetShiftState [21:31:44]SAM_PROTO_GetShiftState [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 13 01 00 [21:31:44]Write to MH i2c: E2 08 00 70 7D 80 13 01 00 00 00 00 00 6A [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 70 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 48 [21:31:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_GetShiftState done [21:31:44]FM_GetShiftState done [21:31:44]req_shift_opened done [21:31:44]requested_item shift.open_date is exist - process it [21:31:44]req_shift_open_date [21:31:44]req_shift_open_date done [21:31:44]produce_requested_data done [21:31:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189347,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:31:44]process_action_free close_receipt [21:31:44]json_value_free [21:31:44]json_value_free done [21:31:44]process_json_proto returns [21:31:44]Send response to host [21:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189347,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:31:44]free response buf [21:31:44]execute_script done [21:31:44]execute_script returns [21:31:44]free content buf [21:31:44]Sock 10.Close socket [21:31:44]Sock 10.Thread stoped [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:25]accept exits with 8 [21:32:25]New connection [21:32:25]New thread 3067071844 created [21:32:25]Thread 3067215204 joined [21:32:25]Waiting for new connection... [21:32:25] Sock 8.Parse request [21:32:25]Sock 8.Check first char [21:32:25]Sock 8.First char is OK [21:32:25]request: POST /json_proto HTTP/1.0 [21:32:25]Method: POST [21:32:25]URL: /json_proto [21:32:25]Method is POST - this is cgi request [21:32:25]url: /json_proto [21:32:25]query_string will be loaded in cgi processing [21:32:25]execute_cgi json_proto POST (null) [21:32:25]execute_cgi path=json_proto method=POST [21:32:25]POST find Content-Length [21:32:25]Host: 172.17.42.131:8080 [21:32:25]Content-Length: 679 [21:32:25]Content-Type: application/json [21:32:25] [21:32:25]POST finish read [21:32:25]Found Content-Length = 679 [21:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:32:25]execute_script... [21:32: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)211412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:32:25]POST & json_proto [21:32:25]process_json_proto [21:32:25]json parsed OK: [21:32:25]protocol is kg_v1.0 [21:32:25]action value=close_receipt [21:32:25]process_action close_receipt [21:32:25]cmd_close_receipt [21:32:25]MH_GetDate [21:32:25]Write to MH i2c: F0 00 00 71 7D DD [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 09 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: F0 09 00 71 7D 00 EE BC 1A 67 A0 18 CA 66 F9 [21:32:25]GetLastDocTimeStamp 1729805505 [21:32:25]current date 1729805550 [21:32:25]FM_GetShiftState [21:32:25]SAM_PROTO_GetShiftState [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 13 01 00 [21:32:25]Write to MH i2c: E2 08 00 72 7D 80 13 01 00 00 00 00 00 6C [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0E 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0E 00 72 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4A [21:32:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_GetShiftState done [21:32:25]FM_GetShiftState done [21:32:25]opened in 1729728961 [21:32:25]opened+sec_in_day 1729815361 [21:32:25]quantity*price = 200025 [21:32:25]sum+1 = 200026 [21:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 421 24.10.2024 21:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189348 ФПД: 109250463165568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189348&fm=109250463165568&tin=02508201610067®Number=0000000000100030&sum=200000 [21:32:26]StoreToDocumentArchive [21:32:26]shift 463 fd 189348 [21:32:26]save to /storage/0463/doc_00189348 [21:32:26]save last doc name /storage/0463/doc_00189348 to /storage/kkm_last_doc_name [21:32:26]save OK [21:32:26]Clear old archive folders... [21:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:32:26]tlvbuf is 01517A30 [21:32:26]SAM_PROTO_ClearQueue [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 09 00 00 [21:32:26]Write to MH i2c: E2 08 00 7F 7D 80 09 00 00 00 00 00 00 6E [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 7F 7D 00 90 00 70 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_ClearQueue done [21:32:26]KKMCreateOFDPacket [21:32:26]OFDProtocolAddRootSTLVToBuf [21:32:26]FM_MakeSignedData [21:32:26]FM_MakeSignedData [21:32:26]SAM_PROTO_SignData [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 01 02 [21:32:26]Write to MH i2c: E2 08 00 80 7D 80 0D 01 02 00 00 00 00 76 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 80 7D 00 90 00 71 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]wFMCommunicate request_size=255 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 EE BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E3 02 00 35 04 06 00 63 5C DB 0C [21:32:26]Write to MH i2c: E2 02 01 81 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 EE BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E3 02 00 35 04 06 00 63 5C DB 0C 00 00 9F [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 81 7D 00 90 00 72 [21:32:27]RAPDU: 90 00 [21:32:27]wFMCommunicate OK [21:32:27]wFMCommunicate request_size=7 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 0D 02 02 02 6C 80 [21:32:27]Write to MH i2c: E2 0A 00 82 7D 80 0D 02 02 02 00 6C 80 00 00 69 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 03 00 82 7D 00 90 00 73 [21:32:27]RAPDU: 90 00 [21:32:27]wFMCommunicate OK [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 0D 03 02 [21:32:27]Write to MH i2c: E2 08 00 83 7D 80 0D 03 02 00 00 00 00 7B [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 0B 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 0B 00 83 7D 00 0B C5 99 85 0D 53 D6 78 90 00 18 [21:32:27]RAPDU: 0B C5 99 85 0D 53 D6 78 90 00 [21:32:27]wFMCommunicate OK [21:32:27]SAM_PROTO_SignData done [21:32:27]FM_MakeSignedData done [21:32:27]CreateOFDProtocolMessage [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 11 00 00 [21:32:27]Write to MH i2c: E2 08 00 84 7D 80 11 00 00 00 00 00 00 7B [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 84 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [21:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:27]wFMCommunicate OK [21:32:27]CreateOFDProtocolMessage done [21:32:27]OFDSenderStorePacket 189348 [21:32:27]StoreOFDPacket docnum=189348 [21:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5A 0D 04 01 00 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 EE BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E3 02 00 35 04 06 00 63 5C DB 0C 6C 80 0B C5 99 85 0D 53 D6 78 [21:32:27]CheckFolder [21:32:27]dirname=/storage/ofd_packets [21:32:27]CheckFolder done [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00189348 [21:32:27]NVStorageSaveData ofd_packets/00189348 [21:32:27]File name is /storage/ofd_packets/00189348 [21:32:27]Write 298 bytes [21:32:27]NVStorageSaveData done [21:32:27]OFDSenderStorePacket done [21:32:27]KKMCreateOFDPacket done [21:32:27]NVStorageSaveData kkm_last_timestamp [21:32:27]File name is /storage/kkm_last_timestamp [21:32:27]Write 4 bytes [21:32:27]NVStorageSaveData done [21:32:27]ExternCall_PrintAddStr [21:32:27]wPrintStart [21:32:27]Write to MH i2c: 01 00 00 85 7D 02 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 85 7D 00 00 00 00 00 FF 0F 17 [21:32:27]RasterBufferAndPrint [21:32:27]line Счет N : (1)211412 [21:32:27]line ИНН: 02508201610067 [21:32:27]line Контрольно-Кассовый Чек [21:32:27]line ПРОДАЖА [21:32:27]line ТРК (МРК, ГНК) : 51 [21:32:27]line Товар: 2710194210 [21:32:27]line ДТ-К-5 [21:32:27]line 26.250 * 76.20 [21:32:27]line = 2000.25 [21:32:27]line НДС 12% НСП 1% [21:32:27]line > о реализуемом товаре [21:32:27]line ОКРУГЛЕНИЕ: -0.25 [21:32:27]line ИТОГО: 2000.00 [21:32:27]line Внесено: 2000.00 [21:32:27]line СДАЧА: 0.00 [21:32:27]line НСП 1% : 17.70 [21:32:27]line НДС 12% : 212.42 [21:32:27]line Наличными: 2000.00 [21:32:27]line Безнал.: 0.00 [21:32:27]line Место: АЗС № 86 "Партнер Нефть" [21:32:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:32:27]line СНО: Общий режим [21:32:27]line Чек 421 24.10.2024 21:32 [21:32:27]line Смена: 463 ФФД: 1.0 [21:32:27]line ЗНМ: 0300000155 [21:32:27]line РНМ: 0000000000100030 [21:32:27]line Версия ККМ: 001 [21:32:27]line ФМ: 0000000000965340 [21:32:27]line ФД: 189348 [21:32:27]line ФПД: 109250463165568 [21:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189348&fm=109250463165568&tin=02508201610067®Number=0000000000100030&sum=200000 [21:32:27]written 0, free lines is 4095 [21:32:27]OFD Sender: Processing packet 189348 [packets to send 1062, broken 1061] [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00189348 [21:32:27]OFD Sender: To server: pG, [21:32:27]CommunicateWithHost lk.salyk.kg:30040 [21:32:27]ConnectInit lk.salyk.kg [21:32:27]Connected sock=10 [21:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5A 0D 04 01 00 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 EE BC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 E3 02 00 35 04 06 00 63 5C DB 0C 6C 80 0B C5 99 85 0D 53 D6 78 [21:32:27]Write to MH i2c: 01 00 00 B0 7D 2D [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 B0 7D 00 00 00 00 00 4E 0C 8E [21:32:27]RasterBufferAndPrint [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]written 0, free lines is 3154 [21:32:27]MH_Cut [21:32:27]Write to MH i2c: D1 01 00 B7 7D 01 06 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 01 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 01 00 B7 7D 00 05 [21:32:27]Write to MH i2c: 01 00 00 B8 7D 35 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 77 47 00 A8 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 39 36 35 33 34 30 10 04 04 00 A4 E3 02 00 F4 03 04 00 D5 66 1A 67 B6 04 01 00 00 F4 A9 6C 59 11 A5 26 6F [21:32:27]CommunicateWithHost err = 0 [21:32:27]CheckOFDResponse [21:32:27]1017 (14) - 77093643461234 [21:32:27]1041 (16) - 0000000000965340 [21:32:27]1040 (4) - 189348 [21:32:27]1012 (4) - 24.10.2024 15:25 [21:32:27]1206 (1) - 0 [21:32:27]OFD Sender: Remove packet 189348 [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00189348 [21:32:27]NVStorageDeleteData [21:32:28]OFD Sender: No OFD packet to send [21:32:28]*** Cut start [21:32:28]*** Partial cut [21:32:28]*** CUTSNS_PIN = 1 [21:32:29]*** CUTSNS_PIN = 0 [21:32:29]*** Brake cut motor [21:32:29]Read from MH i2c: 01 [21:32:29]MH_I2C_Read... [21:32:29]*** Stop cut motor [21:32:29]*** Cut end [21:32:29]Read from MH i2c: 01 07 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 B8 7D 00 00 00 00 00 FF 0F 4A [21:32:29]process_action close_receipt done [21:32:29]requested_data is exist [21:32:29]produce_requested_data [21:32:29]requested_item fm.sn is exist - process it [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 11 00 00 [21:32:29]Write to MH i2c: E2 08 00 B9 7D 80 11 00 00 00 00 00 00 B0 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 17 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 17 00 B9 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [21:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:29]wFMCommunicate OK [21:32:29]requested_item fd.num is exist - process it [21:32:29]SAM_PROTO_GetFieldsCounters [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 13 00 00 [21:32:29]Write to MH i2c: E2 08 00 BA 7D 80 13 00 00 00 00 00 00 B3 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 62 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 62 00 BA 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E3 02 00 0E 04 04 00 CF 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 05 [21:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 E3 02 00 0E 04 04 00 CF 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 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_GetFieldsCounters done [21:32:29]requested_item shift.num is exist - process it [21:32:29]requested_item shift.opened is exist - process it [21:32:29]req_shift_opened [21:32:29]FM_GetShiftState [21:32:29]SAM_PROTO_GetShiftState [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 13 01 00 [21:32:29]Write to MH i2c: E2 08 00 BB 7D 80 13 01 00 00 00 00 00 B5 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 BB 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 93 [21:32:29]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_GetShiftState done [21:32:29]FM_GetShiftState done [21:32:29]req_shift_opened done [21:32:29]requested_item shift.open_date is exist - process it [21:32:29]req_shift_open_date [21:32:29]req_shift_open_date done [21:32:29]produce_requested_data done [21:32:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189348,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:32:29]process_action_free close_receipt [21:32:29]json_value_free [21:32:29]json_value_free done [21:32:29]process_json_proto returns [21:32:29]Send response to host [21:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189348,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:32:29]free response buf [21:32:29]execute_script done [21:32:29]execute_script returns [21:32:29]free content buf [21:32:29]Sock 8.Close socket [21:32:29]Sock 8.Thread stoped [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:20]accept exits with 9 [21:43:20]New connection [21:43:20]New thread 3067215204 created [21:43:20]Thread 3067071844 joined [21:43:20]Waiting for new connection... [21:43:20] Sock 9.Parse request [21:43:20]Sock 9.Check first char [21:43:20]Sock 9.First char is OK [21:43:20]request: POST /json_proto HTTP/1.0 [21:43:20]Method: POST [21:43:20]URL: /json_proto [21:43:20]Method is POST - this is cgi request [21:43:20]url: /json_proto [21:43:20]query_string will be loaded in cgi processing [21:43:20]execute_cgi json_proto POST (null) [21:43:20]execute_cgi path=json_proto method=POST [21:43:20]POST find Content-Length [21:43:20]Host: 172.17.42.131:8080 [21:43:20]Content-Length: 775 [21:43:20]Content-Type: application/json [21:43:20] [21:43:20]POST finish read [21:43:20]Found Content-Length = 775 [21:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 6000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:20]execute_script... [21:43: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)211414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 6000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:20]POST & json_proto [21:43:20]process_json_proto [21:43:20]json parsed OK: [21:43:20]protocol is kg_v1.0 [21:43:20]action value=close_receipt [21:43:20]process_action close_receipt [21:43:20]cmd_close_receipt [21:43:20]MH_GetDate [21:43:20]Write to MH i2c: F0 00 00 BC 7D 28 [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: F0 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: F0 09 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: F0 09 00 BC 7D 00 7E BF 1A 67 A0 18 CA 66 D7 [21:43:20]GetLastDocTimeStamp 1729805550 [21:43:20]current date 1729806206 [21:43:20]FM_GetShiftState [21:43:20]SAM_PROTO_GetShiftState [21:43:20]wFMCommunicate request_size=4 [21:43:20]MH_SAM_APDU [21:43:20]CAPDU: 80 13 01 00 [21:43:20]Write to MH i2c: E2 08 00 BD 7D 80 13 01 00 00 00 00 00 B7 [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:20]Read from MH i2c: E2 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: E2 0E 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: E2 0E 00 BD 7D 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 95 [21:43:20]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:43:20]wFMCommunicate OK [21:43:20]SAM_PROTO_GetShiftState done [21:43:20]FM_GetShiftState done [21:43:20]opened in 1729728961 [21:43:20]opened+sec_in_day 1729815361 [21:43:20]quantity*price = 600075 [21:43:20]sum+1 = 600077 [21:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.76 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 0.00 Безнал.: 6000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 422 24.10.2024 21:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189349 ФПД: 211561836781691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189349&fm=211561836781691&tin=02508201610067®Number=0000000000100030&sum=600076 [21:43:21]StoreToDocumentArchive [21:43:21]shift 463 fd 189349 [21:43:21]save to /storage/0463/doc_00189349 [21:43:21]save last doc name /storage/0463/doc_00189349 to /storage/kkm_last_doc_name [21:43:21]save OK [21:43:21]Clear old archive folders... [21:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:43:21]tlvbuf is 01533C90 [21:43:21]SAM_PROTO_ClearQueue [21:43:21]wFMCommunicate request_size=4 [21:43:21]MH_SAM_APDU [21:43:21]CAPDU: 80 09 00 00 [21:43:21]Write to MH i2c: E2 08 00 CA 7D 80 09 00 00 00 00 00 00 B9 [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:21]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 CA 7D 00 90 00 BB [21:43:22]RAPDU: 90 00 [21:43:22]wFMCommunicate OK [21:43:22]SAM_PROTO_ClearQueue done [21:43:22]KKMCreateOFDPacket [21:43:22]OFDProtocolAddRootSTLVToBuf [21:43:22]FM_MakeSignedData [21:43:22]FM_MakeSignedData [21:43:22]SAM_PROTO_SignData [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 0D 01 02 [21:43:22]Write to MH i2c: E2 08 00 CB 7D 80 0D 01 02 00 00 00 00 C1 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 CB 7D 00 90 00 BC [21:43:22]RAPDU: 90 00 [21:43:22]wFMCommunicate OK [21:43:22]wFMCommunicate request_size=255 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 7E BF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E3 02 [21:43:22]Write to MH i2c: E2 02 01 CC 7D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 7E BF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E3 02 00 00 81 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 CC 7D 00 90 00 BD [21:43:22]RAPDU: 90 00 [21:43:22]wFMCommunicate OK [21:43:22]wFMCommunicate request_size=16 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C0 6A 14 21 20 7B [21:43:22]Write to MH i2c: E2 13 00 CD 7D 80 0D 02 02 0B 00 00 35 04 06 00 C0 6A 14 21 20 7B 00 00 13 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 03 00 CD 7D 00 90 00 BE [21:43:22]RAPDU: 90 00 [21:43:22]wFMCommunicate OK [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 0D 03 02 [21:43:22]Write to MH i2c: E2 08 00 CE 7D 80 0D 03 02 00 00 00 00 C6 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 0B 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 0B 00 CE 7D 00 0C 13 95 D3 E8 30 B6 F3 90 00 0F [21:43:22]RAPDU: 0C 13 95 D3 E8 30 B6 F3 90 00 [21:43:22]wFMCommunicate OK [21:43:22]SAM_PROTO_SignData done [21:43:22]FM_MakeSignedData done [21:43:22]CreateOFDProtocolMessage [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 11 00 00 [21:43:22]Write to MH i2c: E2 08 00 CF 7D 80 11 00 00 00 00 00 00 C6 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:22]Read from MH i2c: E2 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 17 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: E2 17 00 CF 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [21:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:43:22]wFMCommunicate OK [21:43:22]CreateOFDProtocolMessage done [21:43:22]OFDSenderStorePacket 189349 [21:43:22]StoreOFDPacket docnum=189349 [21:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6E B5 0D 01 AA C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 7E BF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E3 02 00 35 04 06 00 C0 6A 14 21 20 7B 0C 13 95 D3 E8 30 B6 F3 [21:43:22]CheckFolder [21:43:22]dirname=/storage/ofd_packets [21:43:22]CheckFolder done [21:43:22]ProducePacketName [21:43:22]name=ofd_packets/00189349 [21:43:22]NVStorageSaveData ofd_packets/00189349 [21:43:22]File name is /storage/ofd_packets/00189349 [21:43:22]Write 307 bytes [21:43:22]NVStorageSaveData done [21:43:22]OFDSenderStorePacket done [21:43:22]KKMCreateOFDPacket done [21:43:22]NVStorageSaveData kkm_last_timestamp [21:43:22]File name is /storage/kkm_last_timestamp [21:43:22]Write 4 bytes [21:43:22]NVStorageSaveData done [21:43:22]ExternCall_PrintAddStr [21:43:22]wPrintStart [21:43:22]Write to MH i2c: 01 00 00 D0 7D 4D [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 07 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 07 00 D0 7D 00 00 00 00 00 FF 0F 62 [21:43:22]RasterBufferAndPrint [21:43:22]line Счет N : (1)211414 [21:43:22]line ИНН: 02508201610067 [21:43:22]line Контрольно-Кассовый Чек [21:43:22]line ПРОДАЖА [21:43:22]line ТРК (МРК, ГНК) : 21 [21:43:22]line Товар: 2710194210 [21:43:22]line D-ENERGY ДТ-К-5 [21:43:22]line 77.730 * 77.20 [21:43:22]line = 6000.76 [21:43:22]line НДС 12% НСП 1% [21:43:22]line > о реализуемом товаре [21:43:22]line ИТОГО: 6000.76 [21:43:22]line НСП 1% : 53.10 [21:43:22]line НДС 12% : 637.25 [21:43:22]line Наличными: 0.00 [21:43:22]line Безнал.: 6000.76 [21:43:22]line Место: АЗС № 86 "Партнер Нефть" [21:43:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:43:22]line СНО: Общий режим [21:43:22]line Чек 422 24.10.2024 21:43 [21:43:22]line Смена: 463 ФФД: 1.0 [21:43:22]line ЗНМ: 0300000155 [21:43:22]line РНМ: 0000000000100030 [21:43:22]line Версия ККМ: 001 [21:43:22]line Платежная система: Mbank [21:43:22]line ФМ: 0000000000965340 [21:43:22]line ФД: 189349 [21:43:22]line ФПД: 211561836781691 [21:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189349&fm=211561836781691&tin=02508201610067®Number=0000000000100030&sum=600076 [21:43:22]written 0, free lines is 4095 [21:43:22]OFD Sender: Processing packet 189349 [packets to send 1062, broken 1061] [21:43:22]ProducePacketName [21:43:22]name=ofd_packets/00189349 [21:43:22]OFD Sender: To server: pG, [21:43:22]CommunicateWithHost lk.salyk.kg:30040 [21:43:22]ConnectInit lk.salyk.kg [21:43:22]Connected sock=10 [21:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6E B5 0D 01 AA C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 7E BF 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 E3 02 00 35 04 06 00 C0 6A 14 21 20 7B 0C 13 95 D3 E8 30 B6 F3 [21:43:22]Write to MH i2c: 01 00 00 F9 7D 76 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 07 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: 01 07 00 F9 7D 00 00 00 00 00 76 0C FF [21:43:22]RasterBufferAndPrint [21:43:22]line [21:43:22]line [21:43:22]line [21:43:22]line [21:43:22]line [21:43:22]written 0, free lines is 3196 [21:43:22]MH_Cut [21:43:22]Write to MH i2c: D1 01 00 00 7E 01 50 [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: D1 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: D1 01 00 [21:43:22]MH_I2C_Read... [21:43:22]Read from MH i2c: D1 01 00 00 7E 00 4F [21:43:22]Write to MH i2c: 01 00 00 01 7E 7F [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E6 2B 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 A5 E3 02 00 F4 03 04 00 65 69 1A 67 B6 04 01 00 00 1B C7 19 0A 7E 87 6D 88 [21:43:23]CommunicateWithHost err = 0 [21:43:23]CheckOFDResponse [21:43:23]1017 (14) - 77093643461234 [21:43:23]1041 (16) - 0000000000965340 [21:43:23]1040 (4) - 189349 [21:43:23]1012 (4) - 24.10.2024 15:36 [21:43:23]1206 (1) - 0 [21:43:23]OFD Sender: Remove packet 189349 [21:43:23]ProducePacketName [21:43:23]name=ofd_packets/00189349 [21:43:23]NVStorageDeleteData [21:43:23]OFD Sender: No OFD packet to send [21:43:24]*** Cut start [21:43:24]*** Partial cut [21:43:24]*** CUTSNS_PIN = 1 [21:43:24]*** CUTSNS_PIN = 0 [21:43:24]*** Brake cut motor [21:43:24]Read from MH i2c: 01 [21:43:24]MH_I2C_Read... [21:43:24]*** Stop cut motor [21:43:24]*** Cut end [21:43:24]Read from MH i2c: 01 07 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 07 00 01 7E 00 00 00 00 00 FF 0F 94 [21:43:24]process_action close_receipt done [21:43:24]requested_data is exist [21:43:24]produce_requested_data [21:43:24]requested_item fm.sn is exist - process it [21:43:24]wFMCommunicate request_size=4 [21:43:24]MH_SAM_APDU [21:43:24]CAPDU: 80 11 00 00 [21:43:24]Write to MH i2c: E2 08 00 02 7E 80 11 00 00 00 00 00 00 FA [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:24]Read from MH i2c: E2 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: E2 17 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: E2 17 00 02 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [21:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:43:24]wFMCommunicate OK [21:43:24]requested_item fd.num is exist - process it [21:43:24]SAM_PROTO_GetFieldsCounters [21:43:24]wFMCommunicate request_size=4 [21:43:24]MH_SAM_APDU [21:43:24]CAPDU: 80 13 00 00 [21:43:24]Write to MH i2c: E2 08 00 03 7E 80 13 00 00 00 00 00 00 FD [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 03 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E3 02 00 0E 04 04 00 CF 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 53 [21:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 E3 02 00 0E 04 04 00 CF 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 [21:43:25]wFMCommunicate OK [21:43:25]SAM_PROTO_GetFieldsCounters done [21:43:25]requested_item shift.num is exist - process it [21:43:25]requested_item shift.opened is exist - process it [21:43:25]req_shift_opened [21:43:25]FM_GetShiftState [21:43:25]SAM_PROTO_GetShiftState [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 13 01 00 [21:43:25]Write to MH i2c: E2 08 00 04 7E 80 13 01 00 00 00 00 00 FF [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 0E 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 0E 00 04 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DD [21:43:25]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:43:25]wFMCommunicate OK [21:43:25]SAM_PROTO_GetShiftState done [21:43:25]FM_GetShiftState done [21:43:25]req_shift_opened done [21:43:25]requested_item shift.open_date is exist - process it [21:43:25]req_shift_open_date [21:43:25]req_shift_open_date done [21:43:25]produce_requested_data done [21:43:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189349,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:43:25]process_action_free close_receipt [21:43:25]json_value_free [21:43:25]json_value_free done [21:43:25]process_json_proto returns [21:43:25]Send response to host [21:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189349,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:43:25]free response buf [21:43:25]execute_script done [21:43:25]execute_script returns [21:43:25]free content buf [21:43:25]Sock 9.Close socket [21:43:25]Sock 9.Thread stoped [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:32]accept exits with 8 [21:48:32]New connection [21:48:32]New thread 3067071844 created [21:48:32]Thread 3067215204 joined [21:48:32]Waiting for new connection... [21:48:32] Sock 8.Parse request [21:48:32]Sock 8.Check first char [21:48:32]Sock 8.First char is OK [21:48:32]request: POST /json_proto HTTP/1.0 [21:48:32]Method: POST [21:48:32]URL: /json_proto [21:48:32]Method is POST - this is cgi request [21:48:32]url: /json_proto [21:48:32]query_string will be loaded in cgi processing [21:48:32]execute_cgi json_proto POST (null) [21:48:32]execute_cgi path=json_proto method=POST [21:48:32]POST find Content-Length [21:48:32]Host: 172.17.42.131:8080 [21:48:32]Content-Length: 983 [21:48:32]Content-Type: application/json [21:48:32] [21:48:32]POST finish read [21:48:32]Found Content-Length = 983 [21:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:48:32]execute_script... [21:48: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)211415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:48:32]POST & json_proto [21:48:32]process_json_proto [21:48:32]json parsed OK: [21:48:32]protocol is kg_v1.0 [21:48:32]action value=close_receipt [21:48:32]process_action close_receipt [21:48:32]cmd_close_receipt [21:48:32]MH_GetDate [21:48:32]Write to MH i2c: F0 00 00 05 7E 72 [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: F0 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: F0 09 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: F0 09 00 05 7E 00 B5 C0 1A 67 A0 18 CA 66 59 [21:48:32]GetLastDocTimeStamp 1729806206 [21:48:32]current date 1729806517 [21:48:32]FM_GetShiftState [21:48:32]SAM_PROTO_GetShiftState [21:48:32]wFMCommunicate request_size=4 [21:48:32]MH_SAM_APDU [21:48:32]CAPDU: 80 13 01 00 [21:48:32]Write to MH i2c: E2 08 00 06 7E 80 13 01 00 00 00 00 00 01 [21:48:32]Write i2c OK [21:48:32]MH_I2C_Read... [21:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:32]Read from MH i2c: E2 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 0E 00 [21:48:32]MH_I2C_Read... [21:48:32]Read from MH i2c: E2 0E 00 06 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 DF [21:48:32]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:48:32]wFMCommunicate OK [21:48:32]SAM_PROTO_GetShiftState done [21:48:32]FM_GetShiftState done [21:48:32]opened in 1729728961 [21:48:32]opened+sec_in_day 1729815361 [21:48:32]quantity*price = 200006 [21:48:32]sum+1 = 200008 [21:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 423 24.10.2024 21:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 189350 ФПД: 180658573867608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189350&fm=180658573867608&tin=02508201610067®Number=0000000000100030&sum=200000 [21:48:33]StoreToDocumentArchive [21:48:33]shift 463 fd 189350 [21:48:33]save to /storage/0463/doc_00189350 [21:48:33]save last doc name /storage/0463/doc_00189350 to /storage/kkm_last_doc_name [21:48:33]save OK [21:48:33]Clear old archive folders... [21:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:33]tlvbuf is 01700600 [21:48:33]SAM_PROTO_ClearQueue [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 09 00 00 [21:48:33]Write to MH i2c: E2 08 00 13 7E 80 09 00 00 00 00 00 00 03 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 13 7E 00 90 00 05 [21:48:33]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_ClearQueue done [21:48:33]KKMCreateOFDPacket [21:48:33]OFDProtocolAddRootSTLVToBuf [21:48:33]FM_MakeSignedData [21:48:33]FM_MakeSignedData [21:48:33]SAM_PROTO_SignData [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 0D 01 02 [21:48:33]Write to MH i2c: E2 08 00 14 7E 80 0D 01 02 00 00 00 00 0B [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 14 7E 00 90 00 06 [21:48:33]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]wFMCommunicate request_size=255 [21:48:33]MH_SAM_APDU [21:48: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 A7 01 00 00 F4 03 04 00 B5 C0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E3 02 00 35 04 06 00 A4 [21:48:33]Write to MH i2c: E2 02 01 15 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 A7 01 00 00 F4 03 04 00 B5 C0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E3 02 00 35 04 06 00 A4 00 00 A2 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 15 7E 00 90 00 07 [21:48:33]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]wFMCommunicate request_size=10 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 0D 02 02 05 4E DA 1E FA 58 [21:48:33]Write to MH i2c: E2 0D 00 16 7E 80 0D 02 02 05 00 4E DA 1E FA 58 00 00 B0 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 03 00 16 7E 00 90 00 08 [21:48:33]RAPDU: 90 00 [21:48:33]wFMCommunicate OK [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 0D 03 02 [21:48:33]Write to MH i2c: E2 08 00 17 7E 80 0D 03 02 00 00 00 00 10 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0B 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0B 00 17 7E 00 45 79 2C 7F 52 1A 40 1E 90 00 44 [21:48:33]RAPDU: 45 79 2C 7F 52 1A 40 1E 90 00 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_SignData done [21:48:33]FM_MakeSignedData done [21:48:33]CreateOFDProtocolMessage [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 11 00 00 [21:48:33]Write to MH i2c: E2 08 00 18 7E 80 11 00 00 00 00 00 00 10 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 17 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 17 00 18 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [21:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:48:33]wFMCommunicate OK [21:48:33]CreateOFDProtocolMessage done [21:48:33]OFDSenderStorePacket 189350 [21:48:33]StoreOFDPacket docnum=189350 [21:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 64 07 01 EF 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 A7 01 00 00 F4 03 04 00 B5 C0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E3 02 00 35 04 06 00 A4 4E DA 1E FA 58 45 79 2C 7F 52 1A 40 1E [21:48:33]CheckFolder [21:48:33]dirname=/storage/ofd_packets [21:48:33]CheckFolder done [21:48:33]ProducePacketName [21:48:33]name=ofd_packets/00189350 [21:48:33]NVStorageSaveData ofd_packets/00189350 [21:48:33]File name is /storage/ofd_packets/00189350 [21:48:33]Write 301 bytes [21:48:33]NVStorageSaveData done [21:48:33]OFDSenderStorePacket done [21:48:33]KKMCreateOFDPacket done [21:48:33]NVStorageSaveData kkm_last_timestamp [21:48:33]File name is /storage/kkm_last_timestamp [21:48:33]Write 4 bytes [21:48:33]NVStorageSaveData done [21:48:33]ExternCall_PrintAddStr [21:48:33]wPrintStart [21:48:33]Write to MH i2c: 01 00 00 19 7E 97 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: 01 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: 01 07 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: 01 07 00 19 7E 00 00 00 00 00 FF 0F AC [21:48:33]RasterBufferAndPrint [21:48:33]line Счет N : (1)211415 [21:48:33]line ИНН: 02508201610067 [21:48:33]line Контрольно-Кассовый Чек [21:48:33]line ПРОДАЖА [21:48:33]line ТРК (МРК, ГНК) : 32 [21:48:33]line Товар: 2710124130 [21:48:33]line Аи-92-К-3 [21:48:33]line 30.350 * 65.90 [21:48:33]line = 2000.07 [21:48:33]line НДС 12% НСП 1% [21:48:33]line > о реализуемом товаре [21:48:33]line ОКРУГЛЕНИЕ: -0.07 [21:48:33]line ИТОГО: 2000.00 [21:48:33]line Внесено: 2000.00 [21:48:33]line СДАЧА: 0.00 [21:48:33]line НСП 1% : 17.70 [21:48:33]line НДС 12% : 212.40 [21:48:33]line Наличными: 2000.00 [21:48:33]line Безнал.: 0.00 [21:48:33]line Место: АЗС № 86 "Партнер Нефть" [21:48:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:48:33]line СНО: Общий режим [21:48:33]line Чек 423 24.10.2024 21:48 [21:48:33]line Смена: 463 ФФД: 1.0 [21:48:33]line ЗНМ: 0300000155 [21:48:33]line РНМ: 0000000000100030 [21:48:33]line Версия ККМ: 001 [21:48:33]line [21:48:33]line Дисконтная программа [21:48:33]line АИ-92 [21:48:33]line номер 86 [21:48:33]line сэкономлено 30.35 сом [21:48:33]line ФМ: 0000000000965340 [21:48:33]line ФД: 189350 [21:48:33]line ФПД: 180658573867608 [21:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189350&fm=180658573867608&tin=02508201610067®Number=0000000000100030&sum=200000 [21:48:33]written 0, free lines is 4095 [21:48:33]OFD Sender: Processing packet 189350 [packets to send 1062, broken 1061] [21:48:33]ProducePacketName [21:48:33]name=ofd_packets/00189350 [21:48:33]OFD Sender: To server: pG, [21:48:33]CommunicateWithHost lk.salyk.kg:30040 [21:48:33]ConnectInit lk.salyk.kg [21:48:34]Connected sock=9 [21:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 64 07 01 EF 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 A7 01 00 00 F4 03 04 00 B5 C0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E3 02 00 35 04 06 00 A4 4E DA 1E FA 58 45 79 2C 7F 52 1A 40 1E [21:48:34]Write to MH i2c: 01 00 00 49 7E C7 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 07 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: 01 07 00 49 7E 00 00 00 00 00 DC 0B B5 [21:48:34]RasterBufferAndPrint [21:48:34]line [21:48:34]line [21:48:34]line [21:48:34]line [21:48:34]line [21:48:34]written 0, free lines is 3038 [21:48:34]MH_Cut [21:48:34]Write to MH i2c: D1 01 00 50 7E 01 A0 [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: D1 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: D1 01 00 [21:48:34]MH_I2C_Read... [21:48:34]Read from MH i2c: D1 01 00 50 7E 00 9F [21:48:34]Write to MH i2c: 01 00 00 51 7E CF [21:48:34]Write i2c OK [21:48:34]MH_I2C_Read... [21:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 69 B5 47 00 BD D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 E3 02 00 F4 03 04 00 9C 6A 1A 67 B6 04 01 00 00 36 6D 38 3E D7 B5 B5 28 [21:48:34]CommunicateWithHost err = 0 [21:48:34]CheckOFDResponse [21:48:34]1017 (14) - 77093643461234 [21:48:34]1041 (16) - 0000000000965340 [21:48:34]1040 (4) - 189350 [21:48:34]1012 (4) - 24.10.2024 15:41 [21:48:34]1206 (1) - 0 [21:48:34]OFD Sender: Remove packet 189350 [21:48:34]ProducePacketName [21:48:34]name=ofd_packets/00189350 [21:48:34]NVStorageDeleteData [21:48:35]OFD Sender: No OFD packet to send [21:48:35]*** Cut start [21:48:35]*** Partial cut [21:48:35]*** CUTSNS_PIN = 1 [21:48:35]*** CUTSNS_PIN = 0 [21:48:36]*** Brake cut motor [21:48:36]Read from MH i2c: 01 [21:48:36]MH_I2C_Read... [21:48:36]*** Stop cut motor [21:48:36]*** Cut end [21:48:36]Read from MH i2c: 01 07 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: 01 07 00 51 7E 00 00 00 00 00 FF 0F E4 [21:48:36]process_action close_receipt done [21:48:36]requested_data is exist [21:48:36]produce_requested_data [21:48:36]requested_item fm.sn is exist - process it [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 11 00 00 [21:48:36]Write to MH i2c: E2 08 00 52 7E 80 11 00 00 00 00 00 00 4A [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 17 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 17 00 52 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [21:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:48:36]wFMCommunicate OK [21:48:36]requested_item fd.num is exist - process it [21:48:36]SAM_PROTO_GetFieldsCounters [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 13 00 00 [21:48:36]Write to MH i2c: E2 08 00 53 7E 80 13 00 00 00 00 00 00 4D [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 62 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 62 00 53 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E3 02 00 0E 04 04 00 CF 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 A7 [21:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 E3 02 00 0E 04 04 00 CF 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 [21:48:36]wFMCommunicate OK [21:48:36]SAM_PROTO_GetFieldsCounters done [21:48:36]requested_item shift.num is exist - process it [21:48:36]requested_item shift.opened is exist - process it [21:48:36]req_shift_opened [21:48:36]FM_GetShiftState [21:48:36]SAM_PROTO_GetShiftState [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 13 01 00 [21:48:36]Write to MH i2c: E2 08 00 54 7E 80 13 01 00 00 00 00 00 4F [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 54 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2D [21:48:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:48:36]wFMCommunicate OK [21:48:36]SAM_PROTO_GetShiftState done [21:48:36]FM_GetShiftState done [21:48:36]req_shift_opened done [21:48:36]requested_item shift.open_date is exist - process it [21:48:36]req_shift_open_date [21:48:36]req_shift_open_date done [21:48:36]produce_requested_data done [21:48:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189350,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:48:36]process_action_free close_receipt [21:48:36]json_value_free [21:48:36]json_value_free done [21:48:36]process_json_proto returns [21:48:36]Send response to host [21:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189350,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:48:36]free response buf [21:48:36]execute_script done [21:48:36]execute_script returns [21:48:36]free content buf [21:48:36]Sock 8.Close socket [21:48:36]Sock 8.Thread stoped [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:39]accept exits with 10 [21:54:39]New connection [21:54:39]New thread 3067215204 created [21:54:39]Thread 3067071844 joined [21:54:39]Waiting for new connection... [21:54:39] Sock 10.Parse request [21:54:39]Sock 10.Check first char [21:54:39]Sock 10.First char is OK [21:54:39]request: POST /json_proto HTTP/1.0 [21:54:39]Method: POST [21:54:39]URL: /json_proto [21:54:39]Method is POST - this is cgi request [21:54:39]url: /json_proto [21:54:39]query_string will be loaded in cgi processing [21:54:39]execute_cgi json_proto POST (null) [21:54:39]execute_cgi path=json_proto method=POST [21:54:39]POST find Content-Length [21:54:39]Host: 172.17.42.131:8080 [21:54:39]Content-Length: 677 [21:54:39]Content-Type: application/json [21:54:39] [21:54:39]POST finish read [21:54:39]Found Content-Length = 677 [21:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [21:54:39]execute_script... [21:54: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)211416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [21:54:39]POST & json_proto [21:54:39]process_json_proto [21:54:39]json parsed OK: [21:54:39]protocol is kg_v1.0 [21:54:39]action value=close_receipt [21:54:39]process_action close_receipt [21:54:39]cmd_close_receipt [21:54:39]MH_GetDate [21:54:39]Write to MH i2c: F0 00 00 55 7E C2 [21:54:39]Write i2c OK [21:54:39]MH_I2C_Read... [21:54:39]Read from MH i2c: F0 [21:54:39]MH_I2C_Read... [21:54:39]Read from MH i2c: F0 09 00 [21:54:39]MH_I2C_Read... [21:54:39]Read from MH i2c: F0 09 00 55 7E 00 24 C2 1A 67 A0 18 CA 66 1A [21:54:39]GetLastDocTimeStamp 1729806517 [21:54:39]current date 1729806884 [21:54:39]FM_GetShiftState [21:54:39]SAM_PROTO_GetShiftState [21:54:39]wFMCommunicate request_size=4 [21:54:39]MH_SAM_APDU [21:54:39]CAPDU: 80 13 01 00 [21:54:39]Write to MH i2c: E2 08 00 56 7E 80 13 01 00 00 00 00 00 51 [21:54:39]Write i2c OK [21:54:39]MH_I2C_Read... [21:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:39]Read from MH i2c: E2 [21:54:39]MH_I2C_Read... [21:54:39]Read from MH i2c: E2 0E 00 [21:54:39]MH_I2C_Read... [21:54:39]Read from MH i2c: E2 0E 00 56 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2F [21:54:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:54:39]wFMCommunicate OK [21:54:39]SAM_PROTO_GetShiftState done [21:54:39]FM_GetShiftState done [21:54:39]opened in 1729728961 [21:54:39]opened+sec_in_day 1729815361 [21:54:39]quantity*price = 30038 [21:54:39]sum+1 = 30039 [21:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 424 24.10.2024 21:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189351 ФПД: 245853712933511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215444&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189351&fm=245853712933511&tin=02508201610067®Number=0000000000100030&sum=30000 [21:54:40]StoreToDocumentArchive [21:54:40]shift 463 fd 189351 [21:54:40]save to /storage/0463/doc_00189351 [21:54:40]save last doc name /storage/0463/doc_00189351 to /storage/kkm_last_doc_name [21:54:40]save OK [21:54:40]Clear old archive folders... [21:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:40]tlvbuf is 015176D0 [21:54:40]SAM_PROTO_ClearQueue [21:54:40]wFMCommunicate request_size=4 [21:54:40]MH_SAM_APDU [21:54:40]CAPDU: 80 09 00 00 [21:54:40]Write to MH i2c: E2 08 00 63 7E 80 09 00 00 00 00 00 00 53 [21:54:40]Write i2c OK [21:54:40]MH_I2C_Read... [21:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:40]Read from MH i2c: E2 [21:54:40]MH_I2C_Read... [21:54:40]Read from MH i2c: E2 03 00 [21:54:40]MH_I2C_Read... [21:54:40]Read from MH i2c: E2 03 00 63 7E 00 90 00 55 [21:54:40]RAPDU: 90 00 [21:54:40]wFMCommunicate OK [21:54:40]SAM_PROTO_ClearQueue done [21:54:40]KKMCreateOFDPacket [21:54:40]OFDProtocolAddRootSTLVToBuf [21:54:40]FM_MakeSignedData [21:54:40]FM_MakeSignedData [21:54:40]SAM_PROTO_SignData [21:54:40]wFMCommunicate request_size=4 [21:54:40]MH_SAM_APDU [21:54:40]CAPDU: 80 0D 01 02 [21:54:40]Write to MH i2c: E2 08 00 64 7E 80 0D 01 02 00 00 00 00 5B [21:54:40]Write i2c OK [21:54:40]MH_I2C_Read... [21:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:40]Read from MH i2c: E2 [21:54:40]MH_I2C_Read... [21:54:40]Read from MH i2c: E2 03 00 [21:54:40]MH_I2C_Read... [21:54:40]Read from MH i2c: E2 03 00 64 7E 00 90 00 56 [21:54:40]RAPDU: 90 00 [21:54:40]wFMCommunicate OK [21:54:40]wFMCommunicate request_size=255 [21:54:40]MH_SAM_APDU [21:54: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 A8 01 00 00 F4 03 04 00 24 C2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E3 02 00 35 04 06 00 DF [21:54:40]Write to MH i2c: E2 02 01 65 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 A8 01 00 00 F4 03 04 00 24 C2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E3 02 00 35 04 06 00 DF 00 00 0D [21:54:40]Write i2c OK [21:54:40]MH_I2C_Read... [21:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:41]Read from MH i2c: E2 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 03 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 03 00 65 7E 00 90 00 57 [21:54:41]RAPDU: 90 00 [21:54:41]wFMCommunicate OK [21:54:41]wFMCommunicate request_size=10 [21:54:41]MH_SAM_APDU [21:54:41]CAPDU: 80 0D 02 02 05 9A 47 39 E2 87 [21:54:41]Write to MH i2c: E2 0D 00 66 7E 80 0D 02 02 05 00 9A 47 39 E2 87 00 00 EB [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:41]Read from MH i2c: E2 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 03 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 03 00 66 7E 00 90 00 58 [21:54:41]RAPDU: 90 00 [21:54:41]wFMCommunicate OK [21:54:41]wFMCommunicate request_size=4 [21:54:41]MH_SAM_APDU [21:54:41]CAPDU: 80 0D 03 02 [21:54:41]Write to MH i2c: E2 08 00 67 7E 80 0D 03 02 00 00 00 00 60 [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:41]Read from MH i2c: E2 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 0B 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 0B 00 67 7E 00 37 04 AE 6E 7D BB 51 B1 90 00 F2 [21:54:41]RAPDU: 37 04 AE 6E 7D BB 51 B1 90 00 [21:54:41]wFMCommunicate OK [21:54:41]SAM_PROTO_SignData done [21:54:41]FM_MakeSignedData done [21:54:41]CreateOFDProtocolMessage [21:54:41]wFMCommunicate request_size=4 [21:54:41]MH_SAM_APDU [21:54:41]CAPDU: 80 11 00 00 [21:54:41]Write to MH i2c: E2 08 00 68 7E 80 11 00 00 00 00 00 00 60 [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:41]Read from MH i2c: E2 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 17 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: E2 17 00 68 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [21:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:41]wFMCommunicate OK [21:54:41]CreateOFDProtocolMessage done [21:54:41]OFDSenderStorePacket 189351 [21:54:41]StoreOFDPacket docnum=189351 [21:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 86 07 01 3C 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 A8 01 00 00 F4 03 04 00 24 C2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E3 02 00 35 04 06 00 DF 9A 47 39 E2 87 37 04 AE 6E 7D BB 51 B1 [21:54:41]CheckFolder [21:54:41]dirname=/storage/ofd_packets [21:54:41]CheckFolder done [21:54:41]ProducePacketName [21:54:41]name=ofd_packets/00189351 [21:54:41]NVStorageSaveData ofd_packets/00189351 [21:54:41]File name is /storage/ofd_packets/00189351 [21:54:41]Write 301 bytes [21:54:41]NVStorageSaveData done [21:54:41]OFDSenderStorePacket done [21:54:41]KKMCreateOFDPacket done [21:54:41]NVStorageSaveData kkm_last_timestamp [21:54:41]File name is /storage/kkm_last_timestamp [21:54:41]Write 4 bytes [21:54:41]NVStorageSaveData done [21:54:41]ExternCall_PrintAddStr [21:54:41]wPrintStart [21:54:41]Write to MH i2c: 01 00 00 69 7E E7 [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 07 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 07 00 69 7E 00 00 00 00 00 FF 0F FC [21:54:41]RasterBufferAndPrint [21:54:41]line Счет N : (1)211416 [21:54:41]line ИНН: 02508201610067 [21:54:41]line Контрольно-Кассовый Чек [21:54:41]line ПРОДАЖА [21:54:41]line ТРК (МРК, ГНК) : 12 [21:54:41]line Товар: 2710124130 [21:54:41]line Аи-92-К-3 [21:54:41]line 4.490 * 66.90 [21:54:41]line = 300.38 [21:54:41]line НДС 12% НСП 1% [21:54:41]line > о реализуемом товаре [21:54:41]line ОКРУГЛЕНИЕ: -0.38 [21:54:41]line ИТОГО: 300.00 [21:54:41]line Внесено: 300.00 [21:54:41]line СДАЧА: 0.00 [21:54:41]line НСП 1% : 2.66 [21:54:41]line НДС 12% : 31.90 [21:54:41]line Наличными: 300.00 [21:54:41]line Безнал.: 0.00 [21:54:41]line Место: АЗС № 86 "Партнер Нефть" [21:54:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:54:41]line СНО: Общий режим [21:54:41]line Чек 424 24.10.2024 21:54 [21:54:41]line Смена: 463 ФФД: 1.0 [21:54:41]line ЗНМ: 0300000155 [21:54:41]line РНМ: 0000000000100030 [21:54:41]line Версия ККМ: 001 [21:54:41]line ФМ: 0000000000965340 [21:54:41]line ФД: 189351 [21:54:41]line ФПД: 245853712933511 [21:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215444&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189351&fm=245853712933511&tin=02508201610067®Number=0000000000100030&sum=30000 [21:54:41]written 0, free lines is 4095 [21:54:41]OFD Sender: Processing packet 189351 [packets to send 1062, broken 1061] [21:54:41]ProducePacketName [21:54:41]name=ofd_packets/00189351 [21:54:41]OFD Sender: To server: pG, [21:54:41]CommunicateWithHost lk.salyk.kg:30040 [21:54:41]ConnectInit lk.salyk.kg [21:54:41]Connected sock=9 [21:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 86 07 01 3C 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 A8 01 00 00 F4 03 04 00 24 C2 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E3 02 00 35 04 06 00 DF 9A 47 39 E2 87 37 04 AE 6E 7D BB 51 B1 [21:54:41]Write to MH i2c: 01 00 00 94 7E 12 [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 07 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: 01 07 00 94 7E 00 00 00 00 00 50 0C 75 [21:54:41]RasterBufferAndPrint [21:54:41]line [21:54:41]line [21:54:41]line [21:54:41]line [21:54:41]line [21:54:41]written 0, free lines is 3155 [21:54:41]MH_Cut [21:54:41]Write to MH i2c: D1 01 00 9B 7E 01 EB [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: D1 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: D1 01 00 [21:54:41]MH_I2C_Read... [21:54:41]Read from MH i2c: D1 01 00 9B 7E 00 EA [21:54:41]Write to MH i2c: 01 00 00 9C 7E 1A [21:54:41]Write i2c OK [21:54:41]MH_I2C_Read... [21:54:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF F4 47 00 28 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 E3 02 00 F4 03 04 00 0B 6C 1A 67 B6 04 01 00 00 AD 47 CF 65 CC B0 6D ED [21:54:42]CommunicateWithHost err = 0 [21:54:42]CheckOFDResponse [21:54:42]1017 (14) - 77093643461234 [21:54:42]1041 (16) - 0000000000965340 [21:54:42]1040 (4) - 189351 [21:54:42]1012 (4) - 24.10.2024 15:47 [21:54:42]1206 (1) - 0 [21:54:42]OFD Sender: Remove packet 189351 [21:54:42]ProducePacketName [21:54:42]name=ofd_packets/00189351 [21:54:42]NVStorageDeleteData [21:54:42]OFD Sender: No OFD packet to send [21:54:43]*** Cut start [21:54:43]*** Partial cut [21:54:43]*** CUTSNS_PIN = 1 [21:54:43]*** CUTSNS_PIN = 0 [21:54:43]*** Brake cut motor [21:54:43]Read from MH i2c: 01 [21:54:43]MH_I2C_Read... [21:54:43]*** Stop cut motor [21:54:43]*** Cut end [21:54:43]Read from MH i2c: 01 07 00 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: 01 07 00 9C 7E 00 00 00 00 00 FF 0F 2F [21:54:43]process_action close_receipt done [21:54:43]requested_data is exist [21:54:43]produce_requested_data [21:54:43]requested_item fm.sn is exist - process it [21:54:43]wFMCommunicate request_size=4 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 11 00 00 [21:54:43]Write to MH i2c: E2 08 00 9D 7E 80 11 00 00 00 00 00 00 95 [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:43]Read from MH i2c: E2 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 17 00 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 17 00 9D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [21:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:43]wFMCommunicate OK [21:54:43]requested_item fd.num is exist - process it [21:54:43]SAM_PROTO_GetFieldsCounters [21:54:43]wFMCommunicate request_size=4 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 13 00 00 [21:54:43]Write to MH i2c: E2 08 00 9E 7E 80 13 00 00 00 00 00 00 98 [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:43]Read from MH i2c: E2 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 62 00 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 62 00 9E 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E3 02 00 0E 04 04 00 CF 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 F6 [21:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 E3 02 00 0E 04 04 00 CF 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 [21:54:43]wFMCommunicate OK [21:54:43]SAM_PROTO_GetFieldsCounters done [21:54:43]requested_item shift.num is exist - process it [21:54:43]requested_item shift.opened is exist - process it [21:54:43]req_shift_opened [21:54:43]FM_GetShiftState [21:54:43]SAM_PROTO_GetShiftState [21:54:43]wFMCommunicate request_size=4 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 13 01 00 [21:54:43]Write to MH i2c: E2 08 00 9F 7E 80 13 01 00 00 00 00 00 9A [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0E 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0E 00 9F 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 78 [21:54:44]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [21:54:44]wFMCommunicate OK [21:54:44]SAM_PROTO_GetShiftState done [21:54:44]FM_GetShiftState done [21:54:44]req_shift_opened done [21:54:44]requested_item shift.open_date is exist - process it [21:54:44]req_shift_open_date [21:54:44]req_shift_open_date done [21:54:44]produce_requested_data done [21:54:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189351,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [21:54:44]process_action_free close_receipt [21:54:44]json_value_free [21:54:44]json_value_free done [21:54:44]process_json_proto returns [21:54:44]Send response to host [21:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189351,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [21:54:44]free response buf [21:54:44]execute_script done [21:54:44]execute_script returns [21:54:44]free content buf [21:54:44]Sock 10.Close socket [21:54:44]Sock 10.Thread stoped [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07: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:11]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10: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:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]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:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]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:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:04]accept exits with 8 [22:17:04]New connection [22:17:04]New thread 3067071844 created [22:17:04]Thread 3067215204 joined [22:17:04]Waiting for new connection... [22:17:04] Sock 8.Parse request [22:17:04]Sock 8.Check first char [22:17:04]Sock 8.First char is OK [22:17:04]request: POST /json_proto HTTP/1.0 [22:17:04]Method: POST [22:17:04]URL: /json_proto [22:17:04]Method is POST - this is cgi request [22:17:04]url: /json_proto [22:17:04]query_string will be loaded in cgi processing [22:17:04]execute_cgi json_proto POST (null) [22:17:04]execute_cgi path=json_proto method=POST [22:17:04]POST find Content-Length [22:17:04]Host: 172.17.42.131:8080 [22:17:04]Content-Length: 816 [22:17:04]Content-Type: application/json [22:17:04] [22:17:04]POST finish read [22:17:04]Found Content-Length = 816 [22:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.040, "sum" : 270.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" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:04]execute_script... [22: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)211417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.040, "sum" : 270.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" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:04]POST & json_proto [22:17:04]process_json_proto [22:17:04]json parsed OK: [22:17:04]protocol is kg_v1.0 [22:17:04]action value=close_receipt [22:17:04]process_action close_receipt [22:17:04]cmd_close_receipt [22:17:04]MH_GetDate [22:17:04]Write to MH i2c: F0 00 00 A0 7E 0D [22:17:04]Write i2c OK [22:17:04]MH_I2C_Read... [22:17:04]Read from MH i2c: F0 [22:17:04]MH_I2C_Read... [22:17:04]Read from MH i2c: F0 09 00 [22:17:04]MH_I2C_Read... [22:17:04]Read from MH i2c: F0 09 00 A0 7E 00 66 C7 1A 67 A0 18 CA 66 AC [22:17:04]GetLastDocTimeStamp 1729806884 [22:17:04]current date 1729808230 [22:17:04]FM_GetShiftState [22:17:04]SAM_PROTO_GetShiftState [22:17:04]wFMCommunicate request_size=4 [22:17:04]MH_SAM_APDU [22:17:04]CAPDU: 80 13 01 00 [22:17:04]Write to MH i2c: E2 08 00 A1 7E 80 13 01 00 00 00 00 00 9C [22:17:04]Write i2c OK [22:17:04]MH_I2C_Read... [22:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:04]Read from MH i2c: E2 [22:17:04]MH_I2C_Read... [22:17:04]Read from MH i2c: E2 0E 00 [22:17:04]MH_I2C_Read... [22:17:04]Read from MH i2c: E2 0E 00 A1 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 7A [22:17:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:17:04]wFMCommunicate OK [22:17:04]SAM_PROTO_GetShiftState done [22:17:04]FM_GetShiftState done [22:17:04]opened in 1729728961 [22:17:04]opened+sec_in_day 1729815361 [22:17:04]quantity*price = 27027 [22:17:04]sum+1 = 27029 [22:17:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.28 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 0.00 Безнал.: 270.28 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 425 24.10.2024 22:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189352 ФПД: 19174163314997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189352&fm=19174163314997&tin=02508201610067®Number=0000000000100030&sum=27028 [22:17:05]StoreToDocumentArchive [22:17:05]shift 463 fd 189352 [22:17:05]save to /storage/0463/doc_00189352 [22:17:05]save last doc name /storage/0463/doc_00189352 to /storage/kkm_last_doc_name [22:17:05]save OK [22:17:05]Clear old archive folders... [22:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:05]tlvbuf is 015B8F10 [22:17:05]SAM_PROTO_ClearQueue [22:17:05]wFMCommunicate request_size=4 [22:17:05]MH_SAM_APDU [22:17:05]CAPDU: 80 09 00 00 [22:17:05]Write to MH i2c: E2 08 00 AE 7E 80 09 00 00 00 00 00 00 9E [22:17:05]Write i2c OK [22:17:05]MH_I2C_Read... [22:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:05]Read from MH i2c: E2 [22:17:05]MH_I2C_Read... [22:17:05]Read from MH i2c: E2 03 00 [22:17:05]MH_I2C_Read... [22:17:05]Read from MH i2c: E2 03 00 AE 7E 00 90 00 A0 [22:17:05]RAPDU: 90 00 [22:17:05]wFMCommunicate OK [22:17:05]SAM_PROTO_ClearQueue done [22:17:05]KKMCreateOFDPacket [22:17:05]OFDProtocolAddRootSTLVToBuf [22:17:05]FM_MakeSignedData [22:17:05]FM_MakeSignedData [22:17:05]SAM_PROTO_SignData [22:17:05]wFMCommunicate request_size=4 [22:17:05]MH_SAM_APDU [22:17:05]CAPDU: 80 0D 01 02 [22:17:05]Write to MH i2c: E2 08 00 AF 7E 80 0D 01 02 00 00 00 00 A6 [22:17:05]Write i2c OK [22:17:05]MH_I2C_Read... [22:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:05]Read from MH i2c: E2 [22:17:05]MH_I2C_Read... [22:17:05]Read from MH i2c: E2 03 00 [22:17:05]MH_I2C_Read... [22:17:05]Read from MH i2c: E2 03 00 AF 7E 00 90 00 A1 [22:17:05]RAPDU: 90 00 [22:17:05]wFMCommunicate OK [22:17:05]wFMCommunicate request_size=255 [22:17:05]MH_SAM_APDU [22: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 33 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 66 C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E3 02 00 35 04 06 00 11 [22:17:05]Write to MH i2c: E2 02 01 B0 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 33 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 66 C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E3 02 00 35 04 06 00 11 00 00 94 [22:17:05]Write i2c OK [22:17:05]MH_I2C_Read... [22:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:06]Read from MH i2c: E2 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 03 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 03 00 B0 7E 00 90 00 A2 [22:17:06]RAPDU: 90 00 [22:17:06]wFMCommunicate OK [22:17:06]wFMCommunicate request_size=10 [22:17:06]MH_SAM_APDU [22:17:06]CAPDU: 80 0D 02 02 05 70 55 31 79 35 [22:17:06]Write to MH i2c: E2 0D 00 B1 7E 80 0D 02 02 05 00 70 55 31 79 35 00 00 57 [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:06]Read from MH i2c: E2 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 03 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 03 00 B1 7E 00 90 00 A3 [22:17:06]RAPDU: 90 00 [22:17:06]wFMCommunicate OK [22:17:06]wFMCommunicate request_size=4 [22:17:06]MH_SAM_APDU [22:17:06]CAPDU: 80 0D 03 02 [22:17:06]Write to MH i2c: E2 08 00 B2 7E 80 0D 03 02 00 00 00 00 AB [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:06]Read from MH i2c: E2 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 0B 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 0B 00 B2 7E 00 B5 24 59 D6 A9 81 40 76 90 00 94 [22:17:06]RAPDU: B5 24 59 D6 A9 81 40 76 90 00 [22:17:06]wFMCommunicate OK [22:17:06]SAM_PROTO_SignData done [22:17:06]FM_MakeSignedData done [22:17:06]CreateOFDProtocolMessage [22:17:06]wFMCommunicate request_size=4 [22:17:06]MH_SAM_APDU [22:17:06]CAPDU: 80 11 00 00 [22:17:06]Write to MH i2c: E2 08 00 B3 7E 80 11 00 00 00 00 00 00 AB [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:06]Read from MH i2c: E2 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 17 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: E2 17 00 B3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [22:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:06]wFMCommunicate OK [22:17:06]CreateOFDProtocolMessage done [22:17:06]OFDSenderStorePacket 189352 [22:17:06]StoreOFDPacket docnum=189352 [22:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D 49 07 01 95 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 33 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 66 C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E3 02 00 35 04 06 00 11 70 55 31 79 35 B5 24 59 D6 A9 81 40 76 [22:17:06]CheckFolder [22:17:06]dirname=/storage/ofd_packets [22:17:06]CheckFolder done [22:17:06]ProducePacketName [22:17:06]name=ofd_packets/00189352 [22:17:06]NVStorageSaveData ofd_packets/00189352 [22:17:06]File name is /storage/ofd_packets/00189352 [22:17:06]Write 301 bytes [22:17:06]NVStorageSaveData done [22:17:06]OFDSenderStorePacket done [22:17:06]KKMCreateOFDPacket done [22:17:06]NVStorageSaveData kkm_last_timestamp [22:17:06]File name is /storage/kkm_last_timestamp [22:17:06]Write 4 bytes [22:17:06]NVStorageSaveData done [22:17:06]ExternCall_PrintAddStr [22:17:06]wPrintStart [22:17:06]Write to MH i2c: 01 00 00 B4 7E 32 [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 07 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 07 00 B4 7E 00 00 00 00 00 FF 0F 47 [22:17:06]RasterBufferAndPrint [22:17:06]line Счет N : (1)211417 [22:17:06]line ИНН: 02508201610067 [22:17:06]line Контрольно-Кассовый Чек [22:17:06]line ПРОДАЖА [22:17:06]line ТРК (МРК, ГНК) : 12 [22:17:06]line Товар: 2710124130 [22:17:06]line Аи-92-К-3 [22:17:06]line 4.040 * 66.90 [22:17:06]line = 270.28 [22:17:06]line НДС 12% НСП 1% [22:17:06]line > о реализуемом товаре [22:17:06]line ИТОГО: 270.28 [22:17:06]line НСП 1% : 2.39 [22:17:06]line НДС 12% : 28.70 [22:17:06]line Наличными: 0.00 [22:17:06]line Безнал.: 270.28 [22:17:06]line Место: АЗС № 86 "Партнер Нефть" [22:17:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:17:06]line СНО: Общий режим [22:17:06]line Чек 425 24.10.2024 22:17 [22:17:06]line Смена: 463 ФФД: 1.0 [22:17:06]line ЗНМ: 0300000155 [22:17:06]line РНМ: 0000000000100030 [22:17:06]line Версия ККМ: 001 [22:17:06]line Платежная система: Бакай Банк [22:17:06]line ФМ: 0000000000965340 [22:17:06]line ФД: 189352 [22:17:06]line ФПД: 19174163314997 [22:17:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189352&fm=19174163314997&tin=02508201610067®Number=0000000000100030&sum=27028 [22:17:06]written 0, free lines is 4095 [22:17:06]OFD Sender: Processing packet 189352 [packets to send 1062, broken 1061] [22:17:06]ProducePacketName [22:17:06]name=ofd_packets/00189352 [22:17:06]OFD Sender: To server: pG, [22:17:06]CommunicateWithHost lk.salyk.kg:30040 [22:17:06]ConnectInit lk.salyk.kg [22:17:06]Connected sock=9 [22:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D 49 07 01 95 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 33 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 66 C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E3 02 00 35 04 06 00 11 70 55 31 79 35 B5 24 59 D6 A9 81 40 76 [22:17:06]Write to MH i2c: 01 00 00 DE 7E 5C [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 07 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: 01 07 00 DE 7E 00 00 00 00 00 68 0C D7 [22:17:06]RasterBufferAndPrint [22:17:06]line [22:17:06]line [22:17:06]line [22:17:06]line [22:17:06]line [22:17:06]written 0, free lines is 3181 [22:17:06]MH_Cut [22:17:06]Write to MH i2c: D1 01 00 E5 7E 01 35 [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: D1 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: D1 01 00 [22:17:06]MH_I2C_Read... [22:17:06]Read from MH i2c: D1 01 00 E5 7E 00 34 [22:17:06]Write to MH i2c: 01 00 00 E6 7E 64 [22:17:06]Write i2c OK [22:17:06]MH_I2C_Read... [22:17:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 55 47 00 81 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 E3 02 00 F4 03 04 00 4D 71 1A 67 B6 04 01 00 00 00 F5 6D 9C D6 8F 4A C9 [22:17:07]CommunicateWithHost err = 0 [22:17:07]CheckOFDResponse [22:17:07]1017 (14) - 77093643461234 [22:17:07]1041 (16) - 0000000000965340 [22:17:07]1040 (4) - 189352 [22:17:07]1012 (4) - 24.10.2024 16:09 [22:17:07]1206 (1) - 0 [22:17:07]OFD Sender: Remove packet 189352 [22:17:07]ProducePacketName [22:17:07]name=ofd_packets/00189352 [22:17:07]NVStorageDeleteData [22:17:07]OFD Sender: No OFD packet to send [22:17:08]*** Cut start [22:17:08]*** Partial cut [22:17:08]*** CUTSNS_PIN = 1 [22:17:08]*** CUTSNS_PIN = 0 [22:17:08]*** Brake cut motor [22:17:08]Read from MH i2c: 01 [22:17:08]MH_I2C_Read... [22:17:08]*** Stop cut motor [22:17:08]*** Cut end [22:17:08]Read from MH i2c: 01 07 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: 01 07 00 E6 7E 00 00 00 00 00 FF 0F 79 [22:17:08]process_action close_receipt done [22:17:08]requested_data is exist [22:17:08]produce_requested_data [22:17:08]requested_item fm.sn is exist - process it [22:17:08]wFMCommunicate request_size=4 [22:17:08]MH_SAM_APDU [22:17:08]CAPDU: 80 11 00 00 [22:17:08]Write to MH i2c: E2 08 00 E7 7E 80 11 00 00 00 00 00 00 DF [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:08]Read from MH i2c: E2 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 17 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 17 00 E7 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [22:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:08]wFMCommunicate OK [22:17:08]requested_item fd.num is exist - process it [22:17:08]SAM_PROTO_GetFieldsCounters [22:17:08]wFMCommunicate request_size=4 [22:17:08]MH_SAM_APDU [22:17:08]CAPDU: 80 13 00 00 [22:17:08]Write to MH i2c: E2 08 00 E8 7E 80 13 00 00 00 00 00 00 E2 [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 62 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 62 00 E8 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E3 02 00 0E 04 04 00 CF 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 44 [22:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 E3 02 00 0E 04 04 00 CF 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 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_GetFieldsCounters done [22:17:09]requested_item shift.num is exist - process it [22:17:09]requested_item shift.opened is exist - process it [22:17:09]req_shift_opened [22:17:09]FM_GetShiftState [22:17:09]SAM_PROTO_GetShiftState [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 13 01 00 [22:17:09]Write to MH i2c: E2 08 00 E9 7E 80 13 01 00 00 00 00 00 E4 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0E 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0E 00 E9 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C2 [22:17:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_GetShiftState done [22:17:09]FM_GetShiftState done [22:17:09]req_shift_opened done [22:17:09]requested_item shift.open_date is exist - process it [22:17:09]req_shift_open_date [22:17:09]req_shift_open_date done [22:17:09]produce_requested_data done [22:17:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189352,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:17:09]process_action_free close_receipt [22:17:09]json_value_free [22:17:09]json_value_free done [22:17:09]process_json_proto returns [22:17:09]Send response to host [22:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189352,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:17:09]free response buf [22:17:09]execute_script done [22:17:09]execute_script returns [22:17:09]free content buf [22:17:09]Sock 8.Close socket [22:17:09]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:38]accept exits with 10 [22:19:38]New connection [22:19:38]New thread 3067215204 created [22:19:38]Thread 3067071844 joined [22:19:38]Waiting for new connection... [22:19:38] Sock 10.Parse request [22:19:38]Sock 10.Check first char [22:19:38]Sock 10.First char is OK [22:19:38]request: POST /json_proto HTTP/1.0 [22:19:38]Method: POST [22:19:38]URL: /json_proto [22:19:38]Method is POST - this is cgi request [22:19:38]url: /json_proto [22:19:38]query_string will be loaded in cgi processing [22:19:38]execute_cgi json_proto POST (null) [22:19:38]execute_cgi path=json_proto method=POST [22:19:38]POST find Content-Length [22:19:38]Host: 172.17.42.131:8080 [22:19:38]Content-Length: 819 [22:19:38]Content-Type: application/json [22:19:38] [22:19:38]POST finish read [22:19:38]Found Content-Length = 819 [22:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:38]execute_script... [22:19: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)211418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:38]POST & json_proto [22:19:38]process_json_proto [22:19:38]json parsed OK: [22:19:38]protocol is kg_v1.0 [22:19:38]action value=close_receipt [22:19:38]process_action close_receipt [22:19:38]cmd_close_receipt [22:19:38]MH_GetDate [22:19:38]Write to MH i2c: F0 00 00 EA 7E 57 [22:19:38]Write i2c OK [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: F0 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: F0 09 00 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: F0 09 00 EA 7E 00 FF C7 1A 67 A0 18 CA 66 8F [22:19:38]GetLastDocTimeStamp 1729808230 [22:19:38]current date 1729808383 [22:19:38]FM_GetShiftState [22:19:38]SAM_PROTO_GetShiftState [22:19:38]wFMCommunicate request_size=4 [22:19:38]MH_SAM_APDU [22:19:38]CAPDU: 80 13 01 00 [22:19:38]Write to MH i2c: E2 08 00 EB 7E 80 13 01 00 00 00 00 00 E6 [22:19:38]Write i2c OK [22:19:38]MH_I2C_Read... [22:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:38]Read from MH i2c: E2 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: E2 0E 00 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: E2 0E 00 EB 7E 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C4 [22:19:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:19:38]wFMCommunicate OK [22:19:38]SAM_PROTO_GetShiftState done [22:19:38]FM_GetShiftState done [22:19:38]opened in 1729728961 [22:19:38]opened+sec_in_day 1729815361 [22:19:38]quantity*price = 300046 [22:19:38]sum+1 = 300048 [22:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 426 24.10.2024 22:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189353 ФПД: 65209611433302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221943&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189353&fm=65209611433302&tin=02508201610067®Number=0000000000100030&sum=300047 [22:19:39]StoreToDocumentArchive [22:19:39]shift 463 fd 189353 [22:19:39]save to /storage/0463/doc_00189353 [22:19:39]save last doc name /storage/0463/doc_00189353 to /storage/kkm_last_doc_name [22:19:39]save OK [22:19:39]Clear old archive folders... [22:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:39]tlvbuf is 0160C400 [22:19:39]SAM_PROTO_ClearQueue [22:19:39]wFMCommunicate request_size=4 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 09 00 00 [22:19:39]Write to MH i2c: E2 08 00 F8 7E 80 09 00 00 00 00 00 00 E8 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 F8 7E 00 90 00 EA [22:19:39]RAPDU: 90 00 [22:19:39]wFMCommunicate OK [22:19:39]SAM_PROTO_ClearQueue done [22:19:39]KKMCreateOFDPacket [22:19:39]OFDProtocolAddRootSTLVToBuf [22:19:39]FM_MakeSignedData [22:19:39]FM_MakeSignedData [22:19:39]SAM_PROTO_SignData [22:19:39]wFMCommunicate request_size=4 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 0D 01 02 [22:19:39]Write to MH i2c: E2 08 00 F9 7E 80 0D 01 02 00 00 00 00 F0 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 F9 7E 00 90 00 EB [22:19:39]RAPDU: 90 00 [22:19:39]wFMCommunicate OK [22:19:39]wFMCommunicate request_size=255 [22:19:39]MH_SAM_APDU [22:19: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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 FF C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E3 02 00 35 04 06 00 3B [22:19:39]Write to MH i2c: E2 02 01 FA 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 FF C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E3 02 00 35 04 06 00 3B 00 00 D7 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 03 00 FA 7E 00 90 00 EC [22:19:39]RAPDU: 90 00 [22:19:39]wFMCommunicate OK [22:19:39]wFMCommunicate request_size=10 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 0D 02 02 05 4E CB B9 B5 56 [22:19:39]Write to MH i2c: E2 0D 00 FB 7E 80 0D 02 02 05 00 4E CB B9 B5 56 00 00 DA [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:40]Read from MH i2c: E2 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 03 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 03 00 FB 7E 00 90 00 ED [22:19:40]RAPDU: 90 00 [22:19:40]wFMCommunicate OK [22:19:40]wFMCommunicate request_size=4 [22:19:40]MH_SAM_APDU [22:19:40]CAPDU: 80 0D 03 02 [22:19:40]Write to MH i2c: E2 08 00 FC 7E 80 0D 03 02 00 00 00 00 F5 [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:40]Read from MH i2c: E2 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 0B 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 0B 00 FC 7E 00 C1 63 63 2F 6C BF 84 CF 90 00 2A [22:19:40]RAPDU: C1 63 63 2F 6C BF 84 CF 90 00 [22:19:40]wFMCommunicate OK [22:19:40]SAM_PROTO_SignData done [22:19:40]FM_MakeSignedData done [22:19:40]CreateOFDProtocolMessage [22:19:40]wFMCommunicate request_size=4 [22:19:40]MH_SAM_APDU [22:19:40]CAPDU: 80 11 00 00 [22:19:40]Write to MH i2c: E2 08 00 FD 7E 80 11 00 00 00 00 00 00 F5 [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:40]Read from MH i2c: E2 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 17 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: E2 17 00 FD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [22:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:19:40]wFMCommunicate OK [22:19:40]CreateOFDProtocolMessage done [22:19:40]OFDSenderStorePacket 189353 [22:19:40]StoreOFDPacket docnum=189353 [22:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 2A 07 01 D3 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 FF C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E3 02 00 35 04 06 00 3B 4E CB B9 B5 56 C1 63 63 2F 6C BF 84 CF [22:19:40]CheckFolder [22:19:40]dirname=/storage/ofd_packets [22:19:40]CheckFolder done [22:19:40]ProducePacketName [22:19:40]name=ofd_packets/00189353 [22:19:40]NVStorageSaveData ofd_packets/00189353 [22:19:40]File name is /storage/ofd_packets/00189353 [22:19:40]Write 301 bytes [22:19:40]NVStorageSaveData done [22:19:40]OFDSenderStorePacket done [22:19:40]KKMCreateOFDPacket done [22:19:40]NVStorageSaveData kkm_last_timestamp [22:19:40]File name is /storage/kkm_last_timestamp [22:19:40]Write 4 bytes [22:19:40]NVStorageSaveData done [22:19:40]ExternCall_PrintAddStr [22:19:40]wPrintStart [22:19:40]Write to MH i2c: 01 00 00 FE 7E 7C [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 07 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 07 00 FE 7E 00 00 00 00 00 FF 0F 91 [22:19:40]RasterBufferAndPrint [22:19:40]line Счет N : (1)211418 [22:19:40]line ИНН: 02508201610067 [22:19:40]line Контрольно-Кассовый Чек [22:19:40]line ПРОДАЖА [22:19:40]line ТРК (МРК, ГНК) : 32 [22:19:40]line Товар: 2710124130 [22:19:40]line Аи-92-К-3 [22:19:40]line 44.850 * 66.90 [22:19:40]line = 3000.47 [22:19:40]line НДС 12% НСП 1% [22:19:40]line > о реализуемом товаре [22:19:40]line ИТОГО: 3000.47 [22:19:40]line НСП 1% : 26.55 [22:19:40]line НДС 12% : 318.63 [22:19:40]line Наличными: 0.00 [22:19:40]line Безнал.: 3000.47 [22:19:40]line Место: АЗС № 86 "Партнер Нефть" [22:19:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:19:40]line СНО: Общий режим [22:19:40]line Чек 426 24.10.2024 22:19 [22:19:40]line Смена: 463 ФФД: 1.0 [22:19:40]line ЗНМ: 0300000155 [22:19:40]line РНМ: 0000000000100030 [22:19:40]line Версия ККМ: 001 [22:19:40]line Платежная система: Бакай Банк [22:19:40]line ФМ: 0000000000965340 [22:19:40]line ФД: 189353 [22:19:40]line ФПД: 65209611433302 [22:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221943&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189353&fm=65209611433302&tin=02508201610067®Number=0000000000100030&sum=300047 [22:19:40]OFD Sender: Processing packet 189353 [packets to send 1062, broken 1061] [22:19:40]ProducePacketName [22:19:40]name=ofd_packets/00189353 [22:19:40]OFD Sender: To server: pG, [22:19:40]CommunicateWithHost lk.salyk.kg:30040 [22:19:40]ConnectInit lk.salyk.kg [22:19:40]written 0, free lines is 4095 [22:19:40]Connected sock=9 [22:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 2A 07 01 D3 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 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 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 FF C7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 E3 02 00 35 04 06 00 3B 4E CB B9 B5 56 C1 63 63 2F 6C BF 84 CF [22:19:40]Write to MH i2c: 01 00 00 28 7F A7 [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 07 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: 01 07 00 28 7F 00 00 00 00 00 69 0C 23 [22:19:40]RasterBufferAndPrint [22:19:40]line [22:19:40]line [22:19:40]line [22:19:40]line [22:19:40]line [22:19:40]written 0, free lines is 3182 [22:19:40]MH_Cut [22:19:40]Write to MH i2c: D1 01 00 2F 7F 01 80 [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: D1 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: D1 01 00 [22:19:40]MH_I2C_Read... [22:19:40]Read from MH i2c: D1 01 00 2F 7F 00 7F [22:19:40]Write to MH i2c: 01 00 00 30 7F AF [22:19:40]Write i2c OK [22:19:40]MH_I2C_Read... [22:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A9 07 47 00 0E 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 39 36 35 33 34 30 10 04 04 00 A9 E3 02 00 F4 03 04 00 E6 71 1A 67 B6 04 01 00 00 27 52 91 C8 32 37 FC 59 [22:19:40]CommunicateWithHost err = 0 [22:19:40]CheckOFDResponse [22:19:40]1017 (14) - 77093643461234 [22:19:40]1041 (16) - 0000000000965340 [22:19:40]1040 (4) - 189353 [22:19:40]1012 (4) - 24.10.2024 16:12 [22:19:40]1206 (1) - 0 [22:19:40]OFD Sender: Remove packet 189353 [22:19:40]ProducePacketName [22:19:40]name=ofd_packets/00189353 [22:19:40]NVStorageDeleteData [22:19:41]OFD Sender: No OFD packet to send [22:19:41]*** Cut start [22:19:41]*** Partial cut [22:19:41]*** CUTSNS_PIN = 1 [22:19:42]*** CUTSNS_PIN = 0 [22:19:42]*** Brake cut motor [22:19:42]Read from MH i2c: 01 [22:19:42]MH_I2C_Read... [22:19:42]*** Stop cut motor [22:19:42]*** Cut end [22:19:42]Read from MH i2c: 01 07 00 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: 01 07 00 30 7F 00 00 00 00 00 FF 0F C4 [22:19:42]process_action close_receipt done [22:19:42]requested_data is exist [22:19:42]produce_requested_data [22:19:42]requested_item fm.sn is exist - process it [22:19:42]wFMCommunicate request_size=4 [22:19:42]MH_SAM_APDU [22:19:42]CAPDU: 80 11 00 00 [22:19:42]Write to MH i2c: E2 08 00 31 7F 80 11 00 00 00 00 00 00 2A [22:19:42]Write i2c OK [22:19:42]MH_I2C_Read... [22:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:42]Read from MH i2c: E2 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 17 00 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 17 00 31 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [22:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:19:42]wFMCommunicate OK [22:19:42]requested_item fd.num is exist - process it [22:19:42]SAM_PROTO_GetFieldsCounters [22:19:42]wFMCommunicate request_size=4 [22:19:42]MH_SAM_APDU [22:19:42]CAPDU: 80 13 00 00 [22:19:42]Write to MH i2c: E2 08 00 32 7F 80 13 00 00 00 00 00 00 2D [22:19:42]Write i2c OK [22:19:42]MH_I2C_Read... [22:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:42]Read from MH i2c: E2 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 62 00 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 62 00 32 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E3 02 00 0E 04 04 00 CF 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 93 [22:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 E3 02 00 0E 04 04 00 CF 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 [22:19:42]wFMCommunicate OK [22:19:42]SAM_PROTO_GetFieldsCounters done [22:19:42]requested_item shift.num is exist - process it [22:19:42]requested_item shift.opened is exist - process it [22:19:42]req_shift_opened [22:19:42]FM_GetShiftState [22:19:42]SAM_PROTO_GetShiftState [22:19:42]wFMCommunicate request_size=4 [22:19:42]MH_SAM_APDU [22:19:42]CAPDU: 80 13 01 00 [22:19:42]Write to MH i2c: E2 08 00 33 7F 80 13 01 00 00 00 00 00 2F [22:19:42]Write i2c OK [22:19:42]MH_I2C_Read... [22:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:42]Read from MH i2c: E2 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 0E 00 [22:19:42]MH_I2C_Read... [22:19:42]Read from MH i2c: E2 0E 00 33 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0D [22:19:42]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:19:42]wFMCommunicate OK [22:19:42]SAM_PROTO_GetShiftState done [22:19:42]FM_GetShiftState done [22:19:42]req_shift_opened done [22:19:42]requested_item shift.open_date is exist - process it [22:19:42]req_shift_open_date [22:19:42]req_shift_open_date done [22:19:42]produce_requested_data done [22:19:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189353,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:19:42]process_action_free close_receipt [22:19:42]json_value_free [22:19:42]json_value_free done [22:19:42]process_json_proto returns [22:19:42]Send response to host [22:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189353,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:19:42]free response buf [22:19:42]execute_script done [22:19:42]execute_script returns [22:19:42]free content buf [22:19:42]Sock 10.Close socket [22:19:42]Sock 10.Thread stoped [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]accept exits with 8 [22:20:36]New connection [22:20:36]New thread 3067071844 created [22:20:36]Thread 3067215204 joined [22:20:36]Waiting for new connection... [22:20:36] Sock 8.Parse request [22:20:36]Sock 8.Check first char [22:20:36]Sock 8.First char is OK [22:20:36]request: POST /json_proto HTTP/1.0 [22:20:36]Method: POST [22:20:36]URL: /json_proto [22:20:36]Method is POST - this is cgi request [22:20:36]url: /json_proto [22:20:36]query_string will be loaded in cgi processing [22:20:36]execute_cgi json_proto POST (null) [22:20:36]execute_cgi path=json_proto method=POST [22:20:36]POST find Content-Length [22:20:36]Host: 172.17.42.131:8080 [22:20:36]Content-Length: 678 [22:20:36]Content-Type: application/json [22:20:36] [22:20:36]POST finish read [22:20:36]Found Content-Length = 678 [22:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [22:20:36]execute_script... [22:20: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)211419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [22:20:36]POST & json_proto [22:20:36]process_json_proto [22:20:36]json parsed OK: [22:20:36]protocol is kg_v1.0 [22:20:36]action value=close_receipt [22:20:36]process_action close_receipt [22:20:36]cmd_close_receipt [22:20:36]MH_GetDate [22:20:36]Write to MH i2c: F0 00 00 34 7F A2 [22:20:36]Write i2c OK [22:20:36]MH_I2C_Read... [22:20:36]Read from MH i2c: F0 [22:20:36]MH_I2C_Read... [22:20:36]Read from MH i2c: F0 09 00 [22:20:36]MH_I2C_Read... [22:20:36]Read from MH i2c: F0 09 00 34 7F 00 39 C8 1A 67 A0 18 CA 66 15 [22:20:36]GetLastDocTimeStamp 1729808383 [22:20:36]current date 1729808441 [22:20:36]FM_GetShiftState [22:20:36]SAM_PROTO_GetShiftState [22:20:36]wFMCommunicate request_size=4 [22:20:36]MH_SAM_APDU [22:20:36]CAPDU: 80 13 01 00 [22:20:36]Write to MH i2c: E2 08 00 35 7F 80 13 01 00 00 00 00 00 31 [22:20:36]Write i2c OK [22:20:36]MH_I2C_Read... [22:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:36]Read from MH i2c: E2 [22:20:36]MH_I2C_Read... [22:20:36]Read from MH i2c: E2 0E 00 [22:20:36]MH_I2C_Read... [22:20:36]Read from MH i2c: E2 0E 00 35 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0F [22:20:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:20:36]wFMCommunicate OK [22:20:36]SAM_PROTO_GetShiftState done [22:20:36]FM_GetShiftState done [22:20:36]opened in 1729728961 [22:20:36]opened+sec_in_day 1729815361 [22:20:36]quantity*price = 75016 [22:20:36]sum+1 = 75017 [22:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 427 24.10.2024 22:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189354 ФПД: 275256826201140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189354&fm=275256826201140&tin=02508201610067®Number=0000000000100030&sum=75000 [22:20:37]StoreToDocumentArchive [22:20:37]shift 463 fd 189354 [22:20:37]save to /storage/0463/doc_00189354 [22:20:37]save last doc name /storage/0463/doc_00189354 to /storage/kkm_last_doc_name [22:20:37]save OK [22:20:37]Clear old archive folders... [22:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:37]tlvbuf is 0160C270 [22:20:37]SAM_PROTO_ClearQueue [22:20:37]wFMCommunicate request_size=4 [22:20:37]MH_SAM_APDU [22:20:37]CAPDU: 80 09 00 00 [22:20:37]Write to MH i2c: E2 08 00 42 7F 80 09 00 00 00 00 00 00 33 [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 42 7F 00 90 00 35 [22:20:37]RAPDU: 90 00 [22:20:37]wFMCommunicate OK [22:20:37]SAM_PROTO_ClearQueue done [22:20:37]KKMCreateOFDPacket [22:20:37]OFDProtocolAddRootSTLVToBuf [22:20:37]FM_MakeSignedData [22:20:37]FM_MakeSignedData [22:20:37]SAM_PROTO_SignData [22:20:37]wFMCommunicate request_size=4 [22:20:37]MH_SAM_APDU [22:20:37]CAPDU: 80 0D 01 02 [22:20:37]Write to MH i2c: E2 08 00 43 7F 80 0D 01 02 00 00 00 00 3B [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 43 7F 00 90 00 36 [22:20:37]RAPDU: 90 00 [22:20:37]wFMCommunicate OK [22:20:37]wFMCommunicate request_size=255 [22:20:37]MH_SAM_APDU [22:20: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 33 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 AB 01 00 00 F4 03 04 00 39 C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E3 02 00 35 04 06 00 FA [22:20:37]Write to MH i2c: E2 02 01 44 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 33 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 AB 01 00 00 F4 03 04 00 39 C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E3 02 00 35 04 06 00 FA 00 00 B0 [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 44 7F 00 90 00 37 [22:20:37]RAPDU: 90 00 [22:20:37]wFMCommunicate OK [22:20:37]wFMCommunicate request_size=10 [22:20:37]MH_SAM_APDU [22:20:37]CAPDU: 80 0D 02 02 05 58 39 59 04 34 [22:20:37]Write to MH i2c: E2 0D 00 45 7F 80 0D 02 02 05 00 58 39 59 04 34 00 00 6A [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 03 00 45 7F 00 90 00 38 [22:20:37]RAPDU: 90 00 [22:20:37]wFMCommunicate OK [22:20:37]wFMCommunicate request_size=4 [22:20:37]MH_SAM_APDU [22:20:37]CAPDU: 80 0D 03 02 [22:20:37]Write to MH i2c: E2 08 00 46 7F 80 0D 03 02 00 00 00 00 40 [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 0B 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 0B 00 46 7F 00 5C AA E4 B8 93 EA 00 42 90 00 A2 [22:20:37]RAPDU: 5C AA E4 B8 93 EA 00 42 90 00 [22:20:37]wFMCommunicate OK [22:20:37]SAM_PROTO_SignData done [22:20:37]FM_MakeSignedData done [22:20:37]CreateOFDProtocolMessage [22:20:37]wFMCommunicate request_size=4 [22:20:37]MH_SAM_APDU [22:20:37]CAPDU: 80 11 00 00 [22:20:37]Write to MH i2c: E2 08 00 47 7F 80 11 00 00 00 00 00 00 40 [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:37]Read from MH i2c: E2 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 17 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: E2 17 00 47 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [22:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:20:37]wFMCommunicate OK [22:20:37]CreateOFDProtocolMessage done [22:20:37]OFDSenderStorePacket 189354 [22:20:37]StoreOFDPacket docnum=189354 [22:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 27 07 01 20 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 AB 01 00 00 F4 03 04 00 39 C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E3 02 00 35 04 06 00 FA 58 39 59 04 34 5C AA E4 B8 93 EA 00 42 [22:20:37]CheckFolder [22:20:37]dirname=/storage/ofd_packets [22:20:37]CheckFolder done [22:20:37]ProducePacketName [22:20:37]name=ofd_packets/00189354 [22:20:37]NVStorageSaveData ofd_packets/00189354 [22:20:37]File name is /storage/ofd_packets/00189354 [22:20:37]Write 301 bytes [22:20:37]NVStorageSaveData done [22:20:37]OFDSenderStorePacket done [22:20:37]KKMCreateOFDPacket done [22:20:37]NVStorageSaveData kkm_last_timestamp [22:20:37]File name is /storage/kkm_last_timestamp [22:20:37]Write 4 bytes [22:20:37]NVStorageSaveData done [22:20:37]ExternCall_PrintAddStr [22:20:37]wPrintStart [22:20:37]Write to MH i2c: 01 00 00 48 7F C7 [22:20:37]Write i2c OK [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: 01 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: 01 07 00 [22:20:37]MH_I2C_Read... [22:20:37]Read from MH i2c: 01 07 00 48 7F 00 00 00 00 00 FF 0F DC [22:20:37]RasterBufferAndPrint [22:20:37]line Счет N : (1)211419 [22:20:37]line ИНН: 02508201610067 [22:20:37]line Контрольно-Кассовый Чек [22:20:37]line ПРОДАЖА [22:20:37]line ТРК (МРК, ГНК) : 13 [22:20:37]line Товар: 2710124500 [22:20:37]line Аи-95-К-3 [22:20:37]line 10.110 * 74.20 [22:20:37]line = 750.16 [22:20:37]line НДС 12% НСП 1% [22:20:37]line > о реализуемом товаре [22:20:37]line ОКРУГЛЕНИЕ: -0.16 [22:20:37]line ИТОГО: 750.00 [22:20:37]line Внесено: 750.00 [22:20:37]line СДАЧА: 0.00 [22:20:37]line НСП 1% : 6.64 [22:20:37]line НДС 12% : 79.66 [22:20:37]line Наличными: 750.00 [22:20:37]line Безнал.: 0.00 [22:20:37]line Место: АЗС № 86 "Партнер Нефть" [22:20:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:20:37]line СНО: Общий режим [22:20:37]line Чек 427 24.10.2024 22:20 [22:20:37]line Смена: 463 ФФД: 1.0 [22:20:37]line ЗНМ: 0300000155 [22:20:37]line РНМ: 0000000000100030 [22:20:37]line Версия ККМ: 001 [22:20:37]line ФМ: 0000000000965340 [22:20:37]line ФД: 189354 [22:20:37]line ФПД: 275256826201140 [22:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189354&fm=275256826201140&tin=02508201610067®Number=0000000000100030&sum=75000 [22:20:37]written 0, free lines is 4095 [22:20:37]OFD Sender: Processing packet 189354 [packets to send 1062, broken 1061] [22:20:37]ProducePacketName [22:20:37]name=ofd_packets/00189354 [22:20:37]OFD Sender: To server: pG, [22:20:37]CommunicateWithHost lk.salyk.kg:30040 [22:20:37]ConnectInit lk.salyk.kg [22:20:38]Connected sock=9 [22:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 27 07 01 20 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 AB 01 00 00 F4 03 04 00 39 C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E3 02 00 35 04 06 00 FA 58 39 59 04 34 5C AA E4 B8 93 EA 00 42 [22:20:38]Write to MH i2c: 01 00 00 73 7F F2 [22:20:38]Write i2c OK [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: 01 [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: 01 07 00 [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: 01 07 00 73 7F 00 00 00 00 00 50 0C 55 [22:20:38]RasterBufferAndPrint [22:20:38]line [22:20:38]line [22:20:38]line [22:20:38]line [22:20:38]line [22:20:38]written 0, free lines is 3157 [22:20:38]MH_Cut [22:20:38]Write to MH i2c: D1 01 00 7A 7F 01 CB [22:20:38]Write i2c OK [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: D1 [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: D1 01 00 [22:20:38]MH_I2C_Read... [22:20:38]Read from MH i2c: D1 01 00 7A 7F 00 CA [22:20:38]Write to MH i2c: 01 00 00 7B 7F FA [22:20:38]Write i2c OK [22:20:38]MH_I2C_Read... [22:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC C3 47 00 57 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA E3 02 00 F4 03 04 00 20 72 1A 67 B6 04 01 00 00 C8 AF FC 18 03 BE 02 59 [22:20:38]CommunicateWithHost err = 0 [22:20:38]CheckOFDResponse [22:20:38]1017 (14) - 77093643461234 [22:20:38]1041 (16) - 0000000000965340 [22:20:38]1040 (4) - 189354 [22:20:38]1012 (4) - 24.10.2024 16:13 [22:20:38]1206 (1) - 0 [22:20:38]OFD Sender: Remove packet 189354 [22:20:38]ProducePacketName [22:20:38]name=ofd_packets/00189354 [22:20:38]NVStorageDeleteData [22:20:39]OFD Sender: No OFD packet to send [22:20:39]*** Cut start [22:20:39]*** Partial cut [22:20:39]*** CUTSNS_PIN = 1 [22:20:39]*** CUTSNS_PIN = 0 [22:20:39]*** Brake cut motor [22:20:40]Read from MH i2c: 01 [22:20:40]MH_I2C_Read... [22:20:40]*** Stop cut motor [22:20:40]*** Cut end [22:20:40]Read from MH i2c: 01 07 00 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: 01 07 00 7B 7F 00 00 00 00 00 FF 0F 0F [22:20:40]process_action close_receipt done [22:20:40]requested_data is exist [22:20:40]produce_requested_data [22:20:40]requested_item fm.sn is exist - process it [22:20:40]wFMCommunicate request_size=4 [22:20:40]MH_SAM_APDU [22:20:40]CAPDU: 80 11 00 00 [22:20:40]Write to MH i2c: E2 08 00 7C 7F 80 11 00 00 00 00 00 00 75 [22:20:40]Write i2c OK [22:20:40]MH_I2C_Read... [22:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:40]Read from MH i2c: E2 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 17 00 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 17 00 7C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [22:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:20:40]wFMCommunicate OK [22:20:40]requested_item fd.num is exist - process it [22:20:40]SAM_PROTO_GetFieldsCounters [22:20:40]wFMCommunicate request_size=4 [22:20:40]MH_SAM_APDU [22:20:40]CAPDU: 80 13 00 00 [22:20:40]Write to MH i2c: E2 08 00 7D 7F 80 13 00 00 00 00 00 00 78 [22:20:40]Write i2c OK [22:20:40]MH_I2C_Read... [22:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:40]Read from MH i2c: E2 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 62 00 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 62 00 7D 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E3 02 00 0E 04 04 00 CF 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 E2 [22:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA E3 02 00 0E 04 04 00 CF 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 [22:20:40]wFMCommunicate OK [22:20:40]SAM_PROTO_GetFieldsCounters done [22:20:40]requested_item shift.num is exist - process it [22:20:40]requested_item shift.opened is exist - process it [22:20:40]req_shift_opened [22:20:40]FM_GetShiftState [22:20:40]SAM_PROTO_GetShiftState [22:20:40]wFMCommunicate request_size=4 [22:20:40]MH_SAM_APDU [22:20:40]CAPDU: 80 13 01 00 [22:20:40]Write to MH i2c: E2 08 00 7E 7F 80 13 01 00 00 00 00 00 7A [22:20:40]Write i2c OK [22:20:40]MH_I2C_Read... [22:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:40]Read from MH i2c: E2 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 0E 00 [22:20:40]MH_I2C_Read... [22:20:40]Read from MH i2c: E2 0E 00 7E 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 58 [22:20:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:20:40]wFMCommunicate OK [22:20:40]SAM_PROTO_GetShiftState done [22:20:40]FM_GetShiftState done [22:20:40]req_shift_opened done [22:20:40]requested_item shift.open_date is exist - process it [22:20:40]req_shift_open_date [22:20:40]req_shift_open_date done [22:20:40]produce_requested_data done [22:20:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189354,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:20:40]process_action_free close_receipt [22:20:40]json_value_free [22:20:40]json_value_free done [22:20:40]process_json_proto returns [22:20:40]Send response to host [22:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189354,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:20:40]free response buf [22:20:40]execute_script done [22:20:40]execute_script returns [22:20:40]free content buf [22:20:40]Sock 8.Close socket [22:20:40]Sock 8.Thread stoped [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22: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]accept exits with 10 [22:23:34]New connection [22:23:34]New thread 3067215204 created [22:23:34]Thread 3067071844 joined [22:23:34]Waiting for new connection... [22:23:34] Sock 10.Parse request [22:23:34]Sock 10.Check first char [22:23:34]Sock 10.First char is OK [22:23:34]request: POST /json_proto HTTP/1.0 [22:23:34]Method: POST [22:23:34]URL: /json_proto [22:23:34]Method is POST - this is cgi request [22:23:34]url: /json_proto [22:23:34]query_string will be loaded in cgi processing [22:23:34]execute_cgi json_proto POST (null) [22:23:34]execute_cgi path=json_proto method=POST [22:23:34]POST find Content-Length [22:23:34]Host: 172.17.42.131:8080 [22:23:34]Content-Length: 688 [22:23:34]Content-Type: application/json [22:23:34] [22:23:34]POST finish read [22:23:34]Found Content-Length = 688 [22:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [22:23:34]execute_script... [22:23: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)211420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [22:23:34]POST & json_proto [22:23:34]process_json_proto [22:23:34]json parsed OK: [22:23:34]protocol is kg_v1.0 [22:23:34]action value=close_receipt [22:23:34]process_action close_receipt [22:23:34]cmd_close_receipt [22:23:34]MH_GetDate [22:23:34]Write to MH i2c: F0 00 00 7F 7F ED [22:23:34]OFD Sender: No OFD packet to send [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 09 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 09 00 7F 7F 00 EC C8 1A 67 A0 18 CA 66 13 [22:23:34]GetLastDocTimeStamp 1729808441 [22:23:34]current date 1729808620 [22:23:34]FM_GetShiftState [22:23:34]SAM_PROTO_GetShiftState [22:23:34]wFMCommunicate request_size=4 [22:23:34]MH_SAM_APDU [22:23:34]CAPDU: 80 13 01 00 [22:23:34]Write to MH i2c: E2 08 00 80 7F 80 13 01 00 00 00 00 00 7C [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:34]Read from MH i2c: E2 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: E2 0E 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: E2 0E 00 80 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 5A [22:23:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:23:34]wFMCommunicate OK [22:23:34]SAM_PROTO_GetShiftState done [22:23:34]FM_GetShiftState done [22:23:34]opened in 1729728961 [22:23:34]opened+sec_in_day 1729815361 [22:23:34]quantity*price = 160035 [22:23:34]sum+1 = 160037 [22:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 428 24.10.2024 22:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189355 ФПД: 189146785152674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189355&fm=189146785152674&tin=02508201610067®Number=0000000000100030&sum=160000 [22:23:35]StoreToDocumentArchive [22:23:35]shift 463 fd 189355 [22:23:35]save to /storage/0463/doc_00189355 [22:23:35]save last doc name /storage/0463/doc_00189355 to /storage/kkm_last_doc_name [22:23:35]save OK [22:23:35]Clear old archive folders... [22:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:23:35]tlvbuf is 016763D0 [22:23:35]SAM_PROTO_ClearQueue [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 09 00 00 [22:23:35]Write to MH i2c: E2 08 00 8D 7F 80 09 00 00 00 00 00 00 7E [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 8D 7F 00 90 00 80 [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_ClearQueue done [22:23:36]KKMCreateOFDPacket [22:23:36]OFDProtocolAddRootSTLVToBuf [22:23:36]FM_MakeSignedData [22:23:36]FM_MakeSignedData [22:23:36]SAM_PROTO_SignData [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 0D 01 02 [22:23:36]Write to MH i2c: E2 08 00 8E 7F 80 0D 01 02 00 00 00 00 86 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 8E 7F 00 90 00 81 [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]wFMCommunicate request_size=255 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AC 01 00 00 F4 03 04 00 EC C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E3 02 [22:23:36]Write to MH i2c: E2 02 01 8F 7F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AC 01 00 00 F4 03 04 00 EC C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E3 02 00 00 82 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 8F 7F 00 90 00 82 [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]wFMCommunicate request_size=16 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AC 07 2A F0 7E A2 [22:23:36]Write to MH i2c: E2 13 00 90 7F 80 0D 02 02 0B 00 00 35 04 06 00 AC 07 2A F0 7E A2 00 00 CB [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 03 00 90 7F 00 90 00 83 [22:23:36]RAPDU: 90 00 [22:23:36]wFMCommunicate OK [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 0D 03 02 [22:23:36]Write to MH i2c: E2 08 00 91 7F 80 0D 03 02 00 00 00 00 8B [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0B 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0B 00 91 7F 00 60 3A EF AB BC 84 AD D6 90 00 83 [22:23:36]RAPDU: 60 3A EF AB BC 84 AD D6 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_SignData done [22:23:36]FM_MakeSignedData done [22:23:36]CreateOFDProtocolMessage [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 11 00 00 [22:23:36]Write to MH i2c: E2 08 00 92 7F 80 11 00 00 00 00 00 00 8B [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 17 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 17 00 92 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [22:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:23:36]wFMCommunicate OK [22:23:36]CreateOFDProtocolMessage done [22:23:36]OFDSenderStorePacket 189355 [22:23:36]StoreOFDPacket docnum=189355 [22:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 73 D9 0D 01 59 CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AC 01 00 00 F4 03 04 00 EC C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E3 02 00 35 04 06 00 AC 07 2A F0 7E A2 60 3A EF AB BC 84 AD D6 [22:23:36]CheckFolder [22:23:36]dirname=/storage/ofd_packets [22:23:36]CheckFolder done [22:23:36]ProducePacketName [22:23:36]name=ofd_packets/00189355 [22:23:36]NVStorageSaveData ofd_packets/00189355 [22:23:36]File name is /storage/ofd_packets/00189355 [22:23:36]Write 307 bytes [22:23:36]NVStorageSaveData done [22:23:36]OFDSenderStorePacket done [22:23:36]KKMCreateOFDPacket done [22:23:36]NVStorageSaveData kkm_last_timestamp [22:23:36]File name is /storage/kkm_last_timestamp [22:23:36]Write 4 bytes [22:23:36]NVStorageSaveData done [22:23:36]ExternCall_PrintAddStr [22:23:36]wPrintStart [22:23:36]Write to MH i2c: 01 00 00 93 7F 12 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 93 7F 00 00 00 00 00 FF 0F 27 [22:23:36]RasterBufferAndPrint [22:23:36]line Счет N : (1)211420 [22:23:36]line ИНН: 02508201610067 [22:23:36]line Контрольно-Кассовый Чек [22:23:36]line ПРОДАЖА [22:23:36]line ТРК (МРК, ГНК) : 21 [22:23:36]line Товар: 2710194210 [22:23:36]line D-ENERGY ДТ-К-5 [22:23:36]line 20.730 * 77.20 [22:23:36]line = 1600.36 [22:23:36]line НДС 12% НСП 1% [22:23:36]line > о реализуемом товаре [22:23:36]line ОКРУГЛЕНИЕ: -0.36 [22:23:36]line ИТОГО: 1600.00 [22:23:36]line Внесено: 1600.00 [22:23:36]line СДАЧА: 0.00 [22:23:36]line НСП 1% : 14.16 [22:23:36]line НДС 12% : 169.95 [22:23:36]line Наличными: 1600.00 [22:23:36]line Безнал.: 0.00 [22:23:36]line Место: АЗС № 86 "Партнер Нефть" [22:23:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:23:36]line СНО: Общий режим [22:23:36]line Чек 428 24.10.2024 22:23 [22:23:36]line Смена: 463 ФФД: 1.0 [22:23:36]line ЗНМ: 0300000155 [22:23:36]line РНМ: 0000000000100030 [22:23:36]line Версия ККМ: 001 [22:23:36]line ФМ: 0000000000965340 [22:23:36]line ФД: 189355 [22:23:36]line ФПД: 189146785152674 [22:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189355&fm=189146785152674&tin=02508201610067®Number=0000000000100030&sum=160000 [22:23:36]written 0, free lines is 4095 [22:23:36]OFD Sender: Processing packet 189355 [packets to send 1062, broken 1061] [22:23:36]ProducePacketName [22:23:36]name=ofd_packets/00189355 [22:23:36]OFD Sender: To server: pG, [22:23:36]CommunicateWithHost lk.salyk.kg:30040 [22:23:36]ConnectInit lk.salyk.kg [22:23:36]Connected sock=8 [22:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 73 D9 0D 01 59 CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 AC 01 00 00 F4 03 04 00 EC C8 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB E3 02 00 35 04 06 00 AC 07 2A F0 7E A2 60 3A EF AB BC 84 AD D6 [22:23:36]Write to MH i2c: 01 00 00 BE 7F 3D [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 BE 7F 00 00 00 00 00 4E 0C 9E [22:23:36]RasterBufferAndPrint [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]written 0, free lines is 3153 [22:23:36]MH_Cut [22:23:37]Write to MH i2c: D1 01 00 C5 7F 01 16 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: D1 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: D1 01 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: D1 01 00 C5 7F 00 15 [22:23:37]Write to MH i2c: 01 00 00 C6 7F 45 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 56 47 00 5B 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 39 36 35 33 34 30 10 04 04 00 AB E3 02 00 F4 03 04 00 D3 72 1A 67 B6 04 01 00 00 C9 D9 F3 A9 39 EF 29 DB [22:23:37]CommunicateWithHost err = 0 [22:23:37]CheckOFDResponse [22:23:37]1017 (14) - 77093643461234 [22:23:37]1041 (16) - 0000000000965340 [22:23:37]1040 (4) - 189355 [22:23:37]1012 (4) - 24.10.2024 16:16 [22:23:37]1206 (1) - 0 [22:23:37]OFD Sender: Remove packet 189355 [22:23:37]ProducePacketName [22:23:37]name=ofd_packets/00189355 [22:23:37]NVStorageDeleteData [22:23:37]OFD Sender: No OFD packet to send [22:23:38]*** Cut start [22:23:38]*** Partial cut [22:23:38]*** CUTSNS_PIN = 1 [22:23:38]*** CUTSNS_PIN = 0 [22:23:38]*** Brake cut motor [22:23:38]Read from MH i2c: 01 [22:23:38]MH_I2C_Read... [22:23:38]*** Stop cut motor [22:23:38]*** Cut end [22:23:38]Read from MH i2c: 01 07 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 C6 7F 00 00 00 00 00 FF 0F 5A [22:23:38]process_action close_receipt done [22:23:38]requested_data is exist [22:23:38]produce_requested_data [22:23:38]requested_item fm.sn is exist - process it [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 11 00 00 [22:23:38]Write to MH i2c: E2 08 00 C7 7F 80 11 00 00 00 00 00 00 C0 [22:23:38]Write i2c OK [22:23:38]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 C7 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [22:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:23:39]wFMCommunicate OK [22:23:39]requested_item fd.num is exist - process it [22:23:39]SAM_PROTO_GetFieldsCounters [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 13 00 00 [22:23:39]Write to MH i2c: E2 08 00 C8 7F 80 13 00 00 00 00 00 00 C3 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 62 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 62 00 C8 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E3 02 00 0E 04 04 00 CF 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 31 [22:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB E3 02 00 0E 04 04 00 CF 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 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_GetFieldsCounters done [22:23:39]requested_item shift.num is exist - process it [22:23:39]requested_item shift.opened is exist - process it [22:23:39]req_shift_opened [22:23:39]FM_GetShiftState [22:23:39]SAM_PROTO_GetShiftState [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 13 01 00 [22:23:39]Write to MH i2c: E2 08 00 C9 7F 80 13 01 00 00 00 00 00 C5 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 C9 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A3 [22:23:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_GetShiftState done [22:23:39]FM_GetShiftState done [22:23:39]req_shift_opened done [22:23:39]requested_item shift.open_date is exist - process it [22:23:39]req_shift_open_date [22:23:39]req_shift_open_date done [22:23:39]produce_requested_data done [22:23:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189355,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:23:39]process_action_free close_receipt [22:23:39]json_value_free [22:23:39]json_value_free done [22:23:39]process_json_proto returns [22:23:39]Send response to host [22:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189355,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:23:39]free response buf [22:23:39]execute_script done [22:23:39]execute_script returns [22:23:39]free content buf [22:23:39]Sock 10.Close socket [22:23:39]Sock 10.Thread stoped [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24: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:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:04]accept exits with 9 [22:28:04]New connection [22:28:04]New thread 3067071844 created [22:28:04]Thread 3067215204 joined [22:28:04]Waiting for new connection... [22:28:04] Sock 9.Parse request [22:28:04]Sock 9.Check first char [22:28:04]Sock 9.First char is OK [22:28:04]request: POST /json_proto HTTP/1.0 [22:28:04]Method: POST [22:28:04]URL: /json_proto [22:28:04]Method is POST - this is cgi request [22:28:04]url: /json_proto [22:28:04]query_string will be loaded in cgi processing [22:28:04]execute_cgi json_proto POST (null) [22:28:04]execute_cgi path=json_proto method=POST [22:28:04]POST find Content-Length [22:28:04]Host: 172.17.42.131:8080 [22:28:04]Content-Length: 679 [22:28:04]Content-Type: application/json [22:28:04] [22:28:04]POST finish read [22:28:04]Found Content-Length = 679 [22:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:04]execute_script... [22:28: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)211421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:04]POST & json_proto [22:28:04]process_json_proto [22:28:04]json parsed OK: [22:28:04]protocol is kg_v1.0 [22:28:04]action value=close_receipt [22:28:04]process_action close_receipt [22:28:04]cmd_close_receipt [22:28:04]MH_GetDate [22:28:04]Write to MH i2c: F0 00 00 CA 7F 38 [22:28:04]Write i2c OK [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 09 00 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 09 00 CA 7F 00 FA C9 1A 67 A0 18 CA 66 6D [22:28:04]GetLastDocTimeStamp 1729808620 [22:28:04]current date 1729808890 [22:28:04]FM_GetShiftState [22:28:04]SAM_PROTO_GetShiftState [22:28:04]wFMCommunicate request_size=4 [22:28:04]MH_SAM_APDU [22:28:04]CAPDU: 80 13 01 00 [22:28:04]Write to MH i2c: E2 08 00 CB 7F 80 13 01 00 00 00 00 00 C7 [22:28:04]Write i2c OK [22:28:04]MH_I2C_Read... [22:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:04]Read from MH i2c: E2 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 0E 00 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 0E 00 CB 7F 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A5 [22:28:04]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:28:04]wFMCommunicate OK [22:28:04]SAM_PROTO_GetShiftState done [22:28:04]FM_GetShiftState done [22:28:04]opened in 1729728961 [22:28:04]opened+sec_in_day 1729815361 [22:28:04]quantity*price = 400050 [22:28:04]sum+1 = 400051 [22:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 429 24.10.2024 22:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189356 ФПД: 267296521434239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222810&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189356&fm=267296521434239&tin=02508201610067®Number=0000000000100030&sum=400000 [22:28:05]StoreToDocumentArchive [22:28:05]shift 463 fd 189356 [22:28:05]save to /storage/0463/doc_00189356 [22:28:05]save last doc name /storage/0463/doc_00189356 to /storage/kkm_last_doc_name [22:28:05]save OK [22:28:05]Clear old archive folders... [22:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:28:05]tlvbuf is 01737930 [22:28:05]SAM_PROTO_ClearQueue [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 09 00 00 [22:28:05]Write to MH i2c: E2 08 00 D8 7F 80 09 00 00 00 00 00 00 C9 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 D8 7F 00 90 00 CB [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]SAM_PROTO_ClearQueue done [22:28:05]KKMCreateOFDPacket [22:28:05]OFDProtocolAddRootSTLVToBuf [22:28:05]FM_MakeSignedData [22:28:05]FM_MakeSignedData [22:28:05]SAM_PROTO_SignData [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 01 02 [22:28:05]Write to MH i2c: E2 08 00 D9 7F 80 0D 01 02 00 00 00 00 D1 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 D9 7F 00 90 00 CC [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]wFMCommunicate request_size=255 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 FA C9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E3 02 00 35 04 06 00 F3 1A D2 35 [22:28:05]Write to MH i2c: E2 02 01 DA 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 FA C9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC E3 02 00 35 04 06 00 F3 1A D2 35 00 00 C8 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 DA 7F 00 90 00 CD [22:28:06]RAPDU: 90 00 [22:28:06]wFMCommunicate OK [22:28:06]wFMCommunicate request_size=7 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 0D 02 02 02 B4 7F [22:28:06]Write to MH i2c: E2 0A 00 DB 7F 80 0D 02 02 02 00 B4 7F 00 00 0B [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 03 00 DB 7F 00 90 00 CE [22:28:06]RAPDU: 90 00 [22:28:06]wFMCommunicate OK [22:28:06]wFMCommunicate request_size=4 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 0D 03 02 [22:28:06]Write to MH i2c: E2 08 00 DC 7F 80 0D 03 02 00 00 00 00 D6 [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 0B 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 0B 00 DC 7F 00 A0 FA BD 5C 0F A6 C9 A8 90 00 B0 [22:28:06]RAPDU: A0 FA BD 5C 0F A6 C9 A8 90 00 [22:28:06]wFMCommunicate OK [22:28:06]SAM_PROTO_SignData done [22:28:06]FM_MakeSignedData done [22:28:06]CreateOFDProtocolMessage [22:28:06]wFMCommunicate request_size=4 [22:28:06]MH_SAM_APDU [22:28:06]CAPDU: 80 11 00 00 [22:28:06]Write to MH i2c: E2 08 00 DD 7F 80 11 00 00 00 00 00 00 D6 [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:06]Read from MH i2c: E2 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 17 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: E2 17 00 DD 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [22:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:28:06]wFMCommunicate OK [22:28:06]CreateOFDProtocolMessage done [22:28:06]OFDSenderStorePacket 189356 [22:28:06]StoreOFDPacket docnum=189356 [22:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189356,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:28:09]free response buf [22:28:09]execute_script done [22:28:09]execute_script returns [22:28:09]free content buf [22:28:09]Sock 9.Close socket [22:28:09]Sock 9.Thread stoped [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]accept exits with 10 [22:29:37]New connection [22:29:37]New thread 3067215204 created [22:29:37]Thread 3067071844 joined [22:29:37]Waiting for new connection... [22:29:37] Sock 10.Parse request [22:29:37]Sock 10.Check first char [22:29:37]Sock 10.First char is OK [22:29:37]request: POST /json_proto HTTP/1.0 [22:29:37]Method: POST [22:29:37]URL: /json_proto [22:29:37]Method is POST - this is cgi request [22:29:37]url: /json_proto [22:29:37]query_string will be loaded in cgi processing [22:29:37]execute_cgi json_proto POST (null) [22:29:37]execute_cgi path=json_proto method=POST [22:29:37]POST find Content-Length [22:29:37]Host: 172.17.42.131:8080 [22:29:37]Content-Length: 682 [22:29:37]Content-Type: application/json [22:29:37] [22:29:37]POST finish read [22:29:37]Found Content-Length = 682 [22:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.840, "sum" : 1996.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:37]execute_script... [22:29: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)211422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.840, "sum" : 1996.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:37]POST & json_proto [22:29:37]process_json_proto [22:29:37]json parsed OK: [22:29:37]protocol is kg_v1.0 [22:29:37]action value=close_receipt [22:29:37]process_action close_receipt [22:29:37]cmd_close_receipt [22:29:37]MH_GetDate [22:29:37]Write to MH i2c: F0 00 00 15 80 84 [22:29:37]Write i2c OK [22:29:37]MH_I2C_Read... [22:29:37]Read from MH i2c: F0 [22:29:37]MH_I2C_Read... [22:29:37]Read from MH i2c: F0 09 00 [22:29:37]MH_I2C_Read... [22:29:37]Read from MH i2c: F0 09 00 15 80 00 56 CA 1A 67 A0 18 CA 66 16 [22:29:37]GetLastDocTimeStamp 1729808890 [22:29:37]current date 1729808982 [22:29:37]FM_GetShiftState [22:29:37]SAM_PROTO_GetShiftState [22:29:37]wFMCommunicate request_size=4 [22:29:37]MH_SAM_APDU [22:29:37]CAPDU: 80 13 01 00 [22:29:37]Write to MH i2c: E2 08 00 16 80 80 13 01 00 00 00 00 00 13 [22:29:37]Write i2c OK [22:29:37]MH_I2C_Read... [22:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:37]Read from MH i2c: E2 [22:29:37]MH_I2C_Read... [22:29:37]Read from MH i2c: E2 0E 00 [22:29:37]MH_I2C_Read... [22:29:37]Read from MH i2c: E2 0E 00 16 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 F1 [22:29:37]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:29:37]wFMCommunicate OK [22:29:37]SAM_PROTO_GetShiftState done [22:29:37]FM_GetShiftState done [22:29:37]opened in 1729728961 [22:29:37]opened+sec_in_day 1729815361 [22:29:37]quantity*price = 199629 [22:29:37]sum+1 = 199631 [22:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1996.00 Внесено: 5000.00 СДАЧА: 3004.00 НСП 1% : 17.67 НДС 12% : 212.00 Наличными: 1996.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 430 24.10.2024 22:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189357 ФПД: 254071841589165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189357&fm=254071841589165&tin=02508201610067®Number=0000000000100030&sum=199600 [22:29:38]StoreToDocumentArchive [22:29:38]shift 463 fd 189357 [22:29:38]save to /storage/0463/doc_00189357 [22:29:38]save last doc name /storage/0463/doc_00189357 to /storage/kkm_last_doc_name [22:29:38]save OK [22:29:38]Clear old archive folders... [22:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:38]tlvbuf is 01675E40 [22:29:38]SAM_PROTO_ClearQueue [22:29:38]wFMCommunicate request_size=4 [22:29:38]MH_SAM_APDU [22:29:38]CAPDU: 80 09 00 00 [22:29:38]Write to MH i2c: E2 08 00 23 80 80 09 00 00 00 00 00 00 15 [22:29:38]Write i2c OK [22:29:38]MH_I2C_Read... [22:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:38]Read from MH i2c: E2 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 23 80 00 90 00 17 [22:29:38]RAPDU: 90 00 [22:29:38]wFMCommunicate OK [22:29:38]SAM_PROTO_ClearQueue done [22:29:38]KKMCreateOFDPacket [22:29:38]OFDProtocolAddRootSTLVToBuf [22:29:38]FM_MakeSignedData [22:29:38]FM_MakeSignedData [22:29:38]SAM_PROTO_SignData [22:29:38]wFMCommunicate request_size=4 [22:29:38]MH_SAM_APDU [22:29:38]CAPDU: 80 0D 01 02 [22:29:38]Write to MH i2c: E2 08 00 24 80 80 0D 01 02 00 00 00 00 1D [22:29:38]Write i2c OK [22:29:38]MH_I2C_Read... [22:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:38]Read from MH i2c: E2 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 24 80 00 90 00 18 [22:29:38]RAPDU: 90 00 [22:29:38]wFMCommunicate OK [22:29:38]wFMCommunicate request_size=255 [22:29:38]MH_SAM_APDU [22:29: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 33 FF 03 08 00 03 90 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 52 00 00 00 00 07 04 06 00 B0 0B 03 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 56 CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E3 02 00 35 04 06 00 E7 [22:29:38]Write to MH i2c: E2 02 01 25 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 33 FF 03 08 00 03 90 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 52 00 00 00 00 07 04 06 00 B0 0B 03 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 56 CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E3 02 00 35 04 06 00 E7 00 00 4B [22:29:38]Write i2c OK [22:29:38]MH_I2C_Read... [22:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:38]Read from MH i2c: E2 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 25 80 00 90 00 19 [22:29:38]RAPDU: 90 00 [22:29:38]wFMCommunicate OK [22:29:38]wFMCommunicate request_size=10 [22:29:38]MH_SAM_APDU [22:29:38]CAPDU: 80 0D 02 02 05 13 B5 DD 87 AD [22:29:38]Write to MH i2c: E2 0D 00 26 80 80 0D 02 02 05 00 13 B5 DD 87 AD 00 00 03 [22:29:38]Write i2c OK [22:29:38]MH_I2C_Read... [22:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:38]Read from MH i2c: E2 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 [22:29:38]MH_I2C_Read... [22:29:38]Read from MH i2c: E2 03 00 26 80 00 90 00 1A [22:29:38]RAPDU: 90 00 [22:29:38]wFMCommunicate OK [22:29:38]wFMCommunicate request_size=4 [22:29:38]MH_SAM_APDU [22:29:38]CAPDU: 80 0D 03 02 [22:29:38]Write to MH i2c: E2 08 00 27 80 80 0D 03 02 00 00 00 00 22 [22:29:38]Write i2c OK [22:29:38]MH_I2C_Read... [22:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:39]Read from MH i2c: E2 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: E2 0B 00 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: E2 0B 00 27 80 00 71 20 1D A9 C6 14 69 B5 90 00 72 [22:29:39]RAPDU: 71 20 1D A9 C6 14 69 B5 90 00 [22:29:39]wFMCommunicate OK [22:29:39]SAM_PROTO_SignData done [22:29:39]FM_MakeSignedData done [22:29:39]CreateOFDProtocolMessage [22:29:39]wFMCommunicate request_size=4 [22:29:39]MH_SAM_APDU [22:29:39]CAPDU: 80 11 00 00 [22:29:39]Write to MH i2c: E2 08 00 28 80 80 11 00 00 00 00 00 00 22 [22:29:39]Write i2c OK [22:29:39]MH_I2C_Read... [22:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:39]Read from MH i2c: E2 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: E2 17 00 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: E2 17 00 28 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [22:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:29:39]wFMCommunicate OK [22:29:39]CreateOFDProtocolMessage done [22:29:39]OFDSenderStorePacket 189357 [22:29:39]StoreOFDPacket docnum=189357 [22:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 91 07 01 00 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 33 FF 03 08 00 03 90 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 52 00 00 00 00 07 04 06 00 B0 0B 03 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 56 CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E3 02 00 35 04 06 00 E7 13 B5 DD 87 AD 71 20 1D A9 C6 14 69 B5 [22:29:39]CheckFolder [22:29:39]dirname=/storage/ofd_packets [22:29:39]CheckFolder done [22:29:39]ProducePacketName [22:29:39]name=ofd_packets/00189357 [22:29:39]NVStorageSaveData ofd_packets/00189357 [22:29:39]File name is /storage/ofd_packets/00189357 [22:29:39]Write 301 bytes [22:29:39]NVStorageSaveData done [22:29:39]OFDSenderStorePacket done [22:29:39]KKMCreateOFDPacket done [22:29:39]NVStorageSaveData kkm_last_timestamp [22:29:39]File name is /storage/kkm_last_timestamp [22:29:39]Write 4 bytes [22:29:39]NVStorageSaveData done [22:29:39]ExternCall_PrintAddStr [22:29:39]wPrintStart [22:29:39]Write to MH i2c: 01 00 00 29 80 A9 [22:29:39]Write i2c OK [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 07 00 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 07 00 29 80 00 00 00 00 00 FF 0F BE [22:29:39]RasterBufferAndPrint [22:29:39]line Счет N : (1)211422 [22:29:39]line ИНН: 02508201610067 [22:29:39]line Контрольно-Кассовый Чек [22:29:39]line ПРОДАЖА [22:29:39]line ТРК (МРК, ГНК) : 12 [22:29:39]line Товар: 2710124130 [22:29:39]line Аи-92-К-3 [22:29:39]line 29.840 * 66.90 [22:29:39]line = 1996.30 [22:29:39]line НДС 12% НСП 1% [22:29:39]line > о реализуемом товаре [22:29:39]line ОКРУГЛЕНИЕ: -0.30 [22:29:39]line ИТОГО: 1996.00 [22:29:39]line Внесено: 5000.00 [22:29:39]line СДАЧА: 3004.00 [22:29:39]line НСП 1% : 17.67 [22:29:39]line НДС 12% : 212.00 [22:29:39]line Наличными: 1996.00 [22:29:39]line Безнал.: 0.00 [22:29:39]line Место: АЗС № 86 "Партнер Нефть" [22:29:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:29:39]line СНО: Общий режим [22:29:39]line Чек 430 24.10.2024 22:29 [22:29:39]line Смена: 463 ФФД: 1.0 [22:29:39]line ЗНМ: 0300000155 [22:29:39]line РНМ: 0000000000100030 [22:29:39]line Версия ККМ: 001 [22:29:39]line ФМ: 0000000000965340 [22:29:39]line ФД: 189357 [22:29:39]line ФПД: 254071841589165 [22:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189357&fm=254071841589165&tin=02508201610067®Number=0000000000100030&sum=199600 [22:29:39]written 0, free lines is 4095 [22:29:39]OFD Sender: Processing packet 189357 [packets to send 1062, broken 1061] [22:29:39]ProducePacketName [22:29:39]name=ofd_packets/00189357 [22:29:39]OFD Sender: To server: pG, [22:29:39]CommunicateWithHost lk.salyk.kg:30040 [22:29:39]ConnectInit lk.salyk.kg [22:29:39]Connected sock=11 [22:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 91 07 01 00 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 33 FF 03 08 00 03 90 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 52 00 00 00 00 07 04 06 00 B0 0B 03 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 56 CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD E3 02 00 35 04 06 00 E7 13 B5 DD 87 AD 71 20 1D A9 C6 14 69 B5 [22:29:39]Write to MH i2c: 01 00 00 54 80 D4 [22:29:39]Write i2c OK [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 07 00 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: 01 07 00 54 80 00 00 00 00 00 52 0C 39 [22:29:39]RasterBufferAndPrint [22:29:39]line [22:29:39]line [22:29:39]line [22:29:39]line [22:29:39]line [22:29:39]written 0, free lines is 3159 [22:29:39]MH_Cut [22:29:39]Write to MH i2c: D1 01 00 5B 80 01 AD [22:29:39]Write i2c OK [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: D1 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: D1 01 00 [22:29:39]MH_I2C_Read... [22:29:39]Read from MH i2c: D1 01 00 5B 80 00 AC [22:29:39]Write to MH i2c: 01 00 00 5C 80 DC [22:29:39]Write i2c OK [22:29:39]MH_I2C_Read... [22:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 00 47 00 59 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 39 36 35 33 34 30 10 04 04 00 AD E3 02 00 F4 03 04 00 3D 74 1A 67 B6 04 01 00 00 18 48 9F 25 C5 7E B9 A6 [22:29:39]CommunicateWithHost err = 0 [22:29:39]CheckOFDResponse [22:29:39]1017 (14) - 77093643461234 [22:29:39]1041 (16) - 0000000000965340 [22:29:39]1040 (4) - 189357 [22:29:39]1012 (4) - 24.10.2024 16:22 [22:29:39]1206 (1) - 0 [22:29:39]OFD Sender: Remove packet 189357 [22:29:39]ProducePacketName [22:29:39]name=ofd_packets/00189357 [22:29:39]NVStorageDeleteData [22:29:40]OFD Sender: No OFD packet to send [22:29:40]*** Cut start [22:29:40]*** Partial cut [22:29:40]*** CUTSNS_PIN = 1 [22:29:40]*** CUTSNS_PIN = 0 [22:29:41]*** Brake cut motor [22:29:41]Read from MH i2c: 01 [22:29:41]MH_I2C_Read... [22:29:41]*** Stop cut motor [22:29:41]*** Cut end [22:29:41]Read from MH i2c: 01 07 00 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: 01 07 00 5C 80 00 00 00 00 00 FF 0F F1 [22:29:41]process_action close_receipt done [22:29:41]requested_data is exist [22:29:41]produce_requested_data [22:29:41]requested_item fm.sn is exist - process it [22:29:41]wFMCommunicate request_size=4 [22:29:41]MH_SAM_APDU [22:29:41]CAPDU: 80 11 00 00 [22:29:41]Write to MH i2c: E2 08 00 5D 80 80 11 00 00 00 00 00 00 57 [22:29:41]Write i2c OK [22:29:41]MH_I2C_Read... [22:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:41]Read from MH i2c: E2 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 17 00 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 17 00 5D 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [22:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:29:41]wFMCommunicate OK [22:29:41]requested_item fd.num is exist - process it [22:29:41]SAM_PROTO_GetFieldsCounters [22:29:41]wFMCommunicate request_size=4 [22:29:41]MH_SAM_APDU [22:29:41]CAPDU: 80 13 00 00 [22:29:41]Write to MH i2c: E2 08 00 5E 80 80 13 00 00 00 00 00 00 5A [22:29:41]Write i2c OK [22:29:41]MH_I2C_Read... [22:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:41]Read from MH i2c: E2 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 62 00 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 62 00 5E 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E3 02 00 0E 04 04 00 CF 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 D0 [22:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD E3 02 00 0E 04 04 00 CF 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 [22:29:41]wFMCommunicate OK [22:29:41]SAM_PROTO_GetFieldsCounters done [22:29:41]requested_item shift.num is exist - process it [22:29:41]requested_item shift.opened is exist - process it [22:29:41]req_shift_opened [22:29:41]FM_GetShiftState [22:29:41]SAM_PROTO_GetShiftState [22:29:41]wFMCommunicate request_size=4 [22:29:41]MH_SAM_APDU [22:29:41]CAPDU: 80 13 01 00 [22:29:41]Write to MH i2c: E2 08 00 5F 80 80 13 01 00 00 00 00 00 5C [22:29:41]Write i2c OK [22:29:41]MH_I2C_Read... [22:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:41]Read from MH i2c: E2 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 0E 00 [22:29:41]MH_I2C_Read... [22:29:41]Read from MH i2c: E2 0E 00 5F 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3A [22:29:41]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:29:41]wFMCommunicate OK [22:29:41]SAM_PROTO_GetShiftState done [22:29:41]FM_GetShiftState done [22:29:41]req_shift_opened done [22:29:41]requested_item shift.open_date is exist - process it [22:29:41]req_shift_open_date [22:29:41]req_shift_open_date done [22:29:41]produce_requested_data done [22:29:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189357,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:29:41]process_action_free close_receipt [22:29:41]json_value_free [22:29:41]json_value_free done [22:29:41]process_json_proto returns [22:29:41]Send response to host [22:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189357,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:29:41]free response buf [22:29:41]execute_script done [22:29:41]execute_script returns [22:29:41]free content buf [22:29:41]Sock 10.Close socket [22:29:41]Sock 10.Thread stoped [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:34]ConnectInit Can't connect to host [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]accept exits with 9 [22:30:45]New connection [22:30:45]New thread 3067071844 created [22:30:45]Thread 3067215204 joined [22:30:45]Waiting for new connection... [22:30:45] Sock 9.Parse request [22:30:45]Sock 9.Check first char [22:30:45]Sock 9.First char is OK [22:30:45]request: POST /json_proto HTTP/1.0 [22:30:45]Method: POST [22:30:45]URL: /json_proto [22:30:45]Method is POST - this is cgi request [22:30:45]url: /json_proto [22:30:45]query_string will be loaded in cgi processing [22:30:45]execute_cgi json_proto POST (null) [22:30:45]execute_cgi path=json_proto method=POST [22:30:45]POST find Content-Length [22:30:45]Host: 172.17.42.131:8080 [22:30:45]Content-Length: 766 [22:30:45]Content-Type: application/json [22:30:45] [22:30:45]POST finish read [22:30:45]Found Content-Length = 766 [22:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:45]execute_script... [22:30: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)211423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:45]POST & json_proto [22:30:45]process_json_proto [22:30:45]json parsed OK: [22:30:45]protocol is kg_v1.0 [22:30:45]action value=close_receipt [22:30:45]process_action close_receipt [22:30:45]cmd_close_receipt [22:30:45]MH_GetDate [22:30:45]Write to MH i2c: F0 00 00 60 80 CF [22:30:45]Write i2c OK [22:30:45]MH_I2C_Read... [22:30:45]Read from MH i2c: F0 [22:30:45]MH_I2C_Read... [22:30:45]Read from MH i2c: F0 09 00 [22:30:45]MH_I2C_Read... [22:30:45]Read from MH i2c: F0 09 00 60 80 00 9A CA 1A 67 A0 18 CA 66 A5 [22:30:45]GetLastDocTimeStamp 1729808982 [22:30:45]current date 1729809050 [22:30:45]FM_GetShiftState [22:30:45]SAM_PROTO_GetShiftState [22:30:45]wFMCommunicate request_size=4 [22:30:45]MH_SAM_APDU [22:30:45]CAPDU: 80 13 01 00 [22:30:45]Write to MH i2c: E2 08 00 61 80 80 13 01 00 00 00 00 00 5E [22:30:45]Write i2c OK [22:30:45]MH_I2C_Read... [22:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:45]Read from MH i2c: E2 [22:30:45]MH_I2C_Read... [22:30:45]Read from MH i2c: E2 0E 00 [22:30:45]MH_I2C_Read... [22:30:45]Read from MH i2c: E2 0E 00 61 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3C [22:30:45]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:30:45]wFMCommunicate OK [22:30:45]SAM_PROTO_GetShiftState done [22:30:45]FM_GetShiftState done [22:30:45]opened in 1729728961 [22:30:45]opened+sec_in_day 1729815361 [22:30:45]quantity*price = 40006 [22:30:45]sum+1 = 40007 [22:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 431 24.10.2024 22:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189358 ФПД: 226041434629186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189358&fm=226041434629186&tin=02508201610067®Number=0000000000100030&sum=40006 [22:30:46]StoreToDocumentArchive [22:30:46]shift 463 fd 189358 [22:30:46]save to /storage/0463/doc_00189358 [22:30:46]save last doc name /storage/0463/doc_00189358 to /storage/kkm_last_doc_name [22:30:46]save OK [22:30:46]Clear old archive folders... [22:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:46]tlvbuf is 01558D50 [22:30:46]SAM_PROTO_ClearQueue [22:30:46]wFMCommunicate request_size=4 [22:30:46]MH_SAM_APDU [22:30:46]CAPDU: 80 09 00 00 [22:30:46]Write to MH i2c: E2 08 00 6E 80 80 09 00 00 00 00 00 00 60 [22:30:46]Write i2c OK [22:30:46]MH_I2C_Read... [22:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:46]Read from MH i2c: E2 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 6E 80 00 90 00 62 [22:30:46]RAPDU: 90 00 [22:30:46]wFMCommunicate OK [22:30:46]SAM_PROTO_ClearQueue done [22:30:46]KKMCreateOFDPacket [22:30:46]OFDProtocolAddRootSTLVToBuf [22:30:46]FM_MakeSignedData [22:30:46]FM_MakeSignedData [22:30:46]SAM_PROTO_SignData [22:30:46]wFMCommunicate request_size=4 [22:30:46]MH_SAM_APDU [22:30:46]CAPDU: 80 0D 01 02 [22:30:46]Write to MH i2c: E2 08 00 6F 80 80 0D 01 02 00 00 00 00 68 [22:30:46]Write i2c OK [22:30:46]MH_I2C_Read... [22:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:46]Read from MH i2c: E2 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 6F 80 00 90 00 63 [22:30:46]RAPDU: 90 00 [22:30:46]wFMCommunicate OK [22:30:46]wFMCommunicate request_size=255 [22:30:46]MH_SAM_APDU [22:30: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 9A CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E3 02 00 35 04 06 00 CD [22:30:46]Write to MH i2c: E2 02 01 70 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 9A CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E3 02 00 35 04 06 00 CD 00 00 7B [22:30:46]Write i2c OK [22:30:46]MH_I2C_Read... [22:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:46]Read from MH i2c: E2 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 70 80 00 90 00 64 [22:30:46]RAPDU: 90 00 [22:30:46]wFMCommunicate OK [22:30:46]wFMCommunicate request_size=10 [22:30:46]MH_SAM_APDU [22:30:46]CAPDU: 80 0D 02 02 05 95 5F 6A 64 42 [22:30:46]Write to MH i2c: E2 0D 00 71 80 80 0D 02 02 05 00 95 5F 6A 64 42 00 00 79 [22:30:46]Write i2c OK [22:30:46]MH_I2C_Read... [22:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:46]Read from MH i2c: E2 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 03 00 71 80 00 90 00 65 [22:30:46]RAPDU: 90 00 [22:30:46]wFMCommunicate OK [22:30:46]wFMCommunicate request_size=4 [22:30:46]MH_SAM_APDU [22:30:46]CAPDU: 80 0D 03 02 [22:30:46]Write to MH i2c: E2 08 00 72 80 80 0D 03 02 00 00 00 00 6D [22:30:46]Write i2c OK [22:30:46]MH_I2C_Read... [22:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:46]Read from MH i2c: E2 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 0B 00 [22:30:46]MH_I2C_Read... [22:30:46]Read from MH i2c: E2 0B 00 72 80 00 CD 7E 3D AB B2 A6 8F 82 90 00 0A [22:30:47]RAPDU: CD 7E 3D AB B2 A6 8F 82 90 00 [22:30:47]wFMCommunicate OK [22:30:47]SAM_PROTO_SignData done [22:30:47]FM_MakeSignedData done [22:30:47]CreateOFDProtocolMessage [22:30:47]wFMCommunicate request_size=4 [22:30:47]MH_SAM_APDU [22:30:47]CAPDU: 80 11 00 00 [22:30:47]Write to MH i2c: E2 08 00 73 80 80 11 00 00 00 00 00 00 6D [22:30:47]Write i2c OK [22:30:47]MH_I2C_Read... [22:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:47]Read from MH i2c: E2 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: E2 17 00 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: E2 17 00 73 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [22:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:30:47]wFMCommunicate OK [22:30:47]CreateOFDProtocolMessage done [22:30:47]OFDSenderStorePacket 189358 [22:30:47]StoreOFDPacket docnum=189358 [22:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D A1 07 01 BC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 9A CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E3 02 00 35 04 06 00 CD 95 5F 6A 64 42 CD 7E 3D AB B2 A6 8F 82 [22:30:47]CheckFolder [22:30:47]dirname=/storage/ofd_packets [22:30:47]CheckFolder done [22:30:47]ProducePacketName [22:30:47]name=ofd_packets/00189358 [22:30:47]NVStorageSaveData ofd_packets/00189358 [22:30:47]File name is /storage/ofd_packets/00189358 [22:30:47]Write 301 bytes [22:30:47]NVStorageSaveData done [22:30:47]OFDSenderStorePacket done [22:30:47]KKMCreateOFDPacket done [22:30:47]NVStorageSaveData kkm_last_timestamp [22:30:47]File name is /storage/kkm_last_timestamp [22:30:47]Write 4 bytes [22:30:47]NVStorageSaveData done [22:30:47]ExternCall_PrintAddStr [22:30:47]wPrintStart [22:30:47]Write to MH i2c: 01 00 00 74 80 F4 [22:30:47]Write i2c OK [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 07 00 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 07 00 74 80 00 00 00 00 00 FF 0F 09 [22:30:47]RasterBufferAndPrint [22:30:47]line Счет N : (1)211423 [22:30:47]line ИНН: 02508201610067 [22:30:47]line Контрольно-Кассовый Чек [22:30:47]line ПРОДАЖА [22:30:47]line ТРК (МРК, ГНК) : 32 [22:30:47]line Товар: 2710124130 [22:30:47]line Аи-92-К-3 [22:30:47]line 5.980 * 66.90 [22:30:47]line = 400.06 [22:30:47]line НДС 12% НСП 1% [22:30:47]line > о реализуемом товаре [22:30:47]line ИТОГО: 400.06 [22:30:47]line НСП 1% : 3.54 [22:30:47]line НДС 12% : 42.48 [22:30:47]line Наличными: 0.00 [22:30:47]line Безнал.: 400.06 [22:30:47]line Место: АЗС № 86 "Партнер Нефть" [22:30:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:30:47]line СНО: Общий режим [22:30:47]line Чек 431 24.10.2024 22:30 [22:30:47]line Смена: 463 ФФД: 1.0 [22:30:47]line ЗНМ: 0300000155 [22:30:47]line РНМ: 0000000000100030 [22:30:47]line Версия ККМ: 001 [22:30:47]line Платежная система: Mbank [22:30:47]line ФМ: 0000000000965340 [22:30:47]line ФД: 189358 [22:30:47]line ФПД: 226041434629186 [22:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189358&fm=226041434629186&tin=02508201610067®Number=0000000000100030&sum=40006 [22:30:47]OFD Sender: Processing packet 189358 [packets to send 1062, broken 1061] [22:30:47]ProducePacketName [22:30:47]name=ofd_packets/00189358 [22:30:47]OFD Sender: To server: pG, [22:30:47]CommunicateWithHost lk.salyk.kg:30040 [22:30:47]ConnectInit lk.salyk.kg [22:30:47]written 0, free lines is 4095 [22:30:47]Connected sock=11 [22:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D A1 07 01 BC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 9A CA 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE E3 02 00 35 04 06 00 CD 95 5F 6A 64 42 CD 7E 3D AB B2 A6 8F 82 [22:30:47]Write to MH i2c: 01 00 00 9D 80 1D [22:30:47]Write i2c OK [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 07 00 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: 01 07 00 9D 80 00 00 00 00 00 8C 0C BC [22:30:47]RasterBufferAndPrint [22:30:47]line [22:30:47]line [22:30:47]line [22:30:47]line [22:30:47]line [22:30:47]written 0, free lines is 3221 [22:30:47]MH_Cut [22:30:47]Write to MH i2c: D1 01 00 A4 80 01 F6 [22:30:47]Write i2c OK [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: D1 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: D1 01 00 [22:30:47]MH_I2C_Read... [22:30:47]Read from MH i2c: D1 01 00 A4 80 00 F5 [22:30:47]Write to MH i2c: 01 00 00 A5 80 25 [22:30:47]Write i2c OK [22:30:47]MH_I2C_Read... [22:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CE 9F 47 00 AD 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 39 36 35 33 34 30 10 04 04 00 AE E3 02 00 F4 03 04 00 81 74 1A 67 B6 04 01 00 00 99 0C 81 7A 61 88 37 CD [22:30:47]CommunicateWithHost err = 0 [22:30:47]CheckOFDResponse [22:30:47]1017 (14) - 77093643461234 [22:30:47]1041 (16) - 0000000000965340 [22:30:47]1040 (4) - 189358 [22:30:47]1012 (4) - 24.10.2024 16:23 [22:30:47]1206 (1) - 0 [22:30:47]OFD Sender: Remove packet 189358 [22:30:47]ProducePacketName [22:30:47]name=ofd_packets/00189358 [22:30:47]NVStorageDeleteData [22:30:48]OFD Sender: No OFD packet to send [22:30:48]*** Cut start [22:30:48]*** Partial cut [22:30:48]*** CUTSNS_PIN = 1 [22:30:48]*** CUTSNS_PIN = 0 [22:30:49]*** Brake cut motor [22:30:49]Read from MH i2c: 01 [22:30:49]MH_I2C_Read... [22:30:49]*** Stop cut motor [22:30:49]*** Cut end [22:30:49]Read from MH i2c: 01 07 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: 01 07 00 A5 80 00 00 00 00 00 FF 0F 3A [22:30:49]process_action close_receipt done [22:30:49]requested_data is exist [22:30:49]produce_requested_data [22:30:49]requested_item fm.sn is exist - process it [22:30:49]wFMCommunicate request_size=4 [22:30:49]MH_SAM_APDU [22:30:49]CAPDU: 80 11 00 00 [22:30:49]Write to MH i2c: E2 08 00 A6 80 80 11 00 00 00 00 00 00 A0 [22:30:49]Write i2c OK [22:30:49]MH_I2C_Read... [22:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:49]Read from MH i2c: E2 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 17 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 17 00 A6 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [22:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:30:49]wFMCommunicate OK [22:30:49]requested_item fd.num is exist - process it [22:30:49]SAM_PROTO_GetFieldsCounters [22:30:49]wFMCommunicate request_size=4 [22:30:49]MH_SAM_APDU [22:30:49]CAPDU: 80 13 00 00 [22:30:49]Write to MH i2c: E2 08 00 A7 80 80 13 00 00 00 00 00 00 A3 [22:30:49]Write i2c OK [22:30:49]MH_I2C_Read... [22:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:49]Read from MH i2c: E2 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 62 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 62 00 A7 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E3 02 00 0E 04 04 00 CF 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 1D [22:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE E3 02 00 0E 04 04 00 CF 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 [22:30:49]wFMCommunicate OK [22:30:49]SAM_PROTO_GetFieldsCounters done [22:30:49]requested_item shift.num is exist - process it [22:30:49]requested_item shift.opened is exist - process it [22:30:49]req_shift_opened [22:30:49]FM_GetShiftState [22:30:49]SAM_PROTO_GetShiftState [22:30:49]wFMCommunicate request_size=4 [22:30:49]MH_SAM_APDU [22:30:49]CAPDU: 80 13 01 00 [22:30:49]Write to MH i2c: E2 08 00 A8 80 80 13 01 00 00 00 00 00 A5 [22:30:49]Write i2c OK [22:30:49]MH_I2C_Read... [22:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:49]Read from MH i2c: E2 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 0E 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 0E 00 A8 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 83 [22:30:49]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:30:49]wFMCommunicate OK [22:30:49]SAM_PROTO_GetShiftState done [22:30:49]FM_GetShiftState done [22:30:49]req_shift_opened done [22:30:49]requested_item shift.open_date is exist - process it [22:30:49]req_shift_open_date [22:30:49]req_shift_open_date done [22:30:49]produce_requested_data done [22:30:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189358,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:30:49]process_action_free close_receipt [22:30:49]json_value_free [22:30:49]json_value_free done [22:30:49]process_json_proto returns [22:30:49]Send response to host [22:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189358,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:30:49]free response buf [22:30:49]execute_script done [22:30:49]execute_script returns [22:30:49]free content buf [22:30:49]Sock 9.Close socket [22:30:49]Sock 9.Thread stoped [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:08]accept exits with 10 [22:34:08]New connection [22:34:08]New thread 3067215204 created [22:34:08]Thread 3067071844 joined [22:34:08]Waiting for new connection... [22:34:08] Sock 10.Parse request [22:34:08]Sock 10.Check first char [22:34:08]Sock 10.First char is OK [22:34:08]request: POST /json_proto HTTP/1.0 [22:34:08]Method: POST [22:34:08]URL: /json_proto [22:34:08]Method is POST - this is cgi request [22:34:08]url: /json_proto [22:34:08]query_string will be loaded in cgi processing [22:34:08]execute_cgi json_proto POST (null) [22:34:08]execute_cgi path=json_proto method=POST [22:34:08]POST find Content-Length [22:34:08]Host: 172.17.42.131:8080 [22:34:08]Content-Length: 766 [22:34:08]Content-Type: application/json [22:34:08] [22:34:08]POST finish read [22:34:08]Found Content-Length = 766 [22:34:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:08]execute_script... [22:34: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)211424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:08]POST & json_proto [22:34:08]process_json_proto [22:34:08]json parsed OK: [22:34:08]protocol is kg_v1.0 [22:34:08]action value=close_receipt [22:34:08]process_action close_receipt [22:34:08]cmd_close_receipt [22:34:08]MH_GetDate [22:34:08]Write to MH i2c: F0 00 00 A9 80 18 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: F0 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: F0 09 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: F0 09 00 A9 80 00 65 CB 1A 67 A0 18 CA 66 BA [22:34:08]GetLastDocTimeStamp 1729809050 [22:34:08]current date 1729809253 [22:34:08]FM_GetShiftState [22:34:08]SAM_PROTO_GetShiftState [22:34:08]wFMCommunicate request_size=4 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 13 01 00 [22:34:08]Write to MH i2c: E2 08 00 AA 80 80 13 01 00 00 00 00 00 A7 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 0E 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 0E 00 AA 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 85 [22:34:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:34:08]wFMCommunicate OK [22:34:08]SAM_PROTO_GetShiftState done [22:34:08]FM_GetShiftState done [22:34:08]opened in 1729728961 [22:34:08]opened+sec_in_day 1729815361 [22:34:08]quantity*price = 30038 [22:34:08]sum+1 = 30039 [22:34:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 432 24.10.2024 22:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189359 ФПД: 198546752176916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189359&fm=198546752176916&tin=02508201610067®Number=0000000000100030&sum=30038 [22:34:09]StoreToDocumentArchive [22:34:09]shift 463 fd 189359 [22:34:09]save to /storage/0463/doc_00189359 [22:34:09]save last doc name /storage/0463/doc_00189359 to /storage/kkm_last_doc_name [22:34:09]save OK [22:34:09]Clear old archive folders... [22:34:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:09]tlvbuf is 017A9330 [22:34:09]SAM_PROTO_ClearQueue [22:34:09]wFMCommunicate request_size=4 [22:34:09]MH_SAM_APDU [22:34:09]CAPDU: 80 09 00 00 [22:34:09]Write to MH i2c: E2 08 00 B7 80 80 09 00 00 00 00 00 00 A9 [22:34:09]OFD Sender: No OFD packet to send [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:09]Read from MH i2c: E2 03 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 B7 80 00 90 00 AB [22:34:09]RAPDU: 90 00 [22:34:09]wFMCommunicate OK [22:34:09]SAM_PROTO_ClearQueue done [22:34:09]KKMCreateOFDPacket [22:34:09]OFDProtocolAddRootSTLVToBuf [22:34:09]FM_MakeSignedData [22:34:09]FM_MakeSignedData [22:34:09]SAM_PROTO_SignData [22:34:09]wFMCommunicate request_size=4 [22:34:09]MH_SAM_APDU [22:34:09]CAPDU: 80 0D 01 02 [22:34:09]Write to MH i2c: E2 08 00 B8 80 80 0D 01 02 00 00 00 00 B1 [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 B8 80 00 90 00 AC [22:34:09]RAPDU: 90 00 [22:34:09]wFMCommunicate OK [22:34:09]wFMCommunicate request_size=255 [22:34:09]MH_SAM_APDU [22:34: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 65 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E3 02 00 35 04 06 00 B4 [22:34:09]Write to MH i2c: E2 02 01 B9 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 65 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E3 02 00 35 04 06 00 B4 00 00 DE [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 B9 80 00 90 00 AD [22:34:09]RAPDU: 90 00 [22:34:09]wFMCommunicate OK [22:34:09]wFMCommunicate request_size=10 [22:34:09]MH_SAM_APDU [22:34:09]CAPDU: 80 0D 02 02 05 93 C4 A2 83 14 [22:34:09]Write to MH i2c: E2 0D 00 BA 80 80 0D 02 02 05 00 93 C4 A2 83 14 00 00 4E [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 03 00 BA 80 00 90 00 AE [22:34:09]RAPDU: 90 00 [22:34:09]wFMCommunicate OK [22:34:09]wFMCommunicate request_size=4 [22:34:09]MH_SAM_APDU [22:34:09]CAPDU: 80 0D 03 02 [22:34:09]Write to MH i2c: E2 08 00 BB 80 80 0D 03 02 00 00 00 00 B6 [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 0B 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 0B 00 BB 80 00 94 F3 2B B9 B3 82 5C 1C 90 00 CF [22:34:09]RAPDU: 94 F3 2B B9 B3 82 5C 1C 90 00 [22:34:09]wFMCommunicate OK [22:34:09]SAM_PROTO_SignData done [22:34:09]FM_MakeSignedData done [22:34:09]CreateOFDProtocolMessage [22:34:09]wFMCommunicate request_size=4 [22:34:09]MH_SAM_APDU [22:34:09]CAPDU: 80 11 00 00 [22:34:09]Write to MH i2c: E2 08 00 BC 80 80 11 00 00 00 00 00 00 B6 [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:09]Read from MH i2c: E2 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 17 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: E2 17 00 BC 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [22:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:34:09]wFMCommunicate OK [22:34:09]CreateOFDProtocolMessage done [22:34:09]OFDSenderStorePacket 189359 [22:34:09]StoreOFDPacket docnum=189359 [22:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 23 77 07 01 7D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 65 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E3 02 00 35 04 06 00 B4 93 C4 A2 83 14 94 F3 2B B9 B3 82 5C 1C [22:34:09]CheckFolder [22:34:09]dirname=/storage/ofd_packets [22:34:09]CheckFolder done [22:34:09]ProducePacketName [22:34:09]name=ofd_packets/00189359 [22:34:09]NVStorageSaveData ofd_packets/00189359 [22:34:09]File name is /storage/ofd_packets/00189359 [22:34:09]Write 301 bytes [22:34:09]NVStorageSaveData done [22:34:09]OFDSenderStorePacket done [22:34:09]KKMCreateOFDPacket done [22:34:09]NVStorageSaveData kkm_last_timestamp [22:34:09]File name is /storage/kkm_last_timestamp [22:34:09]Write 4 bytes [22:34:09]NVStorageSaveData done [22:34:09]ExternCall_PrintAddStr [22:34:09]wPrintStart [22:34:09]Write to MH i2c: 01 00 00 BD 80 3D [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 07 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 07 00 BD 80 00 00 00 00 00 FF 0F 52 [22:34:09]RasterBufferAndPrint [22:34:09]line Счет N : (1)211424 [22:34:09]line ИНН: 02508201610067 [22:34:09]line Контрольно-Кассовый Чек [22:34:09]line ПРОДАЖА [22:34:09]line ТРК (МРК, ГНК) : 32 [22:34:09]line Товар: 2710124130 [22:34:09]line Аи-92-К-3 [22:34:09]line 4.490 * 66.90 [22:34:09]line = 300.38 [22:34:09]line НДС 12% НСП 1% [22:34:09]line > о реализуемом товаре [22:34:09]line ИТОГО: 300.38 [22:34:09]line НСП 1% : 2.66 [22:34:09]line НДС 12% : 31.90 [22:34:09]line Наличными: 0.00 [22:34:09]line Безнал.: 300.38 [22:34:09]line Место: АЗС № 86 "Партнер Нефть" [22:34:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:34:09]line СНО: Общий режим [22:34:09]line Чек 432 24.10.2024 22:34 [22:34:09]line Смена: 463 ФФД: 1.0 [22:34:09]line ЗНМ: 0300000155 [22:34:09]line РНМ: 0000000000100030 [22:34:09]line Версия ККМ: 001 [22:34:09]line Платежная система: Mbank [22:34:09]line ФМ: 0000000000965340 [22:34:09]line ФД: 189359 [22:34:09]line ФПД: 198546752176916 [22:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189359&fm=198546752176916&tin=02508201610067®Number=0000000000100030&sum=30038 [22:34:09]written 0, free lines is 4095 [22:34:09]OFD Sender: Processing packet 189359 [packets to send 1062, broken 1061] [22:34:09]ProducePacketName [22:34:09]name=ofd_packets/00189359 [22:34:09]OFD Sender: To server: pG, [22:34:09]CommunicateWithHost lk.salyk.kg:30040 [22:34:09]ConnectInit lk.salyk.kg [22:34:10]Write to MH i2c: 01 00 00 E6 80 66 [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: 01 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: 01 07 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: 01 07 00 E6 80 00 00 00 00 00 83 0C FC [22:34:10]RasterBufferAndPrint [22:34:10]line [22:34:10]line [22:34:10]line [22:34:10]line [22:34:10]line [22:34:10]written 0, free lines is 3207 [22:34:10]MH_Cut [22:34:10]Write to MH i2c: D1 01 00 ED 80 01 3F [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: D1 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: D1 01 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: D1 01 00 ED 80 00 3E [22:34:10]Write to MH i2c: 01 00 00 EE 80 6E [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:11]*** Cut start [22:34:11]*** Partial cut [22:34:11]*** CUTSNS_PIN = 1 [22:34:11]*** CUTSNS_PIN = 0 [22:34:11]*** Brake cut motor [22:34:12]Read from MH i2c: 01 [22:34:12]MH_I2C_Read... [22:34:12]*** Stop cut motor [22:34:12]*** Cut end [22:34:12]Read from MH i2c: 01 07 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: 01 07 00 EE 80 00 00 00 00 00 FF 0F 83 [22:34:12]process_action close_receipt done [22:34:12]requested_data is exist [22:34:12]produce_requested_data [22:34:12]requested_item fm.sn is exist - process it [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 11 00 00 [22:34:12]Write to MH i2c: E2 08 00 EF 80 80 11 00 00 00 00 00 00 E9 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 17 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 17 00 EF 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [22:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:34:12]wFMCommunicate OK [22:34:12]requested_item fd.num is exist - process it [22:34:12]SAM_PROTO_GetFieldsCounters [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 13 00 00 [22:34:12]Write to MH i2c: E2 08 00 F0 80 80 13 00 00 00 00 00 00 EC [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 62 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 62 00 F0 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E3 02 00 0E 04 04 00 CF 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 6A [22:34:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF E3 02 00 0E 04 04 00 CF 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 [22:34:12]wFMCommunicate OK [22:34:12]SAM_PROTO_GetFieldsCounters done [22:34:12]requested_item shift.num is exist - process it [22:34:12]requested_item shift.opened is exist - process it [22:34:12]req_shift_opened [22:34:12]FM_GetShiftState [22:34:12]SAM_PROTO_GetShiftState [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 13 01 00 [22:34:12]Write to MH i2c: E2 08 00 F1 80 80 13 01 00 00 00 00 00 EE [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0E 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0E 00 F1 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CC [22:34:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:34:12]wFMCommunicate OK [22:34:12]SAM_PROTO_GetShiftState done [22:34:12]FM_GetShiftState done [22:34:12]req_shift_opened done [22:34:12]requested_item shift.open_date is exist - process it [22:34:12]req_shift_open_date [22:34:12]req_shift_open_date done [22:34:12]produce_requested_data done [22:34:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189359,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:34:12]process_action_free close_receipt [22:34:12]json_value_free [22:34:12]json_value_free done [22:34:12]process_json_proto returns [22:34:12]Send response to host [22:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189359,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:34:12]free response buf [22:34:12]execute_script done [22:34:12]execute_script returns [22:34:12]free content buf [22:34:12]Sock 10.Close socket [22:34:12]Sock 10.Thread stoped [22:35:43]accept exits with 8 [22:35:43]New connection [22:35:43]New thread 3067071844 created [22:35:43]Thread 3067215204 joined [22:35:43]Waiting for new connection... [22:35:43] Sock 8.Parse request [22:35:43]Sock 8.Check first char [22:35:43]Sock 8.First char is OK [22:35:43]request: POST /json_proto HTTP/1.0 [22:35:43]Method: POST [22:35:43]URL: /json_proto [22:35:43]Method is POST - this is cgi request [22:35:43]url: /json_proto [22:35:43]query_string will be loaded in cgi processing [22:35:43]execute_cgi json_proto POST (null) [22:35:43]execute_cgi path=json_proto method=POST [22:35:43]POST find Content-Length [22:35:43]Host: 172.17.42.131:8080 [22:35:43]Content-Length: 683 [22:35:43]Content-Type: application/json [22:35:43] [22:35:43]POST finish read [22:35:43]Found Content-Length = 683 [22:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "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:35:43]execute_script... [22:35: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)211425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "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:35:43]POST & json_proto [22:35:43]process_json_proto [22:35:43]json parsed OK: [22:35:43]protocol is kg_v1.0 [22:35:43]action value=close_receipt [22:35:43]process_action close_receipt [22:35:43]cmd_close_receipt [22:35:43]MH_GetDate [22:35:43]Write to MH i2c: F0 00 00 F2 80 61 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 09 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 09 00 F2 80 00 C5 CB 1A 67 A0 18 CA 66 63 [22:35:43]GetLastDocTimeStamp 1729809253 [22:35:43]current date 1729809349 [22:35:43]FM_GetShiftState [22:35:43]SAM_PROTO_GetShiftState [22:35:43]wFMCommunicate request_size=4 [22:35:43]MH_SAM_APDU [22:35:43]CAPDU: 80 13 01 00 [22:35:43]Write to MH i2c: E2 08 00 F3 80 80 13 01 00 00 00 00 00 F0 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:43]Read from MH i2c: E2 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 0E 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 0E 00 F3 80 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 CE [22:35:43]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:35:43]wFMCommunicate OK [22:35:43]SAM_PROTO_GetShiftState done [22:35:43]FM_GetShiftState done [22:35:43]opened in 1729728961 [22:35:43]opened+sec_in_day 1729815361 [22:35:43]quantity*price = 30030 [22:35:43]sum+1 = 30032 [22:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 433 24.10.2024 22:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189360 ФПД: 227901179276657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223549&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189360&fm=227901179276657&tin=02508201610067®Number=0000000000100030&sum=30000 [22:35:44]StoreToDocumentArchive [22:35:44]shift 463 fd 189360 [22:35:44]save to /storage/0463/doc_00189360 [22:35:44]save last doc name /storage/0463/doc_00189360 to /storage/kkm_last_doc_name [22:35:44]save OK [22:35:44]Clear old archive folders... [22:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:35:44]tlvbuf is 01555F80 [22:35:44]SAM_PROTO_ClearQueue [22:35:44]wFMCommunicate request_size=4 [22:35:44]MH_SAM_APDU [22:35:44]CAPDU: 80 09 00 00 [22:35:44]Write to MH i2c: E2 08 00 00 81 80 09 00 00 00 00 00 00 F3 [22:35:44]Write i2c OK [22:35:44]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 00 81 00 90 00 F5 [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_ClearQueue done [22:35:45]KKMCreateOFDPacket [22:35:45]OFDProtocolAddRootSTLVToBuf [22:35:45]FM_MakeSignedData [22:35:45]FM_MakeSignedData [22:35:45]SAM_PROTO_SignData [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 01 02 [22:35:45]Write to MH i2c: E2 08 00 01 81 80 0D 01 02 00 00 00 00 FB [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 01 81 00 90 00 F6 [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=255 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 B1 01 00 00 F4 03 04 00 C5 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E3 02 [22:35:45]Write to MH i2c: E2 02 01 02 81 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 B1 01 00 00 F4 03 04 00 C5 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E3 02 00 00 BF [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 02 81 00 90 00 F7 [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=16 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF 46 60 D5 AD 71 [22:35:45]Write to MH i2c: E2 13 00 03 81 80 0D 02 02 0B 00 00 35 04 06 00 CF 46 60 D5 AD 71 00 00 BB [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 03 81 00 90 00 F8 [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 03 02 [22:35:45]Write to MH i2c: E2 08 00 04 81 80 0D 03 02 00 00 00 00 00 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 04 81 00 E8 21 CD B0 BE 08 7A 12 90 00 D9 [22:35:45]RAPDU: E8 21 CD B0 BE 08 7A 12 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_SignData done [22:35:45]FM_MakeSignedData done [22:35:45]CreateOFDProtocolMessage [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 11 00 00 [22:35:45]Write to MH i2c: E2 08 00 05 81 80 11 00 00 00 00 00 00 00 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 05 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [22:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:35:45]wFMCommunicate OK [22:35:45]CreateOFDProtocolMessage done [22:35:45]OFDSenderStorePacket 189360 [22:35:45]StoreOFDPacket docnum=189360 [22:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4C 58 0D 01 D2 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 B1 01 00 00 F4 03 04 00 C5 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E3 02 00 35 04 06 00 CF 46 60 D5 AD 71 E8 21 CD B0 BE 08 7A 12 [22:35:45]CheckFolder [22:35:45]dirname=/storage/ofd_packets [22:35:45]CheckFolder done [22:35:45]ProducePacketName [22:35:45]name=ofd_packets/00189360 [22:35:45]NVStorageSaveData ofd_packets/00189360 [22:35:45]File name is /storage/ofd_packets/00189360 [22:35:45]Write 307 bytes [22:35:45]NVStorageSaveData done [22:35:45]OFDSenderStorePacket done [22:35:45]KKMCreateOFDPacket done [22:35:45]NVStorageSaveData kkm_last_timestamp [22:35:45]File name is /storage/kkm_last_timestamp [22:35:45]Write 4 bytes [22:35:45]NVStorageSaveData done [22:35:45]ExternCall_PrintAddStr [22:35:45]wPrintStart [22:35:45]Write to MH i2c: 01 00 00 06 81 87 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 06 81 00 00 00 00 00 FF 0F 9C [22:35:45]RasterBufferAndPrint [22:35:45]line Счет N : (1)211425 [22:35:45]line ИНН: 02508201610067 [22:35:45]line Контрольно-Кассовый Чек [22:35:45]line ПРОДАЖА [22:35:45]line ТРК (МРК, ГНК) : 41 [22:35:45]line Товар: 2710194210 [22:35:45]line D-ENERGY ДТ-К-5 [22:35:45]line 3.890 * 77.20 [22:35:45]line = 300.31 [22:35:45]line НДС 12% НСП 1% [22:35:45]line > о реализуемом товаре [22:35:45]line ОКРУГЛЕНИЕ: -0.31 [22:35:45]line ИТОГО: 300.00 [22:35:45]line Внесено: 300.00 [22:35:45]line СДАЧА: 0.00 [22:35:45]line НСП 1% : 2.66 [22:35:45]line НДС 12% : 31.89 [22:35:45]line Наличными: 300.00 [22:35:45]line Безнал.: 0.00 [22:35:45]line Место: АЗС № 86 "Партнер Нефть" [22:35:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:35:45]line СНО: Общий режим [22:35:45]line Чек 433 24.10.2024 22:35 [22:35:45]line Смена: 463 ФФД: 1.0 [22:35:45]line ЗНМ: 0300000155 [22:35:45]line РНМ: 0000000000100030 [22:35:45]line Версия ККМ: 001 [22:35:45]line ФМ: 0000000000965340 [22:35:45]line ФД: 189360 [22:35:45]line ФПД: 227901179276657 [22:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223549&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189360&fm=227901179276657&tin=02508201610067®Number=0000000000100030&sum=30000 [22:35:45]written 0, free lines is 4095 [22:35:45]Write to MH i2c: 01 00 00 31 81 B2 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 31 81 00 00 00 00 00 50 0C 15 [22:35:45]RasterBufferAndPrint [22:35:45]line [22:35:45]line [22:35:45]line [22:35:45]line [22:35:45]line [22:35:45]written 0, free lines is 3157 [22:35:45]MH_Cut [22:35:45]Write to MH i2c: D1 01 00 38 81 01 8B [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: D1 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: D1 01 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: D1 01 00 38 81 00 8A [22:35:45]Write to MH i2c: 01 00 00 39 81 BA [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:47]*** Cut start [22:35:47]*** Partial cut [22:35:47]*** CUTSNS_PIN = 1 [22:35:47]*** CUTSNS_PIN = 0 [22:35:47]*** Brake cut motor [22:35:47]Read from MH i2c: 01 [22:35:47]MH_I2C_Read... [22:35:47]*** Stop cut motor [22:35:47]*** Cut end [22:35:47]Read from MH i2c: 01 07 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: 01 07 00 39 81 00 00 00 00 00 FF 0F CF [22:35:47]process_action close_receipt done [22:35:47]requested_data is exist [22:35:47]produce_requested_data [22:35:47]requested_item fm.sn is exist - process it [22:35:47]wFMCommunicate request_size=4 [22:35:47]MH_SAM_APDU [22:35:47]CAPDU: 80 11 00 00 [22:35:47]Write to MH i2c: E2 08 00 3A 81 80 11 00 00 00 00 00 00 35 [22:35:47]Write i2c OK [22:35:47]MH_I2C_Read... [22:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:47]Read from MH i2c: E2 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 17 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 17 00 3A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [22:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:35:47]wFMCommunicate OK [22:35:47]requested_item fd.num is exist - process it [22:35:47]SAM_PROTO_GetFieldsCounters [22:35:47]wFMCommunicate request_size=4 [22:35:47]MH_SAM_APDU [22:35:47]CAPDU: 80 13 00 00 [22:35:47]Write to MH i2c: E2 08 00 3B 81 80 13 00 00 00 00 00 00 38 [22:35:47]Write i2c OK [22:35:47]MH_I2C_Read... [22:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:48]Read from MH i2c: E2 [22:35:48]MH_I2C_Read... [22:35:48]Read from MH i2c: E2 62 00 [22:35:48]MH_I2C_Read... [22:35:48]Read from MH i2c: E2 62 00 3B 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E3 02 00 0E 04 04 00 CF 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 BA [22:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 E3 02 00 0E 04 04 00 CF 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 [22:35:48]wFMCommunicate OK [22:35:48]SAM_PROTO_GetFieldsCounters done [22:35:48]requested_item shift.num is exist - process it [22:35:48]requested_item shift.opened is exist - process it [22:35:48]req_shift_opened [22:35:48]FM_GetShiftState [22:35:48]SAM_PROTO_GetShiftState [22:35:48]wFMCommunicate request_size=4 [22:35:48]MH_SAM_APDU [22:35:48]CAPDU: 80 13 01 00 [22:35:48]Write to MH i2c: E2 08 00 3C 81 80 13 01 00 00 00 00 00 3A [22:35:48]Write i2c OK [22:35:48]MH_I2C_Read... [22:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:48]Read from MH i2c: E2 [22:35:48]MH_I2C_Read... [22:35:48]Read from MH i2c: E2 0E 00 [22:35:48]MH_I2C_Read... [22:35:48]Read from MH i2c: E2 0E 00 3C 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 18 [22:35:48]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:35:48]wFMCommunicate OK [22:35:48]SAM_PROTO_GetShiftState done [22:35:48]FM_GetShiftState done [22:35:48]req_shift_opened done [22:35:48]requested_item shift.open_date is exist - process it [22:35:48]req_shift_open_date [22:35:48]req_shift_open_date done [22:35:48]produce_requested_data done [22:35:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189360,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:35:48]process_action_free close_receipt [22:35:48]json_value_free [22:35:48]json_value_free done [22:35:48]process_json_proto returns [22:35:48]Send response to host [22:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189360,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:35:48]free response buf [22:35:48]execute_script done [22:35:48]execute_script returns [22:35:48]free content buf [22:35:48]Sock 8.Close socket [22:35:48]Sock 8.Thread stoped [22:36:22]ConnectInit Can't connect to host [22:36:22]CommunicateWithHost connect error [22:36:22]CommunicateWithHost err = -1 [22:36:22]OFD Sender: Server communicate error [22:36:22]OFD Sender: Processing packet 189359 [packets to send 1063, broken 1061] [22:36:22]ProducePacketName [22:36:22]name=ofd_packets/00189359 [22:36:22]OFD Sender: To server: pG, [22:36:22]CommunicateWithHost lk.salyk.kg:30040 [22:36:22]ConnectInit lk.salyk.kg [22:36:23]Connected sock=8 [22:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 23 77 07 01 7D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 65 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E3 02 00 35 04 06 00 B4 93 C4 A2 83 14 94 F3 2B B9 B3 82 5C 1C [22:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 DD 47 00 A7 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF E3 02 00 F4 03 04 00 D1 75 1A 67 B6 04 01 00 00 0A 22 A5 ED C8 FF 9D F4 [22:36:23]CommunicateWithHost err = 0 [22:36:23]CheckOFDResponse [22:36:23]1017 (14) - 77093643461234 [22:36:23]1041 (16) - 0000000000965340 [22:36:23]1040 (4) - 189359 [22:36:23]1012 (4) - 24.10.2024 16:29 [22:36:23]1206 (1) - 0 [22:36:23]OFD Sender: Remove packet 189359 [22:36:23]ProducePacketName [22:36:23]name=ofd_packets/00189359 [22:36:23]NVStorageDeleteData [22:36:23]OFD Sender: Processing packet 189360 [packets to send 1062, broken 1061] [22:36:23]ProducePacketName [22:36:23]name=ofd_packets/00189360 [22:36:23]OFD Sender: To server: pG, [22:36:23]CommunicateWithHost lk.salyk.kg:30040 [22:36:23]ConnectInit lk.salyk.kg [22:36:24]Connected sock=8 [22:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4C 58 0D 01 D2 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 B1 01 00 00 F4 03 04 00 C5 CB 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E3 02 00 35 04 06 00 CF 46 60 D5 AD 71 E8 21 CD B0 BE 08 7A 12 [22:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA 69 47 00 1A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 E3 02 00 F4 03 04 00 D2 75 1A 67 B6 04 01 00 00 1C 8A 09 D4 BD 29 FC 99 [22:36:24]CommunicateWithHost err = 0 [22:36:24]CheckOFDResponse [22:36:24]1017 (14) - 77093643461234 [22:36:24]1041 (16) - 0000000000965340 [22:36:24]1040 (4) - 189360 [22:36:24]1012 (4) - 24.10.2024 16:29 [22:36:24]1206 (1) - 0 [22:36:24]OFD Sender: Remove packet 189360 [22:36:24]ProducePacketName [22:36:24]name=ofd_packets/00189360 [22:36:24]NVStorageDeleteData [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:26]accept exits with 10 [22:39:26]New connection [22:39:26]New thread 3067215204 created [22:39:26]Thread 3067071844 joined [22:39:26]Waiting for new connection... [22:39:26] Sock 10.Parse request [22:39:26]Sock 10.Check first char [22:39:26]Sock 10.First char is OK [22:39:26]request: POST /json_proto HTTP/1.0 [22:39:26]Method: POST [22:39:26]URL: /json_proto [22:39:26]Method is POST - this is cgi request [22:39:26]url: /json_proto [22:39:26]query_string will be loaded in cgi processing [22:39:26]execute_cgi json_proto POST (null) [22:39:26]execute_cgi path=json_proto method=POST [22:39:26]POST find Content-Length [22:39:26]Host: 172.17.42.131:8080 [22:39:26]Content-Length: 682 [22:39:26]Content-Type: application/json [22:39:26] [22:39:26]POST finish read [22:39:26]Found Content-Length = 682 [22:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [22:39:26]execute_script... [22:39: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)211426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [22:39:26]POST & json_proto [22:39:26]process_json_proto [22:39:26]json parsed OK: [22:39:26]protocol is kg_v1.0 [22:39:26]action value=close_receipt [22:39:26]process_action close_receipt [22:39:26]cmd_close_receipt [22:39:26]MH_GetDate [22:39:26]Write to MH i2c: F0 00 00 3D 81 AD [22:39:26]Write i2c OK [22:39:26]MH_I2C_Read... [22:39:26]Read from MH i2c: F0 [22:39:26]MH_I2C_Read... [22:39:26]Read from MH i2c: F0 09 00 [22:39:26]MH_I2C_Read... [22:39:26]Read from MH i2c: F0 09 00 3D 81 00 A4 CC 1A 67 A0 18 CA 66 8F [22:39:26]GetLastDocTimeStamp 1729809349 [22:39:26]current date 1729809572 [22:39:26]FM_GetShiftState [22:39:26]SAM_PROTO_GetShiftState [22:39:26]wFMCommunicate request_size=4 [22:39:26]MH_SAM_APDU [22:39:26]CAPDU: 80 13 01 00 [22:39:26]Write to MH i2c: E2 08 00 3E 81 80 13 01 00 00 00 00 00 3C [22:39:26]Write i2c OK [22:39:26]MH_I2C_Read... [22:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:27]Read from MH i2c: E2 [22:39:27]MH_I2C_Read... [22:39:27]Read from MH i2c: E2 0E 00 [22:39:27]MH_I2C_Read... [22:39:27]Read from MH i2c: E2 0E 00 3E 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1A [22:39:27]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:39:27]wFMCommunicate OK [22:39:27]SAM_PROTO_GetShiftState done [22:39:27]FM_GetShiftState done [22:39:27]opened in 1729728961 [22:39:27]opened+sec_in_day 1729815361 [22:39:27]quantity*price = 200043 [22:39:27]sum+1 = 200044 [22:39: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 434 24.10.2024 22:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189361 ФПД: 234165626670420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189361&fm=234165626670420&tin=02508201610067®Number=0000000000100030&sum=200000 [22:39:28]StoreToDocumentArchive [22:39:28]shift 463 fd 189361 [22:39:28]save to /storage/0463/doc_00189361 [22:39:28]save last doc name /storage/0463/doc_00189361 to /storage/kkm_last_doc_name [22:39:28]save OK [22:39:28]Clear old archive folders... [22:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:28]tlvbuf is 01517870 [22:39:28]SAM_PROTO_ClearQueue [22:39:28]wFMCommunicate request_size=4 [22:39:28]MH_SAM_APDU [22:39:28]CAPDU: 80 09 00 00 [22:39:28]Write to MH i2c: E2 08 00 4B 81 80 09 00 00 00 00 00 00 3E [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 4B 81 00 90 00 40 [22:39:28]RAPDU: 90 00 [22:39:28]wFMCommunicate OK [22:39:28]SAM_PROTO_ClearQueue done [22:39:28]KKMCreateOFDPacket [22:39:28]OFDProtocolAddRootSTLVToBuf [22:39:28]FM_MakeSignedData [22:39:28]FM_MakeSignedData [22:39:28]SAM_PROTO_SignData [22:39:28]wFMCommunicate request_size=4 [22:39:28]MH_SAM_APDU [22:39:28]CAPDU: 80 0D 01 02 [22:39:28]Write to MH i2c: E2 08 00 4C 81 80 0D 01 02 00 00 00 00 46 [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 4C 81 00 90 00 41 [22:39:28]RAPDU: 90 00 [22:39:28]wFMCommunicate OK [22:39:28]wFMCommunicate request_size=255 [22:39:28]MH_SAM_APDU [22:39: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 33 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 B2 01 00 00 F4 03 04 00 A4 CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E3 02 00 35 04 06 00 D4 [22:39:28]Write to MH i2c: E2 02 01 4D 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 33 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 B2 01 00 00 F4 03 04 00 A4 CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E3 02 00 35 04 06 00 D4 00 00 3F [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 4D 81 00 90 00 42 [22:39:28]RAPDU: 90 00 [22:39:28]wFMCommunicate OK [22:39:28]wFMCommunicate request_size=10 [22:39:28]MH_SAM_APDU [22:39:28]CAPDU: 80 0D 02 02 05 F8 EE FF 0D 54 [22:39:28]Write to MH i2c: E2 0D 00 4E 81 80 0D 02 02 05 00 F8 EE FF 0D 54 00 00 99 [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 03 00 4E 81 00 90 00 43 [22:39:28]RAPDU: 90 00 [22:39:28]wFMCommunicate OK [22:39:28]wFMCommunicate request_size=4 [22:39:28]MH_SAM_APDU [22:39:28]CAPDU: 80 0D 03 02 [22:39:28]Write to MH i2c: E2 08 00 4F 81 80 0D 03 02 00 00 00 00 4B [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 0B 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 0B 00 4F 81 00 E7 DA 1E 1A 11 C2 2B 4F 90 00 92 [22:39:28]RAPDU: E7 DA 1E 1A 11 C2 2B 4F 90 00 [22:39:28]wFMCommunicate OK [22:39:28]SAM_PROTO_SignData done [22:39:28]FM_MakeSignedData done [22:39:28]CreateOFDProtocolMessage [22:39:28]wFMCommunicate request_size=4 [22:39:28]MH_SAM_APDU [22:39:28]CAPDU: 80 11 00 00 [22:39:28]Write to MH i2c: E2 08 00 50 81 80 11 00 00 00 00 00 00 4B [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:28]Read from MH i2c: E2 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 17 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: E2 17 00 50 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [22:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:39:28]wFMCommunicate OK [22:39:28]CreateOFDProtocolMessage done [22:39:28]OFDSenderStorePacket 189361 [22:39:28]StoreOFDPacket docnum=189361 [22:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 5F 07 01 AF 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 33 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 B2 01 00 00 F4 03 04 00 A4 CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E3 02 00 35 04 06 00 D4 F8 EE FF 0D 54 E7 DA 1E 1A 11 C2 2B 4F [22:39:28]CheckFolder [22:39:28]dirname=/storage/ofd_packets [22:39:28]CheckFolder done [22:39:28]ProducePacketName [22:39:28]name=ofd_packets/00189361 [22:39:28]NVStorageSaveData ofd_packets/00189361 [22:39:28]File name is /storage/ofd_packets/00189361 [22:39:28]Write 301 bytes [22:39:28]NVStorageSaveData done [22:39:28]OFDSenderStorePacket done [22:39:28]KKMCreateOFDPacket done [22:39:28]NVStorageSaveData kkm_last_timestamp [22:39:28]File name is /storage/kkm_last_timestamp [22:39:28]Write 4 bytes [22:39:28]NVStorageSaveData done [22:39:28]ExternCall_PrintAddStr [22:39:28]wPrintStart [22:39:28]Write to MH i2c: 01 00 00 51 81 D2 [22:39:28]Write i2c OK [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: 01 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: 01 07 00 [22:39:28]MH_I2C_Read... [22:39:28]Read from MH i2c: 01 07 00 51 81 00 00 00 00 00 FF 0F E7 [22:39:28]RasterBufferAndPrint [22:39:28]line Счет N : (1)211426 [22:39:28]line ИНН: 02508201610067 [22:39:28]line Контрольно-Кассовый Чек [22:39:28]line ПРОДАЖА [22:39:28]line ТРК (МРК, ГНК) : 13 [22:39:28]line Товар: 2710124500 [22:39:28]line Аи-95-К-3 [22:39:28]line 26.960 * 74.20 [22:39:28]line = 2000.43 [22:39:28]line НДС 12% НСП 1% [22:39:28]line > о реализуемом товаре [22:39:28]line ОКРУГЛЕНИЕ: -0.43 [22:39:28]line ИТОГО: 2000.00 [22:39:28]line Внесено: 2000.00 [22:39:28]line СДАЧА: 0.00 [22:39:28]line НСП 1% : 17.70 [22:39:28]line НДС 12% : 212.43 [22:39:28]line Наличными: 2000.00 [22:39:28]line Безнал.: 0.00 [22:39:28]line Место: АЗС № 86 "Партнер Нефть" [22:39:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:39:28]line СНО: Общий режим [22:39:28]line Чек 434 24.10.2024 22:39 [22:39:28]line Смена: 463 ФФД: 1.0 [22:39:28]line ЗНМ: 0300000155 [22:39:28]line РНМ: 0000000000100030 [22:39:28]line Версия ККМ: 001 [22:39:28]line ФМ: 0000000000965340 [22:39:28]line ФД: 189361 [22:39:28]line ФПД: 234165626670420 [22:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189361&fm=234165626670420&tin=02508201610067®Number=0000000000100030&sum=200000 [22:39:28]written 0, free lines is 4095 [22:39:28]OFD Sender: Processing packet 189361 [packets to send 1062, broken 1061] [22:39:28]ProducePacketName [22:39:28]name=ofd_packets/00189361 [22:39:28]OFD Sender: To server: pG, [22:39:28]CommunicateWithHost lk.salyk.kg:30040 [22:39:28]ConnectInit lk.salyk.kg [22:39:29]Connected sock=9 [22:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 5F 07 01 AF 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 33 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 B2 01 00 00 F4 03 04 00 A4 CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 E3 02 00 35 04 06 00 D4 F8 EE FF 0D 54 E7 DA 1E 1A 11 C2 2B 4F [22:39:29]Write to MH i2c: 01 00 00 7C 81 FD [22:39:29]Write i2c OK [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: 01 [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: 01 07 00 [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: 01 07 00 7C 81 00 00 00 00 00 58 0C 68 [22:39:29]RasterBufferAndPrint [22:39:29]line [22:39:29]line [22:39:29]line [22:39:29]line [22:39:29]line [22:39:29]written 0, free lines is 3164 [22:39:29]MH_Cut [22:39:29]Write to MH i2c: D1 01 00 83 81 01 D6 [22:39:29]Write i2c OK [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: D1 [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: D1 01 00 [22:39:29]MH_I2C_Read... [22:39:29]Read from MH i2c: D1 01 00 83 81 00 D5 [22:39:29]Write to MH i2c: 01 00 00 84 81 05 [22:39:29]Write i2c OK [22:39:29]MH_I2C_Read... [22:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 65 62 47 00 66 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 39 36 35 33 34 30 10 04 04 00 B1 E3 02 00 F4 03 04 00 8B 76 1A 67 B6 04 01 00 00 E6 85 6E 87 8F D1 77 30 [22:39:29]CommunicateWithHost err = 0 [22:39:29]CheckOFDResponse [22:39:29]1017 (14) - 77093643461234 [22:39:29]1041 (16) - 0000000000965340 [22:39:29]1040 (4) - 189361 [22:39:29]1012 (4) - 24.10.2024 16:32 [22:39:29]1206 (1) - 0 [22:39:29]OFD Sender: Remove packet 189361 [22:39:29]ProducePacketName [22:39:29]name=ofd_packets/00189361 [22:39:29]NVStorageDeleteData [22:39:29]OFD Sender: No OFD packet to send [22:39:30]*** Cut start [22:39:30]*** Partial cut [22:39:30]*** CUTSNS_PIN = 1 [22:39:30]*** CUTSNS_PIN = 0 [22:39:30]*** Brake cut motor [22:39:31]Read from MH i2c: 01 [22:39:31]MH_I2C_Read... [22:39:31]*** Stop cut motor [22:39:31]*** Cut end [22:39:31]Read from MH i2c: 01 07 00 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: 01 07 00 84 81 00 00 00 00 00 FF 0F 1A [22:39:31]process_action close_receipt done [22:39:31]requested_data is exist [22:39:31]produce_requested_data [22:39:31]requested_item fm.sn is exist - process it [22:39:31]wFMCommunicate request_size=4 [22:39:31]MH_SAM_APDU [22:39:31]CAPDU: 80 11 00 00 [22:39:31]Write to MH i2c: E2 08 00 85 81 80 11 00 00 00 00 00 00 80 [22:39:31]Write i2c OK [22:39:31]MH_I2C_Read... [22:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:31]Read from MH i2c: E2 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 17 00 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 17 00 85 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [22:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:39:31]wFMCommunicate OK [22:39:31]requested_item fd.num is exist - process it [22:39:31]SAM_PROTO_GetFieldsCounters [22:39:31]wFMCommunicate request_size=4 [22:39:31]MH_SAM_APDU [22:39:31]CAPDU: 80 13 00 00 [22:39:31]Write to MH i2c: E2 08 00 86 81 80 13 00 00 00 00 00 00 83 [22:39:31]Write i2c OK [22:39:31]MH_I2C_Read... [22:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:31]Read from MH i2c: E2 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 62 00 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 62 00 86 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E3 02 00 0E 04 04 00 CF 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 09 [22:39:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 E3 02 00 0E 04 04 00 CF 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 [22:39:31]wFMCommunicate OK [22:39:31]SAM_PROTO_GetFieldsCounters done [22:39:31]requested_item shift.num is exist - process it [22:39:31]requested_item shift.opened is exist - process it [22:39:31]req_shift_opened [22:39:31]FM_GetShiftState [22:39:31]SAM_PROTO_GetShiftState [22:39:31]wFMCommunicate request_size=4 [22:39:31]MH_SAM_APDU [22:39:31]CAPDU: 80 13 01 00 [22:39:31]Write to MH i2c: E2 08 00 87 81 80 13 01 00 00 00 00 00 85 [22:39:31]Write i2c OK [22:39:31]MH_I2C_Read... [22:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:31]Read from MH i2c: E2 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 0E 00 [22:39:31]MH_I2C_Read... [22:39:31]Read from MH i2c: E2 0E 00 87 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 63 [22:39:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:39:31]wFMCommunicate OK [22:39:31]SAM_PROTO_GetShiftState done [22:39:31]FM_GetShiftState done [22:39:31]req_shift_opened done [22:39:31]requested_item shift.open_date is exist - process it [22:39:31]req_shift_open_date [22:39:31]req_shift_open_date done [22:39:31]produce_requested_data done [22:39:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189361,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:39:31]process_action_free close_receipt [22:39:31]json_value_free [22:39:31]json_value_free done [22:39:31]process_json_proto returns [22:39:31]Send response to host [22:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189361,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:39:31]free response buf [22:39:31]execute_script done [22:39:31]execute_script returns [22:39:31]free content buf [22:39:31]Sock 10.Close socket [22:39:31]Sock 10.Thread stoped [22:39:34]OFD Sender: No OFD packet to send [22:39:36]accept exits with 8 [22:39:36]New connection [22:39:36]New thread 3067071844 created [22:39:36]Thread 3067215204 joined [22:39:36]Waiting for new connection... [22:39:36] Sock 8.Parse request [22:39:36]Sock 8.Check first char [22:39:36]Sock 8.First char is OK [22:39:36]request: POST /json_proto HTTP/1.0 [22:39:36]Method: POST [22:39:36]URL: /json_proto [22:39:36]Method is POST - this is cgi request [22:39:36]url: /json_proto [22:39:36]query_string will be loaded in cgi processing [22:39:36]execute_cgi json_proto POST (null) [22:39:36]execute_cgi path=json_proto method=POST [22:39:36]POST find Content-Length [22:39:36]Host: 172.17.42.131:8080 [22:39:36]Content-Length: 677 [22:39:36]Content-Type: application/json [22:39:36] [22:39:36]POST finish read [22:39:36]Found Content-Length = 677 [22:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:39:36]execute_script... [22: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)211427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:39:36]POST & json_proto [22:39:36]process_json_proto [22:39:36]json parsed OK: [22:39:36]protocol is kg_v1.0 [22:39:36]action value=close_receipt [22:39:36]process_action close_receipt [22:39:36]cmd_close_receipt [22:39:36]MH_GetDate [22:39:36]Write to MH i2c: F0 00 00 88 81 F8 [22:39:36]Write i2c OK [22:39:36]MH_I2C_Read... [22:39:36]Read from MH i2c: F0 [22:39:36]MH_I2C_Read... [22:39:36]Read from MH i2c: F0 09 00 [22:39:36]MH_I2C_Read... [22:39:36]Read from MH i2c: F0 09 00 88 81 00 AD CC 1A 67 A0 18 CA 66 E3 [22:39:36]GetLastDocTimeStamp 1729809572 [22:39:36]current date 1729809581 [22:39:36]FM_GetShiftState [22:39:36]SAM_PROTO_GetShiftState [22:39:36]wFMCommunicate request_size=4 [22:39:36]MH_SAM_APDU [22:39:36]CAPDU: 80 13 01 00 [22:39:36]Write to MH i2c: E2 08 00 89 81 80 13 01 00 00 00 00 00 87 [22:39:36]Write i2c OK [22:39:36]MH_I2C_Read... [22:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:36]Read from MH i2c: E2 [22:39:36]MH_I2C_Read... [22:39:36]Read from MH i2c: E2 0E 00 [22:39:36]MH_I2C_Read... [22:39:36]Read from MH i2c: E2 0E 00 89 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 65 [22:39:36]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:39:36]wFMCommunicate OK [22:39:36]SAM_PROTO_GetShiftState done [22:39:36]FM_GetShiftState done [22:39:36]opened in 1729728961 [22:39:36]opened+sec_in_day 1729815361 [22:39:36]quantity*price = 50041 [22:39:36]sum+1 = 50042 [22:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 435 24.10.2024 22:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189362 ФПД: 24917019155262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189362&fm=24917019155262&tin=02508201610067®Number=0000000000100030&sum=50000 [22:39:37]StoreToDocumentArchive [22:39:37]shift 463 fd 189362 [22:39:37]save to /storage/0463/doc_00189362 [22:39:37]save last doc name /storage/0463/doc_00189362 to /storage/kkm_last_doc_name [22:39:37]save OK [22:39:37]Clear old archive folders... [22:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:37]tlvbuf is 016A1DC0 [22:39:37]SAM_PROTO_ClearQueue [22:39:37]wFMCommunicate request_size=4 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 09 00 00 [22:39:37]Write to MH i2c: E2 08 00 96 81 80 09 00 00 00 00 00 00 89 [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 96 81 00 90 00 8B [22:39:37]RAPDU: 90 00 [22:39:37]wFMCommunicate OK [22:39:37]SAM_PROTO_ClearQueue done [22:39:37]KKMCreateOFDPacket [22:39:37]OFDProtocolAddRootSTLVToBuf [22:39:37]FM_MakeSignedData [22:39:37]FM_MakeSignedData [22:39:37]SAM_PROTO_SignData [22:39:37]wFMCommunicate request_size=4 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 0D 01 02 [22:39:37]Write to MH i2c: E2 08 00 97 81 80 0D 01 02 00 00 00 00 91 [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 97 81 00 90 00 8C [22:39:37]RAPDU: 90 00 [22:39:37]wFMCommunicate OK [22:39:37]wFMCommunicate request_size=255 [22:39:37]MH_SAM_APDU [22: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 AD CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E3 02 00 35 04 06 00 16 [22:39:37]Write to MH i2c: E2 02 01 98 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 AD CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E3 02 00 35 04 06 00 16 00 00 2F [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 98 81 00 90 00 8D [22:39:37]RAPDU: 90 00 [22:39:37]wFMCommunicate OK [22:39:37]wFMCommunicate request_size=10 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 0D 02 02 05 A9 72 13 5B 3E [22:39:37]Write to MH i2c: E2 0D 00 99 81 80 0D 02 02 05 00 A9 72 13 5B 3E 00 00 65 [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 03 00 99 81 00 90 00 8E [22:39:37]RAPDU: 90 00 [22:39:37]wFMCommunicate OK [22:39:37]wFMCommunicate request_size=4 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 0D 03 02 [22:39:37]Write to MH i2c: E2 08 00 9A 81 80 0D 03 02 00 00 00 00 96 [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 0B 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 0B 00 9A 81 00 2B AF B6 D2 4A 4F BC 56 90 00 A4 [22:39:37]RAPDU: 2B AF B6 D2 4A 4F BC 56 90 00 [22:39:37]wFMCommunicate OK [22:39:37]SAM_PROTO_SignData done [22:39:37]FM_MakeSignedData done [22:39:37]CreateOFDProtocolMessage [22:39:37]wFMCommunicate request_size=4 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 11 00 00 [22:39:37]Write to MH i2c: E2 08 00 9B 81 80 11 00 00 00 00 00 00 96 [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 17 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 17 00 9B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [22:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:39:37]wFMCommunicate OK [22:39:37]CreateOFDProtocolMessage done [22:39:37]OFDSenderStorePacket 189362 [22:39:37]StoreOFDPacket docnum=189362 [22:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 2E 07 01 3E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 AD CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E3 02 00 35 04 06 00 16 A9 72 13 5B 3E 2B AF B6 D2 4A 4F BC 56 [22:39:37]CheckFolder [22:39:37]dirname=/storage/ofd_packets [22:39:37]CheckFolder done [22:39:37]ProducePacketName [22:39:37]name=ofd_packets/00189362 [22:39:37]NVStorageSaveData ofd_packets/00189362 [22:39:37]File name is /storage/ofd_packets/00189362 [22:39:37]Write 301 bytes [22:39:37]NVStorageSaveData done [22:39:37]OFDSenderStorePacket done [22:39:37]KKMCreateOFDPacket done [22:39:37]NVStorageSaveData kkm_last_timestamp [22:39:37]File name is /storage/kkm_last_timestamp [22:39:37]Write 4 bytes [22:39:37]NVStorageSaveData done [22:39:37]ExternCall_PrintAddStr [22:39:37]wPrintStart [22:39:37]Write to MH i2c: 01 00 00 9C 81 1D [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: 01 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: 01 07 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: 01 07 00 9C 81 00 00 00 00 00 FF 0F 32 [22:39:37]RasterBufferAndPrint [22:39:37]line Счет N : (1)211427 [22:39:37]line ИНН: 02508201610067 [22:39:37]line Контрольно-Кассовый Чек [22:39:37]line ПРОДАЖА [22:39:37]line ТРК (МРК, ГНК) : 32 [22:39:37]line Товар: 2710124130 [22:39:37]line Аи-92-К-3 [22:39:37]line 7.480 * 66.90 [22:39:37]line = 500.41 [22:39:37]line НДС 12% НСП 1% [22:39:37]line > о реализуемом товаре [22:39:37]line ОКРУГЛЕНИЕ: -0.41 [22:39:37]line ИТОГО: 500.00 [22:39:37]line Внесено: 500.00 [22:39:37]line СДАЧА: 0.00 [22:39:37]line НСП 1% : 4.43 [22:39:37]line НДС 12% : 53.14 [22:39:37]line Наличными: 500.00 [22:39:37]line Безнал.: 0.00 [22:39:37]line Место: АЗС № 86 "Партнер Нефть" [22:39:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:39:37]line СНО: Общий режим [22:39:37]line Чек 435 24.10.2024 22:39 [22:39:37]line Смена: 463 ФФД: 1.0 [22:39:37]line ЗНМ: 0300000155 [22:39:37]line РНМ: 0000000000100030 [22:39:37]line Версия ККМ: 001 [22:39:37]line ФМ: 0000000000965340 [22:39:37]line ФД: 189362 [22:39:37]line ФПД: 24917019155262 [22:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189362&fm=24917019155262&tin=02508201610067®Number=0000000000100030&sum=50000 [22:39:37]written 0, free lines is 4095 [22:39:37]OFD Sender: Processing packet 189362 [packets to send 1062, broken 1061] [22:39:37]ProducePacketName [22:39:37]name=ofd_packets/00189362 [22:39:37]OFD Sender: To server: pG, [22:39:37]CommunicateWithHost lk.salyk.kg:30040 [22:39:37]ConnectInit lk.salyk.kg [22:39:38]Connected sock=10 [22:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 2E 07 01 3E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 AD CC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 E3 02 00 35 04 06 00 16 A9 72 13 5B 3E 2B AF B6 D2 4A 4F BC 56 [22:39:38]Write to MH i2c: 01 00 00 C7 81 48 [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 07 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 07 00 C7 81 00 00 00 00 00 5B 0C B6 [22:39:38]RasterBufferAndPrint [22:39:38]line [22:39:38]line [22:39:38]line [22:39:38]line [22:39:38]line [22:39:38]written 0, free lines is 3169 [22:39:38]MH_Cut [22:39:38]Write to MH i2c: D1 01 00 CE 81 01 21 [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: D1 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: D1 01 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: D1 01 00 CE 81 00 20 [22:39:38]Write to MH i2c: 01 00 00 CF 81 50 [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 77 47 00 85 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 39 36 35 33 34 30 10 04 04 00 B2 E3 02 00 F4 03 04 00 94 76 1A 67 B6 04 01 00 00 AA 17 F0 1B CC 08 DA 9D [22:39:38]CommunicateWithHost err = 0 [22:39:38]CheckOFDResponse [22:39:38]1017 (14) - 77093643461234 [22:39:38]1041 (16) - 0000000000965340 [22:39:38]1040 (4) - 189362 [22:39:38]1012 (4) - 24.10.2024 16:32 [22:39:38]1206 (1) - 0 [22:39:38]OFD Sender: Remove packet 189362 [22:39:38]ProducePacketName [22:39:38]name=ofd_packets/00189362 [22:39:38]NVStorageDeleteData [22:39:39]OFD Sender: No OFD packet to send [22:39:39]*** Cut start [22:39:39]*** Partial cut [22:39:39]*** CUTSNS_PIN = 1 [22:39:39]*** CUTSNS_PIN = 0 [22:39:39]*** Brake cut motor [22:39:40]Read from MH i2c: 01 [22:39:40]MH_I2C_Read... [22:39:40]*** Stop cut motor [22:39:40]*** Cut end [22:39:40]Read from MH i2c: 01 07 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: 01 07 00 CF 81 00 00 00 00 00 FF 0F 65 [22:39:40]process_action close_receipt done [22:39:40]requested_data is exist [22:39:40]produce_requested_data [22:39:40]requested_item fm.sn is exist - process it [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 11 00 00 [22:39:40]Write to MH i2c: E2 08 00 D0 81 80 11 00 00 00 00 00 00 CB [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 17 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 17 00 D0 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [22:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:39:40]wFMCommunicate OK [22:39:40]requested_item fd.num is exist - process it [22:39:40]SAM_PROTO_GetFieldsCounters [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 13 00 00 [22:39:40]Write to MH i2c: E2 08 00 D1 81 80 13 00 00 00 00 00 00 CE [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 62 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 62 00 D1 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E3 02 00 0E 04 04 00 CF 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 58 [22:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 E3 02 00 0E 04 04 00 CF 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 [22:39:40]wFMCommunicate OK [22:39:40]SAM_PROTO_GetFieldsCounters done [22:39:40]requested_item shift.num is exist - process it [22:39:40]requested_item shift.opened is exist - process it [22:39:40]req_shift_opened [22:39:40]FM_GetShiftState [22:39:40]SAM_PROTO_GetShiftState [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 13 01 00 [22:39:40]Write to MH i2c: E2 08 00 D2 81 80 13 01 00 00 00 00 00 D0 [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 0E 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 0E 00 D2 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 AE [22:39:40]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:39:40]wFMCommunicate OK [22:39:40]SAM_PROTO_GetShiftState done [22:39:40]FM_GetShiftState done [22:39:40]req_shift_opened done [22:39:40]requested_item shift.open_date is exist - process it [22:39:40]req_shift_open_date [22:39:40]req_shift_open_date done [22:39:40]produce_requested_data done [22:39:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189362,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:39:40]process_action_free close_receipt [22:39:40]json_value_free [22:39:40]json_value_free done [22:39:40]process_json_proto returns [22:39:40]Send response to host [22:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189362,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:39:40]free response buf [22:39:40]execute_script done [22:39:40]execute_script returns [22:39:40]free content buf [22:39:40]Sock 8.Close socket [22:39:40]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54: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:53]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]accept exits with 9 [22:57:08]New connection [22:57:08]New thread 3067215204 created [22:57:08]Thread 3067071844 joined [22:57:08]Waiting for new connection... [22:57:08] Sock 9.Parse request [22:57:08]Sock 9.Check first char [22:57:08]Sock 9.First char is OK [22:57:08]request: POST /json_proto HTTP/1.0 [22:57:08]Method: POST [22:57:08]URL: /json_proto [22:57:08]Method is POST - this is cgi request [22:57:08]url: /json_proto [22:57:08]query_string will be loaded in cgi processing [22:57:08]execute_cgi json_proto POST (null) [22:57:08]execute_cgi path=json_proto method=POST [22:57:08]POST find Content-Length [22:57:08]Host: 172.17.42.131:8080 [22:57:08]Content-Length: 682 [22:57:08]Content-Type: application/json [22:57:08] [22:57:08]POST finish read [22:57:08]Found Content-Length = 682 [22:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:08]execute_script... [22: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)211429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:08]POST & json_proto [22:57:08]process_json_proto [22:57:08]json parsed OK: [22:57:08]protocol is kg_v1.0 [22:57:08]action value=close_receipt [22:57:08]process_action close_receipt [22:57:08]cmd_close_receipt [22:57:08]MH_GetDate [22:57:08]Write to MH i2c: F0 00 00 D3 81 43 [22:57:08]Write i2c OK [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 09 00 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 09 00 D3 81 00 C9 D0 1A 67 A0 18 CA 66 4E [22:57:08]GetLastDocTimeStamp 1729809581 [22:57:08]current date 1729810633 [22:57:08]FM_GetShiftState [22:57:08]SAM_PROTO_GetShiftState [22:57:08]wFMCommunicate request_size=4 [22:57:08]MH_SAM_APDU [22:57:08]CAPDU: 80 13 01 00 [22:57:08]Write to MH i2c: E2 08 00 D4 81 80 13 01 00 00 00 00 00 D2 [22:57:08]Write i2c OK [22:57:08]MH_I2C_Read... [22:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:08]Read from MH i2c: E2 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: E2 0E 00 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: E2 0E 00 D4 81 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 B0 [22:57:08]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:57:08]wFMCommunicate OK [22:57:08]SAM_PROTO_GetShiftState done [22:57:08]FM_GetShiftState done [22:57:08]opened in 1729728961 [22:57:08]opened+sec_in_day 1729815361 [22:57:08]quantity*price = 102022 [22:57:08]sum+1 = 102024 [22:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.34 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 436 24.10.2024 22:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189363 ФПД: 207263191958419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189363&fm=207263191958419&tin=02508201610067®Number=0000000000100030&sum=102000 [22:57:09]StoreToDocumentArchive [22:57:09]shift 463 fd 189363 [22:57:09]save to /storage/0463/doc_00189363 [22:57:09]save last doc name /storage/0463/doc_00189363 to /storage/kkm_last_doc_name [22:57:09]save OK [22:57:09]Clear old archive folders... [22:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:09]tlvbuf is 01517650 [22:57:09]SAM_PROTO_ClearQueue [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 09 00 00 [22:57:09]Write to MH i2c: E2 08 00 E1 81 80 09 00 00 00 00 00 00 D4 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 E1 81 00 90 00 D6 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]SAM_PROTO_ClearQueue done [22:57:09]KKMCreateOFDPacket [22:57:09]OFDProtocolAddRootSTLVToBuf [22:57:09]FM_MakeSignedData [22:57:09]FM_MakeSignedData [22:57:09]SAM_PROTO_SignData [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 01 02 [22:57:09]Write to MH i2c: E2 08 00 E2 81 80 0D 01 02 00 00 00 00 DC [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 E2 81 00 90 00 D7 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=255 [22:57:09]MH_SAM_APDU [22:57: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 33 FF 03 08 00 03 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 C9 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E3 02 00 35 04 06 00 BC [22:57:09]Write to MH i2c: E2 02 01 E3 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 33 FF 03 08 00 03 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 C9 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E3 02 00 35 04 06 00 BC 00 00 E0 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 E3 81 00 90 00 D8 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=10 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 02 02 05 81 38 EE 83 93 [22:57:09]Write to MH i2c: E2 0D 00 E4 81 80 0D 02 02 05 00 81 38 EE 83 93 00 00 A6 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 E4 81 00 90 00 D9 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 03 02 [22:57:09]Write to MH i2c: E2 08 00 E5 81 80 0D 03 02 00 00 00 00 E1 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 0B 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 0B 00 E5 81 00 BA BE 75 CA 49 05 86 8B 90 00 F8 [22:57:10]RAPDU: BA BE 75 CA 49 05 86 8B 90 00 [22:57:10]wFMCommunicate OK [22:57:10]SAM_PROTO_SignData done [22:57:10]FM_MakeSignedData done [22:57:10]CreateOFDProtocolMessage [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 11 00 00 [22:57:10]Write to MH i2c: E2 08 00 E6 81 80 11 00 00 00 00 00 00 E1 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 17 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 17 00 E6 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [22:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:10]wFMCommunicate OK [22:57:10]CreateOFDProtocolMessage done [22:57:10]OFDSenderStorePacket 189363 [22:57:10]StoreOFDPacket docnum=189363 [22:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 5F 07 01 57 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 C9 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E3 02 00 35 04 06 00 BC 81 38 EE 83 93 BA BE 75 CA 49 05 86 8B [22:57:10]CheckFolder [22:57:10]dirname=/storage/ofd_packets [22:57:10]CheckFolder done [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00189363 [22:57:10]NVStorageSaveData ofd_packets/00189363 [22:57:10]File name is /storage/ofd_packets/00189363 [22:57:10]Write 301 bytes [22:57:10]NVStorageSaveData done [22:57:10]OFDSenderStorePacket done [22:57:10]KKMCreateOFDPacket done [22:57:10]NVStorageSaveData kkm_last_timestamp [22:57:10]File name is /storage/kkm_last_timestamp [22:57:10]Write 4 bytes [22:57:10]NVStorageSaveData done [22:57:10]ExternCall_PrintAddStr [22:57:10]wPrintStart [22:57:10]Write to MH i2c: 01 00 00 E7 81 68 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 E7 81 00 00 00 00 00 FF 0F 7D [22:57:10]RasterBufferAndPrint [22:57:10]line Счет N : (1)211429 [22:57:10]line ИНН: 02508201610067 [22:57:10]line Контрольно-Кассовый Чек [22:57:10]line ПРОДАЖА [22:57:10]line ТРК (МРК, ГНК) : 32 [22:57:10]line Товар: 2710124130 [22:57:10]line Аи-92-К-3 [22:57:10]line 15.250 * 66.90 [22:57:10]line = 1020.23 [22:57:10]line НДС 12% НСП 1% [22:57:10]line > о реализуемом товаре [22:57:10]line ОКРУГЛЕНИЕ: -0.23 [22:57:10]line ИТОГО: 1020.00 [22:57:10]line Внесено: 1020.00 [22:57:10]line СДАЧА: 0.00 [22:57:10]line НСП 1% : 9.03 [22:57:10]line НДС 12% : 108.34 [22:57:10]line Наличными: 1020.00 [22:57:10]line Безнал.: 0.00 [22:57:10]line Место: АЗС № 86 "Партнер Нефть" [22:57:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:57:10]line СНО: Общий режим [22:57:10]line Чек 436 24.10.2024 22:57 [22:57:10]line Смена: 463 ФФД: 1.0 [22:57:10]line ЗНМ: 0300000155 [22:57:10]line РНМ: 0000000000100030 [22:57:10]line Версия ККМ: 001 [22:57:10]line ФМ: 0000000000965340 [22:57:10]line ФД: 189363 [22:57:10]line ФПД: 207263191958419 [22:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189363&fm=207263191958419&tin=02508201610067®Number=0000000000100030&sum=102000 [22:57:10]written 0, free lines is 4095 [22:57:10]OFD Sender: Processing packet 189363 [packets to send 1062, broken 1061] [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00189363 [22:57:10]OFD Sender: To server: pG, [22:57:10]CommunicateWithHost lk.salyk.kg:30040 [22:57:10]ConnectInit lk.salyk.kg [22:57:10]Connected sock=10 [22:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 5F 07 01 57 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 C9 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 E3 02 00 35 04 06 00 BC 81 38 EE 83 93 BA BE 75 CA 49 05 86 8B [22:57:10]Write to MH i2c: 01 00 00 12 82 94 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 12 82 00 00 00 00 00 55 0C FC [22:57:10]RasterBufferAndPrint [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]written 0, free lines is 3161 [22:57:10]MH_Cut [22:57:10]Write to MH i2c: D1 01 00 19 82 01 6D [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 01 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 01 00 19 82 00 6C [22:57:10]Write to MH i2c: 01 00 00 1A 82 9C [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D 2B 47 00 EF 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 39 36 35 33 34 30 10 04 04 00 B3 E3 02 00 F4 03 04 00 B0 7A 1A 67 B6 04 01 00 00 3F 54 26 B6 EA CB 9A AF [22:57:10]CommunicateWithHost err = 0 [22:57:10]CheckOFDResponse [22:57:10]1017 (14) - 77093643461234 [22:57:10]1041 (16) - 0000000000965340 [22:57:10]1040 (4) - 189363 [22:57:10]1012 (4) - 24.10.2024 16:49 [22:57:10]1206 (1) - 0 [22:57:10]OFD Sender: Remove packet 189363 [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00189363 [22:57:10]NVStorageDeleteData [22:57:11]OFD Sender: No OFD packet to send [22:57:11]*** Cut start [22:57:11]*** Partial cut [22:57:11]*** CUTSNS_PIN = 1 [22:57:11]*** CUTSNS_PIN = 0 [22:57:12]*** Brake cut motor [22:57:12]Read from MH i2c: 01 [22:57:12]MH_I2C_Read... [22:57:12]*** Stop cut motor [22:57:12]*** Cut end [22:57:12]Read from MH i2c: 01 07 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: 01 07 00 1A 82 00 00 00 00 00 FF 0F B1 [22:57:12]process_action close_receipt done [22:57:12]requested_data is exist [22:57:12]produce_requested_data [22:57:12]requested_item fm.sn is exist - process it [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 11 00 00 [22:57:12]Write to MH i2c: E2 08 00 1B 82 80 11 00 00 00 00 00 00 17 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 17 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 17 00 1B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [22:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:12]wFMCommunicate OK [22:57:12]requested_item fd.num is exist - process it [22:57:12]SAM_PROTO_GetFieldsCounters [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 13 00 00 [22:57:12]Write to MH i2c: E2 08 00 1C 82 80 13 00 00 00 00 00 00 1A [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 62 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 62 00 1C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E3 02 00 0E 04 04 00 CF 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 A8 [22:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 E3 02 00 0E 04 04 00 CF 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 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_GetFieldsCounters done [22:57:12]requested_item shift.num is exist - process it [22:57:12]requested_item shift.opened is exist - process it [22:57:12]req_shift_opened [22:57:12]FM_GetShiftState [22:57:12]SAM_PROTO_GetShiftState [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 13 01 00 [22:57:12]Write to MH i2c: E2 08 00 1D 82 80 13 01 00 00 00 00 00 1C [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 1D 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FA [22:57:12]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_GetShiftState done [22:57:12]FM_GetShiftState done [22:57:12]req_shift_opened done [22:57:12]requested_item shift.open_date is exist - process it [22:57:12]req_shift_open_date [22:57:12]req_shift_open_date done [22:57:12]produce_requested_data done [22:57:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189363,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:57:12]process_action_free close_receipt [22:57:12]json_value_free [22:57:12]json_value_free done [22:57:12]process_json_proto returns [22:57:12]Send response to host [22:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189363,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:57:12]free response buf [22:57:12]execute_script done [22:57:12]execute_script returns [22:57:12]free content buf [22:57:12]Sock 9.Close socket [22:57:12]Sock 9.Thread stoped [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:54]accept exits with 8 [22:57:54]New connection [22:57:54]New thread 3067071844 created [22:57:54]Thread 3067215204 joined [22:57:54]Waiting for new connection... [22:57:54] Sock 8.Parse request [22:57:54]Sock 8.Check first char [22:57:54]Sock 8.First char is OK [22:57:54]request: POST /json_proto HTTP/1.0 [22:57:54]Method: POST [22:57:54]URL: /json_proto [22:57:54]Method is POST - this is cgi request [22:57:54]url: /json_proto [22:57:54]query_string will be loaded in cgi processing [22:57:54]execute_cgi json_proto POST (null) [22:57:54]execute_cgi path=json_proto method=POST [22:57:54]POST find Content-Length [22:57:54]Host: 172.17.42.131:8080 [22:57:54]Content-Length: 979 [22:57:54]Content-Type: application/json [22:57:54] [22:57:54]POST finish read [22:57:54]Found Content-Length = 979 [22:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:54]execute_script... [22: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)211428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:54]POST & json_proto [22:57:54]process_json_proto [22:57:54]json parsed OK: [22:57:54]protocol is kg_v1.0 [22:57:54]action value=close_receipt [22:57:54]process_action close_receipt [22:57:54]cmd_close_receipt [22:57:54]MH_GetDate [22:57:54]Write to MH i2c: F0 00 00 1E 82 8F [22:57:54]Write i2c OK [22:57:54]MH_I2C_Read... [22:57:54]Read from MH i2c: F0 [22:57:54]MH_I2C_Read... [22:57:54]Read from MH i2c: F0 09 00 [22:57:54]MH_I2C_Read... [22:57:54]Read from MH i2c: F0 09 00 1E 82 00 F8 D0 1A 67 A0 18 CA 66 C9 [22:57:54]GetLastDocTimeStamp 1729810633 [22:57:54]current date 1729810680 [22:57:54]FM_GetShiftState [22:57:54]SAM_PROTO_GetShiftState [22:57:54]wFMCommunicate request_size=4 [22:57:54]MH_SAM_APDU [22:57:54]CAPDU: 80 13 01 00 [22:57:54]Write to MH i2c: E2 08 00 1F 82 80 13 01 00 00 00 00 00 1E [22:57:54]Write i2c OK [22:57:54]MH_I2C_Read... [22:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:54]Read from MH i2c: E2 [22:57:54]MH_I2C_Read... [22:57:54]Read from MH i2c: E2 0E 00 [22:57:54]MH_I2C_Read... [22:57:54]Read from MH i2c: E2 0E 00 1F 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 FC [22:57:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:57:54]wFMCommunicate OK [22:57:54]SAM_PROTO_GetShiftState done [22:57:54]FM_GetShiftState done [22:57:54]opened in 1729728961 [22:57:54]opened+sec_in_day 1729815361 [22:57:54]quantity*price = 950001 [22:57:54]sum+1 = 950003 [22:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.85 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 437 24.10.2024 22:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 126.33 сом ФМ: 0000000000965340 ФД: 189364 ФПД: 42185112495034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225800&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189364&fm=42185112495034&tin=02508201610067®Number=0000000000100030&sum=950000 [22:57:55]StoreToDocumentArchive [22:57:55]shift 463 fd 189364 [22:57:55]save to /storage/0463/doc_00189364 [22:57:55]save last doc name /storage/0463/doc_00189364 to /storage/kkm_last_doc_name [22:57:55]save OK [22:57:55]Clear old archive folders... [22:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:57:55]tlvbuf is 015175F0 [22:57:55]SAM_PROTO_ClearQueue [22:57:55]wFMCommunicate request_size=4 [22:57:55]MH_SAM_APDU [22:57:55]CAPDU: 80 09 00 00 [22:57:55]Write to MH i2c: E2 08 00 2C 82 80 09 00 00 00 00 00 00 20 [22:57:55]Write i2c OK [22:57:55]MH_I2C_Read... [22:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:55]Read from MH i2c: E2 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: E2 03 00 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: E2 03 00 2C 82 00 90 00 22 [22:57:55]RAPDU: 90 00 [22:57:55]wFMCommunicate OK [22:57:55]SAM_PROTO_ClearQueue done [22:57:55]KKMCreateOFDPacket [22:57:55]OFDProtocolAddRootSTLVToBuf [22:57:55]FM_MakeSignedData [22:57:55]FM_MakeSignedData [22:57:55]SAM_PROTO_SignData [22:57:55]wFMCommunicate request_size=4 [22:57:55]MH_SAM_APDU [22:57:55]CAPDU: 80 0D 01 02 [22:57:55]Write to MH i2c: E2 08 00 2D 82 80 0D 01 02 00 00 00 00 28 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 2D 82 00 90 00 23 [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=255 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 F8 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E3 02 00 35 04 06 00 26 5D FC A5 [22:57:56]Write to MH i2c: E2 02 01 2E 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 F8 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E3 02 00 35 04 06 00 26 5D FC A5 00 00 E9 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 2E 82 00 90 00 24 [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=7 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 02 02 02 23 BA [22:57:56]Write to MH i2c: E2 0A 00 2F 82 80 0D 02 02 02 00 23 BA 00 00 0C [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 2F 82 00 90 00 25 [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 03 02 [22:57:56]Write to MH i2c: E2 08 00 30 82 80 0D 03 02 00 00 00 00 2D [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 0B 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 0B 00 30 82 00 51 D9 D9 3C ED FB 01 DB 90 00 31 [22:57:56]RAPDU: 51 D9 D9 3C ED FB 01 DB 90 00 [22:57:56]wFMCommunicate OK [22:57:56]SAM_PROTO_SignData done [22:57:56]FM_MakeSignedData done [22:57:56]CreateOFDProtocolMessage [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 11 00 00 [22:57:56]Write to MH i2c: E2 08 00 31 82 80 11 00 00 00 00 00 00 2D [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 17 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 17 00 31 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [22:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:56]wFMCommunicate OK [22:57:56]CreateOFDProtocolMessage done [22:57:56]OFDSenderStorePacket 189364 [22:57:56]StoreOFDPacket docnum=189364 [22:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A2 B2 04 01 59 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 F8 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E3 02 00 35 04 06 00 26 5D FC A5 23 BA 51 D9 D9 3C ED FB 01 DB [22:57:56]CheckFolder [22:57:56]dirname=/storage/ofd_packets [22:57:56]CheckFolder done [22:57:56]ProducePacketName [22:57:56]name=ofd_packets/00189364 [22:57:56]NVStorageSaveData ofd_packets/00189364 [22:57:56]File name is /storage/ofd_packets/00189364 [22:57:56]Write 298 bytes [22:57:56]NVStorageSaveData done [22:57:56]OFDSenderStorePacket done [22:57:56]KKMCreateOFDPacket done [22:57:56]NVStorageSaveData kkm_last_timestamp [22:57:56]File name is /storage/kkm_last_timestamp [22:57:56]Write 4 bytes [22:57:56]NVStorageSaveData done [22:57:56]ExternCall_PrintAddStr [22:57:56]wPrintStart [22:57:56]Write to MH i2c: 01 00 00 32 82 B4 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 07 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 07 00 32 82 00 00 00 00 00 FF 0F C9 [22:57:56]RasterBufferAndPrint [22:57:56]line Счет N : (1)211428 [22:57:56]line ИНН: 02508201610067 [22:57:56]line Контрольно-Кассовый Чек [22:57:56]line ПРОДАЖА [22:57:56]line ТРК (МРК, ГНК) : 51 [22:57:56]line Товар: 2710194210 [22:57:56]line ДТ-К-5 [22:57:56]line 126.330 * 75.20 [22:57:56]line = 9500.02 [22:57:56]line НДС 12% НСП 1% [22:57:56]line > о реализуемом товаре [22:57:56]line ОКРУГЛЕНИЕ: -0.02 [22:57:56]line ИТОГО: 9500.00 [22:57:56]line Внесено: 9500.00 [22:57:56]line СДАЧА: 0.00 [22:57:56]line НСП 1% : 84.07 [22:57:56]line НДС 12% : 1008.85 [22:57:56]line Наличными: 9500.00 [22:57:56]line Безнал.: 0.00 [22:57:56]line Место: АЗС № 86 "Партнер Нефть" [22:57:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:57:56]line СНО: Общий режим [22:57:56]line Чек 437 24.10.2024 22:58 [22:57:56]line Смена: 463 ФФД: 1.0 [22:57:56]line ЗНМ: 0300000155 [22:57:56]line РНМ: 0000000000100030 [22:57:56]line Версия ККМ: 001 [22:57:56]line [22:57:56]line Дисконтная программа [22:57:56]line ДТ [22:57:56]line номер 86 [22:57:56]line сэкономлено 126.33 сом [22:57:56]line ФМ: 0000000000965340 [22:57:56]line ФД: 189364 [22:57:56]line ФПД: 42185112495034 [22:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225800&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189364&fm=42185112495034&tin=02508201610067®Number=0000000000100030&sum=950000 [22:57:56]written 0, free lines is 4095 [22:57:56]OFD Sender: Processing packet 189364 [packets to send 1062, broken 1061] [22:57:56]ProducePacketName [22:57:56]name=ofd_packets/00189364 [22:57:56]OFD Sender: To server: pG, [22:57:56]CommunicateWithHost lk.salyk.kg:30040 [22:57:56]ConnectInit lk.salyk.kg [22:57:57]Connected sock=11 [22:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A2 B2 04 01 59 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 F8 D0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 E3 02 00 35 04 06 00 26 5D FC A5 23 BA 51 D9 D9 3C ED FB 01 DB [22:57:57]Write to MH i2c: 01 00 00 62 82 E4 [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 07 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 07 00 62 82 00 00 00 00 00 DF 0B D5 [22:57:57]RasterBufferAndPrint [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]written 0, free lines is 3041 [22:57:57]MH_Cut [22:57:57]Write to MH i2c: D1 01 00 69 82 01 BD [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 01 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 01 00 69 82 00 BC [22:57:57]Write to MH i2c: 01 00 00 6A 82 EC [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 41 51 47 00 BD 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 39 36 35 33 34 30 10 04 04 00 B4 E3 02 00 F4 03 04 00 DF 7A 1A 67 B6 04 01 00 00 46 2A 4F E7 19 A9 D5 3C [22:57:57]CommunicateWithHost err = 0 [22:57:57]CheckOFDResponse [22:57:57]1017 (14) - 77093643461234 [22:57:57]1041 (16) - 0000000000965340 [22:57:57]1040 (4) - 189364 [22:57:57]1012 (4) - 24.10.2024 16:50 [22:57:57]1206 (1) - 0 [22:57:57]OFD Sender: Remove packet 189364 [22:57:57]ProducePacketName [22:57:57]name=ofd_packets/00189364 [22:57:57]NVStorageDeleteData [22:57:58]OFD Sender: No OFD packet to send [22:57:58]*** Cut start [22:57:58]*** Partial cut [22:57:58]*** CUTSNS_PIN = 1 [22:57:58]*** CUTSNS_PIN = 0 [22:57:59]*** Brake cut motor [22:57:59]Read from MH i2c: 01 [22:57:59]MH_I2C_Read... [22:57:59]*** Stop cut motor [22:57:59]*** Cut end [22:57:59]Read from MH i2c: 01 07 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 07 00 6A 82 00 00 00 00 00 FF 0F 01 [22:57:59]process_action close_receipt done [22:57:59]requested_data is exist [22:57:59]produce_requested_data [22:57:59]requested_item fm.sn is exist - process it [22:57:59]wFMCommunicate request_size=4 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 11 00 00 [22:57:59]Write to MH i2c: E2 08 00 6B 82 80 11 00 00 00 00 00 00 67 [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 17 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 17 00 6B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [22:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:57:59]wFMCommunicate OK [22:57:59]requested_item fd.num is exist - process it [22:57:59]SAM_PROTO_GetFieldsCounters [22:57:59]wFMCommunicate request_size=4 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 13 00 00 [22:57:59]Write to MH i2c: E2 08 00 6C 82 80 13 00 00 00 00 00 00 6A [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 62 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 62 00 6C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E3 02 00 0E 04 04 00 CF 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 FC [22:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 E3 02 00 0E 04 04 00 CF 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 [22:57:59]wFMCommunicate OK [22:57:59]SAM_PROTO_GetFieldsCounters done [22:57:59]requested_item shift.num is exist - process it [22:57:59]requested_item shift.opened is exist - process it [22:57:59]req_shift_opened [22:57:59]FM_GetShiftState [22:57:59]SAM_PROTO_GetShiftState [22:57:59]wFMCommunicate request_size=4 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 13 01 00 [22:57:59]Write to MH i2c: E2 08 00 6D 82 80 13 01 00 00 00 00 00 6C [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 0E 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 0E 00 6D 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4A [22:57:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [22:57:59]wFMCommunicate OK [22:57:59]SAM_PROTO_GetShiftState done [22:57:59]FM_GetShiftState done [22:57:59]req_shift_opened done [22:57:59]requested_item shift.open_date is exist - process it [22:57:59]req_shift_open_date [22:57:59]req_shift_open_date done [22:57:59]produce_requested_data done [22:57:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189364,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [22:57:59]process_action_free close_receipt [22:57:59]json_value_free [22:57:59]json_value_free done [22:57:59]process_json_proto returns [22:57:59]Send response to host [22:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189364,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [22:57:59]free response buf [22:57:59]execute_script done [22:57:59]execute_script returns [22:57:59]free content buf [22:57:59]Sock 8.Close socket [22:57:59]Sock 8.Thread stoped [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:54]accept exits with 9 [23:00:54]New connection [23:00:54]New thread 3067215204 created [23:00:54]Thread 3067071844 joined [23:00:54]Waiting for new connection... [23:00:54] Sock 9.Parse request [23:00:54]Sock 9.Check first char [23:00:54]Sock 9.First char is OK [23:00:54]request: POST /json_proto HTTP/1.0 [23:00:54]Method: POST [23:00:54]URL: /json_proto [23:00:54]Method is POST - this is cgi request [23:00:54]url: /json_proto [23:00:54]query_string will be loaded in cgi processing [23:00:54]execute_cgi json_proto POST (null) [23:00:54]execute_cgi path=json_proto method=POST [23:00:54]POST find Content-Length [23:00:54]Host: 172.17.42.131:8080 [23:00:54]Content-Length: 769 [23:00:54]Content-Type: application/json [23:00:54] [23:00:54]POST finish read [23:00:54]Found Content-Length = 769 [23:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:54]execute_script... [23:00: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)211431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:54]POST & json_proto [23:00:54]process_json_proto [23:00:54]json parsed OK: [23:00:54]protocol is kg_v1.0 [23:00:54]action value=close_receipt [23:00:54]process_action close_receipt [23:00:54]cmd_close_receipt [23:00:54]MH_GetDate [23:00:54]Write to MH i2c: F0 00 00 6E 82 DF [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 09 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 09 00 6E 82 00 AC D1 1A 67 A0 18 CA 66 CE [23:00:54]GetLastDocTimeStamp 1729810680 [23:00:54]current date 1729810860 [23:00:54]FM_GetShiftState [23:00:54]SAM_PROTO_GetShiftState [23:00:54]wFMCommunicate request_size=4 [23:00:54]MH_SAM_APDU [23:00:54]CAPDU: 80 13 01 00 [23:00:54]Write to MH i2c: E2 08 00 6F 82 80 13 01 00 00 00 00 00 6E [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:54]Read from MH i2c: E2 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: E2 0E 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: E2 0E 00 6F 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 4C [23:00:54]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:00:54]wFMCommunicate OK [23:00:54]SAM_PROTO_GetShiftState done [23:00:54]FM_GetShiftState done [23:00:54]opened in 1729728961 [23:00:54]opened+sec_in_day 1729815361 [23:00:54]quantity*price = 100015 [23:00:54]sum+1 = 100017 [23:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 438 24.10.2024 23:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189365 ФПД: 190116725331447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189365&fm=190116725331447&tin=02508201610067®Number=0000000000100030&sum=100016 [23:00:55]StoreToDocumentArchive [23:00:55]shift 463 fd 189365 [23:00:55]save to /storage/0463/doc_00189365 [23:00:55]save last doc name /storage/0463/doc_00189365 to /storage/kkm_last_doc_name [23:00:55]save OK [23:00:55]Clear old archive folders... [23:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:55]tlvbuf is 0176F8F0 [23:00:55]SAM_PROTO_ClearQueue [23:00:55]wFMCommunicate request_size=4 [23:00:55]MH_SAM_APDU [23:00:55]CAPDU: 80 09 00 00 [23:00:55]Write to MH i2c: E2 08 00 7C 82 80 09 00 00 00 00 00 00 70 [23:00:55]Write i2c OK [23:00:55]MH_I2C_Read... [23:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:55]Read from MH i2c: E2 [23:00:55]MH_I2C_Read... [23:00:55]Read from MH i2c: E2 03 00 [23:00:55]MH_I2C_Read... [23:00:55]Read from MH i2c: E2 03 00 7C 82 00 90 00 72 [23:00:55]RAPDU: 90 00 [23:00:55]wFMCommunicate OK [23:00:55]SAM_PROTO_ClearQueue done [23:00:55]KKMCreateOFDPacket [23:00:55]OFDProtocolAddRootSTLVToBuf [23:00:55]FM_MakeSignedData [23:00:55]FM_MakeSignedData [23:00:55]SAM_PROTO_SignData [23:00:55]wFMCommunicate request_size=4 [23:00:55]MH_SAM_APDU [23:00:55]CAPDU: 80 0D 01 02 [23:00:55]Write to MH i2c: E2 08 00 7D 82 80 0D 01 02 00 00 00 00 78 [23:00:55]Write i2c OK [23:00:55]MH_I2C_Read... [23:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:55]Read from MH i2c: E2 [23:00:55]MH_I2C_Read... [23:00:55]Read from MH i2c: E2 03 00 [23:00:55]MH_I2C_Read... [23:00:55]Read from MH i2c: E2 03 00 7D 82 00 90 00 73 [23:00:55]RAPDU: 90 00 [23:00:55]wFMCommunicate OK [23:00:55]wFMCommunicate request_size=255 [23:00:55]MH_SAM_APDU [23:00: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 AC D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E3 02 00 35 04 06 00 AC [23:00:56]Write to MH i2c: E2 02 01 7E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 AC D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E3 02 00 35 04 06 00 AC 00 00 D0 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 7E 82 00 90 00 74 [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]wFMCommunicate request_size=10 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 0D 02 02 05 E8 FF E1 15 F7 [23:00:56]Write to MH i2c: E2 0D 00 7F 82 80 0D 02 02 05 00 E8 FF E1 15 F7 00 00 59 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 7F 82 00 90 00 75 [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]wFMCommunicate request_size=4 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 0D 03 02 [23:00:56]Write to MH i2c: E2 08 00 80 82 80 0D 03 02 00 00 00 00 7D [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 0B 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 0B 00 80 82 00 F2 2C 7E 0B 74 5A EA C1 90 00 9E [23:00:56]RAPDU: F2 2C 7E 0B 74 5A EA C1 90 00 [23:00:56]wFMCommunicate OK [23:00:56]SAM_PROTO_SignData done [23:00:56]FM_MakeSignedData done [23:00:56]CreateOFDProtocolMessage [23:00:56]wFMCommunicate request_size=4 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 11 00 00 [23:00:56]Write to MH i2c: E2 08 00 81 82 80 11 00 00 00 00 00 00 7D [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 17 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 17 00 81 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [23:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:00:56]wFMCommunicate OK [23:00:56]CreateOFDProtocolMessage done [23:00:56]OFDSenderStorePacket 189365 [23:00:56]StoreOFDPacket docnum=189365 [23:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 5F 07 01 C8 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 AC D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E3 02 00 35 04 06 00 AC E8 FF E1 15 F7 F2 2C 7E 0B 74 5A EA C1 [23:00:56]CheckFolder [23:00:56]dirname=/storage/ofd_packets [23:00:56]CheckFolder done [23:00:56]ProducePacketName [23:00:56]name=ofd_packets/00189365 [23:00:56]NVStorageSaveData ofd_packets/00189365 [23:00:56]File name is /storage/ofd_packets/00189365 [23:00:56]Write 301 bytes [23:00:56]NVStorageSaveData done [23:00:56]OFDSenderStorePacket done [23:00:56]KKMCreateOFDPacket done [23:00:56]NVStorageSaveData kkm_last_timestamp [23:00:56]File name is /storage/kkm_last_timestamp [23:00:56]Write 4 bytes [23:00:56]NVStorageSaveData done [23:00:56]ExternCall_PrintAddStr [23:00:56]wPrintStart [23:00:56]Write to MH i2c: 01 00 00 82 82 04 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 82 82 00 00 00 00 00 FF 0F 19 [23:00:56]RasterBufferAndPrint [23:00:56]line Счет N : (1)211431 [23:00:56]line ИНН: 02508201610067 [23:00:56]line Контрольно-Кассовый Чек [23:00:56]line ПРОДАЖА [23:00:56]line ТРК (МРК, ГНК) : 42 [23:00:56]line Товар: 2710124130 [23:00:56]line Аи-92-К-3 [23:00:56]line 14.950 * 66.90 [23:00:56]line = 1000.16 [23:00:56]line НДС 12% НСП 1% [23:00:56]line > о реализуемом товаре [23:00:56]line ИТОГО: 1000.16 [23:00:56]line НСП 1% : 8.85 [23:00:56]line НДС 12% : 106.21 [23:00:56]line Наличными: 0.00 [23:00:56]line Безнал.: 1000.16 [23:00:56]line Место: АЗС № 86 "Партнер Нефть" [23:00:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:00:56]line СНО: Общий режим [23:00:56]line Чек 438 24.10.2024 23:01 [23:00:56]line Смена: 463 ФФД: 1.0 [23:00:56]line ЗНМ: 0300000155 [23:00:56]line РНМ: 0000000000100030 [23:00:56]line Версия ККМ: 001 [23:00:56]line Платежная система: Mbank [23:00:56]line ФМ: 0000000000965340 [23:00:56]line ФД: 189365 [23:00:56]line ФПД: 190116725331447 [23:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189365&fm=190116725331447&tin=02508201610067®Number=0000000000100030&sum=100016 [23:00:56]OFD Sender: Processing packet 189365 [packets to send 1062, broken 1061] [23:00:56]ProducePacketName [23:00:56]name=ofd_packets/00189365 [23:00:56]OFD Sender: To server: pG, [23:00:56]CommunicateWithHost lk.salyk.kg:30040 [23:00:56]ConnectInit lk.salyk.kg [23:00:56]written 0, free lines is 4095 [23:00:56]Connected sock=10 [23:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 5F 07 01 C8 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 AC D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 E3 02 00 35 04 06 00 AC E8 FF E1 15 F7 F2 2C 7E 0B 74 5A EA C1 [23:00:56]Write to MH i2c: 01 00 00 AB 82 2D [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 AB 82 00 00 00 00 00 83 0C C3 [23:00:56]RasterBufferAndPrint [23:00:56]line [23:00:56]line [23:00:56]line [23:00:56]line [23:00:56]line [23:00:56]written 0, free lines is 3207 [23:00:56]MH_Cut [23:00:56]Write to MH i2c: D1 01 00 B2 82 01 06 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: D1 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: D1 01 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: D1 01 00 B2 82 00 05 [23:00:56]Write to MH i2c: 01 00 00 B3 82 35 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D7 40 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 B5 E3 02 00 F4 03 04 00 93 7B 1A 67 B6 04 01 00 00 28 EE 0E 1E 6B 13 D8 4A [23:00:57]CommunicateWithHost err = 0 [23:00:57]CheckOFDResponse [23:00:57]1017 (14) - 77093643461234 [23:00:57]1041 (16) - 0000000000965340 [23:00:57]1040 (4) - 189365 [23:00:57]1012 (4) - 24.10.2024 16:53 [23:00:57]1206 (1) - 0 [23:00:57]OFD Sender: Remove packet 189365 [23:00:57]ProducePacketName [23:00:57]name=ofd_packets/00189365 [23:00:57]NVStorageDeleteData [23:00:57]OFD Sender: No OFD packet to send [23:00:58]*** Cut start [23:00:58]*** Partial cut [23:00:58]*** CUTSNS_PIN = 1 [23:00:58]*** CUTSNS_PIN = 0 [23:00:58]*** Brake cut motor [23:00:58]Read from MH i2c: 01 [23:00:58]MH_I2C_Read... [23:00:58]*** Stop cut motor [23:00:58]*** Cut end [23:00:58]Read from MH i2c: 01 07 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: 01 07 00 B3 82 00 00 00 00 00 FF 0F 4A [23:00:58]process_action close_receipt done [23:00:58]requested_data is exist [23:00:58]produce_requested_data [23:00:58]requested_item fm.sn is exist - process it [23:00:58]wFMCommunicate request_size=4 [23:00:58]MH_SAM_APDU [23:00:58]CAPDU: 80 11 00 00 [23:00:58]Write to MH i2c: E2 08 00 B4 82 80 11 00 00 00 00 00 00 B0 [23:00:58]Write i2c OK [23:00:58]MH_I2C_Read... [23:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:58]Read from MH i2c: E2 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 17 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 17 00 B4 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [23:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:00:58]wFMCommunicate OK [23:00:58]requested_item fd.num is exist - process it [23:00:58]SAM_PROTO_GetFieldsCounters [23:00:58]wFMCommunicate request_size=4 [23:00:58]MH_SAM_APDU [23:00:58]CAPDU: 80 13 00 00 [23:00:58]Write to MH i2c: E2 08 00 B5 82 80 13 00 00 00 00 00 00 B3 [23:00:58]Write i2c OK [23:00:58]MH_I2C_Read... [23:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:59]Read from MH i2c: E2 [23:00:59]MH_I2C_Read... [23:00:59]Read from MH i2c: E2 62 00 [23:00:59]MH_I2C_Read... [23:00:59]Read from MH i2c: E2 62 00 B5 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E3 02 00 0E 04 04 00 CF 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 49 [23:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 E3 02 00 0E 04 04 00 CF 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 [23:00:59]wFMCommunicate OK [23:00:59]SAM_PROTO_GetFieldsCounters done [23:00:59]requested_item shift.num is exist - process it [23:00:59]requested_item shift.opened is exist - process it [23:00:59]req_shift_opened [23:00:59]FM_GetShiftState [23:00:59]SAM_PROTO_GetShiftState [23:00:59]wFMCommunicate request_size=4 [23:00:59]MH_SAM_APDU [23:00:59]CAPDU: 80 13 01 00 [23:00:59]Write to MH i2c: E2 08 00 B6 82 80 13 01 00 00 00 00 00 B5 [23:00:59]Write i2c OK [23:00:59]MH_I2C_Read... [23:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:59]Read from MH i2c: E2 [23:00:59]MH_I2C_Read... [23:00:59]Read from MH i2c: E2 0E 00 [23:00:59]MH_I2C_Read... [23:00:59]Read from MH i2c: E2 0E 00 B6 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 93 [23:00:59]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:00:59]wFMCommunicate OK [23:00:59]SAM_PROTO_GetShiftState done [23:00:59]FM_GetShiftState done [23:00:59]req_shift_opened done [23:00:59]requested_item shift.open_date is exist - process it [23:00:59]req_shift_open_date [23:00:59]req_shift_open_date done [23:00:59]produce_requested_data done [23:00:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189365,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:00:59]process_action_free close_receipt [23:00:59]json_value_free [23:00:59]json_value_free done [23:00:59]process_json_proto returns [23:00:59]Send response to host [23:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189365,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:00:59]free response buf [23:00:59]execute_script done [23:00:59]execute_script returns [23:00:59]free content buf [23:00:59]Sock 9.Close socket [23:00:59]Sock 9.Thread stoped [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:34]accept exits with 8 [23:01:34]New connection [23:01:34]New thread 3067071844 created [23:01:34]Thread 3067215204 joined [23:01:34]Waiting for new connection... [23:01:34] Sock 8.Parse request [23:01:34]Sock 8.Check first char [23:01:34]Sock 8.First char is OK [23:01:34]request: POST /json_proto HTTP/1.0 [23:01:34]Method: POST [23:01:34]URL: /json_proto [23:01:34]Method is POST - this is cgi request [23:01:34]url: /json_proto [23:01:34]query_string will be loaded in cgi processing [23:01:34]execute_cgi json_proto POST (null) [23:01:34]execute_cgi path=json_proto method=POST [23:01:34]POST find Content-Length [23:01:34]Host: 172.17.42.131:8080 [23:01:34]Content-Length: 979 [23:01:34]Content-Type: application/json [23:01:34] [23:01:34]POST finish read [23:01:34]Found Content-Length = 979 [23:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:34]execute_script... [23:01: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)211430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 126.330, "sum" : 9500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 126.33 \u0441\u043E\u043C", "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:34]POST & json_proto [23:01:34]process_json_proto [23:01:34]json parsed OK: [23:01:34]protocol is kg_v1.0 [23:01:34]action value=close_receipt [23:01:34]process_action close_receipt [23:01:34]cmd_close_receipt [23:01:34]MH_GetDate [23:01:34]Write to MH i2c: F0 00 00 B7 82 28 [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: F0 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: F0 09 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: F0 09 00 B7 82 00 D4 D1 1A 67 A0 18 CA 66 3F [23:01:34]GetLastDocTimeStamp 1729810860 [23:01:34]current date 1729810900 [23:01:34]FM_GetShiftState [23:01:34]SAM_PROTO_GetShiftState [23:01:34]wFMCommunicate request_size=4 [23:01:34]MH_SAM_APDU [23:01:34]CAPDU: 80 13 01 00 [23:01:34]Write to MH i2c: E2 08 00 B8 82 80 13 01 00 00 00 00 00 B7 [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:34]Read from MH i2c: E2 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 0E 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 0E 00 B8 82 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 95 [23:01:34]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:01:34]wFMCommunicate OK [23:01:34]SAM_PROTO_GetShiftState done [23:01:34]FM_GetShiftState done [23:01:34]opened in 1729728961 [23:01:34]opened+sec_in_day 1729815361 [23:01:34]quantity*price = 950001 [23:01:34]sum+1 = 950003 [23:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.85 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 439 24.10.2024 23:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 126.33 сом ФМ: 0000000000965340 ФД: 189366 ФПД: 28512071973390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230140&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189366&fm=28512071973390&tin=02508201610067®Number=0000000000100030&sum=950000 [23:01:35]StoreToDocumentArchive [23:01:35]shift 463 fd 189366 [23:01:35]save to /storage/0463/doc_00189366 [23:01:35]save last doc name /storage/0463/doc_00189366 to /storage/kkm_last_doc_name [23:01:35]save OK [23:01:35]Clear old archive folders... [23:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:01:35]tlvbuf is 0174CCF0 [23:01:35]SAM_PROTO_ClearQueue [23:01:35]wFMCommunicate request_size=4 [23:01:35]MH_SAM_APDU [23:01:35]CAPDU: 80 09 00 00 [23:01:35]Write to MH i2c: E2 08 00 C5 82 80 09 00 00 00 00 00 00 B9 [23:01:35]Write i2c OK [23:01:35]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 C5 82 00 90 00 BB [23:01:36]RAPDU: 90 00 [23:01:36]wFMCommunicate OK [23:01:36]SAM_PROTO_ClearQueue done [23:01:36]KKMCreateOFDPacket [23:01:36]OFDProtocolAddRootSTLVToBuf [23:01:36]FM_MakeSignedData [23:01:36]FM_MakeSignedData [23:01:36]SAM_PROTO_SignData [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 0D 01 02 [23:01:36]Write to MH i2c: E2 08 00 C6 82 80 0D 01 02 00 00 00 00 C1 [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 C6 82 00 90 00 BC [23:01:36]RAPDU: 90 00 [23:01:36]wFMCommunicate OK [23:01:36]wFMCommunicate request_size=255 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 D4 D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E3 02 00 35 04 06 00 19 EE 7B EB [23:01:36]Write to MH i2c: E2 02 01 C7 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 D4 D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E3 02 00 35 04 06 00 19 EE 7B EB 00 00 AC [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 C7 82 00 90 00 BD [23:01:36]RAPDU: 90 00 [23:01:36]wFMCommunicate OK [23:01:36]wFMCommunicate request_size=7 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 0D 02 02 02 FA 0E [23:01:36]Write to MH i2c: E2 0A 00 C8 82 80 0D 02 02 02 00 FA 0E 00 00 D0 [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 03 00 C8 82 00 90 00 BE [23:01:36]RAPDU: 90 00 [23:01:36]wFMCommunicate OK [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 0D 03 02 [23:01:36]Write to MH i2c: E2 08 00 C9 82 80 0D 03 02 00 00 00 00 C6 [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 0B 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 0B 00 C9 82 00 CA 0C B2 FF BE 27 28 BE 90 00 19 [23:01:36]RAPDU: CA 0C B2 FF BE 27 28 BE 90 00 [23:01:36]wFMCommunicate OK [23:01:36]SAM_PROTO_SignData done [23:01:36]FM_MakeSignedData done [23:01:36]CreateOFDProtocolMessage [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 11 00 00 [23:01:36]Write to MH i2c: E2 08 00 CA 82 80 11 00 00 00 00 00 00 C6 [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 17 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 17 00 CA 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [23:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:01:36]wFMCommunicate OK [23:01:36]CreateOFDProtocolMessage done [23:01:36]OFDSenderStorePacket 189366 [23:01:36]StoreOFDPacket docnum=189366 [23:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 C9 04 01 C0 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 D4 D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E3 02 00 35 04 06 00 19 EE 7B EB FA 0E CA 0C B2 FF BE 27 28 BE [23:01:36]CheckFolder [23:01:36]dirname=/storage/ofd_packets [23:01:36]CheckFolder done [23:01:36]ProducePacketName [23:01:36]name=ofd_packets/00189366 [23:01:36]NVStorageSaveData ofd_packets/00189366 [23:01:36]File name is /storage/ofd_packets/00189366 [23:01:36]Write 298 bytes [23:01:36]NVStorageSaveData done [23:01:36]OFDSenderStorePacket done [23:01:36]KKMCreateOFDPacket done [23:01:36]NVStorageSaveData kkm_last_timestamp [23:01:36]File name is /storage/kkm_last_timestamp [23:01:36]Write 4 bytes [23:01:36]NVStorageSaveData done [23:01:36]ExternCall_PrintAddStr [23:01:36]wPrintStart [23:01:36]Write to MH i2c: 01 00 00 CB 82 4D [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: 01 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: 01 07 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: 01 07 00 CB 82 00 00 00 00 00 FF 0F 62 [23:01:36]RasterBufferAndPrint [23:01:36]line Счет N : (1)211430 [23:01:36]line ИНН: 02508201610067 [23:01:36]line Контрольно-Кассовый Чек [23:01:36]line ПРОДАЖА [23:01:36]line ТРК (МРК, ГНК) : 51 [23:01:36]line Товар: 2710194210 [23:01:36]line ДТ-К-5 [23:01:36]line 126.330 * 75.20 [23:01:36]line = 9500.02 [23:01:36]line НДС 12% НСП 1% [23:01:36]line > о реализуемом товаре [23:01:36]line ОКРУГЛЕНИЕ: -0.02 [23:01:36]line ИТОГО: 9500.00 [23:01:36]line Внесено: 9500.00 [23:01:36]line СДАЧА: 0.00 [23:01:36]line НСП 1% : 84.07 [23:01:36]line НДС 12% : 1008.85 [23:01:36]line Наличными: 9500.00 [23:01:36]line Безнал.: 0.00 [23:01:36]line Место: АЗС № 86 "Партнер Нефть" [23:01:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:01:36]line СНО: Общий режим [23:01:36]line Чек 439 24.10.2024 23:01 [23:01:36]line Смена: 463 ФФД: 1.0 [23:01:36]line ЗНМ: 0300000155 [23:01:36]line РНМ: 0000000000100030 [23:01:36]line Версия ККМ: 001 [23:01:36]line [23:01:36]line Дисконтная программа [23:01:36]line ДТ [23:01:36]line номер 86 [23:01:36]line сэкономлено 126.33 сом [23:01:36]line ФМ: 0000000000965340 [23:01:36]line ФД: 189366 [23:01:36]line ФПД: 28512071973390 [23:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230140&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189366&fm=28512071973390&tin=02508201610067®Number=0000000000100030&sum=950000 [23:01:36]written 0, free lines is 4095 [23:01:36]OFD Sender: Processing packet 189366 [packets to send 1062, broken 1061] [23:01:36]ProducePacketName [23:01:36]name=ofd_packets/00189366 [23:01:36]OFD Sender: To server: pG, [23:01:36]CommunicateWithHost lk.salyk.kg:30040 [23:01:36]ConnectInit lk.salyk.kg [23:01:37]Connected sock=9 [23:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 C9 04 01 C0 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A ED 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 F2 7E 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 8A 01 00 00 00 07 04 06 00 F0 7E 0E 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 D4 D1 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 E3 02 00 35 04 06 00 19 EE 7B EB FA 0E CA 0C B2 FF BE 27 28 BE [23:01:37]Write to MH i2c: 01 00 00 FB 82 7D [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: 01 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: 01 07 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: 01 07 00 FB 82 00 00 00 00 00 E2 0B 71 [23:01:37]RasterBufferAndPrint [23:01:37]line [23:01:37]line [23:01:37]line [23:01:37]line [23:01:37]line [23:01:37]written 0, free lines is 3045 [23:01:37]MH_Cut [23:01:37]Write to MH i2c: D1 01 00 02 83 01 57 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: D1 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: D1 01 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: D1 01 00 02 83 00 56 [23:01:37]Write to MH i2c: 01 00 00 03 83 86 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E 39 47 00 AB 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 39 36 35 33 34 30 10 04 04 00 B6 E3 02 00 F4 03 04 00 BB 7B 1A 67 B6 04 01 00 00 ED 7C C5 9F F3 25 B1 A8 [23:01:37]CommunicateWithHost err = 0 [23:01:37]CheckOFDResponse [23:01:37]1017 (14) - 77093643461234 [23:01:37]1041 (16) - 0000000000965340 [23:01:37]1040 (4) - 189366 [23:01:37]1012 (4) - 24.10.2024 16:54 [23:01:37]1206 (1) - 0 [23:01:37]OFD Sender: Remove packet 189366 [23:01:37]ProducePacketName [23:01:37]name=ofd_packets/00189366 [23:01:37]NVStorageDeleteData [23:01:38]OFD Sender: No OFD packet to send [23:01:38]*** Cut start [23:01:38]*** Partial cut [23:01:38]*** CUTSNS_PIN = 1 [23:01:38]*** CUTSNS_PIN = 0 [23:01:39]*** Brake cut motor [23:01:39]Read from MH i2c: 01 [23:01:39]MH_I2C_Read... [23:01:39]*** Stop cut motor [23:01:39]*** Cut end [23:01:39]Read from MH i2c: 01 07 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 03 83 00 00 00 00 00 FF 0F 9B [23:01:39]process_action close_receipt done [23:01:39]requested_data is exist [23:01:39]produce_requested_data [23:01:39]requested_item fm.sn is exist - process it [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 11 00 00 [23:01:39]Write to MH i2c: E2 08 00 04 83 80 11 00 00 00 00 00 00 01 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 04 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [23:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:01:39]wFMCommunicate OK [23:01:39]requested_item fd.num is exist - process it [23:01:39]SAM_PROTO_GetFieldsCounters [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 13 00 00 [23:01:39]Write to MH i2c: E2 08 00 05 83 80 13 00 00 00 00 00 00 04 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 62 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 62 00 05 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E3 02 00 0E 04 04 00 CF 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 9E [23:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 E3 02 00 0E 04 04 00 CF 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 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_GetFieldsCounters done [23:01:39]requested_item shift.num is exist - process it [23:01:39]requested_item shift.opened is exist - process it [23:01:39]req_shift_opened [23:01:39]FM_GetShiftState [23:01:39]SAM_PROTO_GetShiftState [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 13 01 00 [23:01:39]Write to MH i2c: E2 08 00 06 83 80 13 01 00 00 00 00 00 06 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0E 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0E 00 06 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E4 [23:01:39]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_GetShiftState done [23:01:39]FM_GetShiftState done [23:01:39]req_shift_opened done [23:01:39]requested_item shift.open_date is exist - process it [23:01:39]req_shift_open_date [23:01:39]req_shift_open_date done [23:01:39]produce_requested_data done [23:01:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189366,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:01:39]process_action_free close_receipt [23:01:39]json_value_free [23:01:39]json_value_free done [23:01:39]process_json_proto returns [23:01:39]Send response to host [23:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189366,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:01:39]free response buf [23:01:39]execute_script done [23:01:39]execute_script returns [23:01:39]free content buf [23:01:39]Sock 8.Close socket [23:01:39]Sock 8.Thread stoped [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09: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:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12: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:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:33]accept exits with 10 [23:15:33]New connection [23:15:33]New thread 3067215204 created [23:15:33]Thread 3067071844 joined [23:15:33]Waiting for new connection... [23:15:33] Sock 10.Parse request [23:15:33]Sock 10.Check first char [23:15:33]Sock 10.First char is OK [23:15:33]request: POST /json_proto HTTP/1.0 [23:15:33]Method: POST [23:15:33]URL: /json_proto [23:15:33]Method is POST - this is cgi request [23:15:33]url: /json_proto [23:15:33]query_string will be loaded in cgi processing [23:15:33]execute_cgi json_proto POST (null) [23:15:33]execute_cgi path=json_proto method=POST [23:15:33]POST find Content-Length [23:15:33]Host: 172.17.42.131:8080 [23:15:33]Content-Length: 775 [23:15:33]Content-Type: application/json [23:15:33] [23:15:33]POST finish read [23:15:33]Found Content-Length = 775 [23:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:33]execute_script... [23:15: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)211432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:33]POST & json_proto [23:15:33]process_json_proto [23:15:33]json parsed OK: [23:15:33]protocol is kg_v1.0 [23:15:33]action value=close_receipt [23:15:33]process_action close_receipt [23:15:33]cmd_close_receipt [23:15:33]MH_GetDate [23:15:33]Write to MH i2c: F0 00 00 07 83 79 [23:15:33]Write i2c OK [23:15:33]MH_I2C_Read... [23:15:33]Read from MH i2c: F0 [23:15:33]MH_I2C_Read... [23:15:33]Read from MH i2c: F0 09 00 [23:15:33]MH_I2C_Read... [23:15:33]Read from MH i2c: F0 09 00 07 83 00 1B D5 1A 67 A0 18 CA 66 DB [23:15:33]GetLastDocTimeStamp 1729810900 [23:15:33]current date 1729811739 [23:15:33]FM_GetShiftState [23:15:33]SAM_PROTO_GetShiftState [23:15:33]wFMCommunicate request_size=4 [23:15:33]MH_SAM_APDU [23:15:33]CAPDU: 80 13 01 00 [23:15:33]Write to MH i2c: E2 08 00 08 83 80 13 01 00 00 00 00 00 08 [23:15:33]Write i2c OK [23:15:33]MH_I2C_Read... [23:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:33]Read from MH i2c: E2 [23:15:33]MH_I2C_Read... [23:15:33]Read from MH i2c: E2 0E 00 [23:15:33]MH_I2C_Read... [23:15:33]Read from MH i2c: E2 0E 00 08 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 E6 [23:15:33]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:15:33]wFMCommunicate OK [23:15:33]SAM_PROTO_GetShiftState done [23:15:33]FM_GetShiftState done [23:15:33]opened in 1729728961 [23:15:33]opened+sec_in_day 1729815361 [23:15:33]quantity*price = 300076 [23:15:33]sum+1 = 300077 [23:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 440 24.10.2024 23:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189367 ФПД: 37132968498413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189367&fm=37132968498413&tin=02508201610067®Number=0000000000100030&sum=300076 [23:15:34]StoreToDocumentArchive [23:15:34]shift 463 fd 189367 [23:15:34]save to /storage/0463/doc_00189367 [23:15:34]save last doc name /storage/0463/doc_00189367 to /storage/kkm_last_doc_name [23:15:34]save OK [23:15:34]Clear old archive folders... [23:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:15:34]tlvbuf is 0159B460 [23:15:34]SAM_PROTO_ClearQueue [23:15:34]wFMCommunicate request_size=4 [23:15:34]MH_SAM_APDU [23:15:34]CAPDU: 80 09 00 00 [23:15:34]Write to MH i2c: E2 08 00 15 83 80 09 00 00 00 00 00 00 0A [23:15:34]Write i2c OK [23:15:34]MH_I2C_Read... [23:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:34]Read from MH i2c: E2 [23:15:34]MH_I2C_Read... [23:15:34]Read from MH i2c: E2 03 00 [23:15:34]MH_I2C_Read... [23:15:34]Read from MH i2c: E2 03 00 15 83 00 90 00 0C [23:15:34]RAPDU: 90 00 [23:15:34]wFMCommunicate OK [23:15:34]SAM_PROTO_ClearQueue done [23:15:34]KKMCreateOFDPacket [23:15:34]OFDProtocolAddRootSTLVToBuf [23:15:34]FM_MakeSignedData [23:15:34]FM_MakeSignedData [23:15:34]SAM_PROTO_SignData [23:15:34]wFMCommunicate request_size=4 [23:15:34]MH_SAM_APDU [23:15:34]CAPDU: 80 0D 01 02 [23:15:34]Write to MH i2c: E2 08 00 16 83 80 0D 01 02 00 00 00 00 12 [23:15:34]Write i2c OK [23:15:34]MH_I2C_Read... [23:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:34]Read from MH i2c: E2 [23:15:34]MH_I2C_Read... [23:15:34]Read from MH i2c: E2 03 00 [23:15:34]MH_I2C_Read... [23:15:34]Read from MH i2c: E2 03 00 16 83 00 90 00 0D [23:15:34]RAPDU: 90 00 [23:15:34]wFMCommunicate OK [23:15:34]wFMCommunicate request_size=255 [23:15:34]MH_SAM_APDU [23:15:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 1B D5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E3 02 [23:15:34]Write to MH i2c: E2 02 01 17 83 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 1B D5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E3 02 00 00 81 [23:15:34]Write i2c OK [23:15:34]MH_I2C_Read... [23:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:35]Read from MH i2c: E2 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 03 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 03 00 17 83 00 90 00 0E [23:15:35]RAPDU: 90 00 [23:15:35]wFMCommunicate OK [23:15:35]wFMCommunicate request_size=16 [23:15:35]MH_SAM_APDU [23:15:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 21 C5 B1 65 94 ED [23:15:35]Write to MH i2c: E2 13 00 18 83 80 0D 02 02 0B 00 00 35 04 06 00 21 C5 B1 65 94 ED 00 00 E7 [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:35]Read from MH i2c: E2 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 03 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 03 00 18 83 00 90 00 0F [23:15:35]RAPDU: 90 00 [23:15:35]wFMCommunicate OK [23:15:35]wFMCommunicate request_size=4 [23:15:35]MH_SAM_APDU [23:15:35]CAPDU: 80 0D 03 02 [23:15:35]Write to MH i2c: E2 08 00 19 83 80 0D 03 02 00 00 00 00 17 [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:35]Read from MH i2c: E2 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 0B 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 0B 00 19 83 00 B9 D7 A3 20 21 56 DA A5 90 00 61 [23:15:35]RAPDU: B9 D7 A3 20 21 56 DA A5 90 00 [23:15:35]wFMCommunicate OK [23:15:35]SAM_PROTO_SignData done [23:15:35]FM_MakeSignedData done [23:15:35]CreateOFDProtocolMessage [23:15:35]wFMCommunicate request_size=4 [23:15:35]MH_SAM_APDU [23:15:35]CAPDU: 80 11 00 00 [23:15:35]Write to MH i2c: E2 08 00 1A 83 80 11 00 00 00 00 00 00 17 [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:35]Read from MH i2c: E2 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 17 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: E2 17 00 1A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [23:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:15:35]wFMCommunicate OK [23:15:35]CreateOFDProtocolMessage done [23:15:35]OFDSenderStorePacket 189367 [23:15:35]StoreOFDPacket docnum=189367 [23:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 D6 0D 01 23 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 1B D5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E3 02 00 35 04 06 00 21 C5 B1 65 94 ED B9 D7 A3 20 21 56 DA A5 [23:15:35]CheckFolder [23:15:35]dirname=/storage/ofd_packets [23:15:35]CheckFolder done [23:15:35]ProducePacketName [23:15:35]name=ofd_packets/00189367 [23:15:35]NVStorageSaveData ofd_packets/00189367 [23:15:35]File name is /storage/ofd_packets/00189367 [23:15:35]Write 307 bytes [23:15:35]NVStorageSaveData done [23:15:35]OFDSenderStorePacket done [23:15:35]KKMCreateOFDPacket done [23:15:35]NVStorageSaveData kkm_last_timestamp [23:15:35]File name is /storage/kkm_last_timestamp [23:15:35]Write 4 bytes [23:15:35]NVStorageSaveData done [23:15:35]ExternCall_PrintAddStr [23:15:35]wPrintStart [23:15:35]Write to MH i2c: 01 00 00 1B 83 9E [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 07 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 07 00 1B 83 00 00 00 00 00 FF 0F B3 [23:15:35]RasterBufferAndPrint [23:15:35]line Счет N : (1)211432 [23:15:35]line ИНН: 02508201610067 [23:15:35]line Контрольно-Кассовый Чек [23:15:35]line ПРОДАЖА [23:15:35]line ТРК (МРК, ГНК) : 21 [23:15:35]line Товар: 2710194210 [23:15:35]line D-ENERGY ДТ-К-5 [23:15:35]line 38.870 * 77.20 [23:15:35]line = 3000.76 [23:15:35]line НДС 12% НСП 1% [23:15:35]line > о реализуемом товаре [23:15:35]line ИТОГО: 3000.76 [23:15:35]line НСП 1% : 26.55 [23:15:35]line НДС 12% : 318.66 [23:15:35]line Наличными: 0.00 [23:15:35]line Безнал.: 3000.76 [23:15:35]line Место: АЗС № 86 "Партнер Нефть" [23:15:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:15:35]line СНО: Общий режим [23:15:35]line Чек 440 24.10.2024 23:15 [23:15:35]line Смена: 463 ФФД: 1.0 [23:15:35]line ЗНМ: 0300000155 [23:15:35]line РНМ: 0000000000100030 [23:15:35]line Версия ККМ: 001 [23:15:35]line Платежная система: Mbank [23:15:35]line ФМ: 0000000000965340 [23:15:35]line ФД: 189367 [23:15:35]line ФПД: 37132968498413 [23:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189367&fm=37132968498413&tin=02508201610067®Number=0000000000100030&sum=300076 [23:15:35]OFD Sender: Processing packet 189367 [packets to send 1062, broken 1061] [23:15:35]ProducePacketName [23:15:35]name=ofd_packets/00189367 [23:15:35]OFD Sender: To server: pG, [23:15:35]CommunicateWithHost lk.salyk.kg:30040 [23:15:35]ConnectInit lk.salyk.kg [23:15:35]written 0, free lines is 4095 [23:15:35]Connected sock=9 [23:15:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 D6 0D 01 23 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 1B D5 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E3 02 00 35 04 06 00 21 C5 B1 65 94 ED B9 D7 A3 20 21 56 DA A5 [23:15:35]Write to MH i2c: 01 00 00 44 83 C7 [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 07 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: 01 07 00 44 83 00 00 00 00 00 83 0C 5D [23:15:35]RasterBufferAndPrint [23:15:35]line [23:15:35]line [23:15:35]line [23:15:35]line [23:15:35]line [23:15:35]written 0, free lines is 3208 [23:15:35]MH_Cut [23:15:35]Write to MH i2c: D1 01 00 4B 83 01 A0 [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: D1 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: D1 01 00 [23:15:35]MH_I2C_Read... [23:15:35]Read from MH i2c: D1 01 00 4B 83 00 9F [23:15:35]Write to MH i2c: 01 00 00 4C 83 CF [23:15:35]Write i2c OK [23:15:35]MH_I2C_Read... [23:15:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD 82 47 00 D8 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 E3 02 00 F4 03 04 00 02 7F 1A 67 B6 04 01 00 00 1E 7B A0 9E C8 12 B4 48 [23:15:36]CommunicateWithHost err = 0 [23:15:36]CheckOFDResponse [23:15:36]1017 (14) - 77093643461234 [23:15:36]1041 (16) - 0000000000965340 [23:15:36]1040 (4) - 189367 [23:15:36]1012 (4) - 24.10.2024 17:08 [23:15:36]1206 (1) - 0 [23:15:36]OFD Sender: Remove packet 189367 [23:15:36]ProducePacketName [23:15:36]name=ofd_packets/00189367 [23:15:36]NVStorageDeleteData [23:15:36]OFD Sender: No OFD packet to send [23:15:37]*** Cut start [23:15:37]*** Partial cut [23:15:37]*** CUTSNS_PIN = 1 [23:15:37]*** CUTSNS_PIN = 0 [23:15:37]*** Brake cut motor [23:15:37]Read from MH i2c: 01 [23:15:37]MH_I2C_Read... [23:15:37]*** Stop cut motor [23:15:37]*** Cut end [23:15:37]Read from MH i2c: 01 07 00 [23:15:37]MH_I2C_Read... [23:15:37]Read from MH i2c: 01 07 00 4C 83 00 00 00 00 00 FF 0F E4 [23:15:37]process_action close_receipt done [23:15:37]requested_data is exist [23:15:37]produce_requested_data [23:15:37]requested_item fm.sn is exist - process it [23:15:37]wFMCommunicate request_size=4 [23:15:37]MH_SAM_APDU [23:15:37]CAPDU: 80 11 00 00 [23:15:37]Write to MH i2c: E2 08 00 4D 83 80 11 00 00 00 00 00 00 4A [23:15:37]Write i2c OK [23:15:37]MH_I2C_Read... [23:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:37]Read from MH i2c: E2 [23:15:37]MH_I2C_Read... [23:15:37]Read from MH i2c: E2 17 00 [23:15:37]MH_I2C_Read... [23:15:37]Read from MH i2c: E2 17 00 4D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [23:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:15:37]wFMCommunicate OK [23:15:37]requested_item fd.num is exist - process it [23:15:37]SAM_PROTO_GetFieldsCounters [23:15:37]wFMCommunicate request_size=4 [23:15:37]MH_SAM_APDU [23:15:37]CAPDU: 80 13 00 00 [23:15:37]Write to MH i2c: E2 08 00 4E 83 80 13 00 00 00 00 00 00 4D [23:15:37]Write i2c OK [23:15:37]MH_I2C_Read... [23:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:38]Read from MH i2c: E2 [23:15:38]MH_I2C_Read... [23:15:38]Read from MH i2c: E2 62 00 [23:15:38]MH_I2C_Read... [23:15:38]Read from MH i2c: E2 62 00 4E 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E3 02 00 0E 04 04 00 CF 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 EB [23:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 E3 02 00 0E 04 04 00 CF 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 [23:15:38]wFMCommunicate OK [23:15:38]SAM_PROTO_GetFieldsCounters done [23:15:38]requested_item shift.num is exist - process it [23:15:38]requested_item shift.opened is exist - process it [23:15:38]req_shift_opened [23:15:38]FM_GetShiftState [23:15:38]SAM_PROTO_GetShiftState [23:15:38]wFMCommunicate request_size=4 [23:15:38]MH_SAM_APDU [23:15:38]CAPDU: 80 13 01 00 [23:15:38]Write to MH i2c: E2 08 00 4F 83 80 13 01 00 00 00 00 00 4F [23:15:38]Write i2c OK [23:15:38]MH_I2C_Read... [23:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:38]Read from MH i2c: E2 [23:15:38]MH_I2C_Read... [23:15:38]Read from MH i2c: E2 0E 00 [23:15:38]MH_I2C_Read... [23:15:38]Read from MH i2c: E2 0E 00 4F 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2D [23:15:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:15:38]wFMCommunicate OK [23:15:38]SAM_PROTO_GetShiftState done [23:15:38]FM_GetShiftState done [23:15:38]req_shift_opened done [23:15:38]requested_item shift.open_date is exist - process it [23:15:38]req_shift_open_date [23:15:38]req_shift_open_date done [23:15:38]produce_requested_data done [23:15:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189367,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:15:38]process_action_free close_receipt [23:15:38]json_value_free [23:15:38]json_value_free done [23:15:38]process_json_proto returns [23:15:38]Send response to host [23:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189367,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:15:38]free response buf [23:15:38]execute_script done [23:15:38]execute_script returns [23:15:38]free content buf [23:15:38]Sock 10.Close socket [23:15:38]Sock 10.Thread stoped [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:51]accept exits with 8 [23:19:51]New connection [23:19:51]New thread 3067071844 created [23:19:51]Thread 3067215204 joined [23:19:51]Waiting for new connection... [23:19:51] Sock 8.Parse request [23:19:51]Sock 8.Check first char [23:19:51]Sock 8.First char is OK [23:19:51]request: POST /json_proto HTTP/1.0 [23:19:51]Method: POST [23:19:51]URL: /json_proto [23:19:51]Method is POST - this is cgi request [23:19:51]url: /json_proto [23:19:51]query_string will be loaded in cgi processing [23:19:51]execute_cgi json_proto POST (null) [23:19:51]execute_cgi path=json_proto method=POST [23:19:51]POST find Content-Length [23:19:51]Host: 172.17.42.131:8080 [23:19:51]Content-Length: 825 [23:19:51]Content-Type: application/json [23:19:51] [23:19:51]POST finish read [23:19:51]Found Content-Length = 825 [23:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:51]execute_script... [23:19: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)211433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:51]POST & json_proto [23:19:51]process_json_proto [23:19:51]json parsed OK: [23:19:51]protocol is kg_v1.0 [23:19:51]action value=close_receipt [23:19:51]process_action close_receipt [23:19:51]cmd_close_receipt [23:19:51]MH_GetDate [23:19:51]Write to MH i2c: F0 00 00 50 83 C2 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 09 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 09 00 50 83 00 1C D6 1A 67 A0 18 CA 66 26 [23:19:51]GetLastDocTimeStamp 1729811739 [23:19:51]current date 1729811996 [23:19:51]FM_GetShiftState [23:19:51]SAM_PROTO_GetShiftState [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 13 01 00 [23:19:51]Write to MH i2c: E2 08 00 51 83 80 13 01 00 00 00 00 00 51 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0E 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0E 00 51 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 2F [23:19:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:19:51]wFMCommunicate OK [23:19:51]SAM_PROTO_GetShiftState done [23:19:51]FM_GetShiftState done [23:19:51]opened in 1729728961 [23:19:51]opened+sec_in_day 1729815361 [23:19:51]quantity*price = 250050 [23:19:51]sum+1 = 250052 [23:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 441 24.10.2024 23:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189368 ФПД: 266885349323865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189368&fm=266885349323865&tin=02508201610067®Number=0000000000100030&sum=250051 [23:19:52]StoreToDocumentArchive [23:19:52]shift 463 fd 189368 [23:19:52]save to /storage/0463/doc_00189368 [23:19:52]save last doc name /storage/0463/doc_00189368 to /storage/kkm_last_doc_name [23:19:52]save OK [23:19:52]Clear old archive folders... [23:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:19:52]tlvbuf is 01676300 [23:19:52]SAM_PROTO_ClearQueue [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 09 00 00 [23:19:52]Write to MH i2c: E2 08 00 5E 83 80 09 00 00 00 00 00 00 53 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 5E 83 00 90 00 55 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]SAM_PROTO_ClearQueue done [23:19:52]KKMCreateOFDPacket [23:19:52]OFDProtocolAddRootSTLVToBuf [23:19:52]FM_MakeSignedData [23:19:52]FM_MakeSignedData [23:19:52]SAM_PROTO_SignData [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 01 02 [23:19:52]Write to MH i2c: E2 08 00 5F 83 80 0D 01 02 00 00 00 00 5B [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 5F 83 00 90 00 56 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]wFMCommunicate request_size=255 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 1C D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E3 02 [23:19:52]Write to MH i2c: E2 02 01 60 83 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 1C D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E3 02 00 00 4A [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 60 83 00 90 00 57 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]wFMCommunicate request_size=16 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F2 BB 16 71 34 59 [23:19:52]Write to MH i2c: E2 13 00 61 83 80 0D 02 02 0B 00 00 35 04 06 00 F2 BB 16 71 34 59 00 00 74 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 61 83 00 90 00 58 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 03 02 [23:19:52]Write to MH i2c: E2 08 00 62 83 80 0D 03 02 00 00 00 00 60 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 0B 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 0B 00 62 83 00 89 F5 42 1D 71 4D 60 A2 90 00 FE [23:19:52]RAPDU: 89 F5 42 1D 71 4D 60 A2 90 00 [23:19:52]wFMCommunicate OK [23:19:52]SAM_PROTO_SignData done [23:19:52]FM_MakeSignedData done [23:19:52]CreateOFDProtocolMessage [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 11 00 00 [23:19:52]Write to MH i2c: E2 08 00 63 83 80 11 00 00 00 00 00 00 60 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]OFD Sender: No OFD packet to send [23:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 17 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 17 00 63 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [23:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:19:52]wFMCommunicate OK [23:19:52]CreateOFDProtocolMessage done [23:19:52]OFDSenderStorePacket 189368 [23:19:52]StoreOFDPacket docnum=189368 [23:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 16 13 0D 01 A9 43 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 1C D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E3 02 00 35 04 06 00 F2 BB 16 71 34 59 89 F5 42 1D 71 4D 60 A2 [23:19:52]CheckFolder [23:19:52]dirname=/storage/ofd_packets [23:19:52]CheckFolder done [23:19:52]ProducePacketName [23:19:52]name=ofd_packets/00189368 [23:19:52]NVStorageSaveData ofd_packets/00189368 [23:19:52]File name is /storage/ofd_packets/00189368 [23:19:52]Write 307 bytes [23:19:52]NVStorageSaveData done [23:19:52]OFDSenderStorePacket done [23:19:52]KKMCreateOFDPacket done [23:19:52]NVStorageSaveData kkm_last_timestamp [23:19:52]File name is /storage/kkm_last_timestamp [23:19:52]Write 4 bytes [23:19:52]NVStorageSaveData done [23:19:52]ExternCall_PrintAddStr [23:19:52]wPrintStart [23:19:52]Write to MH i2c: 01 00 00 64 83 E7 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 64 83 00 00 00 00 00 FF 0F FC [23:19:52]RasterBufferAndPrint [23:19:52]line Счет N : (1)211433 [23:19:52]line ИНН: 02508201610067 [23:19:52]line Контрольно-Кассовый Чек [23:19:52]line ПРОДАЖА [23:19:52]line ТРК (МРК, ГНК) : 41 [23:19:52]line Товар: 2710194210 [23:19:52]line D-ENERGY ДТ-К-5 [23:19:52]line 32.390 * 77.20 [23:19:52]line = 2500.51 [23:19:52]line НДС 12% НСП 1% [23:19:52]line > о реализуемом товаре [23:19:52]line ИТОГО: 2500.51 [23:19:52]line НСП 1% : 22.13 [23:19:52]line НДС 12% : 265.54 [23:19:52]line Наличными: 0.00 [23:19:52]line Безнал.: 2500.51 [23:19:52]line Место: АЗС № 86 "Партнер Нефть" [23:19:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:19:52]line СНО: Общий режим [23:19:52]line Чек 441 24.10.2024 23:19 [23:19:52]line Смена: 463 ФФД: 1.0 [23:19:52]line ЗНМ: 0300000155 [23:19:52]line РНМ: 0000000000100030 [23:19:52]line Версия ККМ: 001 [23:19:52]line Платежная система: Бакай Банк [23:19:52]line ФМ: 0000000000965340 [23:19:52]line ФД: 189368 [23:19:52]line ФПД: 266885349323865 [23:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189368&fm=266885349323865&tin=02508201610067®Number=0000000000100030&sum=250051 [23:19:52]written 0, free lines is 4095 [23:19:52]OFD Sender: Processing packet 189368 [packets to send 1062, broken 1061] [23:19:52]ProducePacketName [23:19:52]name=ofd_packets/00189368 [23:19:52]OFD Sender: To server: pG, [23:19:52]CommunicateWithHost lk.salyk.kg:30040 [23:19:52]ConnectInit lk.salyk.kg [23:19:53]Write to MH i2c: 01 00 00 8E 83 11 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 07 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 07 00 8E 83 00 00 00 00 00 70 0C 94 [23:19:53]RasterBufferAndPrint [23:19:53]line [23:19:53]line [23:19:53]line [23:19:53]line [23:19:53]line [23:19:53]written 0, free lines is 3187 [23:19:53]MH_Cut [23:19:53]Write to MH i2c: D1 01 00 95 83 01 EA [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: D1 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: D1 01 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: D1 01 00 95 83 00 E9 [23:19:53]Write to MH i2c: 01 00 00 96 83 19 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:54]*** Cut start [23:19:54]*** Partial cut [23:19:54]*** CUTSNS_PIN = 1 [23:19:54]*** CUTSNS_PIN = 0 [23:19:54]*** Brake cut motor [23:19:55]Read from MH i2c: 01 [23:19:55]MH_I2C_Read... [23:19:55]*** Stop cut motor [23:19:55]*** Cut end [23:19:55]Read from MH i2c: 01 07 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: 01 07 00 96 83 00 00 00 00 00 FF 0F 2E [23:19:55]process_action close_receipt done [23:19:55]requested_data is exist [23:19:55]produce_requested_data [23:19:55]requested_item fm.sn is exist - process it [23:19:55]wFMCommunicate request_size=4 [23:19:55]MH_SAM_APDU [23:19:55]CAPDU: 80 11 00 00 [23:19:55]Write to MH i2c: E2 08 00 97 83 80 11 00 00 00 00 00 00 94 [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:55]Read from MH i2c: E2 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 17 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 17 00 97 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [23:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:19:55]wFMCommunicate OK [23:19:55]requested_item fd.num is exist - process it [23:19:55]SAM_PROTO_GetFieldsCounters [23:19:55]wFMCommunicate request_size=4 [23:19:55]MH_SAM_APDU [23:19:55]CAPDU: 80 13 00 00 [23:19:55]Write to MH i2c: E2 08 00 98 83 80 13 00 00 00 00 00 00 97 [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:55]Read from MH i2c: E2 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 62 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 62 00 98 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E3 02 00 0E 04 04 00 CF 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 39 [23:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 E3 02 00 0E 04 04 00 CF 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 [23:19:55]wFMCommunicate OK [23:19:55]SAM_PROTO_GetFieldsCounters done [23:19:55]requested_item shift.num is exist - process it [23:19:55]requested_item shift.opened is exist - process it [23:19:55]req_shift_opened [23:19:55]FM_GetShiftState [23:19:55]SAM_PROTO_GetShiftState [23:19:55]wFMCommunicate request_size=4 [23:19:55]MH_SAM_APDU [23:19:55]CAPDU: 80 13 01 00 [23:19:55]Write to MH i2c: E2 08 00 99 83 80 13 01 00 00 00 00 00 99 [23:19:55]Write i2c OK [23:19:55]MH_I2C_Read... [23:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:55]Read from MH i2c: E2 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 0E 00 [23:19:55]MH_I2C_Read... [23:19:55]Read from MH i2c: E2 0E 00 99 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 77 [23:19:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:19:55]wFMCommunicate OK [23:19:55]SAM_PROTO_GetShiftState done [23:19:55]FM_GetShiftState done [23:19:55]req_shift_opened done [23:19:55]requested_item shift.open_date is exist - process it [23:19:55]req_shift_open_date [23:19:55]req_shift_open_date done [23:19:55]produce_requested_data done [23:19:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189368,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:19:55]process_action_free close_receipt [23:19:55]json_value_free [23:19:55]json_value_free done [23:19:55]process_json_proto returns [23:19:55]Send response to host [23:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189368,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:19:55]free response buf [23:19:55]execute_script done [23:19:55]execute_script returns [23:19:55]free content buf [23:19:55]Sock 8.Close socket [23:19:55]Sock 8.Thread stoped [23:21:03]accept exits with 9 [23:21:03]New connection [23:21:03]New thread 3067215204 created [23:21:03]Thread 3067071844 joined [23:21:03]Waiting for new connection... [23:21:03] Sock 9.Parse request [23:21:03]Sock 9.Check first char [23:21:03]Sock 9.First char is OK [23:21:03]request: POST /json_proto HTTP/1.0 [23:21:03]Method: POST [23:21:03]URL: /json_proto [23:21:03]Method is POST - this is cgi request [23:21:03]url: /json_proto [23:21:03]query_string will be loaded in cgi processing [23:21:03]execute_cgi json_proto POST (null) [23:21:03]execute_cgi path=json_proto method=POST [23:21:03]POST find Content-Length [23:21:03]Host: 172.17.42.131:8080 [23:21:03]Content-Length: 677 [23:21:03]Content-Type: application/json [23:21:03] [23:21:03]POST finish read [23:21:03]Found Content-Length = 677 [23:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:21:03]execute_script... [23:21: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)211434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:21:03]POST & json_proto [23:21:03]process_json_proto [23:21:03]json parsed OK: [23:21:03]protocol is kg_v1.0 [23:21:03]action value=close_receipt [23:21:03]process_action close_receipt [23:21:03]cmd_close_receipt [23:21:03]MH_GetDate [23:21:03]Write to MH i2c: F0 00 00 9A 83 0C [23:21:03]Write i2c OK [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 09 00 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: F0 09 00 9A 83 00 64 D6 1A 67 A0 18 CA 66 B8 [23:21:03]GetLastDocTimeStamp 1729811996 [23:21:03]current date 1729812068 [23:21:03]FM_GetShiftState [23:21:03]SAM_PROTO_GetShiftState [23:21:03]wFMCommunicate request_size=4 [23:21:03]MH_SAM_APDU [23:21:03]CAPDU: 80 13 01 00 [23:21:03]Write to MH i2c: E2 08 00 9B 83 80 13 01 00 00 00 00 00 9B [23:21:03]Write i2c OK [23:21:03]MH_I2C_Read... [23:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:03]Read from MH i2c: E2 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: E2 0E 00 [23:21:03]MH_I2C_Read... [23:21:03]Read from MH i2c: E2 0E 00 9B 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 79 [23:21:03]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:21:03]wFMCommunicate OK [23:21:03]SAM_PROTO_GetShiftState done [23:21:03]FM_GetShiftState done [23:21:03]opened in 1729728961 [23:21:03]opened+sec_in_day 1729815361 [23:21:03]quantity*price = 60009 [23:21:03]sum+1 = 60010 [23:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 442 24.10.2024 23:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189369 ФПД: 186091759901942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189369&fm=186091759901942&tin=02508201610067®Number=0000000000100030&sum=60000 [23:21:04]StoreToDocumentArchive [23:21:04]shift 463 fd 189369 [23:21:04]save to /storage/0463/doc_00189369 [23:21:04]save last doc name /storage/0463/doc_00189369 to /storage/kkm_last_doc_name [23:21:04]save OK [23:21:04]Clear old archive folders... [23:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:04]tlvbuf is 01531650 [23:21:04]SAM_PROTO_ClearQueue [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 09 00 00 [23:21:04]Write to MH i2c: E2 08 00 A8 83 80 09 00 00 00 00 00 00 9D [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 A8 83 00 90 00 9F [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]SAM_PROTO_ClearQueue done [23:21:04]KKMCreateOFDPacket [23:21:04]OFDProtocolAddRootSTLVToBuf [23:21:04]FM_MakeSignedData [23:21:04]FM_MakeSignedData [23:21:04]SAM_PROTO_SignData [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 0D 01 02 [23:21:04]Write to MH i2c: E2 08 00 A9 83 80 0D 01 02 00 00 00 00 A5 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 A9 83 00 90 00 A0 [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]wFMCommunicate request_size=255 [23:21:04]MH_SAM_APDU [23:21: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 BA 01 00 00 F4 03 04 00 64 D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E3 02 00 35 04 06 00 A9 [23:21:04]Write to MH i2c: E2 02 01 AA 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 BA 01 00 00 F4 03 04 00 64 D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E3 02 00 35 04 06 00 A9 00 00 82 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 AA 83 00 90 00 A1 [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]wFMCommunicate request_size=10 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 0D 02 02 05 3F DD 3E 9C F6 [23:21:04]Write to MH i2c: E2 0D 00 AB 83 80 0D 02 02 05 00 3F DD 3E 9C F6 00 00 9E [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 03 00 AB 83 00 90 00 A2 [23:21:04]RAPDU: 90 00 [23:21:04]wFMCommunicate OK [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 0D 03 02 [23:21:04]Write to MH i2c: E2 08 00 AC 83 80 0D 03 02 00 00 00 00 AA [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 0B 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 0B 00 AC 83 00 61 83 FA 84 B6 50 F8 E0 90 00 EB [23:21:04]RAPDU: 61 83 FA 84 B6 50 F8 E0 90 00 [23:21:04]wFMCommunicate OK [23:21:04]SAM_PROTO_SignData done [23:21:04]FM_MakeSignedData done [23:21:04]CreateOFDProtocolMessage [23:21:04]wFMCommunicate request_size=4 [23:21:04]MH_SAM_APDU [23:21:04]CAPDU: 80 11 00 00 [23:21:04]Write to MH i2c: E2 08 00 AD 83 80 11 00 00 00 00 00 00 AA [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:04]Read from MH i2c: E2 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 17 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: E2 17 00 AD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [23:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:21:04]wFMCommunicate OK [23:21:04]CreateOFDProtocolMessage done [23:21:04]OFDSenderStorePacket 189369 [23:21:04]StoreOFDPacket docnum=189369 [23:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 86 07 01 7F 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 BA 01 00 00 F4 03 04 00 64 D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E3 02 00 35 04 06 00 A9 3F DD 3E 9C F6 61 83 FA 84 B6 50 F8 E0 [23:21:04]CheckFolder [23:21:04]dirname=/storage/ofd_packets [23:21:04]CheckFolder done [23:21:04]ProducePacketName [23:21:04]name=ofd_packets/00189369 [23:21:04]NVStorageSaveData ofd_packets/00189369 [23:21:04]File name is /storage/ofd_packets/00189369 [23:21:04]Write 301 bytes [23:21:04]NVStorageSaveData done [23:21:04]OFDSenderStorePacket done [23:21:04]KKMCreateOFDPacket done [23:21:04]NVStorageSaveData kkm_last_timestamp [23:21:04]File name is /storage/kkm_last_timestamp [23:21:04]Write 4 bytes [23:21:04]NVStorageSaveData done [23:21:04]ExternCall_PrintAddStr [23:21:04]wPrintStart [23:21:04]Write to MH i2c: 01 00 00 AE 83 31 [23:21:04]Write i2c OK [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: 01 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: 01 07 00 [23:21:04]MH_I2C_Read... [23:21:04]Read from MH i2c: 01 07 00 AE 83 00 00 00 00 00 FF 0F 46 [23:21:04]RasterBufferAndPrint [23:21:04]line Счет N : (1)211434 [23:21:04]line ИНН: 02508201610067 [23:21:04]line Контрольно-Кассовый Чек [23:21:04]line ПРОДАЖА [23:21:04]line ТРК (МРК, ГНК) : 12 [23:21:04]line Товар: 2710124130 [23:21:04]line Аи-92-К-3 [23:21:04]line 8.970 * 66.90 [23:21:04]line = 600.09 [23:21:04]line НДС 12% НСП 1% [23:21:04]line > о реализуемом товаре [23:21:04]line ОКРУГЛЕНИЕ: -0.09 [23:21:04]line ИТОГО: 600.00 [23:21:04]line Внесено: 600.00 [23:21:04]line СДАЧА: 0.00 [23:21:04]line НСП 1% : 5.31 [23:21:04]line НДС 12% : 63.73 [23:21:04]line Наличными: 600.00 [23:21:04]line Безнал.: 0.00 [23:21:04]line Место: АЗС № 86 "Партнер Нефть" [23:21:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:21:04]line СНО: Общий режим [23:21:04]line Чек 442 24.10.2024 23:21 [23:21:04]line Смена: 463 ФФД: 1.0 [23:21:04]line ЗНМ: 0300000155 [23:21:04]line РНМ: 0000000000100030 [23:21:04]line Версия ККМ: 001 [23:21:04]line ФМ: 0000000000965340 [23:21:04]line ФД: 189369 [23:21:04]line ФПД: 186091759901942 [23:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189369&fm=186091759901942&tin=02508201610067®Number=0000000000100030&sum=60000 [23:21:04]written 0, free lines is 4095 [23:21:05]Write to MH i2c: 01 00 00 D9 83 5C [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 07 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: 01 07 00 D9 83 00 00 00 00 00 50 0C BF [23:21:05]RasterBufferAndPrint [23:21:05]line [23:21:05]line [23:21:05]line [23:21:05]line [23:21:05]line [23:21:05]written 0, free lines is 3155 [23:21:05]MH_Cut [23:21:05]Write to MH i2c: D1 01 00 E0 83 01 35 [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: D1 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: D1 01 00 [23:21:05]MH_I2C_Read... [23:21:05]Read from MH i2c: D1 01 00 E0 83 00 34 [23:21:05]Write to MH i2c: 01 00 00 E1 83 64 [23:21:05]Write i2c OK [23:21:05]MH_I2C_Read... [23:21:06]*** Cut start [23:21:06]*** Partial cut [23:21:06]*** CUTSNS_PIN = 1 [23:21:06]*** CUTSNS_PIN = 0 [23:21:06]*** Brake cut motor [23:21:07]Read from MH i2c: 01 [23:21:07]MH_I2C_Read... [23:21:07]*** Stop cut motor [23:21:07]*** Cut end [23:21:07]Read from MH i2c: 01 07 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: 01 07 00 E1 83 00 00 00 00 00 FF 0F 79 [23:21:07]process_action close_receipt done [23:21:07]requested_data is exist [23:21:07]produce_requested_data [23:21:07]requested_item fm.sn is exist - process it [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 11 00 00 [23:21:07]Write to MH i2c: E2 08 00 E2 83 80 11 00 00 00 00 00 00 DF [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 17 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 17 00 E2 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [23:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:21:07]wFMCommunicate OK [23:21:07]requested_item fd.num is exist - process it [23:21:07]SAM_PROTO_GetFieldsCounters [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 13 00 00 [23:21:07]Write to MH i2c: E2 08 00 E3 83 80 13 00 00 00 00 00 00 E2 [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 62 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 62 00 E3 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E3 02 00 0E 04 04 00 CF 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 88 [23:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 E3 02 00 0E 04 04 00 CF 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 [23:21:07]wFMCommunicate OK [23:21:07]SAM_PROTO_GetFieldsCounters done [23:21:07]requested_item shift.num is exist - process it [23:21:07]requested_item shift.opened is exist - process it [23:21:07]req_shift_opened [23:21:07]FM_GetShiftState [23:21:07]SAM_PROTO_GetShiftState [23:21:07]wFMCommunicate request_size=4 [23:21:07]MH_SAM_APDU [23:21:07]CAPDU: 80 13 01 00 [23:21:07]Write to MH i2c: E2 08 00 E4 83 80 13 01 00 00 00 00 00 E4 [23:21:07]Write i2c OK [23:21:07]MH_I2C_Read... [23:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:07]Read from MH i2c: E2 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 0E 00 [23:21:07]MH_I2C_Read... [23:21:07]Read from MH i2c: E2 0E 00 E4 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C2 [23:21:07]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:21:07]wFMCommunicate OK [23:21:07]SAM_PROTO_GetShiftState done [23:21:07]FM_GetShiftState done [23:21:07]req_shift_opened done [23:21:07]requested_item shift.open_date is exist - process it [23:21:07]req_shift_open_date [23:21:07]req_shift_open_date done [23:21:07]produce_requested_data done [23:21:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189369,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:21:07]process_action_free close_receipt [23:21:07]json_value_free [23:21:07]json_value_free done [23:21:07]process_json_proto returns [23:21:07]Send response to host [23:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189369,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:21:07]free response buf [23:21:07]execute_script done [23:21:07]execute_script returns [23:21:07]free content buf [23:21:07]Sock 9.Close socket [23:21:07]Sock 9.Thread stoped [23:22:06]ConnectInit Can't connect to host [23:22:06]CommunicateWithHost connect error [23:22:06]CommunicateWithHost err = -1 [23:22:06]OFD Sender: Server communicate error [23:22:07]OFD Sender: Processing packet 189368 [packets to send 1063, broken 1061] [23:22:07]ProducePacketName [23:22:07]name=ofd_packets/00189368 [23:22:07]OFD Sender: To server: pG, [23:22:07]CommunicateWithHost lk.salyk.kg:30040 [23:22:07]ConnectInit lk.salyk.kg [23:22:07]Connected sock=9 [23:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 16 13 0D 01 A9 43 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 1C D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 E3 02 00 35 04 06 00 F2 BB 16 71 34 59 89 F5 42 1D 71 4D 60 A2 [23:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 71 47 00 B3 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 39 36 35 33 34 30 10 04 04 00 B8 E3 02 00 F4 03 04 00 8A 80 1A 67 B6 04 01 00 00 2E 13 A5 C1 55 6A 74 6E [23:22:07]CommunicateWithHost err = 0 [23:22:07]CheckOFDResponse [23:22:07]1017 (14) - 77093643461234 [23:22:07]1041 (16) - 0000000000965340 [23:22:07]1040 (4) - 189368 [23:22:07]1012 (4) - 24.10.2024 17:14 [23:22:07]1206 (1) - 0 [23:22:07]OFD Sender: Remove packet 189368 [23:22:07]ProducePacketName [23:22:07]name=ofd_packets/00189368 [23:22:07]NVStorageDeleteData [23:22:08]OFD Sender: Processing packet 189369 [packets to send 1062, broken 1061] [23:22:08]ProducePacketName [23:22:08]name=ofd_packets/00189369 [23:22:08]OFD Sender: To server: pG, [23:22:08]CommunicateWithHost lk.salyk.kg:30040 [23:22:08]ConnectInit lk.salyk.kg [23:22:09]Connected sock=9 [23:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 86 07 01 7F 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 BA 01 00 00 F4 03 04 00 64 D6 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 E3 02 00 35 04 06 00 A9 3F DD 3E 9C F6 61 83 FA 84 B6 50 F8 E0 [23:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 83 95 47 00 DD 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 39 36 35 33 34 30 10 04 04 00 B9 E3 02 00 F4 03 04 00 8B 80 1A 67 B6 04 01 00 00 5A FB 31 81 40 3E 37 45 [23:22:09]CommunicateWithHost err = 0 [23:22:09]CheckOFDResponse [23:22:09]1017 (14) - 77093643461234 [23:22:09]1041 (16) - 0000000000965340 [23:22:09]1040 (4) - 189369 [23:22:09]1012 (4) - 24.10.2024 17:14 [23:22:09]1206 (1) - 0 [23:22:09]OFD Sender: Remove packet 189369 [23:22:09]ProducePacketName [23:22:09]name=ofd_packets/00189369 [23:22:09]NVStorageDeleteData [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:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:05]accept exits with 8 [23:27:05]New connection [23:27:05]New thread 3067071844 created [23:27:05]Thread 3067215204 joined [23:27:05]Waiting for new connection... [23:27:05] Sock 8.Parse request [23:27:05]Sock 8.Check first char [23:27:05]Sock 8.First char is OK [23:27:05]request: POST /json_proto HTTP/1.0 [23:27:05]Method: POST [23:27:05]URL: /json_proto [23:27:05]Method is POST - this is cgi request [23:27:05]url: /json_proto [23:27:05]query_string will be loaded in cgi processing [23:27:05]execute_cgi json_proto POST (null) [23:27:05]execute_cgi path=json_proto method=POST [23:27:05]POST find Content-Length [23:27:05]Host: 172.17.42.131:8080 [23:27:05]Content-Length: 769 [23:27:05]Content-Type: application/json [23:27:05] [23:27:05]POST finish read [23:27:05]Found Content-Length = 769 [23:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.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: Mbank", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:05]execute_script... [23: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)211435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.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: Mbank", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:05]POST & json_proto [23:27:05]process_json_proto [23:27:05]json parsed OK: [23:27:05]protocol is kg_v1.0 [23:27:05]action value=close_receipt [23:27:05]process_action close_receipt [23:27:05]cmd_close_receipt [23:27:05]MH_GetDate [23:27:05]Write to MH i2c: F0 00 00 E5 83 57 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 09 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 09 00 E5 83 00 CF D7 1A 67 A0 18 CA 66 6F [23:27:05]GetLastDocTimeStamp 1729812068 [23:27:05]current date 1729812431 [23:27:05]FM_GetShiftState [23:27:05]SAM_PROTO_GetShiftState [23:27:05]wFMCommunicate request_size=4 [23:27:05]MH_SAM_APDU [23:27:05]CAPDU: 80 13 01 00 [23:27:05]Write to MH i2c: E2 08 00 E6 83 80 13 01 00 00 00 00 00 E6 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:05]Read from MH i2c: E2 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 0E 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 0E 00 E6 83 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 C4 [23:27:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:27:05]wFMCommunicate OK [23:27:05]SAM_PROTO_GetShiftState done [23:27:05]FM_GetShiftState done [23:27:05]opened in 1729728961 [23:27:05]opened+sec_in_day 1729815361 [23:27:05]quantity*price = 110050 [23:27:05]sum+1 = 110052 [23:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.51 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 0.00 Безнал.: 1100.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 443 24.10.2024 23:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189370 ФПД: 83922970266762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189370&fm=83922970266762&tin=02508201610067®Number=0000000000100030&sum=110051 [23:27:06]StoreToDocumentArchive [23:27:06]shift 463 fd 189370 [23:27:06]save to /storage/0463/doc_00189370 [23:27:06]save last doc name /storage/0463/doc_00189370 to /storage/kkm_last_doc_name [23:27:06]save OK [23:27:06]Clear old archive folders... [23:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:06]tlvbuf is 015178F0 [23:27:06]SAM_PROTO_ClearQueue [23:27:06]wFMCommunicate request_size=4 [23:27:06]MH_SAM_APDU [23:27:06]CAPDU: 80 09 00 00 [23:27:06]Write to MH i2c: E2 08 00 F3 83 80 09 00 00 00 00 00 00 E8 [23:27:06]Write i2c OK [23:27:06]MH_I2C_Read... [23:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 F3 83 00 90 00 EA [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_ClearQueue done [23:27:07]KKMCreateOFDPacket [23:27:07]OFDProtocolAddRootSTLVToBuf [23:27:07]FM_MakeSignedData [23:27:07]FM_MakeSignedData [23:27:07]SAM_PROTO_SignData [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 01 02 [23:27:07]Write to MH i2c: E2 08 00 F4 83 80 0D 01 02 00 00 00 00 F0 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 F4 83 00 90 00 EB [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=255 [23:27:07]MH_SAM_APDU [23:27: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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 CF D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E3 02 00 35 04 06 00 4C [23:27:07]Write to MH i2c: E2 02 01 F5 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 CF D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E3 02 00 35 04 06 00 4C 00 00 92 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 F5 83 00 90 00 EC [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=10 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 02 02 05 53 D6 D4 CC 8A [23:27:07]Write to MH i2c: E2 0D 00 F6 83 80 0D 02 02 05 00 53 D6 D4 CC 8A 00 00 50 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 F6 83 00 90 00 ED [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 03 02 [23:27:07]Write to MH i2c: E2 08 00 F7 83 80 0D 03 02 00 00 00 00 F5 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0B 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0B 00 F7 83 00 84 43 2B 81 EC DB 86 49 90 00 FF [23:27:07]RAPDU: 84 43 2B 81 EC DB 86 49 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_SignData done [23:27:07]FM_MakeSignedData done [23:27:07]CreateOFDProtocolMessage [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 F8 83 80 11 00 00 00 00 00 00 F5 [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 F8 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [23:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:27:07]wFMCommunicate OK [23:27:07]CreateOFDProtocolMessage done [23:27:07]OFDSenderStorePacket 189370 [23:27:07]StoreOFDPacket docnum=189370 [23:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 82 07 01 E0 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 CF D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E3 02 00 35 04 06 00 4C 53 D6 D4 CC 8A 84 43 2B 81 EC DB 86 49 [23:27:07]CheckFolder [23:27:07]dirname=/storage/ofd_packets [23:27:07]CheckFolder done [23:27:07]ProducePacketName [23:27:07]name=ofd_packets/00189370 [23:27:07]NVStorageSaveData ofd_packets/00189370 [23:27:07]File name is /storage/ofd_packets/00189370 [23:27:07]Write 301 bytes [23:27:07]NVStorageSaveData done [23:27:07]OFDSenderStorePacket done [23:27:07]KKMCreateOFDPacket done [23:27:07]NVStorageSaveData kkm_last_timestamp [23:27:07]File name is /storage/kkm_last_timestamp [23:27:07]Write 4 bytes [23:27:07]NVStorageSaveData done [23:27:07]ExternCall_PrintAddStr [23:27:07]wPrintStart [23:27:07]Write to MH i2c: 01 00 00 F9 83 7C [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [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 F9 83 00 00 00 00 00 FF 0F 91 [23:27:07]RasterBufferAndPrint [23:27:07]line Счет N : (1)211435 [23:27:07]line ИНН: 02508201610067 [23:27:07]line Контрольно-Кассовый Чек [23:27:07]line ПРОДАЖА [23:27:07]line ТРК (МРК, ГНК) : 42 [23:27:07]line Товар: 2710124130 [23:27:07]line Аи-92-К-3 [23:27:07]line 16.450 * 66.90 [23:27:07]line = 1100.51 [23:27:07]line НДС 12% НСП 1% [23:27:07]line > о реализуемом товаре [23:27:07]line ИТОГО: 1100.51 [23:27:07]line НСП 1% : 9.74 [23:27:07]line НДС 12% : 116.87 [23:27:07]line Наличными: 0.00 [23:27:07]line Безнал.: 1100.51 [23:27:07]line Место: АЗС № 86 "Партнер Нефть" [23:27:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:27:07]line СНО: Общий режим [23:27:07]line Чек 443 24.10.2024 23:27 [23:27:07]line Смена: 463 ФФД: 1.0 [23:27:07]line ЗНМ: 0300000155 [23:27:07]line РНМ: 0000000000100030 [23:27:07]line Версия ККМ: 001 [23:27:07]line Платежная система: Mbank [23:27:07]line ФМ: 0000000000965340 [23:27:07]line ФД: 189370 [23:27:07]line ФПД: 83922970266762 [23:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232711&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189370&fm=83922970266762&tin=02508201610067®Number=0000000000100030&sum=110051 [23:27:07]written 0, free lines is 4095 [23:27:07]OFD Sender: Processing packet 189370 [packets to send 1062, broken 1061] [23:27:07]ProducePacketName [23:27:07]name=ofd_packets/00189370 [23:27:07]OFD Sender: To server: pG, [23:27:07]CommunicateWithHost lk.salyk.kg:30040 [23:27:07]ConnectInit lk.salyk.kg [23:27:07]Connected sock=11 [23:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 82 07 01 E0 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 33 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 CF D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E3 02 00 35 04 06 00 4C 53 D6 D4 CC 8A 84 43 2B 81 EC DB 86 49 [23:27:07]Write to MH i2c: 01 00 00 22 84 A6 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [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 22 84 00 00 00 00 00 79 0C 32 [23:27:07]RasterBufferAndPrint [23:27:07]line [23:27:07]line [23:27:07]line [23:27:07]line [23:27:07]line [23:27:07]written 0, free lines is 3197 [23:27:07]MH_Cut [23:27:07]Write to MH i2c: D1 01 00 29 84 01 7F [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D1 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D1 01 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D1 01 00 29 84 00 7E [23:27:07]Write to MH i2c: 01 00 00 2A 84 AE [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 1E 47 00 93 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA E3 02 00 F4 03 04 00 B6 81 1A 67 B6 04 01 00 00 4A 18 72 80 91 20 FA E9 [23:27:08]CommunicateWithHost err = 0 [23:27:08]CheckOFDResponse [23:27:08]1017 (14) - 77093643461234 [23:27:08]1041 (16) - 0000000000965340 [23:27:08]1040 (4) - 189370 [23:27:08]1012 (4) - 24.10.2024 17:19 [23:27:08]1206 (1) - 0 [23:27:08]OFD Sender: Remove packet 189370 [23:27:08]ProducePacketName [23:27:08]name=ofd_packets/00189370 [23:27:08]NVStorageDeleteData [23:27:08]OFD Sender: No OFD packet to send [23:27:09]*** Cut start [23:27:09]*** Partial cut [23:27:09]*** CUTSNS_PIN = 1 [23:27:09]*** CUTSNS_PIN = 0 [23:27:09]*** Brake cut motor [23:27:09]Read from MH i2c: 01 [23:27:09]MH_I2C_Read... [23:27:09]*** Stop cut motor [23:27:09]*** Cut end [23:27:09]Read from MH i2c: 01 07 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 2A 84 00 00 00 00 00 FF 0F C3 [23:27:09]process_action close_receipt done [23:27:09]requested_data is exist [23:27:09]produce_requested_data [23:27:09]requested_item fm.sn is exist - process it [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 11 00 00 [23:27:09]Write to MH i2c: E2 08 00 2B 84 80 11 00 00 00 00 00 00 29 [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 2B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [23:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:27:09]wFMCommunicate OK [23:27:09]requested_item fd.num is exist - process it [23:27:09]SAM_PROTO_GetFieldsCounters [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 13 00 00 [23:27:09]Write to MH i2c: E2 08 00 2C 84 80 13 00 00 00 00 00 00 2C [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:10]Read from MH i2c: E2 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 62 00 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 62 00 2C 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E3 02 00 0E 04 04 00 CF 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 D6 [23:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA E3 02 00 0E 04 04 00 CF 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 [23:27:10]wFMCommunicate OK [23:27:10]SAM_PROTO_GetFieldsCounters done [23:27:10]requested_item shift.num is exist - process it [23:27:10]requested_item shift.opened is exist - process it [23:27:10]req_shift_opened [23:27:10]FM_GetShiftState [23:27:10]SAM_PROTO_GetShiftState [23:27:10]wFMCommunicate request_size=4 [23:27:10]MH_SAM_APDU [23:27:10]CAPDU: 80 13 01 00 [23:27:10]Write to MH i2c: E2 08 00 2D 84 80 13 01 00 00 00 00 00 2E [23:27:10]Write i2c OK [23:27:10]MH_I2C_Read... [23:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:10]Read from MH i2c: E2 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 0E 00 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 0E 00 2D 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0C [23:27:10]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:27:10]wFMCommunicate OK [23:27:10]SAM_PROTO_GetShiftState done [23:27:10]FM_GetShiftState done [23:27:10]req_shift_opened done [23:27:10]requested_item shift.open_date is exist - process it [23:27:10]req_shift_open_date [23:27:10]req_shift_open_date done [23:27:10]produce_requested_data done [23:27:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189370,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:27:10]process_action_free close_receipt [23:27:10]json_value_free [23:27:10]json_value_free done [23:27:10]process_json_proto returns [23:27:10]Send response to host [23:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189370,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:27:10]free response buf [23:27:10]execute_script done [23:27:10]execute_script returns [23:27:10]free content buf [23:27:10]Sock 8.Close socket [23:27:10]Sock 8.Thread stoped [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:47]accept exits with 9 [23:27:47]New connection [23:27:47]New thread 3067215204 created [23:27:47]Thread 3067071844 joined [23:27:47]Waiting for new connection... [23:27:47] Sock 9.Parse request [23:27:47]Sock 9.Check first char [23:27:47]Sock 9.First char is OK [23:27:47]request: POST /json_proto HTTP/1.0 [23:27:47]Method: POST [23:27:47]URL: /json_proto [23:27:47]Method is POST - this is cgi request [23:27:47]url: /json_proto [23:27:47]query_string will be loaded in cgi processing [23:27:47]execute_cgi json_proto POST (null) [23:27:47]execute_cgi path=json_proto method=POST [23:27:47]POST find Content-Length [23:27:47]Host: 172.17.42.131:8080 [23:27:47]Content-Length: 688 [23:27:47]Content-Type: application/json [23:27:47] [23:27:47]POST finish read [23:27:47]Found Content-Length = 688 [23:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:27:47]execute_script... [23:27: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)211436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:27:47]POST & json_proto [23:27:47]process_json_proto [23:27:47]json parsed OK: [23:27:47]protocol is kg_v1.0 [23:27:47]action value=close_receipt [23:27:47]process_action close_receipt [23:27:47]cmd_close_receipt [23:27:47]MH_GetDate [23:27:47]Write to MH i2c: F0 00 00 2E 84 A1 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 09 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 09 00 2E 84 00 F9 D7 1A 67 A0 18 CA 66 E3 [23:27:47]GetLastDocTimeStamp 1729812431 [23:27:47]current date 1729812473 [23:27:47]FM_GetShiftState [23:27:47]SAM_PROTO_GetShiftState [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 13 01 00 [23:27:47]Write to MH i2c: E2 08 00 2F 84 80 13 01 00 00 00 00 00 30 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0E 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0E 00 2F 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 0E [23:27:47]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_GetShiftState done [23:27:47]FM_GetShiftState done [23:27:47]opened in 1729728961 [23:27:47]opened+sec_in_day 1729815361 [23:27:47]quantity*price = 100051 [23:27:47]sum+1 = 100052 [23:27: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 444 24.10.2024 23:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189371 ФПД: 89553552486523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189371&fm=89553552486523&tin=02508201610067®Number=0000000000100030&sum=100000 [23:27:48]StoreToDocumentArchive [23:27:48]shift 463 fd 189371 [23:27:48]save to /storage/0463/doc_00189371 [23:27:48]save last doc name /storage/0463/doc_00189371 to /storage/kkm_last_doc_name [23:27:48]save OK [23:27:48]Clear old archive folders... [23:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:27:48]tlvbuf is 016B7870 [23:27:48]SAM_PROTO_ClearQueue [23:27:48]wFMCommunicate request_size=4 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 09 00 00 [23:27:48]Write to MH i2c: E2 08 00 3C 84 80 09 00 00 00 00 00 00 32 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 3C 84 00 90 00 34 [23:27:48]RAPDU: 90 00 [23:27:48]wFMCommunicate OK [23:27:48]SAM_PROTO_ClearQueue done [23:27:48]KKMCreateOFDPacket [23:27:48]OFDProtocolAddRootSTLVToBuf [23:27:48]FM_MakeSignedData [23:27:48]FM_MakeSignedData [23:27:48]SAM_PROTO_SignData [23:27:48]wFMCommunicate request_size=4 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 0D 01 02 [23:27:48]Write to MH i2c: E2 08 00 3D 84 80 0D 01 02 00 00 00 00 3A [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 3D 84 00 90 00 35 [23:27:48]RAPDU: 90 00 [23:27:48]wFMCommunicate OK [23:27:48]wFMCommunicate request_size=255 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BC 01 00 00 F4 03 04 00 F9 D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E3 02 [23:27:48]Write to MH i2c: E2 02 01 3E 84 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BC 01 00 00 F4 03 04 00 F9 D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E3 02 00 00 15 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:49]OFD Sender: No OFD packet to send [23:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 3E 84 00 90 00 36 [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]wFMCommunicate request_size=16 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 51 72 CF AF 30 7B [23:27:49]Write to MH i2c: E2 13 00 3F 84 80 0D 02 02 0B 00 00 35 04 06 00 51 72 CF AF 30 7B 00 00 7E [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 3F 84 00 90 00 37 [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 03 02 [23:27:49]Write to MH i2c: E2 08 00 40 84 80 0D 03 02 00 00 00 00 3F [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0B 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0B 00 40 84 00 A3 3B 62 45 3D 15 96 F8 90 00 A5 [23:27:49]RAPDU: A3 3B 62 45 3D 15 96 F8 90 00 [23:27:49]wFMCommunicate OK [23:27:49]SAM_PROTO_SignData done [23:27:49]FM_MakeSignedData done [23:27:49]CreateOFDProtocolMessage [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 11 00 00 [23:27:49]Write to MH i2c: E2 08 00 41 84 80 11 00 00 00 00 00 00 3F [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 17 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 17 00 41 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [23:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:27:49]wFMCommunicate OK [23:27:49]CreateOFDProtocolMessage done [23:27:49]OFDSenderStorePacket 189371 [23:27:49]StoreOFDPacket docnum=189371 [23:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 62 F1 0D 01 33 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BC 01 00 00 F4 03 04 00 F9 D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E3 02 00 35 04 06 00 51 72 CF AF 30 7B A3 3B 62 45 3D 15 96 F8 [23:27:49]CheckFolder [23:27:49]dirname=/storage/ofd_packets [23:27:49]CheckFolder done [23:27:49]ProducePacketName [23:27:49]name=ofd_packets/00189371 [23:27:49]NVStorageSaveData ofd_packets/00189371 [23:27:49]File name is /storage/ofd_packets/00189371 [23:27:49]Write 307 bytes [23:27:49]NVStorageSaveData done [23:27:49]OFDSenderStorePacket done [23:27:49]KKMCreateOFDPacket done [23:27:49]NVStorageSaveData kkm_last_timestamp [23:27:49]File name is /storage/kkm_last_timestamp [23:27:49]Write 4 bytes [23:27:49]NVStorageSaveData done [23:27:49]ExternCall_PrintAddStr [23:27:49]wPrintStart [23:27:49]Write to MH i2c: 01 00 00 42 84 C6 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 42 84 00 00 00 00 00 FF 0F DB [23:27:49]RasterBufferAndPrint [23:27:49]line Счет N : (1)211436 [23:27:49]line ИНН: 02508201610067 [23:27:49]line Контрольно-Кассовый Чек [23:27:49]line ПРОДАЖА [23:27:49]line ТРК (МРК, ГНК) : 31 [23:27:49]line Товар: 2710194210 [23:27:49]line D-ENERGY ДТ-К-5 [23:27:49]line 12.960 * 77.20 [23:27:49]line = 1000.51 [23:27:49]line НДС 12% НСП 1% [23:27:49]line > о реализуемом товаре [23:27:49]line ОКРУГЛЕНИЕ: -0.51 [23:27:49]line ИТОГО: 1000.00 [23:27:49]line Внесено: 1000.00 [23:27:49]line СДАЧА: 0.00 [23:27:49]line НСП 1% : 8.85 [23:27:49]line НДС 12% : 106.25 [23:27:49]line Наличными: 1000.00 [23:27:49]line Безнал.: 0.00 [23:27:49]line Место: АЗС № 86 "Партнер Нефть" [23:27:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:27:49]line СНО: Общий режим [23:27:49]line Чек 444 24.10.2024 23:27 [23:27:49]line Смена: 463 ФФД: 1.0 [23:27:49]line ЗНМ: 0300000155 [23:27:49]line РНМ: 0000000000100030 [23:27:49]line Версия ККМ: 001 [23:27:49]line ФМ: 0000000000965340 [23:27:49]line ФД: 189371 [23:27:49]line ФПД: 89553552486523 [23:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189371&fm=89553552486523&tin=02508201610067®Number=0000000000100030&sum=100000 [23:27:49]written 0, free lines is 4095 [23:27:49]OFD Sender: Processing packet 189371 [packets to send 1062, broken 1061] [23:27:49]ProducePacketName [23:27:49]name=ofd_packets/00189371 [23:27:49]OFD Sender: To server: pG, [23:27:49]CommunicateWithHost lk.salyk.kg:30040 [23:27:49]ConnectInit lk.salyk.kg [23:27:49]Write to MH i2c: 01 00 00 6D 84 F1 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 6D 84 00 00 00 00 00 4B 0C 4F [23:27:49]RasterBufferAndPrint [23:27:49]line [23:27:49]line [23:27:49]line [23:27:49]line [23:27:49]line [23:27:49]Connected sock=10 [23:27:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 62 F1 0D 01 33 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 BC 01 00 00 F4 03 04 00 F9 D7 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB E3 02 00 35 04 06 00 51 72 CF AF 30 7B A3 3B 62 45 3D 15 96 F8 [23:27:49]written 0, free lines is 3165 [23:27:49]MH_Cut [23:27:49]Write to MH i2c: D1 01 00 74 84 01 CA [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: D1 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: D1 01 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: D1 01 00 74 84 00 C9 [23:27:49]Write to MH i2c: 01 00 00 75 84 F9 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E3 42 47 00 6C 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 39 36 35 33 34 30 10 04 04 00 BB E3 02 00 F4 03 04 00 E0 81 1A 67 B6 04 01 00 00 A0 B0 F7 9C A3 6F 5B EE [23:27:50]CommunicateWithHost err = 0 [23:27:50]CheckOFDResponse [23:27:50]1017 (14) - 77093643461234 [23:27:50]1041 (16) - 0000000000965340 [23:27:50]1040 (4) - 189371 [23:27:50]1012 (4) - 24.10.2024 17:20 [23:27:50]1206 (1) - 0 [23:27:50]OFD Sender: Remove packet 189371 [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00189371 [23:27:50]NVStorageDeleteData [23:27:50]OFD Sender: No OFD packet to send [23:27:51]*** Cut start [23:27:51]*** Partial cut [23:27:51]*** CUTSNS_PIN = 1 [23:27:51]*** CUTSNS_PIN = 0 [23:27:51]*** Brake cut motor [23:27:51]Read from MH i2c: 01 [23:27:51]MH_I2C_Read... [23:27:51]*** Stop cut motor [23:27:51]*** Cut end [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 75 84 00 00 00 00 00 FF 0F 0E [23:27:51]process_action close_receipt done [23:27:51]requested_data is exist [23:27:51]produce_requested_data [23:27:51]requested_item fm.sn is exist - process it [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 11 00 00 [23:27:51]Write to MH i2c: E2 08 00 76 84 80 11 00 00 00 00 00 00 74 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 76 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [23:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:27:51]wFMCommunicate OK [23:27:51]requested_item fd.num is exist - process it [23:27:51]SAM_PROTO_GetFieldsCounters [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 00 00 [23:27:51]Write to MH i2c: E2 08 00 77 84 80 13 00 00 00 00 00 00 77 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 77 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E3 02 00 0E 04 04 00 CF 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 25 [23:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB E3 02 00 0E 04 04 00 CF 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 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetFieldsCounters done [23:27:51]requested_item shift.num is exist - process it [23:27:51]requested_item shift.opened is exist - process it [23:27:51]req_shift_opened [23:27:51]FM_GetShiftState [23:27:51]SAM_PROTO_GetShiftState [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 01 00 [23:27:51]Write to MH i2c: E2 08 00 78 84 80 13 01 00 00 00 00 00 79 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 78 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 57 [23:27:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetShiftState done [23:27:51]FM_GetShiftState done [23:27:51]req_shift_opened done [23:27:51]requested_item shift.open_date is exist - process it [23:27:51]req_shift_open_date [23:27:51]req_shift_open_date done [23:27:51]produce_requested_data done [23:27:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189371,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:27:51]process_action_free close_receipt [23:27:51]json_value_free [23:27:51]json_value_free done [23:27:51]process_json_proto returns [23:27:51]Send response to host [23:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189371,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:27:51]free response buf [23:27:51]execute_script done [23:27:51]execute_script returns [23:27:51]free content buf [23:27:51]Sock 9.Close socket [23:27:51]Sock 9.Thread stoped [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]accept exits with 8 [23:32:51]New connection [23:32:51]New thread 3067071844 created [23:32:51]Thread 3067215204 joined [23:32:51]Waiting for new connection... [23:32:51] Sock 8.Parse request [23:32:51]Sock 8.Check first char [23:32:51]Sock 8.First char is OK [23:32:51]request: POST /json_proto HTTP/1.0 [23:32:51]Method: POST [23:32:51]URL: /json_proto [23:32:51]Method is POST - this is cgi request [23:32:51]url: /json_proto [23:32:51]query_string will be loaded in cgi processing [23:32:51]execute_cgi json_proto POST (null) [23:32:51]execute_cgi path=json_proto method=POST [23:32:51]POST find Content-Length [23:32:51]Host: 172.17.42.131:8080 [23:32:51]Content-Length: 677 [23:32:51]Content-Type: application/json [23:32:51] [23:32:51]POST finish read [23:32:51]Found Content-Length = 677 [23:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:32:51]execute_script... [23:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:32:51]POST & json_proto [23:32:51]process_json_proto [23:32:51]json parsed OK: [23:32:51]protocol is kg_v1.0 [23:32:51]action value=close_receipt [23:32:51]process_action close_receipt [23:32:51]cmd_close_receipt [23:32:51]MH_GetDate [23:32:51]Write to MH i2c: F0 00 00 79 84 EC [23:32:51]Write i2c OK [23:32:51]MH_I2C_Read... [23:32:51]Read from MH i2c: F0 [23:32:51]MH_I2C_Read... [23:32:51]Read from MH i2c: F0 09 00 [23:32:51]MH_I2C_Read... [23:32:51]Read from MH i2c: F0 09 00 79 84 00 28 D9 1A 67 A0 18 CA 66 5F [23:32:51]GetLastDocTimeStamp 1729812473 [23:32:51]current date 1729812776 [23:32:51]FM_GetShiftState [23:32:51]SAM_PROTO_GetShiftState [23:32:51]wFMCommunicate request_size=4 [23:32:51]MH_SAM_APDU [23:32:51]CAPDU: 80 13 01 00 [23:32:51]Write to MH i2c: E2 08 00 7A 84 80 13 01 00 00 00 00 00 7B [23:32:51]Write i2c OK [23:32:51]MH_I2C_Read... [23:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:51]Read from MH i2c: E2 [23:32:51]MH_I2C_Read... [23:32:51]Read from MH i2c: E2 0E 00 [23:32:51]MH_I2C_Read... [23:32:51]Read from MH i2c: E2 0E 00 7A 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 59 [23:32:51]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:32:51]wFMCommunicate OK [23:32:51]SAM_PROTO_GetShiftState done [23:32:51]FM_GetShiftState done [23:32:51]opened in 1729728961 [23:32:51]opened+sec_in_day 1729815361 [23:32:51]quantity*price = 50041 [23:32:51]sum+1 = 50042 [23:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 445 24.10.2024 23:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189372 ФПД: 136659186842072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189372&fm=136659186842072&tin=02508201610067®Number=0000000000100030&sum=50000 [23:32:52]StoreToDocumentArchive [23:32:52]shift 463 fd 189372 [23:32:52]save to /storage/0463/doc_00189372 [23:32:52]save last doc name /storage/0463/doc_00189372 to /storage/kkm_last_doc_name [23:32:52]save OK [23:32:52]Clear old archive folders... [23:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:52]tlvbuf is 01700910 [23:32:52]SAM_PROTO_ClearQueue [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 09 00 00 [23:32:52]Write to MH i2c: E2 08 00 87 84 80 09 00 00 00 00 00 00 7D [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 87 84 00 90 00 7F [23:32:52]RAPDU: 90 00 [23:32:52]wFMCommunicate OK [23:32:52]SAM_PROTO_ClearQueue done [23:32:52]KKMCreateOFDPacket [23:32:52]OFDProtocolAddRootSTLVToBuf [23:32:52]FM_MakeSignedData [23:32:52]FM_MakeSignedData [23:32:52]SAM_PROTO_SignData [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 0D 01 02 [23:32:52]Write to MH i2c: E2 08 00 88 84 80 0D 01 02 00 00 00 00 85 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 88 84 00 90 00 80 [23:32:52]RAPDU: 90 00 [23:32:52]wFMCommunicate OK [23:32:52]wFMCommunicate request_size=255 [23:32:52]MH_SAM_APDU [23:32: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E3 02 00 35 04 06 00 7C [23:32:52]Write to MH i2c: E2 02 01 89 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E3 02 00 35 04 06 00 7C 00 00 25 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 89 84 00 90 00 81 [23:32:52]RAPDU: 90 00 [23:32:52]wFMCommunicate OK [23:32:52]wFMCommunicate request_size=10 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 0D 02 02 05 4A 72 49 79 D8 [23:32:52]Write to MH i2c: E2 0D 00 8A 84 80 0D 02 02 05 00 4A 72 49 79 D8 00 00 E8 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 03 00 8A 84 00 90 00 82 [23:32:52]RAPDU: 90 00 [23:32:52]wFMCommunicate OK [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 0D 03 02 [23:32:52]Write to MH i2c: E2 08 00 8B 84 80 0D 03 02 00 00 00 00 8A [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 0B 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 0B 00 8B 84 00 F7 87 6A 0D 0E DF 29 5A 90 00 F0 [23:32:52]RAPDU: F7 87 6A 0D 0E DF 29 5A 90 00 [23:32:52]wFMCommunicate OK [23:32:52]SAM_PROTO_SignData done [23:32:52]FM_MakeSignedData done [23:32:52]CreateOFDProtocolMessage [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 11 00 00 [23:32:52]Write to MH i2c: E2 08 00 8C 84 80 11 00 00 00 00 00 00 8A [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 17 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 17 00 8C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [23:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:32:52]wFMCommunicate OK [23:32:52]CreateOFDProtocolMessage done [23:32:52]OFDSenderStorePacket 189372 [23:32:52]StoreOFDPacket docnum=189372 [23:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 E1 07 01 04 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E3 02 00 35 04 06 00 7C 4A 72 49 79 D8 F7 87 6A 0D 0E DF 29 5A [23:32:52]CheckFolder [23:32:52]dirname=/storage/ofd_packets [23:32:52]CheckFolder done [23:32:52]ProducePacketName [23:32:52]name=ofd_packets/00189372 [23:32:52]NVStorageSaveData ofd_packets/00189372 [23:32:52]File name is /storage/ofd_packets/00189372 [23:32:52]Write 301 bytes [23:32:52]NVStorageSaveData done [23:32:52]OFDSenderStorePacket done [23:32:52]KKMCreateOFDPacket done [23:32:52]NVStorageSaveData kkm_last_timestamp [23:32:52]File name is /storage/kkm_last_timestamp [23:32:52]Write 4 bytes [23:32:52]NVStorageSaveData done [23:32:52]ExternCall_PrintAddStr [23:32:52]wPrintStart [23:32:52]Write to MH i2c: 01 00 00 8D 84 11 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 07 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 07 00 8D 84 00 00 00 00 00 FF 0F 26 [23:32:52]RasterBufferAndPrint [23:32:52]line Счет N : (1)211437 [23:32:52]line ИНН: 02508201610067 [23:32:52]line Контрольно-Кассовый Чек [23:32:52]line ПРОДАЖА [23:32:52]line ТРК (МРК, ГНК) : 42 [23:32:52]line Товар: 2710124130 [23:32:52]line Аи-92-К-3 [23:32:52]line 7.480 * 66.90 [23:32:52]line = 500.41 [23:32:52]line НДС 12% НСП 1% [23:32:52]line > о реализуемом товаре [23:32:52]line ОКРУГЛЕНИЕ: -0.41 [23:32:52]line ИТОГО: 500.00 [23:32:52]line Внесено: 500.00 [23:32:52]line СДАЧА: 0.00 [23:32:52]line НСП 1% : 4.43 [23:32:52]line НДС 12% : 53.14 [23:32:52]line Наличными: 500.00 [23:32:52]line Безнал.: 0.00 [23:32:52]line Место: АЗС № 86 "Партнер Нефть" [23:32:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:32:52]line СНО: Общий режим [23:32:52]line Чек 445 24.10.2024 23:32 [23:32:52]line Смена: 463 ФФД: 1.0 [23:32:52]line ЗНМ: 0300000155 [23:32:52]line РНМ: 0000000000100030 [23:32:52]line Версия ККМ: 001 [23:32:52]line ФМ: 0000000000965340 [23:32:52]line ФД: 189372 [23:32:52]line ФПД: 136659186842072 [23:32:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189372&fm=136659186842072&tin=02508201610067®Number=0000000000100030&sum=50000 [23:32:52]written 0, free lines is 4095 [23:32:53]OFD Sender: Processing packet 189372 [packets to send 1062, broken 1061] [23:32:53]ProducePacketName [23:32:53]name=ofd_packets/00189372 [23:32:53]OFD Sender: To server: pG, [23:32:53]CommunicateWithHost lk.salyk.kg:30040 [23:32:53]ConnectInit lk.salyk.kg [23:32:53]Connected sock=10 [23:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 E1 07 01 04 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 28 D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC E3 02 00 35 04 06 00 7C 4A 72 49 79 D8 F7 87 6A 0D 0E DF 29 5A [23:32:53]Write to MH i2c: 01 00 00 B8 84 3C [23:32:53]Write i2c OK [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: 01 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: 01 07 00 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: 01 07 00 B8 84 00 00 00 00 00 4C 0C 9B [23:32:53]RasterBufferAndPrint [23:32:53]line [23:32:53]line [23:32:53]line [23:32:53]line [23:32:53]line [23:32:53]written 0, free lines is 3152 [23:32:53]MH_Cut [23:32:53]Write to MH i2c: D1 01 00 BF 84 01 15 [23:32:53]Write i2c OK [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: D1 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: D1 01 00 [23:32:53]MH_I2C_Read... [23:32:53]Read from MH i2c: D1 01 00 BF 84 00 14 [23:32:53]Write to MH i2c: 01 00 00 C0 84 44 [23:32:53]Write i2c OK [23:32:53]MH_I2C_Read... [23:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 8B 47 00 A2 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 39 36 35 33 34 30 10 04 04 00 BC E3 02 00 F4 03 04 00 0F 83 1A 67 B6 04 01 00 00 64 67 F0 3D 86 B5 EF C3 [23:32:53]CommunicateWithHost err = 0 [23:32:53]CheckOFDResponse [23:32:53]1017 (14) - 77093643461234 [23:32:53]1041 (16) - 0000000000965340 [23:32:53]1040 (4) - 189372 [23:32:53]1012 (4) - 24.10.2024 17:25 [23:32:53]1206 (1) - 0 [23:32:53]OFD Sender: Remove packet 189372 [23:32:53]ProducePacketName [23:32:53]name=ofd_packets/00189372 [23:32:53]NVStorageDeleteData [23:32:54]OFD Sender: No OFD packet to send [23:32:54]*** Cut start [23:32:54]*** Partial cut [23:32:54]*** CUTSNS_PIN = 1 [23:32:54]*** CUTSNS_PIN = 0 [23:32:54]*** Brake cut motor [23:32:55]Read from MH i2c: 01 [23:32:55]MH_I2C_Read... [23:32:55]*** Stop cut motor [23:32:55]*** Cut end [23:32:55]Read from MH i2c: 01 07 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: 01 07 00 C0 84 00 00 00 00 00 FF 0F 59 [23:32:55]process_action close_receipt done [23:32:55]requested_data is exist [23:32:55]produce_requested_data [23:32:55]requested_item fm.sn is exist - process it [23:32:55]wFMCommunicate request_size=4 [23:32:55]MH_SAM_APDU [23:32:55]CAPDU: 80 11 00 00 [23:32:55]Write to MH i2c: E2 08 00 C1 84 80 11 00 00 00 00 00 00 BF [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:55]Read from MH i2c: E2 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 17 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 17 00 C1 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [23:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:32:55]wFMCommunicate OK [23:32:55]requested_item fd.num is exist - process it [23:32:55]SAM_PROTO_GetFieldsCounters [23:32:55]wFMCommunicate request_size=4 [23:32:55]MH_SAM_APDU [23:32:55]CAPDU: 80 13 00 00 [23:32:55]Write to MH i2c: E2 08 00 C2 84 80 13 00 00 00 00 00 00 C2 [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:55]Read from MH i2c: E2 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 62 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 62 00 C2 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E3 02 00 0E 04 04 00 CF 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 74 [23:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC E3 02 00 0E 04 04 00 CF 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 [23:32:55]wFMCommunicate OK [23:32:55]SAM_PROTO_GetFieldsCounters done [23:32:55]requested_item shift.num is exist - process it [23:32:55]requested_item shift.opened is exist - process it [23:32:55]req_shift_opened [23:32:55]FM_GetShiftState [23:32:55]SAM_PROTO_GetShiftState [23:32:55]wFMCommunicate request_size=4 [23:32:55]MH_SAM_APDU [23:32:55]CAPDU: 80 13 01 00 [23:32:55]Write to MH i2c: E2 08 00 C3 84 80 13 01 00 00 00 00 00 C4 [23:32:55]Write i2c OK [23:32:55]MH_I2C_Read... [23:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:55]Read from MH i2c: E2 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 0E 00 [23:32:55]MH_I2C_Read... [23:32:55]Read from MH i2c: E2 0E 00 C3 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A2 [23:32:55]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:32:55]wFMCommunicate OK [23:32:55]SAM_PROTO_GetShiftState done [23:32:55]FM_GetShiftState done [23:32:55]req_shift_opened done [23:32:55]requested_item shift.open_date is exist - process it [23:32:55]req_shift_open_date [23:32:55]req_shift_open_date done [23:32:55]produce_requested_data done [23:32:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189372,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:32:55]process_action_free close_receipt [23:32:55]json_value_free [23:32:55]json_value_free done [23:32:55]process_json_proto returns [23:32:55]Send response to host [23:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189372,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:32:55]free response buf [23:32:55]execute_script done [23:32:55]execute_script returns [23:32:55]free content buf [23:32:55]Sock 8.Close socket [23:32:55]Sock 8.Thread stoped [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:05]accept exits with 9 [23:36:05]New connection [23:36:05]New thread 3067215204 created [23:36:05]Thread 3067071844 joined [23:36:05]Waiting for new connection... [23:36:05] Sock 9.Parse request [23:36:05]Sock 9.Check first char [23:36:05]Sock 9.First char is OK [23:36:05]request: POST /json_proto HTTP/1.0 [23:36:05]Method: POST [23:36:05]URL: /json_proto [23:36:05]Method is POST - this is cgi request [23:36:05]url: /json_proto [23:36:05]query_string will be loaded in cgi processing [23:36:05]execute_cgi json_proto POST (null) [23:36:05]execute_cgi path=json_proto method=POST [23:36:05]POST find Content-Length [23:36:05]Host: 172.17.42.131:8080 [23:36:05]Content-Length: 819 [23:36:05]Content-Type: application/json [23:36:05] [23:36:05]POST finish read [23:36:05]Found Content-Length = 819 [23:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]execute_script... [23:36: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)211438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]POST & json_proto [23:36:05]process_json_proto [23:36:05]json parsed OK: [23:36:05]protocol is kg_v1.0 [23:36:05]action value=close_receipt [23:36:05]process_action close_receipt [23:36:05]cmd_close_receipt [23:36:05]MH_GetDate [23:36:05]Write to MH i2c: F0 00 00 C4 84 37 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 C4 84 00 EB D9 1A 67 A0 18 CA 66 6D [23:36:05]GetLastDocTimeStamp 1729812776 [23:36:05]current date 1729812971 [23:36:05]FM_GetShiftState [23:36:05]SAM_PROTO_GetShiftState [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 13 01 00 [23:36:05]Write to MH i2c: E2 08 00 C5 84 80 13 01 00 00 00 00 00 C6 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 C5 84 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 A4 [23:36:05]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:36:05]wFMCommunicate OK [23:36:05]SAM_PROTO_GetShiftState done [23:36:05]FM_GetShiftState done [23:36:05]opened in 1729728961 [23:36:05]opened+sec_in_day 1729815361 [23:36:05]quantity*price = 200043 [23:36:05]sum+1 = 200044 [23:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 446 24.10.2024 23:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189373 ФПД: 172388381685404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189373&fm=172388381685404&tin=02508201610067®Number=0000000000100030&sum=200043 [23:36:06]StoreToDocumentArchive [23:36:06]shift 463 fd 189373 [23:36:06]save to /storage/0463/doc_00189373 [23:36:06]save last doc name /storage/0463/doc_00189373 to /storage/kkm_last_doc_name [23:36:06]save OK [23:36:06]Clear old archive folders... [23:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:36:06]tlvbuf is 0174D040 [23:36:06]SAM_PROTO_ClearQueue [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 09 00 00 [23:36:06]Write to MH i2c: E2 08 00 D2 84 80 09 00 00 00 00 00 00 C8 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 D2 84 00 90 00 CA [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_ClearQueue done [23:36:06]KKMCreateOFDPacket [23:36:06]OFDProtocolAddRootSTLVToBuf [23:36:06]FM_MakeSignedData [23:36:06]FM_MakeSignedData [23:36:06]SAM_PROTO_SignData [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 0D 01 02 [23:36:06]Write to MH i2c: E2 08 00 D3 84 80 0D 01 02 00 00 00 00 D0 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 D3 84 00 90 00 CB [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]wFMCommunicate request_size=255 [23:36:06]MH_SAM_APDU [23:36: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 33 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 BE 01 00 00 F4 03 04 00 EB D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E3 02 00 35 04 06 00 9C [23:36:06]Write to MH i2c: E2 02 01 D4 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 33 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 BE 01 00 00 F4 03 04 00 EB D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E3 02 00 35 04 06 00 9C 00 00 53 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 D4 84 00 90 00 CC [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=10 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 02 02 05 C9 4C 40 F6 9C [23:36:07]Write to MH i2c: E2 0D 00 D5 84 80 0D 02 02 05 00 C9 4C 40 F6 9C 00 00 C4 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 D5 84 00 90 00 CD [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 03 02 [23:36:07]Write to MH i2c: E2 08 00 D6 84 80 0D 03 02 00 00 00 00 D5 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 0B 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 0B 00 D6 84 00 B6 AE 77 2E CA 06 A1 4C 90 00 9C [23:36:07]RAPDU: B6 AE 77 2E CA 06 A1 4C 90 00 [23:36:07]wFMCommunicate OK [23:36:07]SAM_PROTO_SignData done [23:36:07]FM_MakeSignedData done [23:36:07]CreateOFDProtocolMessage [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 11 00 00 [23:36:07]Write to MH i2c: E2 08 00 D7 84 80 11 00 00 00 00 00 00 D5 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 17 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 17 00 D7 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [23:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:36:07]wFMCommunicate OK [23:36:07]CreateOFDProtocolMessage done [23:36:07]OFDSenderStorePacket 189373 [23:36:07]StoreOFDPacket docnum=189373 [23:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 27 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 BE 01 00 00 F4 03 04 00 EB D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E3 02 00 35 04 06 00 9C C9 4C 40 F6 9C B6 AE 77 2E CA 06 A1 4C [23:36:07]CheckFolder [23:36:07]dirname=/storage/ofd_packets [23:36:07]CheckFolder done [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00189373 [23:36:07]NVStorageSaveData ofd_packets/00189373 [23:36:07]File name is /storage/ofd_packets/00189373 [23:36:07]Write 301 bytes [23:36:07]NVStorageSaveData done [23:36:07]OFDSenderStorePacket done [23:36:07]KKMCreateOFDPacket done [23:36:07]NVStorageSaveData kkm_last_timestamp [23:36:07]File name is /storage/kkm_last_timestamp [23:36:07]Write 4 bytes [23:36:07]NVStorageSaveData done [23:36:07]ExternCall_PrintAddStr [23:36:07]wPrintStart [23:36:07]Write to MH i2c: 01 00 00 D8 84 5C [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 D8 84 00 00 00 00 00 FF 0F 71 [23:36:07]RasterBufferAndPrint [23:36:07]line Счет N : (1)211438 [23:36:07]line ИНН: 02508201610067 [23:36:07]line Контрольно-Кассовый Чек [23:36:07]line ПРОДАЖА [23:36:07]line ТРК (МРК, ГНК) : 23 [23:36:07]line Товар: 2710124500 [23:36:07]line Аи-95-К-3 [23:36:07]line 26.960 * 74.20 [23:36:07]line = 2000.43 [23:36:07]line НДС 12% НСП 1% [23:36:07]line > о реализуемом товаре [23:36:07]line ИТОГО: 2000.43 [23:36:07]line НСП 1% : 17.70 [23:36:07]line НДС 12% : 212.43 [23:36:07]line Наличными: 0.00 [23:36:07]line Безнал.: 2000.43 [23:36:07]line Место: АЗС № 86 "Партнер Нефть" [23:36:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:36:07]line СНО: Общий режим [23:36:07]line Чек 446 24.10.2024 23:36 [23:36:07]line Смена: 463 ФФД: 1.0 [23:36:07]line ЗНМ: 0300000155 [23:36:07]line РНМ: 0000000000100030 [23:36:07]line Версия ККМ: 001 [23:36:07]line Платежная система: Бакай Банк [23:36:07]line ФМ: 0000000000965340 [23:36:07]line ФД: 189373 [23:36:07]line ФПД: 172388381685404 [23:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189373&fm=172388381685404&tin=02508201610067®Number=0000000000100030&sum=200043 [23:36:07]written 0, free lines is 4095 [23:36:07]OFD Sender: Processing packet 189373 [packets to send 1062, broken 1061] [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00189373 [23:36:07]OFD Sender: To server: pG, [23:36:07]CommunicateWithHost lk.salyk.kg:30040 [23:36:07]ConnectInit lk.salyk.kg [23:36:07]Connected sock=10 [23:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 27 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 BE 01 00 00 F4 03 04 00 EB D9 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E3 02 00 35 04 06 00 9C C9 4C 40 F6 9C B6 AE 77 2E CA 06 A1 4C [23:36:07]Write to MH i2c: 01 00 00 02 85 87 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 02 85 00 00 00 00 00 6D 0C 07 [23:36:07]RasterBufferAndPrint [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]written 0, free lines is 3185 [23:36:07]MH_Cut [23:36:07]Write to MH i2c: D1 01 00 09 85 01 60 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 01 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 01 00 09 85 00 5F [23:36:07]Write to MH i2c: 01 00 00 0A 85 8F [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 3D 47 00 F5 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD E3 02 00 F4 03 04 00 D2 83 1A 67 B6 04 01 00 00 93 1A 99 8D 73 66 0A 4E [23:36:08]CommunicateWithHost err = 0 [23:36:08]CheckOFDResponse [23:36:08]1017 (14) - 77093643461234 [23:36:08]1041 (16) - 0000000000965340 [23:36:08]1040 (4) - 189373 [23:36:08]1012 (4) - 24.10.2024 17:28 [23:36:08]1206 (1) - 0 [23:36:08]OFD Sender: Remove packet 189373 [23:36:08]ProducePacketName [23:36:08]name=ofd_packets/00189373 [23:36:08]NVStorageDeleteData [23:36:08]OFD Sender: No OFD packet to send [23:36:09]*** Cut start [23:36:09]*** Partial cut [23:36:09]*** CUTSNS_PIN = 1 [23:36:09]*** CUTSNS_PIN = 0 [23:36:09]*** Brake cut motor [23:36:09]Read from MH i2c: 01 [23:36:09]MH_I2C_Read... [23:36:09]*** Stop cut motor [23:36:09]*** Cut end [23:36:09]Read from MH i2c: 01 07 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 07 00 0A 85 00 00 00 00 00 FF 0F A4 [23:36:09]process_action close_receipt done [23:36:09]requested_data is exist [23:36:09]produce_requested_data [23:36:09]requested_item fm.sn is exist - process it [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 11 00 00 [23:36:09]Write to MH i2c: E2 08 00 0B 85 80 11 00 00 00 00 00 00 0A [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 0B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [23:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:36:09]wFMCommunicate OK [23:36:09]requested_item fd.num is exist - process it [23:36:09]SAM_PROTO_GetFieldsCounters [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 00 00 [23:36:09]Write to MH i2c: E2 08 00 0C 85 80 13 00 00 00 00 00 00 0D [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 0C 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E3 02 00 0E 04 04 00 CF 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 C3 [23:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD E3 02 00 0E 04 04 00 CF 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 [23:36:09]wFMCommunicate OK [23:36:09]SAM_PROTO_GetFieldsCounters done [23:36:09]requested_item shift.num is exist - process it [23:36:09]requested_item shift.opened is exist - process it [23:36:09]req_shift_opened [23:36:09]FM_GetShiftState [23:36:09]SAM_PROTO_GetShiftState [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 01 00 [23:36:09]Write to MH i2c: E2 08 00 0D 85 80 13 01 00 00 00 00 00 0F [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:10]Read from MH i2c: E2 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 0E 00 [23:36:10]MH_I2C_Read... [23:36:10]Read from MH i2c: E2 0E 00 0D 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 ED [23:36:10]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:36:10]wFMCommunicate OK [23:36:10]SAM_PROTO_GetShiftState done [23:36:10]FM_GetShiftState done [23:36:10]req_shift_opened done [23:36:10]requested_item shift.open_date is exist - process it [23:36:10]req_shift_open_date [23:36:10]req_shift_open_date done [23:36:10]produce_requested_data done [23:36:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189373,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:36:10]process_action_free close_receipt [23:36:10]json_value_free [23:36:10]json_value_free done [23:36:10]process_json_proto returns [23:36:10]Send response to host [23:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189373,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:36:10]free response buf [23:36:10]execute_script done [23:36:10]execute_script returns [23:36:10]free content buf [23:36:10]Sock 9.Close socket [23:36:10]Sock 9.Thread stoped [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:38]accept exits with 8 [23:46:38]New connection [23:46:38]New thread 3067071844 created [23:46:38]Thread 3067215204 joined [23:46:38]Waiting for new connection... [23:46:38] Sock 8.Parse request [23:46:38]Sock 8.Check first char [23:46:38]Sock 8.First char is OK [23:46:38]request: POST /json_proto HTTP/1.0 [23:46:38]Method: POST [23:46:38]URL: /json_proto [23:46:38]Method is POST - this is cgi request [23:46:38]url: /json_proto [23:46:38]query_string will be loaded in cgi processing [23:46:38]execute_cgi json_proto POST (null) [23:46:38]execute_cgi path=json_proto method=POST [23:46:38]POST find Content-Length [23:46:38]Host: 172.17.42.131:8080 [23:46:38]Content-Length: 677 [23:46:38]Content-Type: application/json [23:46:38] [23:46:38]POST finish read [23:46:38]Found Content-Length = 677 [23:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:46:38]execute_script... [23: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)211439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:46:38]POST & json_proto [23:46:38]process_json_proto [23:46:38]json parsed OK: [23:46:38]protocol is kg_v1.0 [23:46:38]action value=close_receipt [23:46:38]process_action close_receipt [23:46:38]cmd_close_receipt [23:46:38]MH_GetDate [23:46:38]Write to MH i2c: F0 00 00 0E 85 82 [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: F0 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: F0 09 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: F0 09 00 0E 85 00 63 DC 1A 67 A0 18 CA 66 33 [23:46:38]GetLastDocTimeStamp 1729812971 [23:46:38]current date 1729813603 [23:46:38]FM_GetShiftState [23:46:38]SAM_PROTO_GetShiftState [23:46:38]wFMCommunicate request_size=4 [23:46:38]MH_SAM_APDU [23:46:38]CAPDU: 80 13 01 00 [23:46:38]Write to MH i2c: E2 08 00 0F 85 80 13 01 00 00 00 00 00 11 [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:38]Read from MH i2c: E2 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 0E 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 0E 00 0F 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 EF [23:46:38]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [23:46:38]wFMCommunicate OK [23:46:38]SAM_PROTO_GetShiftState done [23:46:38]FM_GetShiftState done [23:46:38]opened in 1729728961 [23:46:38]opened+sec_in_day 1729815361 [23:46:38]quantity*price = 50041 [23:46:38]sum+1 = 50042 [23:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 447 24.10.2024 23:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189374 ФПД: 194116995921313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189374&fm=194116995921313&tin=02508201610067®Number=0000000000100030&sum=50000 [23:46:39]StoreToDocumentArchive [23:46:39]shift 463 fd 189374 [23:46:39]save to /storage/0463/doc_00189374 [23:46:39]save last doc name /storage/0463/doc_00189374 to /storage/kkm_last_doc_name [23:46:39]save OK [23:46:39]Clear old archive folders... [23:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:39]tlvbuf is 017A9080 [23:46:39]SAM_PROTO_ClearQueue [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 09 00 00 [23:46:39]Write to MH i2c: E2 08 00 1C 85 80 09 00 00 00 00 00 00 13 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 1C 85 00 90 00 15 [23:46:39]RAPDU: 90 00 [23:46:39]wFMCommunicate OK [23:46:39]SAM_PROTO_ClearQueue done [23:46:39]KKMCreateOFDPacket [23:46:39]OFDProtocolAddRootSTLVToBuf [23:46:39]FM_MakeSignedData [23:46:39]FM_MakeSignedData [23:46:39]SAM_PROTO_SignData [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 0D 01 02 [23:46:39]Write to MH i2c: E2 08 00 1D 85 80 0D 01 02 00 00 00 00 1B [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 1D 85 00 90 00 16 [23:46:39]RAPDU: 90 00 [23:46:39]wFMCommunicate OK [23:46:39]wFMCommunicate request_size=255 [23:46:39]MH_SAM_APDU [23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 63 DC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E3 02 00 35 04 06 00 B0 [23:46:39]Write to MH i2c: E2 02 01 1E 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 63 DC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E3 02 00 35 04 06 00 B0 00 00 31 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 1E 85 00 90 00 17 [23:46:39]RAPDU: 90 00 [23:46:39]wFMCommunicate OK [23:46:39]wFMCommunicate request_size=10 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 0D 02 02 05 8C 62 96 35 A1 [23:46:39]Write to MH i2c: E2 0D 00 1F 85 80 0D 02 02 05 00 8C 62 96 35 A1 00 00 82 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 03 00 1F 85 00 90 00 18 [23:46:39]RAPDU: 90 00 [23:46:39]wFMCommunicate OK [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 0D 03 02 [23:46:39]Write to MH i2c: E2 08 00 20 85 80 0D 03 02 00 00 00 00 20 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0B 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0B 00 20 85 00 47 B8 20 9B 15 82 1C B5 90 00 43 [23:46:39]RAPDU: 47 B8 20 9B 15 82 1C B5 90 00 [23:46:39]wFMCommunicate OK [23:46:39]SAM_PROTO_SignData done [23:46:39]FM_MakeSignedData done [23:46:39]CreateOFDProtocolMessage [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 11 00 00 [23:46:39]Write to MH i2c: E2 08 00 21 85 80 11 00 00 00 00 00 00 20 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 17 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 17 00 21 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [23:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:46:39]wFMCommunicate OK [23:46:39]CreateOFDProtocolMessage done [23:46:39]OFDSenderStorePacket 189374 [23:46:39]StoreOFDPacket docnum=189374 [23:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F 5F 07 01 A5 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 63 DC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E3 02 00 35 04 06 00 B0 8C 62 96 35 A1 47 B8 20 9B 15 82 1C B5 [23:46:39]CheckFolder [23:46:39]dirname=/storage/ofd_packets [23:46:39]CheckFolder done [23:46:39]ProducePacketName [23:46:39]name=ofd_packets/00189374 [23:46:39]NVStorageSaveData ofd_packets/00189374 [23:46:39]File name is /storage/ofd_packets/00189374 [23:46:39]Write 301 bytes [23:46:39]NVStorageSaveData done [23:46:39]OFDSenderStorePacket done [23:46:39]KKMCreateOFDPacket done [23:46:39]NVStorageSaveData kkm_last_timestamp [23:46:39]File name is /storage/kkm_last_timestamp [23:46:39]Write 4 bytes [23:46:39]NVStorageSaveData done [23:46:39]ExternCall_PrintAddStr [23:46:39]wPrintStart [23:46:39]Write to MH i2c: 01 00 00 22 85 A7 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 07 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 07 00 22 85 00 00 00 00 00 FF 0F BC [23:46:39]RasterBufferAndPrint [23:46:39]line Счет N : (1)211439 [23:46:39]line ИНН: 02508201610067 [23:46:39]line Контрольно-Кассовый Чек [23:46:39]line ПРОДАЖА [23:46:39]line ТРК (МРК, ГНК) : 32 [23:46:39]line Товар: 2710124130 [23:46:39]line Аи-92-К-3 [23:46:39]line 7.480 * 66.90 [23:46:39]line = 500.41 [23:46:39]line НДС 12% НСП 1% [23:46:39]line > о реализуемом товаре [23:46:39]line ОКРУГЛЕНИЕ: -0.41 [23:46:39]line ИТОГО: 500.00 [23:46:39]line Внесено: 500.00 [23:46:39]line СДАЧА: 0.00 [23:46:39]line НСП 1% : 4.43 [23:46:39]line НДС 12% : 53.14 [23:46:39]line Наличными: 500.00 [23:46:39]line Безнал.: 0.00 [23:46:39]line Место: АЗС № 86 "Партнер Нефть" [23:46:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:46:39]line СНО: Общий режим [23:46:39]line Чек 447 24.10.2024 23:46 [23:46:39]line Смена: 463 ФФД: 1.0 [23:46:39]line ЗНМ: 0300000155 [23:46:39]line РНМ: 0000000000100030 [23:46:39]line Версия ККМ: 001 [23:46:39]line ФМ: 0000000000965340 [23:46:39]line ФД: 189374 [23:46:39]line ФПД: 194116995921313 [23:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189374&fm=194116995921313&tin=02508201610067®Number=0000000000100030&sum=50000 [23:46:39]written 0, free lines is 4095 [23:46:39]OFD Sender: Processing packet 189374 [packets to send 1062, broken 1061] [23:46:39]ProducePacketName [23:46:39]name=ofd_packets/00189374 [23:46:39]OFD Sender: To server: pG, [23:46:39]CommunicateWithHost lk.salyk.kg:30040 [23:46:39]ConnectInit lk.salyk.kg [23:46:40]Connected sock=10 [23:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F 5F 07 01 A5 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 63 DC 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE E3 02 00 35 04 06 00 B0 8C 62 96 35 A1 47 B8 20 9B 15 82 1C B5 [23:46:40]Write to MH i2c: 01 00 00 4D 85 D2 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 07 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 07 00 4D 85 00 00 00 00 00 4F 0C 34 [23:46:40]RasterBufferAndPrint [23:46:40]line [23:46:40]line [23:46:40]line [23:46:40]line [23:46:40]line [23:46:40]written 0, free lines is 3154 [23:46:40]MH_Cut [23:46:40]Write to MH i2c: D1 01 00 54 85 01 AB [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: D1 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: D1 01 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: D1 01 00 54 85 00 AA [23:46:40]Write to MH i2c: 01 00 00 55 85 DA [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 86 47 00 0A 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 39 36 35 33 34 30 10 04 04 00 BE E3 02 00 F4 03 04 00 4A 86 1A 67 B6 04 01 00 00 08 0D 86 F2 02 5E 54 2C [23:46:40]CommunicateWithHost err = 0 [23:46:40]CheckOFDResponse [23:46:40]1017 (14) - 77093643461234 [23:46:40]1041 (16) - 0000000000965340 [23:46:40]1040 (4) - 189374 [23:46:40]1012 (4) - 24.10.2024 17:39 [23:46:40]1206 (1) - 0 [23:46:40]OFD Sender: Remove packet 189374 [23:46:40]ProducePacketName [23:46:40]name=ofd_packets/00189374 [23:46:40]NVStorageDeleteData [23:46:41]OFD Sender: No OFD packet to send [23:46:41]*** Cut start [23:46:41]*** Partial cut [23:46:41]*** CUTSNS_PIN = 1 [23:46:41]*** CUTSNS_PIN = 0 [23:46:41]*** Brake cut motor [23:46:42]Read from MH i2c: 01 [23:46:42]MH_I2C_Read... [23:46:42]*** Stop cut motor [23:46:42]*** Cut end [23:46:42]Read from MH i2c: 01 07 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: 01 07 00 55 85 00 00 00 00 00 FF 0F EF [23:46:42]process_action close_receipt done [23:46:42]requested_data is exist [23:46:42]produce_requested_data [23:46:42]requested_item fm.sn is exist - process it [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 11 00 00 [23:46:42]Write to MH i2c: E2 08 00 56 85 80 11 00 00 00 00 00 00 55 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 17 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 17 00 56 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [23:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:46:42]wFMCommunicate OK [23:46:42]requested_item fd.num is exist - process it [23:46:42]SAM_PROTO_GetFieldsCounters [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 13 00 00 [23:46:42]Write to MH i2c: E2 08 00 57 85 80 13 00 00 00 00 00 00 58 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 62 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 62 00 57 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E3 02 00 0E 04 04 00 CF 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 12 [23:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE E3 02 00 0E 04 04 00 CF 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 [23:46:42]wFMCommunicate OK [23:46:42]SAM_PROTO_GetFieldsCounters done [23:46:42]requested_item shift.num is exist - process it [23:46:42]requested_item shift.opened is exist - process it [23:46:42]req_shift_opened [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 58 85 80 13 01 00 00 00 00 00 5A [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 58 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 38 [23:46:42]RAPDU: 09 00 01 C1 91 19 67 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]req_shift_opened done [23:46:42]requested_item shift.open_date is exist - process it [23:46:42]req_shift_open_date [23:46:42]req_shift_open_date done [23:46:42]produce_requested_data done [23:46:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189374,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [23:46:42]process_action_free close_receipt [23:46:42]json_value_free [23:46:42]json_value_free done [23:46:42]process_json_proto returns [23:46:42]Send response to host [23:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189374,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [23:46:42]free response buf [23:46:42]execute_script done [23:46:42]execute_script returns [23:46:42]free content buf [23:46:42]Sock 8.Close socket [23:46:42]Sock 8.Thread stoped [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:31]accept exits with 9 [00:04:31]New connection [00:04:31]New thread 3067215204 created [00:04:31]Thread 3067071844 joined [00:04:31]Waiting for new connection... [00:04:31] Sock 9.Parse request [00:04:31]Sock 9.Check first char [00:04:31]Sock 9.First char is OK [00:04:31]request: POST /json_proto HTTP/1.0 [00:04:31]Method: POST [00:04:31]URL: /json_proto [00:04:31]Method is POST - this is cgi request [00:04:31]url: /json_proto [00:04:31]query_string will be loaded in cgi processing [00:04:31]execute_cgi json_proto POST (null) [00:04:31]execute_cgi path=json_proto method=POST [00:04:31]POST find Content-Length [00:04:31]Host: 172.17.42.131:8080 [00:04:31]Content-Length: 677 [00:04:31]Content-Type: application/json [00:04:31] [00:04:31]POST finish read [00:04:31]Found Content-Length = 677 [00:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]execute_script... [00:04: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)211440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]POST & json_proto [00:04:31]process_json_proto [00:04:31]json parsed OK: [00:04:31]protocol is kg_v1.0 [00:04:31]action value=close_receipt [00:04:31]process_action close_receipt [00:04:31]cmd_close_receipt [00:04:31]MH_GetDate [00:04:31]Write to MH i2c: F0 00 00 59 85 CD [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 09 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: F0 09 00 59 85 00 94 E0 1A 67 A0 18 CA 66 B3 [00:04:31]GetLastDocTimeStamp 1729813603 [00:04:31]current date 1729814676 [00:04:31]FM_GetShiftState [00:04:31]SAM_PROTO_GetShiftState [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 13 01 00 [00:04:31]Write to MH i2c: E2 08 00 5A 85 80 13 01 00 00 00 00 00 5C [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 5A 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 3A [00:04:31]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetShiftState done [00:04:31]FM_GetShiftState done [00:04:31]opened in 1729728961 [00:04:31]opened+sec_in_day 1729815361 [00:04:31]quantity*price = 30038 [00:04:31]sum+1 = 30039 [00:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 448 25.10.2024 00:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189375 ФПД: 188335389111310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189375&fm=188335389111310&tin=02508201610067®Number=0000000000100030&sum=30000 [00:04:32]StoreToDocumentArchive [00:04:32]shift 463 fd 189375 [00:04:32]save to /storage/0463/doc_00189375 [00:04:32]save last doc name /storage/0463/doc_00189375 to /storage/kkm_last_doc_name [00:04:32]save OK [00:04:32]Clear old archive folders... [00:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:04:32]tlvbuf is 015EE060 [00:04:32]SAM_PROTO_ClearQueue [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 09 00 00 [00:04:32]Write to MH i2c: E2 08 00 67 85 80 09 00 00 00 00 00 00 5E [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 67 85 00 90 00 60 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]SAM_PROTO_ClearQueue done [00:04:32]KKMCreateOFDPacket [00:04:32]OFDProtocolAddRootSTLVToBuf [00:04:32]FM_MakeSignedData [00:04:32]FM_MakeSignedData [00:04:32]SAM_PROTO_SignData [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 0D 01 02 [00:04:32]Write to MH i2c: E2 08 00 68 85 80 0D 01 02 00 00 00 00 66 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 68 85 00 90 00 61 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=255 [00:04:32]MH_SAM_APDU [00:04: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 C0 01 00 00 F4 03 04 00 95 E0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E3 02 00 35 04 06 00 AB [00:04:32]Write to MH i2c: E2 02 01 69 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 C0 01 00 00 F4 03 04 00 95 E0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E3 02 00 35 04 06 00 AB 00 00 A3 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 69 85 00 90 00 62 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=10 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 0D 02 02 05 4A 3F F7 74 0E [00:04:32]Write to MH i2c: E2 0D 00 6A 85 80 0D 02 02 05 00 4A 3F F7 74 0E 00 00 75 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 6A 85 00 90 00 63 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 0D 03 02 [00:04:32]Write to MH i2c: E2 08 00 6B 85 80 0D 03 02 00 00 00 00 6B [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 0B 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 0B 00 6B 85 00 23 CA 65 7A 02 20 2D E3 90 00 6A [00:04:32]RAPDU: 23 CA 65 7A 02 20 2D E3 90 00 [00:04:32]wFMCommunicate OK [00:04:32]SAM_PROTO_SignData done [00:04:32]FM_MakeSignedData done [00:04:32]CreateOFDProtocolMessage [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 11 00 00 [00:04:32]Write to MH i2c: E2 08 00 6C 85 80 11 00 00 00 00 00 00 6B [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 17 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 17 00 6C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [00:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:04:32]wFMCommunicate OK [00:04:32]CreateOFDProtocolMessage done [00:04:32]OFDSenderStorePacket 189375 [00:04:32]StoreOFDPacket docnum=189375 [00:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 05 07 01 5B 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 C0 01 00 00 F4 03 04 00 95 E0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E3 02 00 35 04 06 00 AB 4A 3F F7 74 0E 23 CA 65 7A 02 20 2D E3 [00:04:32]CheckFolder [00:04:32]dirname=/storage/ofd_packets [00:04:32]CheckFolder done [00:04:32]ProducePacketName [00:04:32]name=ofd_packets/00189375 [00:04:32]NVStorageSaveData ofd_packets/00189375 [00:04:32]File name is /storage/ofd_packets/00189375 [00:04:32]Write 301 bytes [00:04:32]NVStorageSaveData done [00:04:32]OFDSenderStorePacket done [00:04:32]KKMCreateOFDPacket done [00:04:32]NVStorageSaveData kkm_last_timestamp [00:04:32]File name is /storage/kkm_last_timestamp [00:04:32]Write 4 bytes [00:04:32]NVStorageSaveData done [00:04:32]ExternCall_PrintAddStr [00:04:32]wPrintStart [00:04:32]Write to MH i2c: 01 00 00 6D 85 F2 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: 01 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: 01 07 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: 01 07 00 6D 85 00 00 00 00 00 FF 0F 07 [00:04:32]RasterBufferAndPrint [00:04:32]line Счет N : (1)211440 [00:04:32]line ИНН: 02508201610067 [00:04:32]line Контрольно-Кассовый Чек [00:04:32]line ПРОДАЖА [00:04:32]line ТРК (МРК, ГНК) : 32 [00:04:32]line Товар: 2710124130 [00:04:32]line Аи-92-К-3 [00:04:32]line 4.490 * 66.90 [00:04:32]line = 300.38 [00:04:32]line НДС 12% НСП 1% [00:04:32]line > о реализуемом товаре [00:04:32]line ОКРУГЛЕНИЕ: -0.38 [00:04:32]line ИТОГО: 300.00 [00:04:32]line Внесено: 300.00 [00:04:32]line СДАЧА: 0.00 [00:04:32]line НСП 1% : 2.66 [00:04:32]line НДС 12% : 31.90 [00:04:32]line Наличными: 300.00 [00:04:32]line Безнал.: 0.00 [00:04:32]line Место: АЗС № 86 "Партнер Нефть" [00:04:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:04:32]line СНО: Общий режим [00:04:32]line Чек 448 25.10.2024 00:04 [00:04:32]line Смена: 463 ФФД: 1.0 [00:04:32]line ЗНМ: 0300000155 [00:04:32]line РНМ: 0000000000100030 [00:04:32]line Версия ККМ: 001 [00:04:32]line ФМ: 0000000000965340 [00:04:32]line ФД: 189375 [00:04:32]line ФПД: 188335389111310 [00:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189375&fm=188335389111310&tin=02508201610067®Number=0000000000100030&sum=30000 [00:04:32]written 0, free lines is 4095 [00:04:33]OFD Sender: Processing packet 189375 [packets to send 1062, broken 1061] [00:04:33]ProducePacketName [00:04:33]name=ofd_packets/00189375 [00:04:33]OFD Sender: To server: pG, [00:04:33]CommunicateWithHost lk.salyk.kg:30040 [00:04:33]ConnectInit lk.salyk.kg [00:04:33]Connected sock=10 [00:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 05 07 01 5B 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 C0 01 00 00 F4 03 04 00 95 E0 1A 67 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF E3 02 00 35 04 06 00 AB 4A 3F F7 74 0E 23 CA 65 7A 02 20 2D E3 [00:04:33]Write to MH i2c: 01 00 00 98 85 1D [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: 01 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: 01 07 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: 01 07 00 98 85 00 00 00 00 00 50 0C 80 [00:04:33]RasterBufferAndPrint [00:04:33]line [00:04:33]line [00:04:33]line [00:04:33]line [00:04:33]line [00:04:33]written 0, free lines is 3157 [00:04:33]MH_Cut [00:04:33]Write to MH i2c: D1 01 00 9F 85 01 F6 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: D1 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: D1 01 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: D1 01 00 9F 85 00 F5 [00:04:33]Write to MH i2c: 01 00 00 A0 85 25 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 2D 47 00 8D 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 39 36 35 33 34 30 10 04 04 00 BF E3 02 00 F4 03 04 00 7B 8A 1A 67 B6 04 01 00 00 90 5F FD BE B4 DE 8D 22 [00:04:33]CommunicateWithHost err = 0 [00:04:33]CheckOFDResponse [00:04:33]1017 (14) - 77093643461234 [00:04:33]1041 (16) - 0000000000965340 [00:04:33]1040 (4) - 189375 [00:04:33]1012 (4) - 24.10.2024 17:57 [00:04:33]1206 (1) - 0 [00:04:33]OFD Sender: Remove packet 189375 [00:04:33]ProducePacketName [00:04:33]name=ofd_packets/00189375 [00:04:33]NVStorageDeleteData [00:04:34]OFD Sender: No OFD packet to send [00:04:34]*** Cut start [00:04:34]*** Partial cut [00:04:34]*** CUTSNS_PIN = 1 [00:04:34]*** CUTSNS_PIN = 0 [00:04:35]*** Brake cut motor [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]*** Stop cut motor [00:04:35]*** Cut end [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 A0 85 00 00 00 00 00 FF 0F 3A [00:04:35]process_action close_receipt done [00:04:35]requested_data is exist [00:04:35]produce_requested_data [00:04:35]requested_item fm.sn is exist - process it [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 11 00 00 [00:04:35]Write to MH i2c: E2 08 00 A1 85 80 11 00 00 00 00 00 00 A0 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 17 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 17 00 A1 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [00:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:04:35]wFMCommunicate OK [00:04:35]requested_item fd.num is exist - process it [00:04:35]SAM_PROTO_GetFieldsCounters [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 13 00 00 [00:04:35]Write to MH i2c: E2 08 00 A2 85 80 13 00 00 00 00 00 00 A3 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 62 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 62 00 A2 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 61 [00:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 [00:04:35]wFMCommunicate OK [00:04:35]SAM_PROTO_GetFieldsCounters done [00:04:35]requested_item shift.num is exist - process it [00:04:35]requested_item shift.opened is exist - process it [00:04:35]req_shift_opened [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 A3 85 80 13 01 00 00 00 00 00 A5 [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 A3 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 83 [00:04:35]RAPDU: 09 00 01 C1 91 19 67 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]req_shift_opened done [00:04:35]requested_item shift.open_date is exist - process it [00:04:35]req_shift_open_date [00:04:35]req_shift_open_date done [00:04:35]produce_requested_data done [00:04:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [00:04:35]process_action_free close_receipt [00:04:35]json_value_free [00:04:35]json_value_free done [00:04:35]process_json_proto returns [00:04:35]Send response to host [00:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [00:04:35]free response buf [00:04:35]execute_script done [00:04:35]execute_script returns [00:04:35]free content buf [00:04:35]Sock 9.Close socket [00:04:35]Sock 9.Thread stoped [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:01]accept exits with 8 [00:07:01]New connection [00:07:01]New thread 3067071844 created [00:07:01]Thread 3067215204 joined [00:07:01]Waiting for new connection... [00:07:01] Sock 8.Parse request [00:07:01]Sock 8.Check first char [00:07:01]Sock 8.First char is OK [00:07:01]request: POST /json_proto HTTP/1.0 [00:07:01]Method: POST [00:07:01]URL: /json_proto [00:07:01]Method is POST - this is cgi request [00:07:01]url: /json_proto [00:07:01]query_string will be loaded in cgi processing [00:07:01]execute_cgi json_proto POST (null) [00:07:01]execute_cgi path=json_proto method=POST [00:07:01]POST find Content-Length [00:07:01]Host: 172.17.42.131:8080 [00:07:01]Content-Length: 215 [00:07:01]Content-Type: application/json [00:07:01] [00:07:01]POST finish read [00:07:01]Found Content-Length = 215 [00:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:01]execute_script... [00:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:01]POST & json_proto [00:07:01]process_json_proto [00:07:01]json parsed OK: [00:07:01]protocol is kg_v1.0 [00:07:01]action value=get_value [00:07:01]process_action get_value [00:07:01]cmd_get_value [00:07:01]process_action get_value done [00:07:01]requested_data is exist [00:07:01]produce_requested_data [00:07:01]requested_item kkm.sn is exist - process it [00:07:01]requested_item kkm.ver is exist - process it [00:07:01]requested_item fm.sn is exist - process it [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 11 00 00 [00:07:01]Write to MH i2c: E2 08 00 A4 85 80 11 00 00 00 00 00 00 A3 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 17 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 17 00 A4 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [00:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:01]wFMCommunicate OK [00:07:01]requested_item fd.num is exist - process it [00:07:01]SAM_PROTO_GetFieldsCounters [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 00 00 [00:07:01]Write to MH i2c: E2 08 00 A5 85 80 13 00 00 00 00 00 00 A6 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 A5 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 64 [00:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetFieldsCounters done [00:07:01]requested_item shift.num is exist - process it [00:07:01]requested_item shift.opened is exist - process it [00:07:01]req_shift_opened [00:07:01]FM_GetShiftState [00:07:01]SAM_PROTO_GetShiftState [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 01 00 [00:07:01]Write to MH i2c: E2 08 00 A6 85 80 13 01 00 00 00 00 00 A8 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 0E 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 0E 00 A6 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 86 [00:07:01]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetShiftState done [00:07:01]FM_GetShiftState done [00:07:01]req_shift_opened done [00:07:01]requested_item shift.open_date is exist - process it [00:07:01]req_shift_open_date [00:07:01]req_shift_open_date done [00:07:01]produce_requested_data done [00:07:01]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [00:07:01]process_action_free get_value [00:07:01]json_value_free [00:07:01]json_value_free done [00:07:01]process_json_proto returns [00:07:01]Send response to host [00:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [00:07:01]free response buf [00:07:01]execute_script done [00:07:01]execute_script returns [00:07:01]free content buf [00:07:01]Sock 8.Close socket [00:07:01]Sock 8.Thread stoped [00:07:01]accept exits with 9 [00:07:01]New connection [00:07:01]New thread 3067215204 created [00:07:01]Thread 3067071844 joined [00:07:01]Waiting for new connection... [00:07:01] Sock 9.Parse request [00:07:01]Sock 9.Check first char [00:07:01]Sock 9.First char is OK [00:07:01]request: POST /json_proto HTTP/1.0 [00:07:01]Method: POST [00:07:01]URL: /json_proto [00:07:01]Method is POST - this is cgi request [00:07:01]url: /json_proto [00:07:01]query_string will be loaded in cgi processing [00:07:01]execute_cgi json_proto POST (null) [00:07:01]execute_cgi path=json_proto method=POST [00:07:01]POST find Content-Length [00:07:01]Host: 172.17.42.131:8080 [00:07:01]Content-Length: 331 [00:07:01]Content-Type: application/json [00:07:01] [00:07:01]POST finish read [00:07:01]Found Content-Length = 331 [00:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:01]execute_script... [00:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:01]POST & json_proto [00:07:01]process_json_proto [00:07:01]json parsed OK: [00:07:01]protocol is kg_v1.0 [00:07:01]action value=get_value [00:07:01]process_action get_value [00:07:01]cmd_get_value [00:07:01]process_action get_value done [00:07:01]requested_data is exist [00:07:01]produce_requested_data [00:07:01]requested_item fm.sale.total is exist - process it [00:07:01]SAM_PROTO_GetFMData [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 03 00 [00:07:01]Write to MH i2c: E2 08 00 A7 85 80 13 03 00 00 00 00 00 AB [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 A7 85 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 52 [00:07:02]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 A8 85 80 17 00 00 00 00 00 00 AD [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 A8 85 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 7A [00:07:02]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 A9 85 80 17 00 00 00 00 00 00 AE [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 A9 85 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [00:07:02]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 AA 85 80 17 00 00 00 00 00 00 AF [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 AA 85 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [00:07:03]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 AB 85 80 17 00 00 00 00 00 00 B0 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 E8 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 E8 00 AB 85 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 8E [00:07:03]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetFMData done [00:07:03]requested_item fm.sale_refund.total is exist - process it [00:07:03]requested_item fm.buy.total is exist - process it [00:07:03]requested_item shift.sale.total is exist - process it [00:07:03]SAM_PROTO_GetShiftData [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 13 02 00 [00:07:03]Write to MH i2c: E2 08 00 AC 85 80 13 02 00 00 00 00 00 AF [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 FD 00 AC 85 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [00:07:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 AD 85 80 17 00 00 00 00 00 00 B2 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 AD 85 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 CB [00:07:04]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:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 17 00 00 [00:07:04]Write to MH i2c: E2 08 00 AE 85 80 17 00 00 00 00 00 00 B3 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 AE 85 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 6C [00:07:04]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:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 17 00 00 [00:07:04]Write to MH i2c: E2 08 00 AF 85 80 17 00 00 00 00 00 00 B4 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 FD 00 AF 85 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 2C [00:07:04]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:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 17 00 00 [00:07:04]Write to MH i2c: E2 08 00 B0 85 80 17 00 00 00 00 00 00 B5 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]OFD Sender: No OFD packet to send [00:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 CE 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 CE 00 B0 85 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 9A [00:07:05]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:05]wFMCommunicate OK [00:07:05]SAM_PROTO_GetShiftData done [00:07:05]requested_item shift.sale.total_cash is exist - process it [00:07:05]requested_item shift.sale_refund.total is exist - process it [00:07:05]requested_item shift.sale_refund.total_cash is exist - process it [00:07:05]requested_item shift.buy.total is exist - process it [00:07:05]requested_item shift.buy.total_cash is exist - process it [00:07:05]produce_requested_data done [00:07:05]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:05]process_action_free get_value [00:07:05]json_value_free [00:07:05]json_value_free done [00:07:05]process_json_proto returns [00:07:05]Send response to host [00:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:05]free response buf [00:07:05]execute_script done [00:07:05]execute_script returns [00:07:05]free content buf [00:07:05]Sock 9.Close socket [00:07:05]Sock 9.Thread stoped [00:07:05]accept exits with 8 [00:07:05]New connection [00:07:05]New thread 3067071844 created [00:07:05]Thread 3067215204 joined [00:07:05]Waiting for new connection... [00:07:05] Sock 8.Parse request [00:07:05]Sock 8.Check first char [00:07:05]Sock 8.First char is OK [00:07:05]request: POST /json_proto HTTP/1.0 [00:07:05]Method: POST [00:07:05]URL: /json_proto [00:07:05]Method is POST - this is cgi request [00:07:05]url: /json_proto [00:07:05]query_string will be loaded in cgi processing [00:07:05]execute_cgi json_proto POST (null) [00:07:05]execute_cgi path=json_proto method=POST [00:07:05]POST find Content-Length [00:07:05]Host: 172.17.42.131:8080 [00:07:05]Content-Length: 331 [00:07:05]Content-Type: application/json [00:07:05] [00:07:05]POST finish read [00:07:05]Found Content-Length = 331 [00:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:05]execute_script... [00:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:05]POST & json_proto [00:07:05]process_json_proto [00:07:05]json parsed OK: [00:07:05]protocol is kg_v1.0 [00:07:05]action value=get_value [00:07:05]process_action get_value [00:07:05]cmd_get_value [00:07:05]process_action get_value done [00:07:05]requested_data is exist [00:07:05]produce_requested_data [00:07:05]requested_item fm.sale.total is exist - process it [00:07:05]SAM_PROTO_GetFMData [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 13 03 00 [00:07:05]Write to MH i2c: E2 08 00 B1 85 80 13 03 00 00 00 00 00 B5 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 B1 85 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 5C [00:07:05]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 B2 85 80 17 00 00 00 00 00 00 B7 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 B2 85 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 84 [00:07:06]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 B3 85 80 17 00 00 00 00 00 00 B8 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 B3 85 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [00:07:06]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 B4 85 80 17 00 00 00 00 00 00 B9 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 B4 85 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:07:06]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 B5 85 80 17 00 00 00 00 00 00 BA [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 E8 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 E8 00 B5 85 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [00:07:07]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetFMData done [00:07:07]requested_item fm.sale_refund.total is exist - process it [00:07:07]requested_item fm.buy.total is exist - process it [00:07:07]requested_item shift.sale.total is exist - process it [00:07:07]SAM_PROTO_GetShiftData [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 02 00 [00:07:07]Write to MH i2c: E2 08 00 B6 85 80 13 02 00 00 00 00 00 B9 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 B6 85 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [00:07:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 B7 85 80 17 00 00 00 00 00 00 BC [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 B7 85 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 D5 [00:07:08]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:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 B8 85 80 17 00 00 00 00 00 00 BD [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 B8 85 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 76 [00:07:08]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:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 B9 85 80 17 00 00 00 00 00 00 BE [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 B9 85 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 36 [00:07:09]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:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 BA 85 80 17 00 00 00 00 00 00 BF [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 CE 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 CE 00 BA 85 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 A4 [00:07:09]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:09]wFMCommunicate OK [00:07:09]SAM_PROTO_GetShiftData done [00:07:09]requested_item shift.sale.total_cash is exist - process it [00:07:09]requested_item shift.sale_refund.total is exist - process it [00:07:09]requested_item shift.sale_refund.total_cash is exist - process it [00:07:09]requested_item shift.buy.total is exist - process it [00:07:09]requested_item shift.buy.total_cash is exist - process it [00:07:09]produce_requested_data done [00:07:09]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:09]process_action_free get_value [00:07:09]json_value_free [00:07:09]json_value_free done [00:07:09]process_json_proto returns [00:07:09]Send response to host [00:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:09]free response buf [00:07:09]execute_script done [00:07:09]execute_script returns [00:07:09]free content buf [00:07:09]Sock 8.Close socket [00:07:09]Sock 8.Thread stoped [00:07:09]accept exits with 9 [00:07:09]New connection [00:07:09]New thread 3067215204 created [00:07:09]Thread 3067071844 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.42.131:8080 [00:07:09]Content-Length: 257 [00:07:09]Content-Type: application/json [00:07:09] [00:07:09]POST finish read [00:07:09]Found Content-Length = 257 [00:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "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" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "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=x_report [00:07:09]process_action x_report [00:07:09]cmd_x_report [00:07:09]MH_GetDate [00:07:09]Write to MH i2c: F0 00 00 BB 85 2F [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 09 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 09 00 BB 85 00 33 E1 1A 67 A0 18 CA 66 B5 [00:07:09]GetLastDocTimeStamp 1729814677 [00:07:09]current date 1729814835 [00:07:09]FM_GetShiftState [00:07:09]SAM_PROTO_GetShiftState [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 13 01 00 [00:07:09]Write to MH i2c: E2 08 00 BC 85 80 13 01 00 00 00 00 00 BE [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 0E 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 0E 00 BC 85 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 9C [00:07:09]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:07:09]wFMCommunicate OK [00:07:09]SAM_PROTO_GetShiftState done [00:07:09]FM_GetShiftState done [00:07:09]KKMCreateXReportDocument [00:07:09]Load OK [00:07:09]Malloc new data [00:07:09]MH_GetDate [00:07:09]Write to MH i2c: F0 00 00 BD 85 31 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 09 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: F0 09 00 BD 85 00 33 E1 1A 67 A0 18 CA 66 B7 [00:07:09]Malloc new data [00:07:09]Malloc new data [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 BE 85 80 11 00 00 00 00 00 00 BD [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 17 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 17 00 BE 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [00:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:09]wFMCommunicate OK [00:07:09]SAM_PROTO_GetFieldsCounters [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 13 00 00 [00:07:09]Write to MH i2c: E2 08 00 BF 85 80 13 00 00 00 00 00 00 C0 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 62 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 62 00 BF 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 7E [00:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 [00:07:09]wFMCommunicate OK [00:07:09]SAM_PROTO_GetFieldsCounters done [00:07:09]Malloc new data [00:07:09]Malloc new data [00:07:09]Malloc new data [00:07:09]KKMCreateXReportDocument OK [00:07:09]KKMSetXReportData OK [00:07:09]KKMPrepareXReportFMData [00:07:09]SAM_PROTO_GetShiftData [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 13 02 00 [00:07:09]Write to MH i2c: E2 08 00 C0 85 80 13 02 00 00 00 00 00 C3 [00:07:10]OFD Sender: No OFD packet to send [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 13 02 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 C0 85 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [00:07:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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: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 C1 85 80 17 00 00 00 00 00 00 C6 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 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 C1 85 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 DF [00:07:11]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: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 C2 85 80 17 00 00 00 00 00 00 C7 [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 C2 85 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 80 [00:07:11]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: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 C3 85 80 17 00 00 00 00 00 00 C8 [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 C3 85 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 40 [00:07:11]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: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 C4 85 80 17 00 00 00 00 00 00 C9 [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 = 203! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 CE 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 CE 00 C4 85 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 AE [00:07:12]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:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetShiftData done [00:07:12]1194 (1197) - счетчики итогов смены [00:07:12] 1134 (4) - 448 - количество чеков со всеми признаками расчетов [00:07:12] 1129 (158) - счетчики операций «приход» [00:07:12] 1135 (4) - 448 - количество чеков по признаку расчетов [00:07:12] 1201 (4) - 564293.60 - общая итоговая сумма в чеках [00:07:12] 1136 (4) - 421778.00 - итоговая сумма в чеках наличными [00:07:12] 1138 (3) - 142515.60 - итоговая сумма в чеках безналичными [00:07:12] 1024 (123) - суммы налогов [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 0% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1006 (12) - суммы НДС [00:07:12] 1010 (1) - 12% - код ставки НДС [00:07:12] 1011 (3) - 59936.65 - сумма НДС по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (12) - суммы НСП [00:07:12] 1014 (1) - 1% - код ставки НСП [00:07:12] 1015 (3) - 4994.52 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 2% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 3% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 5% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1130 (141) - счетчики операций «возврат прихода» [00:07:12] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:12] 1024 (117) - суммы налогов [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 0% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 12% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 2% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 3% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 5% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1131 (141) - счетчики операций «расход» [00:07:12] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:12] 1024 (117) - суммы налогов [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 0% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 12% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 2% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 3% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 5% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1132 (141) - счетчики операций «возврат расхода» [00:07:12] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:12] 1024 (117) - суммы налогов [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 0% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1006 (9) - суммы НДС [00:07:12] 1010 (1) - 12% - код ставки НДС [00:07:12] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 2% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 3% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 5% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 0,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1007 (9) - суммы НСП [00:07:12] 1014 (1) - 1,50% - код ставки НСП [00:07:12] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:12] 1133 (588) - - счетчики коррекции - не используются [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1194 (04AA) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1134 (046E) [00:07:12]Malloc new data [00:07:12]Processing tag 1129 (0469) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1135 (046F) [00:07:12]Malloc new data [00:07:12]Processing tag 1201 (04B1) [00:07:12]Malloc new data [00:07:12]Processing tag 1136 (0470) [00:07:12]Malloc new data [00:07:12]Processing tag 1138 (0472) [00:07:12]Malloc new data [00:07:12]Processing tag 1024 (0400) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1006 (03EE) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1010 (03F2) [00:07:12]Malloc new data [00:07:12]Processing tag 1011 (03F3) [00:07:12]Malloc new data [00:07:12]SetTLVBufToDocument err=0 [00:07:12]Processing tag 1006 (03EE) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1010 (03F2) [00:07:12]Malloc new data [00:07:12]Processing tag 1011 (03F3) [00:07:12]Malloc new data [00:07:12]SetTLVBufToDocument err=0 [00:07:12]Processing tag 1007 (03EF) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1014 (03F6) [00:07:12]Malloc new data [00:07:12]Processing tag 1015 (03F7) [00:07:12]Malloc new data [00:07:12]SetTLVBufToDocument err=0 [00:07:12]Processing tag 1007 (03EF) [00:07:12]Load OK [00:07:12]SetTLVBufToDocument [00:07:12]Processing tag 1014 (03F6) [00:07:12]Malloc new data [00:07:12]Processing tag 1015 (03F7) [00:07:12]Malloc new data [00:07:12]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1130 (046A) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1135 (046F) [00:07:13]Malloc new data [00:07:13]Processing tag 1201 (04B1) [00:07:13]Malloc new data [00:07:13]Processing tag 1136 (0470) [00:07:13]Malloc new data [00:07:13]Processing tag 1138 (0472) [00:07:13]Malloc new data [00:07:13]Processing tag 1024 (0400) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1131 (046B) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1135 (046F) [00:07:13]Malloc new data [00:07:13]Processing tag 1201 (04B1) [00:07:13]Malloc new data [00:07:13]Processing tag 1136 (0470) [00:07:13]Malloc new data [00:07:13]Processing tag 1138 (0472) [00:07:13]Malloc new data [00:07:13]Processing tag 1024 (0400) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1132 (046C) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1135 (046F) [00:07:13]Malloc new data [00:07:13]Processing tag 1201 (04B1) [00:07:13]Malloc new data [00:07:13]Processing tag 1136 (0470) [00:07:13]Malloc new data [00:07:13]Processing tag 1138 (0472) [00:07:13]Malloc new data [00:07:13]Processing tag 1024 (0400) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1006 (03EE) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1010 (03F2) [00:07:13]Malloc new data [00:07:13]Processing tag 1011 (03F3) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1007 (03EF) [00:07:13]Load OK [00:07:13]SetTLVBufToDocument [00:07:13]Processing tag 1014 (03F6) [00:07:13]Malloc new data [00:07:13]Processing tag 1015 (03F7) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Processing tag 1133 (046D) [00:07:13]Malloc new data [00:07:13]SetTLVBufToDocument err=0 [00:07:13]SetTLVBufToDocument err=0 [00:07:13]Malloc new data [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 C5 85 80 13 03 00 00 00 00 00 C9 [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 C5 85 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 70 [00:07:14]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 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 C6 85 80 17 00 00 00 00 00 00 CB [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 C6 85 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 98 [00:07:14]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 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 C7 85 80 17 00 00 00 00 00 00 CC [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:15]OFD Sender: No OFD packet to send [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 C7 85 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [00:07:15]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 C8 85 80 17 00 00 00 00 00 00 CD [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 C8 85 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [00:07:15]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 C9 85 80 17 00 00 00 00 00 00 CE [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 E8 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 E8 00 C9 85 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AC [00:07:16]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16]wFMCommunicate OK [00:07:16]SAM_PROTO_GetFMData done [00:07:16]FM_GetFMData:85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:17]oper:6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17]total:4A 1D 94 C3 06 [00:07:17]Malloc new data [00:07:17]oper:6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:17]total:18 60 DC 31 01 [00:07:17]Malloc new data [00:07:17]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:17]total: [00:07:17]Malloc new data [00:07:17]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:17]total: [00:07:17]Malloc new data [00:07:17]KKMPrepareXReportFMData err=0 [00:07:17]Х отчет ИНН: 02508201610067 Кассир: Арыкбаев Н. 25.10.2024 00:07 Смена: 266 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Всего чеков: 448 ИТОГИ ПРИХОД Чеков: 448 Общий итог: 564293.60 Итого наличными: 421778.00 Итого безнал.: 142515.60 НДС 0% : 0.00 НДС 12% : 59936.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4994.52 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 421778.00 НС Приход: 290510677.22 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965340 [00:07:17]StoreToDocumentArchive [00:07:17]MH_GetDate [00:07:17]Write to MH i2c: F0 00 00 CA 85 3E [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 CA 85 00 3B E1 1A 67 A0 18 CA 66 CC [00:07:17]shift 266 fd 1729814843 [00:07:17]Create dir for shift 0266 [00:07:17]save to /storage/0266/doc_1729814843 [00:07:17]save last doc name /storage/0266/doc_1729814843 to /storage/kkm_last_doc_name [00:07:17]save OK [00:07:17]Clear old archive folders... [00:07:17]NVStorageSaveData kkm_last_timestamp [00:07:17]File name is /storage/kkm_last_timestamp [00:07:17]Write 4 bytes [00:07:17]NVStorageSaveData done [00:07:17]ExternCall_PrintAddStr [00:07:17]wPrintStart [00:07:17]Write to MH i2c: 01 00 00 CB 85 50 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: 01 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: 01 07 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: 01 07 00 CB 85 00 00 00 00 00 FF 0F 65 [00:07:17]RasterBufferAndPrint [00:07:17]line Х отчет [00:07:17]line ИНН: 02508201610067 [00:07:17]line Кассир: Арыкбаев Н. [00:07:17]line 25.10.2024 00:07 [00:07:17]line Смена: 266 [00:07:17]line РНМ: 0000000000100030 [00:07:17]line ЗНМ: 0300000155 [00:07:17]line СНО: Общий режим [00:07:17]line Всего чеков: 448 [00:07:17]line ИТОГИ ПРИХОД [00:07:17]line Чеков: 448 [00:07:17]line Общий итог: 564293.60 [00:07:17]line Итого наличными: 421778.00 [00:07:17]line Итого безнал.: 142515.60 [00:07:17]line НДС 0% : 0.00 [00:07:17]line НДС 12% : 59936.65 [00:07:17]line НСП 0% : 0.00 [00:07:17]line НСП 1,50% : 0.00 [00:07:17]line НСП 0,50% : 0.00 [00:07:17]line НСП 5% : 0.00 [00:07:17]line НСП 3% : 0.00 [00:07:17]line НСП 2% : 0.00 [00:07:17]line НСП 1% : 4994.52 [00:07:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:17]line Чеков: 0 [00:07:17]line Общий итог: 0.00 [00:07:17]line Итого наличными: 0.00 [00:07:17]line Итого безнал.: 0.00 [00:07:17]line НДС 0% : 0.00 [00:07:17]line НДС 12% : 0.00 [00:07:17]line НСП 0% : 0.00 [00:07:17]line НСП 1,50% : 0.00 [00:07:17]line НСП 0,50% : 0.00 [00:07:17]line НСП 5% : 0.00 [00:07:17]line НСП 3% : 0.00 [00:07:17]line НСП 2% : 0.00 [00:07:17]line НСП 1% : 0.00 [00:07:17]line ИТОГИ РАСХОД [00:07:17]line Чеков: 0 [00:07:17]line Общий итог: 0.00 [00:07:17]line Итого наличными: 0.00 [00:07:17]line Итого безнал.: 0.00 [00:07:17]line НДС 0% : 0.00 [00:07:17]line НДС 12% : 0.00 [00:07:17]line НСП 0% : 0.00 [00:07:17]line НСП 1,50% : 0.00 [00:07:17]line НСП 0,50% : 0.00 [00:07:17]line НСП 5% : 0.00 [00:07:17]line НСП 3% : 0.00 [00:07:17]line НСП 2% : 0.00 [00:07:17]line НСП 1% : 0.00 [00:07:17]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:17]line Чеков: 0 [00:07:17]line Общий итог: 0.00 [00:07:17]line Итого наличными: 0.00 [00:07:17]line Итого безнал.: 0.00 [00:07:17]line НДС 0% : 0.00 [00:07:17]line НДС 12% : 0.00 [00:07:17]line НСП 0% : 0.00 [00:07:17]line НСП 1,50% : 0.00 [00:07:17]line НСП 0,50% : 0.00 [00:07:17]line НСП 5% : 0.00 [00:07:17]line НСП 3% : 0.00 [00:07:17]line НСП 2% : 0.00 [00:07:17]line НСП 1% : 0.00 [00:07:17]line Сумма внесений: 0.00 [00:07:17]line Сумма выплат: 0.00 [00:07:17]line Нал. в кассе: 421778.00 [00:07:17]line НС Приход: 290510677.22 [00:07:17]line НС Возвр.Прихода: 51314934.00 [00:07:17]line НС Расход: 0.00 [00:07:17]line НС Возвр.Расхода: 0.00 [00:07:17]line ФМ: 0000000000965340 [00:07:17]written 0, free lines is 4095 [00:07:18]Write to MH i2c: 01 00 00 17 86 9D [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 17 86 00 00 00 00 00 6A 09 17 [00:07:18]RasterBufferAndPrint [00:07:18]line [00:07:18]line [00:07:18]line [00:07:18]line [00:07:18]line [00:07:18]written 0, free lines is 2436 [00:07:18]MH_Cut [00:07:18]Write to MH i2c: D1 01 00 1E 86 01 76 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: D1 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: D1 01 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: D1 01 00 1E 86 00 75 [00:07:18]Write to MH i2c: 01 00 00 1F 86 A5 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:20]OFD Sender: No OFD packet to send [00:07:20]*** Cut start [00:07:20]*** Partial cut [00:07:20]*** CUTSNS_PIN = 1 [00:07:20]*** CUTSNS_PIN = 0 [00:07:20]*** Brake cut motor [00:07:20]Read from MH i2c: 01 [00:07:20]MH_I2C_Read... [00:07:20]*** Stop cut motor [00:07:20]*** Cut end [00:07:20]Read from MH i2c: 01 07 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: 01 07 00 1F 86 00 00 00 00 00 FF 0F BA [00:07:20]process_action x_report done [00:07:20]requested_data is exist [00:07:20]produce_requested_data [00:07:20]requested_item fd.num is exist - process it [00:07:20]SAM_PROTO_GetFieldsCounters [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 13 00 00 [00:07:20]Write to MH i2c: E2 08 00 20 86 80 13 00 00 00 00 00 00 22 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 62 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 62 00 20 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 E0 [00:07:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 [00:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_GetFieldsCounters done [00:07:21]requested_item shift.num is exist - process it [00:07:21]requested_item shift.opened is exist - process it [00:07:21]req_shift_opened [00:07:21]FM_GetShiftState [00:07:21]SAM_PROTO_GetShiftState [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 13 01 00 [00:07:21]Write to MH i2c: E2 08 00 21 86 80 13 01 00 00 00 00 00 24 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 0E 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 0E 00 21 86 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 02 [00:07:21]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_GetShiftState done [00:07:21]FM_GetShiftState done [00:07:21]req_shift_opened done [00:07:21]requested_item shift.open_date is exist - process it [00:07:21]req_shift_open_date [00:07:21]req_shift_open_date done [00:07:21]produce_requested_data done [00:07:21]produce_requested_data return {"fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [00:07:21]process_action_free x_report [00:07:21]json_value_free [00:07:21]json_value_free done [00:07:21]process_json_proto returns [00:07:21]Send response to host [00:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [00:07:21]free response buf [00:07:21]execute_script done [00:07:21]execute_script returns [00:07:21]free content buf [00:07:21]Sock 9.Close socket [00:07:21]Sock 9.Thread stoped [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [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:47]accept exits with 8 [00:07:47]New connection [00:07:47]New thread 3067071844 created [00:07:47]Thread 3067215204 joined [00:07:47]Waiting for new connection... [00:07:47] Sock 8.Parse request [00:07:47]Sock 8.Check first char [00:07:47]Sock 8.First char is OK [00:07:47]request: POST /json_proto HTTP/1.0 [00:07:47]Method: POST [00:07:47]URL: /json_proto [00:07:47]Method is POST - this is cgi request [00:07:47]url: /json_proto [00:07:47]query_string will be loaded in cgi processing [00:07:47]execute_cgi json_proto POST (null) [00:07:47]execute_cgi path=json_proto method=POST [00:07:47]POST find Content-Length [00:07:47]Host: 172.17.42.131:8080 [00:07:47]Content-Length: 215 [00:07:47]Content-Type: application/json [00:07:47] [00:07:47]POST finish read [00:07:47]Found Content-Length = 215 [00:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:47]execute_script... [00:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:47]POST & json_proto [00:07:47]process_json_proto [00:07:47]json parsed OK: [00:07:47]protocol is kg_v1.0 [00:07:47]action value=get_value [00:07:47]process_action get_value [00:07:47]cmd_get_value [00:07:47]process_action get_value done [00:07:47]requested_data is exist [00:07:47]produce_requested_data [00:07:47]requested_item kkm.sn is exist - process it [00:07:47]requested_item kkm.ver is exist - process it [00:07:47]requested_item fm.sn is exist - process it [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 11 00 00 [00:07:47]Write to MH i2c: E2 08 00 22 86 80 11 00 00 00 00 00 00 22 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 17 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 17 00 22 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [00:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:47]wFMCommunicate OK [00:07:47]requested_item fd.num is exist - process it [00:07:47]SAM_PROTO_GetFieldsCounters [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 00 00 [00:07:47]Write to MH i2c: E2 08 00 23 86 80 13 00 00 00 00 00 00 25 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 62 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 62 00 23 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 E3 [00:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF E3 02 00 0E 04 04 00 CF 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 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetFieldsCounters done [00:07:47]requested_item shift.num is exist - process it [00:07:47]requested_item shift.opened is exist - process it [00:07:47]req_shift_opened [00:07:47]FM_GetShiftState [00:07:47]SAM_PROTO_GetShiftState [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 01 00 [00:07:47]Write to MH i2c: E2 08 00 24 86 80 13 01 00 00 00 00 00 27 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 0E 00 24 86 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 05 [00:07:47]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetShiftState done [00:07:47]FM_GetShiftState done [00:07:47]req_shift_opened done [00:07:47]requested_item shift.open_date is exist - process it [00:07:47]req_shift_open_date [00:07:47]req_shift_open_date done [00:07:47]produce_requested_data done [00:07:47]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961} [00:07:47]process_action_free get_value [00:07:47]json_value_free [00:07:47]json_value_free done [00:07:47]process_json_proto returns [00:07:47]Send response to host [00:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189375,"shift.num":463,"shift.opened":1,"shift.open_date":1729728961}}} [00:07:47]free response buf [00:07:47]execute_script done [00:07:47]execute_script returns [00:07:47]free content buf [00:07:47]Sock 8.Close socket [00:07:47]Sock 8.Thread stoped [00:07:47]accept exits with 9 [00:07:47]New connection [00:07:47]New thread 3067215204 created [00:07:47]Thread 3067071844 joined [00:07:47]Waiting for new connection... [00:07:47] Sock 9.Parse request [00:07:47]Sock 9.Check first char [00:07:47]Sock 9.First char is OK [00:07:47]request: POST /json_proto HTTP/1.0 [00:07:47]Method: POST [00:07:47]URL: /json_proto [00:07:47]Method is POST - this is cgi request [00:07:47]url: /json_proto [00:07:47]query_string will be loaded in cgi processing [00:07:47]execute_cgi json_proto POST (null) [00:07:47]execute_cgi path=json_proto method=POST [00:07:47]POST find Content-Length [00:07:47]Host: 172.17.42.131:8080 [00:07:47]Content-Length: 331 [00:07:47]Content-Type: application/json [00:07:47] [00:07:47]POST finish read [00:07:47]Found Content-Length = 331 [00:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:47]execute_script... [00:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:47]POST & json_proto [00:07:47]process_json_proto [00:07:47]json parsed OK: [00:07:47]protocol is kg_v1.0 [00:07:47]action value=get_value [00:07:47]process_action get_value [00:07:47]cmd_get_value [00:07:47]process_action get_value done [00:07:47]requested_data is exist [00:07:47]produce_requested_data [00:07:47]requested_item fm.sale.total is exist - process it [00:07:47]SAM_PROTO_GetFMData [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 03 00 [00:07:47]Write to MH i2c: E2 08 00 25 86 80 13 03 00 00 00 00 00 2A [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 25 86 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 D1 [00:07:48]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 26 86 80 17 00 00 00 00 00 00 2C [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 26 86 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F9 [00:07:48]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 27 86 80 17 00 00 00 00 00 00 2D [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 27 86 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [00:07:49]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 28 86 80 17 00 00 00 00 00 00 2E [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 28 86 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:07:49]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 29 86 80 17 00 00 00 00 00 00 2F [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 E8 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 E8 00 29 86 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:07:49]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetFMData done [00:07:50]requested_item fm.sale_refund.total is exist - process it [00:07:50]requested_item fm.buy.total is exist - process it [00:07:50]requested_item shift.sale.total is exist - process it [00:07:50]SAM_PROTO_GetShiftData [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 13 02 00 [00:07:50]Write to MH i2c: E2 08 00 2A 86 80 13 02 00 00 00 00 00 2E [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]OFD Sender: No OFD packet to send [00:07:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 2A 86 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:07:50]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 2B 86 80 17 00 00 00 00 00 00 31 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 2B 86 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 4A [00:07:51]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:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 2C 86 80 17 00 00 00 00 00 00 32 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 2C 86 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 EB [00:07:51]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:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 2D 86 80 17 00 00 00 00 00 00 33 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 2D 86 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 AB [00:07:52]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: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 2E 86 80 17 00 00 00 00 00 00 34 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 CE 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 CE 00 2E 86 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 19 [00:07:52]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:52]wFMCommunicate OK [00:07:52]SAM_PROTO_GetShiftData done [00:07:52]requested_item shift.sale.total_cash is exist - process it [00:07:52]requested_item shift.sale_refund.total is exist - process it [00:07:52]requested_item shift.sale_refund.total_cash is exist - process it [00:07:52]requested_item shift.buy.total is exist - process it [00:07:52]requested_item shift.buy.total_cash is exist - process it [00:07:52]produce_requested_data done [00:07:52]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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: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":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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: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 8 [00:07:52]New connection [00:07:52]New thread 3067071844 created [00:07:52]Thread 3067215204 joined [00:07:52]Waiting for new connection... [00:07:52] Sock 8.Parse request [00:07:52]Sock 8.Check first char [00:07:52]Sock 8.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.42.131: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 2F 86 80 13 03 00 00 00 00 00 34 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 03 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 2F 86 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 DB [00:07:53]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 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 30 86 80 17 00 00 00 00 00 00 36 [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 30 86 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 03 [00:07:53]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 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 31 86 80 17 00 00 00 00 00 00 37 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 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 31 86 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:07:54]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 32 86 80 17 00 00 00 00 00 00 38 [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 = 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 32 86 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:07:54]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 33 86 80 17 00 00 00 00 00 00 39 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 E8 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 E8 00 33 86 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 17 [00:07:55]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55]wFMCommunicate OK [00:07:55]SAM_PROTO_GetFMData done [00:07:55]requested_item fm.sale_refund.total is exist - process it [00:07:55]requested_item fm.buy.total is exist - process it [00:07:55]requested_item shift.sale.total is exist - process it [00:07:55]SAM_PROTO_GetShiftData [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 13 02 00 [00:07:55]Write to MH i2c: E2 08 00 34 86 80 13 02 00 00 00 00 00 38 [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 13 02 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 34 86 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [00:07:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 86 80 17 00 00 00 00 00 00 3B [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 35 86 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 54 [00:07:56]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: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 36 86 80 17 00 00 00 00 00 00 3C [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 36 86 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 F5 [00:07:56]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: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 37 86 80 17 00 00 00 00 00 00 3D [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 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 37 86 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 B5 [00:07:57]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: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 38 86 80 17 00 00 00 00 00 00 3E [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 CE 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 CE 00 38 86 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 23 [00:07:58]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:58]wFMCommunicate OK [00:07:58]SAM_PROTO_GetShiftData done [00:07:58]requested_item shift.sale.total_cash is exist - process it [00:07:58]requested_item shift.sale_refund.total is exist - process it [00:07:58]requested_item shift.sale_refund.total_cash is exist - process it [00:07:58]requested_item shift.buy.total is exist - process it [00:07:58]requested_item shift.buy.total_cash is exist - process it [00:07:58]produce_requested_data done [00:07:58]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:58]process_action_free get_value [00:07:58]json_value_free [00:07:58]json_value_free done [00:07:58]process_json_proto returns [00:07:58]Send response to host [00:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:58]free response buf [00:07:58]execute_script done [00:07:58]execute_script returns [00:07:58]free content buf [00:07:58]Sock 8.Close socket [00:07:58]Sock 8.Thread stoped [00:07:58]accept exits with 9 [00:07:58]New connection [00:07:58]New thread 3067215204 created [00:07:58]Thread 3067071844 joined [00:07:58]Waiting for new connection... [00:07:58] Sock 9.Parse request [00:07:58]Sock 9.Check first char [00:07:58]Sock 9.First char is OK [00:07:58]request: POST /json_proto HTTP/1.0 [00:07:58]Method: POST [00:07:58]URL: /json_proto [00:07:58]Method is POST - this is cgi request [00:07:58]url: /json_proto [00:07:58]query_string will be loaded in cgi processing [00:07:58]execute_cgi json_proto POST (null) [00:07:58]execute_cgi path=json_proto method=POST [00:07:58]POST find Content-Length [00:07:58]Host: 172.17.42.131:8080 [00:07:58]Content-Length: 260 [00:07:58]Content-Type: application/json [00:07:58] [00:07:58]POST finish read [00:07:58]Found Content-Length = 260 [00:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:58]execute_script... [00:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:58]POST & json_proto [00:07:58]process_json_proto [00:07:58]json parsed OK: [00:07:58]protocol is kg_v1.0 [00:07:58]action value=close_shift [00:07:58]process_action close_shift [00:07:58]cmd_close_shift [00:07:58]MH_GetDate [00:07:58]Write to MH i2c: F0 00 00 39 86 AE [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 39 86 00 63 E1 1A 67 A0 18 CA 66 64 [00:07:58]GetLastDocTimeStamp 1729814835 [00:07:58]current date 1729814883 [00:07:58]FM_GetShiftState [00:07:58]SAM_PROTO_GetShiftState [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 13 01 00 [00:07:58]Write to MH i2c: E2 08 00 3A 86 80 13 01 00 00 00 00 00 3D [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 0E 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 0E 00 3A 86 00 09 00 01 C1 91 19 67 00 00 00 00 90 00 1B [00:07:58]RAPDU: 09 00 01 C1 91 19 67 00 00 00 00 90 00 [00:07:58]wFMCommunicate OK [00:07:58]SAM_PROTO_GetShiftState done [00:07:58]FM_GetShiftState done [00:07:58]KKMCreateCloseShiftDocument [00:07:58]Load OK [00:07:58]Malloc new data [00:07:58]MH_GetDate [00:07:58]Write to MH i2c: F0 00 00 3B 86 B0 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 3B 86 00 64 E1 1A 67 A0 18 CA 66 67 [00:07:58]Malloc new data [00:07:58]Malloc new data [00:07:58]Malloc new data [00:07:58]Malloc new data [00:07:58]KKMCreateCloseShiftDocument OK [00:07:58]KKMSetCloseShiftData OK [00:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:07:58]tlvbuf is 0181EE10 [00:07:58]KKMLoadAndSignCloseShiftData [00:07:58]SAM_PROTO_ProcessDocument [00:07:58]wFMCommunicate request_size=9 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 15 01 00 04 05 00 47 00 [00:07:58]Write to MH i2c: E2 0C 00 3C 86 80 15 01 00 04 00 05 00 47 00 00 00 95 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 3C 86 00 90 00 36 [00:07:58]RAPDU: 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=23 [00:07:58]MH_SAM_APDU [00:07:58]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:07:58]Write to MH i2c: E2 1A 00 3D 86 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 38 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 3D 86 00 90 00 37 [00:07:58]RAPDU: 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=30 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:07:58]Write to MH i2c: E2 21 00 3E 86 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 05 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 3E 86 00 90 00 38 [00:07:58]RAPDU: 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=13 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 15 02 00 08 F4 03 04 00 64 E1 1A 67 [00:07:58]Write to MH i2c: E2 10 00 3F 86 80 15 02 00 08 00 F4 03 04 00 64 E1 1A 67 00 00 16 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 3F 86 00 90 00 39 [00:07:58]RAPDU: 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=25 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:07:58]Write to MH i2c: E2 1C 00 40 86 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 93 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 03 00 40 86 00 90 00 3A [00:07:58]RAPDU: 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 15 03 00 [00:07:58]Write to MH i2c: E2 08 00 41 86 80 15 03 00 00 00 00 00 48 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 15 03 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 41 86 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:07:59]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_ProcessDocument answer len = 1268 [00:07:59]SAM_PROTO_ProcessDocument remain to read = 1020 [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 42 86 80 17 00 00 00 00 00 00 48 [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 = 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 42 86 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 9C [00:08:00]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:00]wFMCommunicate OK [00:08:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:00]SAM_PROTO_ProcessDocument remain to read = 770 [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 43 86 80 17 00 00 00 00 00 00 49 [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 43 86 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 OFD Sender: No OFD packet to send [00:08:00]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 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 AB [00:08:00]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:00]wFMCommunicate OK [00:08:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:00]SAM_PROTO_ProcessDocument remain to read = 520 [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 44 86 80 17 00 00 00 00 00 00 4A [00:08:00]Write i2c OK [00:08:00]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 44 86 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 D2 [00:08:01]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:01]wFMCommunicate OK [00:08:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:01]SAM_PROTO_ProcessDocument remain to read = 270 [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 45 86 80 17 00 00 00 00 00 00 4B [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 45 86 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 15 [00:08:01]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:02]wFMCommunicate OK [00:08:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:02]SAM_PROTO_ProcessDocument remain to read = 20 [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 46 86 80 17 00 00 00 00 00 00 4C [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 = 20! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 17 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 17 00 46 86 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF B9 AD 0A 51 4C 90 00 99 [00:08:02]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FF B9 AD 0A 51 4C 90 00 [00:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:08:02]SAM_PROTO_ProcessDocument done [00:08:02]1209 (1) - 1.0 - номер версии ФФД [00:08:02]1041 (16) - 0000000000965340 - номер ФМ [00:08:02]1040 (4) - 189376 - номер ФД [00:08:02]1038 (4) - 463 - номер смены [00:08:02]1118 (4) - 448 - количество кассовых чеков за смену [00:08:02]1111 (4) - 450 - общее количество ФД за смену [00:08:02]1194 (1197) - счетчики итогов смены [00:08:02] 1134 (4) - 448 - количество чеков со всеми признаками расчетов [00:08:02] 1129 (158) - счетчики операций «приход» [00:08:02] 1135 (4) - 448 - количество чеков по признаку расчетов [00:08:02] 1201 (4) - 564293.60 - общая итоговая сумма в чеках [00:08:02] 1136 (4) - 421778.00 - итоговая сумма в чеках наличными [00:08:02] 1138 (3) - 142515.60 - итоговая сумма в чеках безналичными [00:08:02] 1024 (123) - суммы налогов [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 0% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1006 (12) - суммы НДС [00:08:02] 1010 (1) - 12% - код ставки НДС [00:08:02] 1011 (3) - 59936.65 - сумма НДС по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (12) - суммы НСП [00:08:02] 1014 (1) - 1% - код ставки НСП [00:08:02] 1015 (3) - 4994.52 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 2% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 3% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 5% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1130 (141) - счетчики операций «возврат прихода» [00:08:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:02] 1024 (117) - суммы налогов [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 0% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 12% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 2% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 3% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 5% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1131 (141) - счетчики операций «расход» [00:08:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:02] 1024 (117) - суммы налогов [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 0% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 12% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 2% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 3% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 5% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1132 (141) - счетчики операций «возврат расхода» [00:08:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:02] 1024 (117) - суммы налогов [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 0% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1006 (9) - суммы НДС [00:08:02] 1010 (1) - 12% - код ставки НДС [00:08:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 2% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 3% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 5% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 0,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1007 (9) - суммы НСП [00:08:02] 1014 (1) - 1,50% - код ставки НСП [00:08:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:02] 1133 (588) - - счетчики коррекции - не используются [00:08:02]1077 (6) - 281172937167180 - ФПД [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1209 (04B9) [00:08:02]Malloc new data [00:08:02]Processing tag 1041 (0411) [00:08:02]Processing tag 1040 (0410) [00:08:02]Malloc new data [00:08:02]Processing tag 1038 (040E) [00:08:02]Malloc new data [00:08:02]Processing tag 1118 (045E) [00:08:02]Malloc new data [00:08:02]Processing tag 1111 (0457) [00:08:02]Malloc new data [00:08:02]Processing tag 1194 (04AA) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1134 (046E) [00:08:02]Malloc new data [00:08:02]Processing tag 1129 (0469) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1135 (046F) [00:08:02]Malloc new data [00:08:02]Processing tag 1201 (04B1) [00:08:02]Malloc new data [00:08:02]Processing tag 1136 (0470) [00:08:02]Malloc new data [00:08:02]Processing tag 1138 (0472) [00:08:02]Malloc new data [00:08:02]Processing tag 1024 (0400) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1006 (03EE) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1010 (03F2) [00:08:02]Malloc new data [00:08:02]Processing tag 1011 (03F3) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1006 (03EE) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1010 (03F2) [00:08:02]Malloc new data [00:08:02]Processing tag 1011 (03F3) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]SetTLVBufToDocument err=0 [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1130 (046A) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1135 (046F) [00:08:02]Malloc new data [00:08:02]Processing tag 1201 (04B1) [00:08:02]Malloc new data [00:08:02]Processing tag 1136 (0470) [00:08:02]Malloc new data [00:08:02]Processing tag 1138 (0472) [00:08:02]Malloc new data [00:08:02]Processing tag 1024 (0400) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1006 (03EE) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1010 (03F2) [00:08:02]Malloc new data [00:08:02]Processing tag 1011 (03F3) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1006 (03EE) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1010 (03F2) [00:08:02]Malloc new data [00:08:02]Processing tag 1011 (03F3) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:02]Malloc new data [00:08:02]SetTLVBufToDocument err=0 [00:08:02]Processing tag 1007 (03EF) [00:08:02]Load OK [00:08:02]SetTLVBufToDocument [00:08:02]Processing tag 1014 (03F6) [00:08:02]Malloc new data [00:08:02]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1131 (046B) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1135 (046F) [00:08:03]Malloc new data [00:08:03]Processing tag 1201 (04B1) [00:08:03]Malloc new data [00:08:03]Processing tag 1136 (0470) [00:08:03]Malloc new data [00:08:03]Processing tag 1138 (0472) [00:08:03]Malloc new data [00:08:03]Processing tag 1024 (0400) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1006 (03EE) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1010 (03F2) [00:08:03]Malloc new data [00:08:03]Processing tag 1011 (03F3) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1006 (03EE) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1010 (03F2) [00:08:03]Malloc new data [00:08:03]Processing tag 1011 (03F3) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1132 (046C) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1135 (046F) [00:08:03]Malloc new data [00:08:03]Processing tag 1201 (04B1) [00:08:03]Malloc new data [00:08:03]Processing tag 1136 (0470) [00:08:03]Malloc new data [00:08:03]Processing tag 1138 (0472) [00:08:03]Malloc new data [00:08:03]Processing tag 1024 (0400) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1006 (03EE) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1010 (03F2) [00:08:03]Malloc new data [00:08:03]Processing tag 1011 (03F3) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1006 (03EE) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1010 (03F2) [00:08:03]Malloc new data [00:08:03]Processing tag 1011 (03F3) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1007 (03EF) [00:08:03]Load OK [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1014 (03F6) [00:08:03]Malloc new data [00:08:03]Processing tag 1015 (03F7) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1133 (046D) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Processing tag 1077 (0435) [00:08:03]Malloc new data [00:08:03]SetTLVBufToDocument err=0 [00:08:03]Malloc new data [00:08:03]SAM_PROTO_GetFMData [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 13 03 00 [00:08:03]Write to MH i2c: E2 08 00 47 86 80 13 03 00 00 00 00 00 4C [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 13 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 47 86 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 F3 [00:08:03]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:08:04]wFMCommunicate OK [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 48 86 80 17 00 00 00 00 00 00 4E [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 48 86 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1B [00:08:04]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:04]wFMCommunicate OK [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 49 86 80 17 00 00 00 00 00 00 4F [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 [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 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 49 86 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:08:05]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:05]wFMCommunicate OK [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 4A 86 80 17 00 00 00 00 00 00 50 [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]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 4A 86 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [00:08:06]RAPDU: 03 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [00:08:06]F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:06]wFMCommunicate OK [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 4B 86 80 17 00 00 00 00 00 00 51 [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 = 229! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 E8 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 E8 00 4B 86 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 2F [00:08:06]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetFMData done [00:08:06]Malloc new data [00:08:06]Malloc new data [00:08:06]Malloc new data [00:08:06]Malloc new data [00:08:06]KKMLoadAndSignCloseShiftData err=0 [00:08:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арыкбаев Н. 25.10.2024 00:08 Смена: 463 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Чеков за смену: 448 ФД за смену: 450 Всего чеков: 448 ИТОГИ ПРИХОД Чеков: 448 Общий итог: 564293.60 Итого наличными: 421778.00 Итого безнал.: 142515.60 НДС 0% : 0.00 НДС 12% : 59936.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4994.52 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 421778.00 НС Приход: 290510677.22 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 189376 ФМ: 0000000000965340 ФПД: 281172937167180 [00:08:06]StoreToDocumentArchive [00:08:06]shift 463 fd 189376 [00:08:06]save to /storage/0463/doc_00189376 [00:08:06]save last doc name /storage/0463/doc_00189376 to /storage/kkm_last_doc_name [00:08:06]save OK [00:08:06]Clear old archive folders... [00:08:06]Remove dir /storage/0266 [00:08:06]opendir ok [00:08:06]file . [00:08:06]file .. [00:08:06]file doc_1729814843 [00:08:06]remove file /storage/0266/doc_1729814843 [00:08:06]remove dir /storage/0266 [00:08:06]NVStorageSaveData kkm_registers [00:08:06]File name is /storage/kkm_registers [00:08:06]Write 24 bytes [00:08:06]NVStorageSaveData done [00:08:06]NVStorageSaveData kkm_registers [00:08:06]File name is /storage/kkm_registers [00:08:06]Write 24 bytes [00:08:06]NVStorageSaveData done [00:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:08:06]tlvbuf is 017E3FE0 [00:08:06]SAM_PROTO_ClearQueue [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 09 00 00 [00:08:06]Write to MH i2c: E2 08 00 4C 86 80 09 00 00 00 00 00 00 44 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 4C 86 00 90 00 46 [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_ClearQueue done [00:08:06]KKMCreateOFDPacket [00:08:06]OFDProtocolAddRootSTLVToBuf [00:08:06]FM_MakeSignedData [00:08:06]FM_MakeSignedData [00:08:06]SAM_PROTO_SignData [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 01 02 [00:08:06]Write to MH i2c: E2 08 00 4D 86 80 0D 01 02 00 00 00 00 4C [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 4D 86 00 90 00 47 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=255 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 02 02 FA 05 00 66 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 64 E1 1A 67 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 D8 04 6E 04 04 00 C0 01 00 00 69 04 A5 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 [00:08:07]Write to MH i2c: E2 02 01 4E 86 80 0D 02 02 FA 00 05 00 66 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 64 E1 1A 67 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 D8 04 6E 04 04 00 C0 01 00 00 69 04 A5 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 00 00 87 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 4E 86 00 90 00 48 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=255 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 02 02 FA 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 FC 9E 07 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:08:07]Write to MH i2c: E2 02 01 4F 86 80 0D 02 02 FA 00 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 FC 9E 07 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 00 5C [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 03 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 03 00 4F 86 00 90 00 49 [00:08:08]RAPDU: 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=255 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 0D 02 02 FA 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 [00:08:08]Write to MH i2c: E2 02 01 50 86 80 0D 02 02 FA 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 00 00 16 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 03 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 03 00 50 86 00 90 00 4A [00:08:09]RAPDU: 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=255 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 0D 02 02 FA 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:08:09]Write to MH i2c: E2 02 01 51 86 80 0D 02 02 FA 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 00 16 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 51 86 00 90 00 4B [00:08:10]RAPDU: 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=255 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:08:10]Write to MH i2c: E2 02 01 52 86 80 0D 02 02 FA 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 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 00 00 DC [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 52 86 00 90 00 4C [00:08:10]RAPDU: 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=141 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 FF B9 AD 0A 51 4C [00:08:11]Write to MH i2c: E2 90 00 53 86 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 OFD Sender: No OFD packet to send [00:08:11]35 33 34 30 35 04 06 00 FF B9 AD 0A 51 4C 00 00 41 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 0D 02 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 53 86 00 90 00 4D [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 0D 03 02 [00:08:11]Write to MH i2c: E2 08 00 54 86 80 0D 03 02 00 00 00 00 55 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0B 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0B 00 54 86 00 C3 F1 D5 87 65 A5 7D D6 90 00 C3 [00:08:11]RAPDU: C3 F1 D5 87 65 A5 7D D6 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_SignData done [00:08:11]FM_MakeSignedData done [00:08:11]CreateOFDProtocolMessage [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 11 00 00 [00:08:11]Write to MH i2c: E2 08 00 55 86 80 11 00 00 00 00 00 00 55 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:11]Read from MH i2c: E2 17 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 17 00 55 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [00:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:08:11]wFMCommunicate OK [00:08:11]CreateOFDProtocolMessage done [00:08:11]OFDSenderStorePacket 189376 [00:08:11]StoreOFDPacket docnum=189376 [00:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 7A 05 00 00 94 18 72 05 42 D5 5A 05 01 00 05 00 66 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 64 E1 1A 67 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 D8 04 6E 04 04 00 C0 01 00 00 69 04 A5 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 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 C0 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 FF B9 AD 0A 51 4C C3 F1 D5 87 65 A5 7D D6 [00:08:11]CheckFolder [00:08:11]dirname=/storage/ofd_packets [00:08:11]CheckFolder done [00:08:11]ProducePacketName [00:08:11]name=ofd_packets/00189376 [00:08:11]NVStorageSaveData ofd_packets/00189376 [00:08:11]File name is /storage/ofd_packets/00189376 [00:08:11]Write 1432 bytes [00:08:11]NVStorageSaveData done [00:08:11]OFDSenderStorePacket done [00:08:11]KKMCreateOFDPacket done [00:08:11]NVStorageSaveData kkm_last_timestamp [00:08:11]File name is /storage/kkm_last_timestamp [00:08:11]Write 4 bytes [00:08:11]NVStorageSaveData done [00:08:11]ExternCall_PrintAddStr [00:08:11]wPrintStart [00:08:11]Write to MH i2c: 01 00 00 56 86 DC [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: 01 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: 01 07 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: 01 07 00 56 86 00 00 00 00 00 FF 0F F1 [00:08:12]RasterBufferAndPrint [00:08:12]line Отчет о закрытии смены [00:08:12]line ФФД: 1.0 [00:08:12]line ИНН: 02508201610067 [00:08:12]line Кассир: Арыкбаев Н. [00:08:12]line 25.10.2024 00:08 [00:08:12]line Смена: 463 [00:08:12]line РНМ: 0000000000100030 [00:08:12]line ЗНМ: 0300000155 [00:08:12]line СНО: Общий режим [00:08:12]line Чеков за смену: 448 [00:08:12]line ФД за смену: 450 [00:08:12]line Всего чеков: 448 [00:08:12]line ИТОГИ ПРИХОД [00:08:12]line Чеков: 448 [00:08:12]line Общий итог: 564293.60 [00:08:12]line Итого наличными: 421778.00 [00:08:12]line Итого безнал.: 142515.60 [00:08:12]line НДС 0% : 0.00 [00:08:12]line НДС 12% : 59936.65 [00:08:12]line НСП 0% : 0.00 [00:08:12]line НСП 1,50% : 0.00 [00:08:12]line НСП 0,50% : 0.00 [00:08:12]line НСП 5% : 0.00 [00:08:12]line НСП 3% : 0.00 [00:08:12]line НСП 2% : 0.00 [00:08:12]line НСП 1% : 4994.52 [00:08:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:12]line Чеков: 0 [00:08:12]line Общий итог: 0.00 [00:08:12]line Итого наличными: 0.00 [00:08:12]line Итого безнал.: 0.00 [00:08:12]line НДС 0% : 0.00 [00:08:12]line НДС 12% : 0.00 [00:08:12]line НСП 0% : 0.00 [00:08:12]line НСП 1,50% : 0.00 [00:08:12]line НСП 0,50% : 0.00 [00:08:12]line НСП 5% : 0.00 [00:08:12]line НСП 3% : 0.00 [00:08:12]line НСП 2% : 0.00 [00:08:12]line НСП 1% : 0.00 [00:08:12]line ИТОГИ РАСХОД [00:08:12]line Чеков: 0 [00:08:12]line Общий итог: 0.00 [00:08:12]line Итого наличными: 0.00 [00:08:12]line Итого безнал.: 0.00 [00:08:12]line НДС 0% : 0.00 [00:08:12]line НДС 12% : 0.00 [00:08:12]line НСП 0% : 0.00 [00:08:12]line НСП 1,50% : 0.00 [00:08:12]line НСП 0,50% : 0.00 [00:08:12]line НСП 5% : 0.00 [00:08:12]line НСП 3% : 0.00 [00:08:12]line НСП 2% : 0.00 [00:08:12]line НСП 1% : 0.00 [00:08:12]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:12]line Чеков: 0 [00:08:12]line Общий итог: 0.00 [00:08:12]line Итого наличными: 0.00 [00:08:12]line Итого безнал.: 0.00 [00:08:12]line НДС 0% : 0.00 [00:08:12]line НДС 12% : 0.00 [00:08:12]line НСП 0% : 0.00 [00:08:12]line НСП 1,50% : 0.00 [00:08:12]line НСП 0,50% : 0.00 [00:08:12]line НСП 5% : 0.00 [00:08:12]line НСП 3% : 0.00 [00:08:12]line НСП 2% : 0.00 [00:08:12]line НСП 1% : 0.00 [00:08:12]line Сумма внесений: 0.00 [00:08:12]line Сумма выплат: 0.00 [00:08:12]line Нал. в кассе: 421778.00 [00:08:12]line НС Приход: 290510677.22 [00:08:12]line НС Возвр.Прихода: 51314934.00 [00:08:12]line НС Расход: 0.00 [00:08:12]line НС Возвр.Расхода: 0.00 [00:08:12]line ФД: 189376 [00:08:12]line ФМ: 0000000000965340 [00:08:12]line ФПД: 281172937167180 [00:08:12]OFD Sender: Processing packet 189376 [packets to send 1062, broken 1061] [00:08:12]ProducePacketName [00:08:12]name=ofd_packets/00189376 [00:08:12]OFD Sender: To server: pG, [00:08:12]CommunicateWithHost lk.salyk.kg:30040 [00:08:12]ConnectInit lk.salyk.kg [00:08:12]written 0, free lines is 4095 [00:08:12]Connected sock=10 [00:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 7A 05 00 00 94 18 72 05 42 D5 5A 05 01 00 05 00 66 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 64 E1 1A 67 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 AA 04 D8 04 6E 04 04 00 C0 01 00 00 69 04 A5 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 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 Write to MH i2c: F7 01 03 00 01 00 00 A7 00 86 6C 2D 04 [00:08:13]99 00 6F 04 04 00 00 00 00 Write i2c OK [00:08:13]00 MH_I2C_Read... [00:08:13]B1 Read from MH i2c: 04 01 01 [00:08:13]00 MH_I2C_Read... [00:08:13]00 70 04 01 00 00 72 04 01 00 00 00 Read from MH i2c: 04 01 7E 07 00 00 EE [00:08:13]03 MH_I2C_Read... [00:08:13]0A Read from MH i2c: 00 01 F2 07 03 00 01 A7 00 86 00 00 F3 00 03 00 01 00 00 00 00 DE EE 09 03 1B 0A [00:08:13]00 RasterBufferAndPrint [00:08:13]F2 line [00:08:13]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 line [00:08:13]0A line [00:08:13]00 line [00:08:13]F6 line [00:08:13]03 01 00 04 F7 03 01 00 written 0, free lines is 2743 [00:08:13]00 EF 03 0A 00 F6 03 01 00 03 F7 MH_Cut [00:08:13]03 Write to MH i2c: 01 D1 00 01 00 00 EF AE 03 86 0A 01 06 00 [00:08:13]F6 03 01 00 02 F7 03 01 00 00 EF 03 Write i2c OK [00:08:13]0A MH_I2C_Read... [00:08:13]00 Read from MH i2c: F6 D1 03 [00:08:13]01 MH_I2C_Read... [00:08:13]00 01 F7 03 01 00 00 6D 04 4C Read from MH i2c: 02 D1 78 01 04 00 04 [00:08:13]00 MH_I2C_Read... [00:08:13]00 Read from MH i2c: 00 D1 00 01 00 00 79 AE 04 86 8D 00 00 05 6F [00:08:13]04 Write to MH i2c: 04 01 00 00 00 00 AF 00 86 00 35 00 [00:08:13]B1 04 00 00 70 04 00 00 72 04 00 00 00 Write i2c OK [00:08:13]04 MH_I2C_Read... [00:08:13]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 FF B9 AD 0A 51 4C C3 F1 D5 87 65 A5 7D D6 [00:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 A7 47 00 11 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 39 36 35 33 34 30 10 04 04 00 C0 E3 02 00 *** Cut start [00:08:14]F4 03 04 00 58 8B 1A 67 B6 04 01 00 *** Partial cut [00:08:14]00 FF DD 07 86 93 C4 58 01 [00:08:15]CommunicateWithHost err = 0 [00:08:15]CheckOFDResponse [00:08:15]1017 (14) - 77093643461234 [00:08:15]*** CUTSNS_PIN = 1 [00:08:15]1041 (16) - 0000000000965340 [00:08:15]1040 (4) - 189376 [00:08:15]*** CUTSNS_PIN = 0 [00:08:15]1012 (4) - 24.10.2024 18:00 [00:08:15]1206 (1) - 0 [00:08:15]OFD Sender: Remove packet 189376 [00:08:15]ProducePacketName [00:08:15]name=ofd_packets/00189376 [00:08:15]NVStorageDeleteData [00:08:15]*** Brake cut motor [00:08:15]Read from MH i2c: 01 [00:08:15]MH_I2C_Read... [00:08:15]*** Stop cut motor [00:08:15]*** Cut end [00:08:15]Read from MH i2c: 01 07 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: 01 07 00 AF 86 00 00 00 00 00 FF 0F 4A [00:08:15]process_action close_shift done [00:08:15]requested_data is exist [00:08:15]produce_requested_data [00:08:15]requested_item fd.num is exist - process it [00:08:15]SAM_PROTO_GetFieldsCounters [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 00 00 [00:08:15]Write to MH i2c: E2 08 00 B0 86 80 13 00 00 00 00 00 00 B2 [00:08:15]OFD Sender: No OFD packet to send [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 62 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 62 00 B0 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [00:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:15]wFMCommunicate OK [00:08:15]SAM_PROTO_GetFieldsCounters done [00:08:15]requested_item shift.num is exist - process it [00:08:15]requested_item shift.opened is exist - process it [00:08:15]req_shift_opened [00:08:15]FM_GetShiftState [00:08:15]SAM_PROTO_GetShiftState [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 01 00 [00:08:15]Write to MH i2c: E2 08 00 B1 86 80 13 01 00 00 00 00 00 B4 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 B1 86 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [00:08:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetShiftState done [00:08:16]FM_GetShiftState done [00:08:16]req_shift_opened done [00:08:16]requested_item shift.open_date is exist - process it [00:08:16]req_shift_open_date [00:08:16]FM_GetShiftState [00:08:16]SAM_PROTO_GetShiftState [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 13 01 00 [00:08:16]Write to MH i2c: E2 08 00 B2 86 80 13 01 00 00 00 00 00 B5 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 0E 00 B2 86 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C0 [00:08:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetShiftState done [00:08:16]FM_GetShiftState done [00:08:16]req_shift_open_date done [00:08:16]produce_requested_data done [00:08:16]produce_requested_data return {"fd.num":189376,"shift.num":463,"shift.opened":0,"shift.open_date":0} [00:08:16]process_action_free close_shift [00:08:16]json_value_free [00:08:16]json_value_free done [00:08:16]process_json_proto returns [00:08:16]Send response to host [00:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":189376,"shift.num":463,"shift.opened":0,"shift.open_date":0}}} [00:08:16]free response buf [00:08:16]execute_script done [00:08:16]execute_script returns [00:08:16]free content buf [00:08:16]Sock 9.Close socket [00:08:16]Sock 9.Thread stoped [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]accept exits with 8 [00:15:07]New connection [00:15:07]New thread 3067071844 created [00:15:07]Thread 3067215204 joined [00:15:07]Waiting for new connection... [00:15:07] Sock 8.Parse request [00:15:07]Sock 8.Check first char [00:15:07]Sock 8.First char is OK [00:15:07]request: POST /json_proto HTTP/1.0 [00:15:07]Method: POST [00:15:07]URL: /json_proto [00:15:07]Method is POST - this is cgi request [00:15:07]url: /json_proto [00:15:07]query_string will be loaded in cgi processing [00:15:07]execute_cgi json_proto POST (null) [00:15:07]execute_cgi path=json_proto method=POST [00:15:07]POST find Content-Length [00:15:07]Host: 172.17.42.131:8080 [00:15:07]Content-Length: 215 [00:15:07]Content-Type: application/json [00:15:07] [00:15:07]POST finish read [00:15:07]Found Content-Length = 215 [00:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:07]execute_script... [00:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:07]POST & json_proto [00:15:07]process_json_proto [00:15:07]json parsed OK: [00:15:07]protocol is kg_v1.0 [00:15:07]action value=get_value [00:15:07]process_action get_value [00:15:07]cmd_get_value [00:15:07]process_action get_value done [00:15:07]requested_data is exist [00:15:07]produce_requested_data [00:15:07]requested_item kkm.sn is exist - process it [00:15:07]requested_item kkm.ver is exist - process it [00:15:07]requested_item fm.sn is exist - process it [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 11 00 00 [00:15:07]Write to MH i2c: E2 08 00 B3 86 80 11 00 00 00 00 00 00 B3 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 17 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 17 00 B3 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [00:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:15:07]wFMCommunicate OK [00:15:07]requested_item fd.num is exist - process it [00:15:07]SAM_PROTO_GetFieldsCounters [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 13 00 00 [00:15:07]Write to MH i2c: E2 08 00 B4 86 80 13 00 00 00 00 00 00 B6 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 62 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 62 00 B4 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [00:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 E3 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:07]wFMCommunicate OK [00:15:07]SAM_PROTO_GetFieldsCounters done [00:15:07]requested_item shift.num is exist - process it [00:15:07]requested_item shift.opened is exist - process it [00:15:07]req_shift_opened [00:15:07]FM_GetShiftState [00:15:07]SAM_PROTO_GetShiftState [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 13 01 00 [00:15:07]Write to MH i2c: E2 08 00 B5 86 80 13 01 00 00 00 00 00 B8 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 0E 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 0E 00 B5 86 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C3 [00:15:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:07]wFMCommunicate OK [00:15:07]SAM_PROTO_GetShiftState done [00:15:07]FM_GetShiftState done [00:15:07]req_shift_opened done [00:15:07]requested_item shift.open_date is exist - process it [00:15:07]req_shift_open_date [00:15:07]FM_GetShiftState [00:15:07]SAM_PROTO_GetShiftState [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 13 01 00 [00:15:07]Write to MH i2c: E2 08 00 B6 86 80 13 01 00 00 00 00 00 B9 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 0E 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 0E 00 B6 86 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C4 [00:15:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:07]wFMCommunicate OK [00:15:07]SAM_PROTO_GetShiftState done [00:15:07]FM_GetShiftState done [00:15:07]req_shift_open_date done [00:15:07]produce_requested_data done [00:15:07]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189376,"shift.num":463,"shift.opened":0,"shift.open_date":0} [00:15:07]process_action_free get_value [00:15:07]json_value_free [00:15:07]json_value_free done [00:15:07]process_json_proto returns [00:15:07]Send response to host [00:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":189376,"shift.num":463,"shift.opened":0,"shift.open_date":0}}} [00:15:07]free response buf [00:15:07]execute_script done [00:15:07]execute_script returns [00:15:07]free content buf [00:15:07]Sock 8.Close socket [00:15:07]Sock 8.Thread stoped [00:15:07]accept exits with 9 [00:15:07]New connection [00:15:07]New thread 3067215204 created [00:15:07]Thread 3067071844 joined [00:15:07]Waiting for new connection... [00:15:07] Sock 9.Parse request [00:15:07]Sock 9.Check first char [00:15:07]Sock 9.First char is OK [00:15:07]request: POST /json_proto HTTP/1.0 [00:15:07]Method: POST [00:15:07]URL: /json_proto [00:15:07]Method is POST - this is cgi request [00:15:07]url: /json_proto [00:15:07]query_string will be loaded in cgi processing [00:15:07]execute_cgi json_proto POST (null) [00:15:07]execute_cgi path=json_proto method=POST [00:15:07]POST find Content-Length [00:15:07]Host: 172.17.42.131:8080 [00:15:07]Content-Length: 331 [00:15:07]Content-Type: application/json [00:15:07] [00:15:07]POST finish read [00:15:07]Found Content-Length = 331 [00:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:07]execute_script... [00:15:07]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:15:07]POST & json_proto [00:15:07]process_json_proto [00:15:07]json parsed OK: [00:15:07]protocol is kg_v1.0 [00:15:07]action value=get_value [00:15:07]process_action get_value [00:15:07]cmd_get_value [00:15:07]process_action get_value done [00:15:07]requested_data is exist [00:15:07]produce_requested_data [00:15:07]requested_item fm.sale.total is exist - process it [00:15:07]SAM_PROTO_GetFMData [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 13 03 00 [00:15:07]Write to MH i2c: E2 08 00 B7 86 80 13 03 00 00 00 00 00 BC [00:15:07]OFD Sender: No OFD packet to send [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 B7 86 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 63 [00:15:08]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 B8 86 80 17 00 00 00 00 00 00 BE [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 B8 86 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 8B [00:15:08]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 B9 86 80 17 00 00 00 00 00 00 BF [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 B9 86 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:15:08]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 BA 86 80 17 00 00 00 00 00 00 C0 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 BA 86 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [00:15:09]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 BB 86 80 17 00 00 00 00 00 00 C1 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 E8 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 E8 00 BB 86 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 9F [00:15:09]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:09]wFMCommunicate OK [00:15:09]SAM_PROTO_GetFMData done [00:15:09]requested_item fm.sale_refund.total is exist - process it [00:15:09]requested_item fm.buy.total is exist - process it [00:15:09]requested_item shift.sale.total is exist - process it [00:15:09]SAM_PROTO_GetShiftData [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 13 02 00 [00:15:09]Write to MH i2c: E2 08 00 BC 86 80 13 02 00 00 00 00 00 C0 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 BC 86 00 B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [00:15:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C0 01 00 00 69 04 9E 00 6F 04 04 00 C0 01 00 00 B1 04 04 00 30 0B 5D 03 70 04 04 00 08 95 83 02 72 04 03 00 28 76 D9 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 C1 74 5B 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 FC 9E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 BD 86 80 17 00 00 00 00 00 00 C3 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 BD 86 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 DC [00:15:10]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:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 BE 86 80 17 00 00 00 00 00 00 C4 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 BE 86 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 7D [00:15:10]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:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 BF 86 80 17 00 00 00 00 00 00 C5 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 BF 86 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 3D [00:15:10]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:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 C0 86 80 17 00 00 00 00 00 00 C6 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 CE 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 CE 00 C0 86 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 AB [00:15:10]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:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_GetShiftData done [00:15:11]requested_item shift.sale.total_cash is exist - process it [00:15:11]requested_item shift.sale_refund.total is exist - process it [00:15:11]requested_item shift.sale_refund.total_cash is exist - process it [00:15:11]requested_item shift.buy.total is exist - process it [00:15:11]requested_item shift.buy.total_cash is exist - process it [00:15:11]produce_requested_data done [00:15:11]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:15:11]process_action_free get_value [00:15:11]json_value_free [00:15:11]json_value_free done [00:15:11]process_json_proto returns [00:15:11]Send response to host [00:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":564293.60,"shift.sale.total_cash":421778.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:15:11]free response buf [00:15:11]execute_script done [00:15:11]execute_script returns [00:15:11]free content buf [00:15:11]Sock 9.Close socket [00:15:11]Sock 9.Thread stoped [00:15:11]accept exits with 10 [00:15:11]New connection [00:15:11]New thread 3067071844 created [00:15:11]Thread 3067215204 joined [00:15:11]Waiting for new connection... [00:15:11] Sock 10.Parse request [00:15:11]Sock 10.Check first char [00:15:11]Sock 10.First char is OK [00:15:11]request: POST /json_proto HTTP/1.0 [00:15:11]Method: POST [00:15:11]URL: /json_proto [00:15:11]Method is POST - this is cgi request [00:15:11]url: /json_proto [00:15:11]query_string will be loaded in cgi processing [00:15:11]execute_cgi json_proto POST (null) [00:15:11]execute_cgi path=json_proto method=POST [00:15:11]POST find Content-Length [00:15:11]Host: 172.17.42.131:8080 [00:15:11]Content-Length: 284 [00:15:11]Content-Type: application/json [00:15:11] [00:15:11]POST finish read [00:15:11]Found Content-Length = 284 [00:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:11]execute_script... [00:15:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:11]POST & json_proto [00:15:11]process_json_proto [00:15:11]json parsed OK: [00:15:11]protocol is kg_v1.0 [00:15:11]action value=open_shift [00:15:11]process_action open_shift [00:15:11]cmd_open_shift [00:15:11]MH_GetDate [00:15:11]Write to MH i2c: F0 00 00 C1 86 36 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 C1 86 00 15 E3 1A 67 A0 18 CA 66 A0 [00:15:11]GetLastDocTimeStamp 1729814884 [00:15:11]current date 1729815317 [00:15:11]FM_GetShiftState [00:15:11]SAM_PROTO_GetShiftState [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 13 01 00 [00:15:11]Write to MH i2c: E2 08 00 C2 86 80 13 01 00 00 00 00 00 C5 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0E 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0E 00 C2 86 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D0 [00:15:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_GetShiftState done [00:15:11]FM_GetShiftState done [00:15:11]KKMCreateOpenShiftDocument [00:15:11]Load OK [00:15:11]Malloc new data [00:15:11]MH_GetDate [00:15:11]Write to MH i2c: F0 00 00 C3 86 38 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 C3 86 00 15 E3 1A 67 A0 18 CA 66 A2 [00:15:11]Malloc new data [00:15:11]KKMCreateOpenShiftDocument OK [00:15:11]KKMSetOpenShiftData OK [00:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:15:11]tlvbuf is 016E21C0 [00:15:11]KKMLoadAndSignOpenShiftData [00:15:11]SAM_PROTO_ProcessDocument [00:15:11]wFMCommunicate request_size=9 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:15:11]Write to MH i2c: E2 0C 00 C4 86 80 15 01 00 04 00 02 00 D4 00 00 00 A7 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C4 86 00 90 00 BE [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=23 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:15:11]Write to MH i2c: E2 1A 00 C5 86 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 C0 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C5 86 00 90 00 BF [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=39 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 [00:15:11]Write to MH i2c: E2 2A 00 C6 86 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 00 00 64 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C6 86 00 90 00 C0 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=92 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 [00:15:11]Write to MH i2c: E2 5F 00 C7 86 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 00 00 F1 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C7 86 00 90 00 C1 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=50 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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:15:11]Write to MH i2c: E2 35 00 C8 86 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 4B [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C8 86 00 90 00 C2 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=13 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 08 F4 03 04 00 15 E3 1A 67 [00:15:11]Write to MH i2c: E2 10 00 C9 86 80 15 02 00 08 00 F4 03 04 00 15 E3 1A 67 00 00 53 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 C9 86 00 90 00 C3 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=25 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:15:11]Write to MH i2c: E2 1C 00 CA 86 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 1D [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 CA 86 00 90 00 C4 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 03 00 [00:15:11]Write to MH i2c: E2 08 00 CB 86 80 15 03 00 00 00 00 00 D2 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 38 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 38 00 CB 86 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E3 02 00 0E 04 04 00 D0 01 00 00 35 04 06 00 71 D4 FA 3A C9 BC 90 00 0E [00:15:12]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 E3 02 00 0E 04 04 00 D0 01 00 00 35 04 06 00 71 D4 FA 3A C9 BC 90 00 [00:15:12]wFMCommunicate OK [00:15:12]SAM_PROTO_ProcessDocument answer len = 51 [00:15:12]SAM_PROTO_ProcessDocument done [00:15:12]SetTLVBufToDocument [00:15:12]Processing tag 1209 (04B9) [00:15:12]Malloc new data [00:15:12]Processing tag 1041 (0411) [00:15:12]Processing tag 1040 (0410) [00:15:12]Malloc new data [00:15:12]Processing tag 1038 (040E) [00:15:12]Malloc new data [00:15:12]Processing tag 1077 (0435) [00:15:12]Malloc new data [00:15:12]SetTLVBufToDocument err=0 [00:15:12]KKMLoadAndSignOpenShiftData store KKM data [00:15:12]KKMLoadAndSignOpenShiftData err=0 [00:15:12]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Суйунбай уулу И. Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 Место: АЗС № 86 "Партнер Нефть" 25.10.2024 00:15 Смена: 464 РНМ: 0000000000100030 ЗНМ: 0300000155 ФД: 189377 ФМ: 0000000000965340 ФПД: 125159545162172 [00:15:12]StoreToDocumentArchive [00:15:12]shift 464 fd 189377 [00:15:12]Create dir for shift 0464 [00:15:12]save to /storage/0464/doc_00189377 [00:15:12]save last doc name /storage/0464/doc_00189377 to /storage/kkm_last_doc_name [00:15:12]save OK [00:15:12]Clear old archive folders... [00:15:12]Remove dir /storage/0463 [00:15:12]opendir ok [00:15:12]file . [00:15:12]file .. [00:15:12]file doc_00188927 [00:15:12]remove file /storage/0463/doc_00188927 [00:15:12]file doc_00188928 [00:15:12]remove file /storage/0463/doc_00188928 [00:15:12]file doc_00188929 [00:15:12]remove file /storage/0463/doc_00188929 [00:15:12]file doc_00188930 [00:15:12]remove file /storage/0463/doc_00188930 [00:15:12]file doc_00188931 [00:15:12]remove file /storage/0463/doc_00188931 [00:15:12]file doc_00188932 [00:15:12]remove file /storage/0463/doc_00188932 [00:15:12]file doc_00188933 [00:15:12]remove file /storage/0463/doc_00188933 [00:15:12]file doc_00188934 [00:15:12]remove file /storage/0463/doc_00188934 [00:15:12]file doc_00188935 [00:15:12]remove file /storage/0463/doc_00188935 [00:15:12]file doc_00188936 [00:15:12]remove file /storage/0463/doc_00188936 [00:15:12]file doc_00188937 [00:15:12]remove file /storage/0463/doc_00188937 [00:15:12]file doc_00188938 [00:15:12]remove file /storage/0463/doc_00188938 [00:15:12]file doc_00188939 [00:15:12]remove file /storage/0463/doc_00188939 [00:15:12]file doc_00188940 [00:15:12]remove file /storage/0463/doc_00188940 [00:15:12]file doc_00188941 [00:15:12]remove file /storage/0463/doc_00188941 [00:15:12]file doc_00188942 [00:15:12]remove file /storage/0463/doc_00188942 [00:15:12]file doc_00188943 [00:15:12]remove file /storage/0463/doc_00188943 [00:15:12]file doc_00188944 [00:15:12]remove file /storage/0463/doc_00188944 [00:15:12]file doc_00188945 [00:15:12]remove file /storage/0463/doc_00188945 [00:15:12]file doc_00188946 [00:15:12]remove file /storage/0463/doc_00188946 [00:15:12]file doc_00188947 [00:15:12]remove file /storage/0463/doc_00188947 [00:15:12]file doc_00188948 [00:15:12]remove file /storage/0463/doc_00188948 [00:15:12]file doc_00188949 [00:15:12]remove file /storage/0463/doc_00188949 [00:15:12]file doc_00188950 [00:15:12]remove file /storage/0463/doc_00188950 [00:15:12]file doc_00188951 [00:15:12]remove file /storage/0463/doc_00188951 [00:15:12]file doc_00188952 [00:15:12]remove file /storage/0463/doc_00188952 [00:15:12]file doc_00188953 [00:15:12]remove file /storage/0463/doc_00188953 [00:15:12]file doc_00188954 [00:15:12]remove file /storage/0463/doc_00188954 [00:15:12]file doc_00188955 [00:15:12]remove file /storage/0463/doc_00188955 [00:15:12]file doc_00188956 [00:15:12]remove file /storage/0463/doc_00188956 [00:15:12]file doc_00188957 [00:15:12]remove file /storage/0463/doc_00188957 [00:15:12]file doc_00188958 [00:15:12]remove file /storage/0463/doc_00188958 [00:15:12]file doc_00188959 [00:15:12]remove file /storage/0463/doc_00188959 [00:15:12]file doc_00188960 [00:15:12]remove file /storage/0463/doc_00188960 [00:15:12]file doc_00188961 [00:15:12]remove file /storage/0463/doc_00188961 [00:15:12]file doc_00188962 [00:15:12]remove file /storage/0463/doc_00188962 [00:15:12]file doc_00188963 [00:15:12]remove file /storage/0463/doc_00188963 [00:15:12]file doc_00188964 [00:15:12]remove file /storage/0463/doc_00188964 [00:15:12]file doc_00188965 [00:15:12]remove file /storage/0463/doc_00188965 [00:15:12]file doc_00188966 [00:15:12]remove file /storage/0463/doc_00188966 [00:15:12]file doc_00188967 [00:15:12]remove file /storage/0463/doc_00188967 [00:15:12]file doc_00188968 [00:15:12]remove file /storage/0463/doc_00188968 [00:15:12]file doc_00188969 [00:15:12]remove file /storage/0463/doc_00188969 [00:15:12]file doc_00188970 [00:15:12]remove file /storage/0463/doc_00188970 [00:15:12]file doc_00188971 [00:15:12]remove file /storage/0463/doc_00188971 [00:15:12]file doc_00188972 [00:15:12]remove file /storage/0463/doc_00188972 [00:15:12]file doc_00188973 [00:15:12]remove file /storage/0463/doc_00188973 [00:15:12]file doc_00188974 [00:15:12]remove file /storage/0463/doc_00188974 [00:15:12]file doc_00188975 [00:15:12]remove file /storage/0463/doc_00188975 [00:15:12]file doc_00188976 [00:15:12]remove file /storage/0463/doc_00188976 [00:15:12]file doc_00188977 [00:15:12]remove file /storage/0463/doc_00188977 [00:15:12]file doc_00188978 [00:15:12]remove file /storage/0463/doc_00188978 [00:15:12]file doc_00188979 [00:15:12]remove file /storage/0463/doc_00188979 [00:15:12]file doc_00188980 [00:15:12]remove file /storage/0463/doc_00188980 [00:15:12]file doc_00188981 [00:15:12]remove file /storage/0463/doc_00188981 [00:15:12]file doc_00188982 [00:15:12]remove file /storage/0463/doc_00188982 [00:15:12]file doc_00188983 [00:15:12]remove file /storage/0463/doc_00188983 [00:15:12]file doc_00188984 [00:15:12]remove file /storage/0463/doc_00188984 [00:15:12]file doc_00188985 [00:15:12]remove file /storage/0463/doc_00188985 [00:15:12]file doc_00188986 [00:15:12]remove file /storage/0463/doc_00188986 [00:15:12]file doc_00188987 [00:15:12]remove file /storage/0463/doc_00188987 [00:15:12]file doc_00188988 [00:15:12]remove file /storage/0463/doc_00188988 [00:15:12]file doc_00188989 [00:15:12]remove file /storage/0463/doc_00188989 [00:15:12]file doc_00188990 [00:15:12]remove file /storage/0463/doc_00188990 [00:15:12]file doc_00188991 [00:15:12]remove file /storage/0463/doc_00188991 [00:15:12]file doc_00188992 [00:15:12]remove file /storage/0463/doc_00188992 [00:15:12]file doc_00188993 [00:15:12]remove file /storage/0463/doc_00188993 [00:15:12]file doc_00188994 [00:15:12]remove file /storage/0463/doc_00188994 [00:15:12]file doc_00188995 [00:15:12]remove file /storage/0463/doc_00188995 [00:15:12]file doc_00188996 [00:15:12]remove file /storage/0463/doc_00188996 [00:15:12]file doc_00188997 [00:15:12]remove file /storage/0463/doc_00188997 [00:15:12]file doc_00188998 [00:15:12]remove file /storage/0463/doc_00188998 [00:15:12]file doc_00188999 [00:15:12]remove file /storage/0463/doc_00188999 [00:15:12]file doc_00189000 [00:15:12]remove file /storage/0463/doc_00189000 [00:15:12]file doc_00189001 [00:15:12]remove file /storage/0463/doc_00189001 [00:15:12]file doc_00189002 [00:15:12]remove file /storage/0463/doc_00189002 [00:15:12]file doc_00189003 [00:15:12]remove file /storage/0463/doc_00189003 [00:15:12]file doc_00189004 [00:15:12]remove file /storage/0463/doc_00189004 [00:15:12]file doc_00189005 [00:15:12]remove file /storage/0463/doc_00189005 [00:15:12]file doc_00189006 [00:15:12]remove file /storage/0463/doc_00189006 [00:15:12]file doc_00189007 [00:15:12]remove file /storage/0463/doc_00189007 [00:15:12]file doc_00189008 [00:15:12]remove file /storage/0463/doc_00189008 [00:15:12]file doc_00189009 [00:15:12]remove file /storage/0463/doc_00189009 [00:15:12]file doc_00189010 [00:15:12]remove file /storage/0463/doc_00189010 [00:15:12]file doc_00189011 [00:15:12]remove file /storage/0463/doc_00189011 [00:15:12]file doc_00189012 [00:15:12]remove file /storage/0463/doc_00189012 [00:15:12]file doc_00189013 [00:15:12]remove file /storage/0463/doc_00189013 [00:15:12]file doc_00189014 [00:15:12]remove file /storage/0463/doc_00189014 [00:15:12]file doc_00189015 [00:15:12]remove file /storage/0463/doc_00189015 [00:15:12]file doc_00189016 [00:15:12]remove file /storage/0463/doc_00189016 [00:15:12]file doc_00189017 [00:15:12]remove file /storage/0463/doc_00189017 [00:15:12]file doc_00189018 [00:15:12]remove file /storage/0463/doc_00189018 [00:15:12]file doc_00189019 [00:15:12]remove file /storage/0463/doc_00189019 [00:15:12]file doc_00189020 [00:15:12]remove file /storage/0463/doc_00189020 [00:15:12]file doc_00189021 [00:15:12]remove file /storage/0463/doc_00189021 [00:15:12]file doc_00189022 [00:15:12]remove file /storage/0463/doc_00189022 [00:15:12]file doc_00189023 [00:15:12]remove file /storage/0463/doc_00189023 [00:15:12]file doc_00189024 [00:15:12]remove file /storage/0463/doc_00189024 [00:15:12]file doc_00189025 [00:15:12]remove file /storage/0463/doc_00189025 [00:15:12]file doc_00189026 [00:15:12]remove file /storage/0463/doc_00189026 [00:15:12]file doc_00189027 [00:15:12]remove file /storage/0463/doc_00189027 [00:15:12]file doc_00189028 [00:15:12]remove file /storage/0463/doc_00189028 [00:15:12]file doc_00189029 [00:15:12]remove file /storage/0463/doc_00189029 [00:15:12]file doc_00189030 [00:15:12]remove file /storage/0463/doc_00189030 [00:15:12]file doc_00189031 [00:15:12]remove file /storage/0463/doc_00189031 [00:15:12]file doc_00189032 [00:15:12]remove file /storage/0463/doc_00189032 [00:15:12]file doc_00189033 [00:15:12]remove file /storage/0463/doc_00189033 [00:15:12]file doc_00189034 [00:15:12]remove file /storage/0463/doc_00189034 [00:15:12]file doc_00189035 [00:15:12]remove file /storage/0463/doc_00189035 [00:15:12]file doc_00189036 [00:15:12]remove file /storage/0463/doc_00189036 [00:15:12]file doc_00189037 [00:15:12]remove file /storage/0463/doc_00189037 [00:15:12]file doc_00189038 [00:15:12]remove file /storage/0463/doc_00189038 [00:15:12]file doc_00189039 [00:15:12]remove file /storage/0463/doc_00189039 [00:15:12]file doc_00189040 [00:15:12]remove file /storage/0463/doc_00189040 [00:15:12]file doc_00189041 [00:15:12]remove file /storage/0463/doc_00189041 [00:15:12]file doc_00189042 [00:15:12]remove file /storage/0463/doc_00189042 [00:15:12]file doc_00189043 [00:15:12]remove file /storage/0463/doc_00189043 [00:15:12]file doc_00189044 [00:15:12]remove file /storage/0463/doc_00189044 [00:15:12]file doc_00189045 [00:15:12]remove file /storage/0463/doc_00189045 [00:15:12]file doc_00189046 [00:15:12]remove file /storage/0463/doc_00189046 [00:15:12]file doc_00189047 [00:15:12]remove file /storage/0463/doc_00189047 [00:15:12]file doc_00189048 [00:15:13]remove file /storage/0463/doc_00189048 [00:15:13]OFD Sender: No OFD packet to send [00:15:13]file doc_00189049 [00:15:13]remove file /storage/0463/doc_00189049 [00:15:13]file doc_00189050 [00:15:13]remove file /storage/0463/doc_00189050 [00:15:13]file doc_00189051 [00:15:13]remove file /storage/0463/doc_00189051 [00:15:13]file doc_00189052 [00:15:13]remove file /storage/0463/doc_00189052 [00:15:13]file doc_00189053 [00:15:13]remove file /storage/0463/doc_00189053 [00:15:13]file doc_00189054 [00:15:13]remove file /storage/0463/doc_00189054 [00:15:13]file doc_00189055 [00:15:13]remove file /storage/0463/doc_00189055 [00:15:13]file doc_00189056 [00:15:13]remove file /storage/0463/doc_00189056 [00:15:13]file doc_00189057 [00:15:13]remove file /storage/0463/doc_00189057 [00:15:13]file doc_00189058 [00:15:13]remove file /storage/0463/doc_00189058 [00:15:13]file doc_00189059 [00:15:13]remove file /storage/0463/doc_00189059 [00:15:13]file doc_00189060 [00:15:13]remove file /storage/0463/doc_00189060 [00:15:13]file doc_00189061 [00:15:13]remove file /storage/0463/doc_00189061 [00:15:13]file doc_00189062 [00:15:13]remove file /storage/0463/doc_00189062 [00:15:13]file doc_00189063 [00:15:13]remove file /storage/0463/doc_00189063 [00:15:13]file doc_00189064 [00:15:13]remove file /storage/0463/doc_00189064 [00:15:13]file doc_00189065 [00:15:13]remove file /storage/0463/doc_00189065 [00:15:13]file doc_00189066 [00:15:13]remove file /storage/0463/doc_00189066 [00:15:13]file doc_00189067 [00:15:13]remove file /storage/0463/doc_00189067 [00:15:13]file doc_00189068 [00:15:13]remove file /storage/0463/doc_00189068 [00:15:13]file doc_00189069 [00:15:13]remove file /storage/0463/doc_00189069 [00:15:13]file doc_00189070 [00:15:13]remove file /storage/0463/doc_00189070 [00:15:13]file doc_00189071 [00:15:13]remove file /storage/0463/doc_00189071 [00:15:13]file doc_00189072 [00:15:13]remove file /storage/0463/doc_00189072 [00:15:13]file doc_00189073 [00:15:13]remove file /storage/0463/doc_00189073 [00:15:13]file doc_00189074 [00:15:13]remove file /storage/0463/doc_00189074 [00:15:13]file doc_00189075 [00:15:13]remove file /storage/0463/doc_00189075 [00:15:13]file doc_00189076 [00:15:13]remove file /storage/0463/doc_00189076 [00:15:13]file doc_00189077 [00:15:13]remove file /storage/0463/doc_00189077 [00:15:13]file doc_00189078 [00:15:13]remove file /storage/0463/doc_00189078 [00:15:13]file doc_00189079 [00:15:13]remove file /storage/0463/doc_00189079 [00:15:13]file doc_00189080 [00:15:13]remove file /storage/0463/doc_00189080 [00:15:13]file doc_00189081 [00:15:13]remove file /storage/0463/doc_00189081 [00:15:13]file doc_00189082 [00:15:13]remove file /storage/0463/doc_00189082 [00:15:13]file doc_00189083 [00:15:13]remove file /storage/0463/doc_00189083 [00:15:13]file doc_00189084 [00:15:13]remove file /storage/0463/doc_00189084 [00:15:13]file doc_00189085 [00:15:13]remove file /storage/0463/doc_00189085 [00:15:13]file doc_00189086 [00:15:13]remove file /storage/0463/doc_00189086 [00:15:13]file doc_00189087 [00:15:13]remove file /storage/0463/doc_00189087 [00:15:13]file doc_00189088 [00:15:13]remove file /storage/0463/doc_00189088 [00:15:13]file doc_00189089 [00:15:13]remove file /storage/0463/doc_00189089 [00:15:13]file doc_00189090 [00:15:13]remove file /storage/0463/doc_00189090 [00:15:13]file doc_00189091 [00:15:13]remove file /storage/0463/doc_00189091 [00:15:13]file doc_00189092 [00:15:13]remove file /storage/0463/doc_00189092 [00:15:13]file doc_00189093 [00:15:13]remove file /storage/0463/doc_00189093 [00:15:13]file doc_00189094 [00:15:13]remove file /storage/0463/doc_00189094 [00:15:13]file doc_00189095 [00:15:13]remove file /storage/0463/doc_00189095 [00:15:13]file doc_00189096 [00:15:13]remove file /storage/0463/doc_00189096 [00:15:13]file doc_00189097 [00:15:13]remove file /storage/0463/doc_00189097 [00:15:13]file doc_00189098 [00:15:13]remove file /storage/0463/doc_00189098 [00:15:13]file doc_00189099 [00:15:13]remove file /storage/0463/doc_00189099 [00:15:13]file doc_00189100 [00:15:13]remove file /storage/0463/doc_00189100 [00:15:13]file doc_00189101 [00:15:13]remove file /storage/0463/doc_00189101 [00:15:13]file doc_00189102 [00:15:13]remove file /storage/0463/doc_00189102 [00:15:13]file doc_00189103 [00:15:13]remove file /storage/0463/doc_00189103 [00:15:13]file doc_00189104 [00:15:13]remove file /storage/0463/doc_00189104 [00:15:13]file doc_00189105 [00:15:13]remove file /storage/0463/doc_00189105 [00:15:13]file doc_00189106 [00:15:13]remove file /storage/0463/doc_00189106 [00:15:13]file doc_00189107 [00:15:13]remove file /storage/0463/doc_00189107 [00:15:13]file doc_00189108 [00:15:13]remove file /storage/0463/doc_00189108 [00:15:13]file doc_00189109 [00:15:13]remove file /storage/0463/doc_00189109 [00:15:13]file doc_00189110 [00:15:13]remove file /storage/0463/doc_00189110 [00:15:13]file doc_00189111 [00:15:13]remove file /storage/0463/doc_00189111 [00:15:13]file doc_00189112 [00:15:13]remove file /storage/0463/doc_00189112 [00:15:13]file doc_00189113 [00:15:13]remove file /storage/0463/doc_00189113 [00:15:13]file doc_00189114 [00:15:13]remove file /storage/0463/doc_00189114 [00:15:13]file doc_00189115 [00:15:13]remove file /storage/0463/doc_00189115 [00:15:13]file doc_00189116 [00:15:13]remove file /storage/0463/doc_00189116 [00:15:13]file doc_00189117 [00:15:13]remove file /storage/0463/doc_00189117 [00:15:13]file doc_00189118 [00:15:13]remove file /storage/0463/doc_00189118 [00:15:13]file doc_00189119 [00:15:13]remove file /storage/0463/doc_00189119 [00:15:13]file doc_00189120 [00:15:13]remove file /storage/0463/doc_00189120 [00:15:13]file doc_00189121 [00:15:13]remove file /storage/0463/doc_00189121 [00:15:13]file doc_00189122 [00:15:13]remove file /storage/0463/doc_00189122 [00:15:13]file doc_00189123 [00:15:13]remove file /storage/0463/doc_00189123 [00:15:13]file doc_00189124 [00:15:13]remove file /storage/0463/doc_00189124 [00:15:13]file doc_00189125 [00:15:13]remove file /storage/0463/doc_00189125 [00:15:13]file doc_00189126 [00:15:13]remove file /storage/0463/doc_00189126 [00:15:13]file doc_00189127 [00:15:13]remove file /storage/0463/doc_00189127 [00:15:13]file doc_00189128 [00:15:13]remove file /storage/0463/doc_00189128 [00:15:13]file doc_00189129 [00:15:13]remove file /storage/0463/doc_00189129 [00:15:13]file doc_00189130 [00:15:13]remove file /storage/0463/doc_00189130 [00:15:13]file doc_00189131 [00:15:13]remove file /storage/0463/doc_00189131 [00:15:13]file doc_00189132 [00:15:13]remove file /storage/0463/doc_00189132 [00:15:13]file doc_00189133 [00:15:13]remove file /storage/0463/doc_00189133 [00:15:13]file doc_00189134 [00:15:13]remove file /storage/0463/doc_00189134 [00:15:13]file doc_00189135 [00:15:13]remove file /storage/0463/doc_00189135 [00:15:13]file doc_00189136 [00:15:13]remove file /storage/0463/doc_00189136 [00:15:13]file doc_00189137 [00:15:13]remove file /storage/0463/doc_00189137 [00:15:13]file doc_00189138 [00:15:13]remove file /storage/0463/doc_00189138 [00:15:13]file doc_00189139 [00:15:13]remove file /storage/0463/doc_00189139 [00:15:13]file doc_00189140 [00:15:13]remove file /storage/0463/doc_00189140 [00:15:13]file doc_00189141 [00:15:13]remove file /storage/0463/doc_00189141 [00:15:13]file doc_00189142 [00:15:13]remove file /storage/0463/doc_00189142 [00:15:13]file doc_00189143 [00:15:13]remove file /storage/0463/doc_00189143 [00:15:13]file doc_00189144 [00:15:13]remove file /storage/0463/doc_00189144 [00:15:13]file doc_00189145 [00:15:13]remove file /storage/0463/doc_00189145 [00:15:13]file doc_00189146 [00:15:13]remove file /storage/0463/doc_00189146 [00:15:13]file doc_00189147 [00:15:13]remove file /storage/0463/doc_00189147 [00:15:13]file doc_00189148 [00:15:13]remove file /storage/0463/doc_00189148 [00:15:13]file doc_00189149 [00:15:13]remove file /storage/0463/doc_00189149 [00:15:13]file doc_00189150 [00:15:13]remove file /storage/0463/doc_00189150 [00:15:13]file doc_00189151 [00:15:13]remove file /storage/0463/doc_00189151 [00:15:13]file doc_00189152 [00:15:13]remove file /storage/0463/doc_00189152 [00:15:13]file doc_00189153 [00:15:13]remove file /storage/0463/doc_00189153 [00:15:13]file doc_00189154 [00:15:13]remove file /storage/0463/doc_00189154 [00:15:13]file doc_00189155 [00:15:13]remove file /storage/0463/doc_00189155 [00:15:13]file doc_00189156 [00:15:13]remove file /storage/0463/doc_00189156 [00:15:13]file doc_00189157 [00:15:13]remove file /storage/0463/doc_00189157 [00:15:13]file doc_00189158 [00:15:13]remove file /storage/0463/doc_00189158 [00:15:13]file doc_00189159 [00:15:13]remove file /storage/0463/doc_00189159 [00:15:13]file doc_00189160 [00:15:13]remove file /storage/0463/doc_00189160 [00:15:13]file doc_00189161 [00:15:13]remove file /storage/0463/doc_00189161 [00:15:13]file doc_00189162 [00:15:13]remove file /storage/0463/doc_00189162 [00:15:13]file doc_00189163 [00:15:13]remove file /storage/0463/doc_00189163 [00:15:13]file doc_00189164 [00:15:13]remove file /storage/0463/doc_00189164 [00:15:13]file doc_00189165 [00:15:13]remove file /storage/0463/doc_00189165 [00:15:13]file doc_00189166 [00:15:13]remove file /storage/0463/doc_00189166 [00:15:13]file doc_00189167 [00:15:13]remove file /storage/0463/doc_00189167 [00:15:13]file doc_00189168 [00:15:13]remove file /storage/0463/doc_00189168 [00:15:13]file doc_00189169 [00:15:13]remove file /storage/0463/doc_00189169 [00:15:13]file doc_00189170 [00:15:13]remove file /storage/0463/doc_00189170 [00:15:13]file doc_00189171 [00:15:13]remove file /storage/0463/doc_00189171 [00:15:13]file doc_00189172 [00:15:13]remove file /storage/0463/doc_00189172 [00:15:13]file doc_00189173 [00:15:13]remove file /storage/0463/doc_00189173 [00:15:13]file doc_00189174 [00:15:13]remove file /storage/0463/doc_00189174 [00:15:13]file doc_00189175 [00:15:13]remove file /storage/0463/doc_00189175 [00:15:13]file doc_00189176 [00:15:13]remove file /storage/0463/doc_00189176 [00:15:13]file doc_00189177 [00:15:13]remove file /storage/0463/doc_00189177 [00:15:13]file doc_00189178 [00:15:13]remove file /storage/0463/doc_00189178 [00:15:13]file doc_00189179 [00:15:13]remove file /storage/0463/doc_00189179 [00:15:13]file doc_00189180 [00:15:13]remove file /storage/0463/doc_00189180 [00:15:13]file doc_00189181 [00:15:13]remove file /storage/0463/doc_00189181 [00:15:13]file doc_00189182 [00:15:13]remove file /storage/0463/doc_00189182 [00:15:13]file doc_00189183 [00:15:13]remove file /storage/0463/doc_00189183 [00:15:13]file doc_00189184 [00:15:13]remove file /storage/0463/doc_00189184 [00:15:13]file doc_00189185 [00:15:13]remove file /storage/0463/doc_00189185 [00:15:13]file doc_00189186 [00:15:13]remove file /storage/0463/doc_00189186 [00:15:13]file doc_00189187 [00:15:13]remove file /storage/0463/doc_00189187 [00:15:13]file doc_00189188 [00:15:13]remove file /storage/0463/doc_00189188 [00:15:13]file doc_00189189 [00:15:13]remove file /storage/0463/doc_00189189 [00:15:13]file doc_00189190 [00:15:13]remove file /storage/0463/doc_00189190 [00:15:13]file doc_00189191 [00:15:13]remove file /storage/0463/doc_00189191 [00:15:13]file doc_00189192 [00:15:13]remove file /storage/0463/doc_00189192 [00:15:13]file doc_00189193 [00:15:13]remove file /storage/0463/doc_00189193 [00:15:13]file doc_00189194 [00:15:13]remove file /storage/0463/doc_00189194 [00:15:13]file doc_00189195 [00:15:13]remove file /storage/0463/doc_00189195 [00:15:13]file doc_00189196 [00:15:13]remove file /storage/0463/doc_00189196 [00:15:13]file doc_00189197 [00:15:13]remove file /storage/0463/doc_00189197 [00:15:13]file doc_00189198 [00:15:13]remove file /storage/0463/doc_00189198 [00:15:13]file doc_00189199 [00:15:13]remove file /storage/0463/doc_00189199 [00:15:13]file doc_00189200 [00:15:13]remove file /storage/0463/doc_00189200 [00:15:13]file doc_00189201 [00:15:13]remove file /storage/0463/doc_00189201 [00:15:13]file doc_00189202 [00:15:13]remove file /storage/0463/doc_00189202 [00:15:13]file doc_00189203 [00:15:13]remove file /storage/0463/doc_00189203 [00:15:13]file doc_00189204 [00:15:13]remove file /storage/0463/doc_00189204 [00:15:13]file doc_00189205 [00:15:13]remove file /storage/0463/doc_00189205 [00:15:13]file doc_00189206 [00:15:13]remove file /storage/0463/doc_00189206 [00:15:13]file doc_00189207 [00:15:13]remove file /storage/0463/doc_00189207 [00:15:13]file doc_00189208 [00:15:13]remove file /storage/0463/doc_00189208 [00:15:13]file doc_00189209 [00:15:13]remove file /storage/0463/doc_00189209 [00:15:13]file doc_00189210 [00:15:13]remove file /storage/0463/doc_00189210 [00:15:13]file doc_00189211 [00:15:13]remove file /storage/0463/doc_00189211 [00:15:13]file doc_00189212 [00:15:13]remove file /storage/0463/doc_00189212 [00:15:13]file doc_00189213 [00:15:13]remove file /storage/0463/doc_00189213 [00:15:13]file doc_00189214 [00:15:13]remove file /storage/0463/doc_00189214 [00:15:13]file doc_00189215 [00:15:13]remove file /storage/0463/doc_00189215 [00:15:13]file doc_00189216 [00:15:13]remove file /storage/0463/doc_00189216 [00:15:13]file doc_00189217 [00:15:13]remove file /storage/0463/doc_00189217 [00:15:13]file doc_00189218 [00:15:13]remove file /storage/0463/doc_00189218 [00:15:13]file doc_00189219 [00:15:13]remove file /storage/0463/doc_00189219 [00:15:13]file doc_00189220 [00:15:13]remove file /storage/0463/doc_00189220 [00:15:13]file doc_00189221 [00:15:13]remove file /storage/0463/doc_00189221 [00:15:13]file doc_00189222 [00:15:13]remove file /storage/0463/doc_00189222 [00:15:13]file doc_00189223 [00:15:13]remove file /storage/0463/doc_00189223 [00:15:13]file doc_00189224 [00:15:13]remove file /storage/0463/doc_00189224 [00:15:13]file doc_00189225 [00:15:13]remove file /storage/0463/doc_00189225 [00:15:13]file doc_00189226 [00:15:13]remove file /storage/0463/doc_00189226 [00:15:13]file doc_00189227 [00:15:13]remove file /storage/0463/doc_00189227 [00:15:13]file doc_00189228 [00:15:13]remove file /storage/0463/doc_00189228 [00:15:13]file doc_00189229 [00:15:13]remove file /storage/0463/doc_00189229 [00:15:13]file doc_00189230 [00:15:13]remove file /storage/0463/doc_00189230 [00:15:13]file doc_00189231 [00:15:13]remove file /storage/0463/doc_00189231 [00:15:13]file doc_00189232 [00:15:13]remove file /storage/0463/doc_00189232 [00:15:13]file doc_00189233 [00:15:13]remove file /storage/0463/doc_00189233 [00:15:13]file doc_00189234 [00:15:13]remove file /storage/0463/doc_00189234 [00:15:13]file doc_00189235 [00:15:13]remove file /storage/0463/doc_00189235 [00:15:13]file doc_00189236 [00:15:14]remove file /storage/0463/doc_00189236 [00:15:14]file doc_00189237 [00:15:14]remove file /storage/0463/doc_00189237 [00:15:14]file doc_00189238 [00:15:14]remove file /storage/0463/doc_00189238 [00:15:14]file doc_00189239 [00:15:14]remove file /storage/0463/doc_00189239 [00:15:14]file doc_00189240 [00:15:14]remove file /storage/0463/doc_00189240 [00:15:14]file doc_00189241 [00:15:14]remove file /storage/0463/doc_00189241 [00:15:14]file doc_00189242 [00:15:14]remove file /storage/0463/doc_00189242 [00:15:14]file doc_00189243 [00:15:14]remove file /storage/0463/doc_00189243 [00:15:14]file doc_00189244 [00:15:14]remove file /storage/0463/doc_00189244 [00:15:14]file doc_00189245 [00:15:14]remove file /storage/0463/doc_00189245 [00:15:14]file doc_00189246 [00:15:14]remove file /storage/0463/doc_00189246 [00:15:14]file doc_00189247 [00:15:14]remove file /storage/0463/doc_00189247 [00:15:14]file doc_00189248 [00:15:14]remove file /storage/0463/doc_00189248 [00:15:14]file doc_00189249 [00:15:14]remove file /storage/0463/doc_00189249 [00:15:14]file doc_00189250 [00:15:14]remove file /storage/0463/doc_00189250 [00:15:14]file doc_00189251 [00:15:14]remove file /storage/0463/doc_00189251 [00:15:14]file doc_00189252 [00:15:14]remove file /storage/0463/doc_00189252 [00:15:14]file doc_00189253 [00:15:14]remove file /storage/0463/doc_00189253 [00:15:14]file doc_00189254 [00:15:14]remove file /storage/0463/doc_00189254 [00:15:14]file doc_00189255 [00:15:14]remove file /storage/0463/doc_00189255 [00:15:14]file doc_00189256 [00:15:14]remove file /storage/0463/doc_00189256 [00:15:14]file doc_00189257 [00:15:14]remove file /storage/0463/doc_00189257 [00:15:14]file doc_00189258 [00:15:14]remove file /storage/0463/doc_00189258 [00:15:14]file doc_00189259 [00:15:14]remove file /storage/0463/doc_00189259 [00:15:14]file doc_00189260 [00:15:14]remove file /storage/0463/doc_00189260 [00:15:14]file doc_00189261 [00:15:14]remove file /storage/0463/doc_00189261 [00:15:14]file doc_00189262 [00:15:14]remove file /storage/0463/doc_00189262 [00:15:14]file doc_00189263 [00:15:14]remove file /storage/0463/doc_00189263 [00:15:14]file doc_00189264 [00:15:14]remove file /storage/0463/doc_00189264 [00:15:14]file doc_00189265 [00:15:14]remove file /storage/0463/doc_00189265 [00:15:14]file doc_00189266 [00:15:14]remove file /storage/0463/doc_00189266 [00:15:14]file doc_00189267 [00:15:14]remove file /storage/0463/doc_00189267 [00:15:14]file doc_00189268 [00:15:14]remove file /storage/0463/doc_00189268 [00:15:14]file doc_00189269 [00:15:14]remove file /storage/0463/doc_00189269 [00:15:14]file doc_00189270 [00:15:14]remove file /storage/0463/doc_00189270 [00:15:14]file doc_00189271 [00:15:14]remove file /storage/0463/doc_00189271 [00:15:14]file doc_00189272 [00:15:14]remove file /storage/0463/doc_00189272 [00:15:14]file doc_00189273 [00:15:14]remove file /storage/0463/doc_00189273 [00:15:14]file doc_00189274 [00:15:14]remove file /storage/0463/doc_00189274 [00:15:14]file doc_00189275 [00:15:14]remove file /storage/0463/doc_00189275 [00:15:14]file doc_00189276 [00:15:14]remove file /storage/0463/doc_00189276 [00:15:14]file doc_00189277 [00:15:14]remove file /storage/0463/doc_00189277 [00:15:14]file doc_00189278 [00:15:14]remove file /storage/0463/doc_00189278 [00:15:14]file doc_00189279 [00:15:14]remove file /storage/0463/doc_00189279 [00:15:14]file doc_00189280 [00:15:14]remove file /storage/0463/doc_00189280 [00:15:14]file doc_00189281 [00:15:14]remove file /storage/0463/doc_00189281 [00:15:14]file doc_00189282 [00:15:14]remove file /storage/0463/doc_00189282 [00:15:14]file doc_00189283 [00:15:14]remove file /storage/0463/doc_00189283 [00:15:14]file doc_00189284 [00:15:14]remove file /storage/0463/doc_00189284 [00:15:14]file doc_00189285 [00:15:14]remove file /storage/0463/doc_00189285 [00:15:14]file doc_00189286 [00:15:14]remove file /storage/0463/doc_00189286 [00:15:14]file doc_00189287 [00:15:14]remove file /storage/0463/doc_00189287 [00:15:14]file doc_00189288 [00:15:14]remove file /storage/0463/doc_00189288 [00:15:14]file doc_00189289 [00:15:14]remove file /storage/0463/doc_00189289 [00:15:14]file doc_00189290 [00:15:14]remove file /storage/0463/doc_00189290 [00:15:14]file doc_00189291 [00:15:14]remove file /storage/0463/doc_00189291 [00:15:14]file doc_00189292 [00:15:14]remove file /storage/0463/doc_00189292 [00:15:14]file doc_00189293 [00:15:14]remove file /storage/0463/doc_00189293 [00:15:14]file doc_00189294 [00:15:14]remove file /storage/0463/doc_00189294 [00:15:14]file doc_00189295 [00:15:14]remove file /storage/0463/doc_00189295 [00:15:14]file doc_00189296 [00:15:14]remove file /storage/0463/doc_00189296 [00:15:14]file doc_00189297 [00:15:14]remove file /storage/0463/doc_00189297 [00:15:14]file doc_00189298 [00:15:14]remove file /storage/0463/doc_00189298 [00:15:14]file doc_00189299 [00:15:14]remove file /storage/0463/doc_00189299 [00:15:14]file doc_00189300 [00:15:14]remove file /storage/0463/doc_00189300 [00:15:14]file doc_00189301 [00:15:14]remove file /storage/0463/doc_00189301 [00:15:14]file doc_00189302 [00:15:14]remove file /storage/0463/doc_00189302 [00:15:14]file doc_00189303 [00:15:14]remove file /storage/0463/doc_00189303 [00:15:14]file doc_00189304 [00:15:14]remove file /storage/0463/doc_00189304 [00:15:14]file doc_00189305 [00:15:14]remove file /storage/0463/doc_00189305 [00:15:14]file doc_00189306 [00:15:14]remove file /storage/0463/doc_00189306 [00:15:14]file doc_00189307 [00:15:14]remove file /storage/0463/doc_00189307 [00:15:14]file doc_00189308 [00:15:14]remove file /storage/0463/doc_00189308 [00:15:14]file doc_00189309 [00:15:14]remove file /storage/0463/doc_00189309 [00:15:14]file doc_00189310 [00:15:14]remove file /storage/0463/doc_00189310 [00:15:14]file doc_00189311 [00:15:14]remove file /storage/0463/doc_00189311 [00:15:14]file doc_00189312 [00:15:14]remove file /storage/0463/doc_00189312 [00:15:14]file doc_00189313 [00:15:14]remove file /storage/0463/doc_00189313 [00:15:14]file doc_00189314 [00:15:14]remove file /storage/0463/doc_00189314 [00:15:14]file doc_00189315 [00:15:14]remove file /storage/0463/doc_00189315 [00:15:14]file doc_00189316 [00:15:14]remove file /storage/0463/doc_00189316 [00:15:14]file doc_00189317 [00:15:14]remove file /storage/0463/doc_00189317 [00:15:14]file doc_00189318 [00:15:14]remove file /storage/0463/doc_00189318 [00:15:14]file doc_00189319 [00:15:14]remove file /storage/0463/doc_00189319 [00:15:14]file doc_00189320 [00:15:14]remove file /storage/0463/doc_00189320 [00:15:14]file doc_00189321 [00:15:14]remove file /storage/0463/doc_00189321 [00:15:14]file doc_00189322 [00:15:14]remove file /storage/0463/doc_00189322 [00:15:14]file doc_00189323 [00:15:14]remove file /storage/0463/doc_00189323 [00:15:14]file doc_00189324 [00:15:14]remove file /storage/0463/doc_00189324 [00:15:14]file doc_00189325 [00:15:14]remove file /storage/0463/doc_00189325 [00:15:14]file doc_00189326 [00:15:14]remove file /storage/0463/doc_00189326 [00:15:14]file doc_00189327 [00:15:14]remove file /storage/0463/doc_00189327 [00:15:14]file doc_00189328 [00:15:14]remove file /storage/0463/doc_00189328 [00:15:14]file doc_00189329 [00:15:14]remove file /storage/0463/doc_00189329 [00:15:14]file doc_00189330 [00:15:14]remove file /storage/0463/doc_00189330 [00:15:14]file doc_00189331 [00:15:14]remove file /storage/0463/doc_00189331 [00:15:14]file doc_00189332 [00:15:14]remove file /storage/0463/doc_00189332 [00:15:14]file doc_00189333 [00:15:14]remove file /storage/0463/doc_00189333 [00:15:14]file doc_00189334 [00:15:14]remove file /storage/0463/doc_00189334 [00:15:14]file doc_00189335 [00:15:14]remove file /storage/0463/doc_00189335 [00:15:14]file doc_00189336 [00:15:14]remove file /storage/0463/doc_00189336 [00:15:14]file doc_00189337 [00:15:14]remove file /storage/0463/doc_00189337 [00:15:14]file doc_00189338 [00:15:14]remove file /storage/0463/doc_00189338 [00:15:14]file doc_00189339 [00:15:14]remove file /storage/0463/doc_00189339 [00:15:14]file doc_00189340 [00:15:14]remove file /storage/0463/doc_00189340 [00:15:14]file doc_00189341 [00:15:14]remove file /storage/0463/doc_00189341 [00:15:14]file doc_00189342 [00:15:14]remove file /storage/0463/doc_00189342 [00:15:14]file doc_00189343 [00:15:14]remove file /storage/0463/doc_00189343 [00:15:14]file doc_00189344 [00:15:14]remove file /storage/0463/doc_00189344 [00:15:14]file doc_00189345 [00:15:14]remove file /storage/0463/doc_00189345 [00:15:14]file doc_00189346 [00:15:14]remove file /storage/0463/doc_00189346 [00:15:14]file doc_00189347 [00:15:14]remove file /storage/0463/doc_00189347 [00:15:14]file doc_00189348 [00:15:14]remove file /storage/0463/doc_00189348 [00:15:14]file doc_00189349 [00:15:14]remove file /storage/0463/doc_00189349 [00:15:14]file doc_00189350 [00:15:14]remove file /storage/0463/doc_00189350 [00:15:14]file doc_00189351 [00:15:14]remove file /storage/0463/doc_00189351 [00:15:14]file doc_00189352 [00:15:14]remove file /storage/0463/doc_00189352 [00:15:14]file doc_00189353 [00:15:14]remove file /storage/0463/doc_00189353 [00:15:14]file doc_00189354 [00:15:14]remove file /storage/0463/doc_00189354 [00:15:14]file doc_00189355 [00:15:14]remove file /storage/0463/doc_00189355 [00:15:14]file doc_00189356 [00:15:14]remove file /storage/0463/doc_00189356 [00:15:14]file doc_00189357 [00:15:14]remove file /storage/0463/doc_00189357 [00:15:14]file doc_00189358 [00:15:14]remove file /storage/0463/doc_00189358 [00:15:14]file doc_00189359 [00:15:14]remove file /storage/0463/doc_00189359 [00:15:14]file doc_00189360 [00:15:14]remove file /storage/0463/doc_00189360 [00:15:14]file doc_00189361 [00:15:14]remove file /storage/0463/doc_00189361 [00:15:14]file doc_00189362 [00:15:14]remove file /storage/0463/doc_00189362 [00:15:14]file doc_00189363 [00:15:14]remove file /storage/0463/doc_00189363 [00:15:14]file doc_00189364 [00:15:14]remove file /storage/0463/doc_00189364 [00:15:14]file doc_00189365 [00:15:14]remove file /storage/0463/doc_00189365 [00:15:14]file doc_00189366 [00:15:14]remove file /storage/0463/doc_00189366 [00:15:14]file doc_00189367 [00:15:14]remove file /storage/0463/doc_00189367 [00:15:14]file doc_00189368 [00:15:14]remove file /storage/0463/doc_00189368 [00:15:14]file doc_00189369 [00:15:14]remove file /storage/0463/doc_00189369 [00:15:14]file doc_00189370 [00:15:14]remove file /storage/0463/doc_00189370 [00:15:14]file doc_00189371 [00:15:14]remove file /storage/0463/doc_00189371 [00:15:14]file doc_00189372 [00:15:14]remove file /storage/0463/doc_00189372 [00:15:14]file doc_00189373 [00:15:14]remove file /storage/0463/doc_00189373 [00:15:14]file doc_00189374 [00:15:14]remove file /storage/0463/doc_00189374 [00:15:14]file doc_00189375 [00:15:14]remove file /storage/0463/doc_00189375 [00:15:14]file doc_00189376 [00:15:14]remove file /storage/0463/doc_00189376 [00:15:14]remove dir /storage/0463 [00:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:15:14]tlvbuf is 015D0930 [00:15:14]SAM_PROTO_ClearQueue [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 09 00 00 [00:15:14]Write to MH i2c: E2 08 00 CC 86 80 09 00 00 00 00 00 00 C4 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 CC 86 00 90 00 C6 [00:15:14]RAPDU: 90 00 [00:15:14]wFMCommunicate OK [00:15:14]SAM_PROTO_ClearQueue done [00:15:14]KKMCreateOFDPacket [00:15:14]OFDProtocolAddRootSTLVToBuf [00:15:14]FM_MakeSignedData [00:15:14]FM_MakeSignedData [00:15:14]SAM_PROTO_SignData [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 0D 01 02 [00:15:14]Write to MH i2c: E2 08 00 CD 86 80 0D 01 02 00 00 00 00 CC [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 CD 86 00 90 00 C7 [00:15:14]RAPDU: 90 00 [00:15:14]wFMCommunicate OK [00:15:14]wFMCommunicate request_size=255 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 0D 02 02 FA 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 15 E3 1A 67 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:15:14]Write to MH i2c: E2 02 01 CE 86 80 0D 02 02 FA 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 15 E3 1A 67 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 5D [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 03 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 03 00 CE 86 00 90 00 C8 [00:15:15]RAPDU: 90 00 [00:15:15]wFMCommunicate OK [00:15:15]wFMCommunicate request_size=22 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 0D 02 02 11 30 39 36 35 33 34 30 35 04 06 00 71 D4 FA 3A C9 BC [00:15:15]Write to MH i2c: E2 19 00 CF 86 80 0D 02 02 11 00 30 39 36 35 33 34 30 35 04 06 00 71 D4 FA 3A C9 BC 00 00 99 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 03 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 03 00 CF 86 00 90 00 C9 [00:15:15]RAPDU: 90 00 [00:15:15]wFMCommunicate OK [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 0D 03 02 [00:15:15]Write to MH i2c: E2 08 00 D0 86 80 0D 03 02 00 00 00 00 D1 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 0B 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 0B 00 D0 86 00 AE A2 63 57 C9 E4 B9 11 90 00 53 [00:15:15]RAPDU: AE A2 63 57 C9 E4 B9 11 90 00 [00:15:15]wFMCommunicate OK [00:15:15]SAM_PROTO_SignData done [00:15:15]FM_MakeSignedData done [00:15:15]CreateOFDProtocolMessage [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 11 00 00 [00:15:15]Write to MH i2c: E2 08 00 D1 86 80 11 00 00 00 00 00 00 D1 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 17 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 17 00 D1 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [00:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:15:15]wFMCommunicate OK [00:15:15]CreateOFDProtocolMessage done [00:15:15]OFDSenderStorePacket 189377 [00:15:15]StoreOFDPacket docnum=189377 [00:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 1B 01 00 00 EC 28 13 01 5B 08 5A 02 01 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 15 E3 1A 67 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 71 D4 FA 3A C9 BC AE A2 63 57 C9 E4 B9 11 [00:15:15]CheckFolder [00:15:15]dirname=/storage/ofd_packets [00:15:15]CheckFolder done [00:15:15]ProducePacketName [00:15:15]name=ofd_packets/00189377 [00:15:15]NVStorageSaveData ofd_packets/00189377 [00:15:15]File name is /storage/ofd_packets/00189377 [00:15:15]Write 313 bytes [00:15:15]NVStorageSaveData done [00:15:15]OFDSenderStorePacket done [00:15:15]KKMCreateOFDPacket done [00:15:15]NVStorageSaveData kkm_last_timestamp [00:15:15]File name is /storage/kkm_last_timestamp [00:15:15]Write 4 bytes [00:15:15]NVStorageSaveData done [00:15:15]ExternCall_PrintAddStr [00:15:15]wPrintStart [00:15:15]Write to MH i2c: 01 00 00 D2 86 58 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 D2 86 00 00 00 00 00 FF 0F 6D [00:15:15]RasterBufferAndPrint [00:15:15]line Отчет об открытии смены [00:15:15]line ФФД: 1.0 [00:15:15]line ИНН: 02508201610067 [00:15:15]line Кассир: Суйунбай уулу И. [00:15:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:15:15]line Место: АЗС № 86 "Партнер Нефть" [00:15:15]line 25.10.2024 00:15 [00:15:15]line Смена: 464 [00:15:15]line РНМ: 0000000000100030 [00:15:15]line ЗНМ: 0300000155 [00:15:15]line ФД: 189377 [00:15:15]line ФМ: 0000000000965340 [00:15:15]line ФПД: 125159545162172 [00:15:15]written 0, free lines is 4095 [00:15:15]OFD Sender: Processing packet 189377 [packets to send 1062, broken 1061] [00:15:15]ProducePacketName [00:15:15]name=ofd_packets/00189377 [00:15:15]OFD Sender: To server: pG, [00:15:15]CommunicateWithHost lk.salyk.kg:30040 [00:15:15]ConnectInit lk.salyk.kg [00:15:15]Write to MH i2c: 01 00 00 E4 86 6A [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 E4 86 00 00 00 00 00 5A 0E D9 [00:15:15]RasterBufferAndPrint [00:15:15]line [00:15:15]line [00:15:15]line [00:15:15]line [00:15:15]line [00:15:15]written 0, free lines is 3687 [00:15:15]MH_Cut [00:15:15]Write to MH i2c: D1 01 00 EB 86 01 43 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: D1 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: D1 01 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: D1 01 00 EB 86 00 42 [00:15:15]Write to MH i2c: 01 00 00 EC 86 72 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]Connected sock=9 [00:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 1B 01 00 00 EC 28 13 01 5B 08 5A 02 01 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 15 E3 1A 67 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 71 D4 FA 3A C9 BC AE A2 63 57 C9 E4 B9 11 [00:15:16]*** Cut start [00:15:16]*** Partial cut [00:15:16]*** CUTSNS_PIN = 1 [00:15:16]*** CUTSNS_PIN = 0 [00:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 7D 47 00 96 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 39 36 35 33 34 30 10 04 04 00 C1 E3 02 00 F4 03 04 00 FE 8C 1A 67 B6 04 01 00 00 3B 34 66 83 21 A7 7C 70 [00:15:16]CommunicateWithHost err = 0 [00:15:16]CheckOFDResponse [00:15:16]1017 (14) - 77093643461234 [00:15:16]1041 (16) - 0000000000965340 [00:15:16]1040 (4) - 189377 [00:15:16]1012 (4) - 24.10.2024 18:07 [00:15:16]1206 (1) - 0 [00:15:16]OFD Sender: Remove packet 189377 [00:15:16]ProducePacketName [00:15:16]name=ofd_packets/00189377 [00:15:16]NVStorageDeleteData [00:15:16]*** Brake cut motor [00:15:17]Read from MH i2c: 01 [00:15:17]MH_I2C_Read... [00:15:17]*** Stop cut motor [00:15:17]*** Cut end [00:15:17]Read from MH i2c: 01 07 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: 01 07 00 EC 86 00 00 00 00 00 FF 0F 87 [00:15:17]process_action open_shift done [00:15:17]requested_data is exist [00:15:17]produce_requested_data [00:15:17]requested_item fd.num is exist - process it [00:15:17]SAM_PROTO_GetFieldsCounters [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 00 00 [00:15:17]Write to MH i2c: E2 08 00 ED 86 80 13 00 00 00 00 00 00 EF [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:17]OFD Sender: No OFD packet to send [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 62 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 62 00 ED 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 0E 04 04 00 D0 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 6D [00:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 E3 02 00 0E 04 04 00 D0 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:15:17]wFMCommunicate OK [00:15:17]SAM_PROTO_GetFieldsCounters done [00:15:17]requested_item shift.num is exist - process it [00:15:17]requested_item shift.opened is exist - process it [00:15:17]req_shift_opened [00:15:17]FM_GetShiftState [00:15:17]SAM_PROTO_GetShiftState [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 01 00 [00:15:17]Write to MH i2c: E2 08 00 EE 86 80 13 01 00 00 00 00 00 F1 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 0E 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 0E 00 EE 86 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 76 [00:15:17]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:15:17]wFMCommunicate OK [00:15:17]SAM_PROTO_GetShiftState done [00:15:17]FM_GetShiftState done [00:15:17]req_shift_opened done [00:15:17]requested_item shift.open_date is exist - process it [00:15:17]req_shift_open_date [00:15:17]req_shift_open_date done [00:15:17]produce_requested_data done [00:15:17]produce_requested_data return {"fd.num":189377,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:15:17]process_action_free open_shift [00:15:17]json_value_free [00:15:17]json_value_free done [00:15:17]process_json_proto returns [00:15:17]Send response to host [00:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":189377,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:15:17]free response buf [00:15:17]execute_script done [00:15:17]execute_script returns [00:15:17]free content buf [00:15:17]Sock 10.Close socket [00:15:17]Sock 10.Thread stoped [00:15:17]accept exits with 8 [00:15:17]New connection [00:15:17]New thread 3067215204 created [00:15:17]Thread 3067071844 joined [00:15:17]Waiting for new connection... [00:15:17] Sock 8.Parse request [00:15:17]Sock 8.Check first char [00:15:17]Sock 8.First char is OK [00:15:17]request: POST /json_proto HTTP/1.0 [00:15:17]Method: POST [00:15:17]URL: /json_proto [00:15:17]Method is POST - this is cgi request [00:15:17]url: /json_proto [00:15:17]query_string will be loaded in cgi processing [00:15:17]execute_cgi json_proto POST (null) [00:15:17]execute_cgi path=json_proto method=POST [00:15:17]POST find Content-Length [00:15:17]Host: 172.17.42.131:8080 [00:15:17]Content-Length: 331 [00:15:17]Content-Type: application/json [00:15:17] [00:15:17]POST finish read [00:15:17]Found Content-Length = 331 [00:15: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:15:17]execute_script... [00:15: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:15:17]POST & json_proto [00:15:17]process_json_proto [00:15:17]json parsed OK: [00:15:17]protocol is kg_v1.0 [00:15:17]action value=get_value [00:15:17]process_action get_value [00:15:17]cmd_get_value [00:15:17]process_action get_value done [00:15:17]requested_data is exist [00:15:17]produce_requested_data [00:15:17]requested_item fm.sale.total is exist - process it [00:15:17]SAM_PROTO_GetFMData [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 03 00 [00:15:17]Write to MH i2c: E2 08 00 EF 86 80 13 03 00 00 00 00 00 F4 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 EF 86 00 CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 9B [00:15:17]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 21 E0 02 00 69 04 A4 00 6F 04 04 00 92 DF 02 00 B1 04 05 00 4A 1D 94 C3 06 70 04 05 00 7C AC 1B A8 04 72 04 05 00 CE 70 78 1B 02 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 0B 59 EB B7 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 B9 62 53 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 17 00 00 [00:15:17]Write to MH i2c: E2 08 00 F0 86 80 17 00 00 00 00 00 00 F6 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 F0 86 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C3 [00:15:18]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 F1 86 80 17 00 00 00 00 00 00 F7 [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 F1 86 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D2 [00:15:18]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 F2 86 80 17 00 00 00 00 00 00 F8 [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 F2 86 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:15:19]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:19]wFMCommunicate OK [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 F3 86 80 17 00 00 00 00 00 00 F9 [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 E8 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 E8 00 F3 86 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D7 [00:15:19]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:19]wFMCommunicate OK [00:15:19]SAM_PROTO_GetFMData done [00:15:19]requested_item fm.sale_refund.total is exist - process it [00:15:19]requested_item fm.buy.total is exist - process it [00:15:19]requested_item shift.sale.total is exist - process it [00:15:19]SAM_PROTO_GetShiftData [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 13 02 00 [00:15:19]Write to MH i2c: E2 08 00 F4 86 80 13 02 00 00 00 00 00 F8 [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 F4 86 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 6B [00:15:20]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:15:20]wFMCommunicate OK [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 F5 86 80 17 00 00 00 00 00 00 FB [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 F5 86 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 03 [00:15:20]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:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 F6 86 80 17 00 00 00 00 00 00 FC [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 F6 86 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 CE [00:15:21]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:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 F7 86 80 17 00 00 00 00 00 00 FD [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 F7 86 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 6F [00:15:21]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:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:22]Write to MH i2c: E2 08 00 F8 86 80 17 00 00 00 00 00 00 FE [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 BD 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 BD 00 F8 86 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 E4 [00:15:22]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 OFD Sender: No OFD packet to send [00:15:22]03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:22]wFMCommunicate OK [00:15:22]SAM_PROTO_GetShiftData done [00:15:22]requested_item shift.sale.total_cash is exist - process it [00:15:22]requested_item shift.sale_refund.total is exist - process it [00:15:22]requested_item shift.sale_refund.total_cash is exist - process it [00:15:22]requested_item shift.buy.total is exist - process it [00:15:22]requested_item shift.buy.total_cash is exist - process it [00:15:22]produce_requested_data done [00:15:22]produce_requested_data return {"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.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:15:22]process_action_free get_value [00:15:22]json_value_free [00:15:22]json_value_free done [00:15:22]process_json_proto returns [00:15:22]Send response to host [00:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":290510677.22,"fm.sale_refund.total":51314934.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:15:22]free response buf [00:15:22]execute_script done [00:15:22]execute_script returns [00:15:22]free content buf [00:15:22]Sock 8.Close socket [00:15:22]Sock 8.Thread stoped [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:15]accept exits with 9 [00:19:15]New connection [00:19:15]New thread 3067071844 created [00:19:15]Thread 3067215204 joined [00:19:15]Waiting for new connection... [00:19:15] Sock 9.Parse request [00:19:15]Sock 9.Check first char [00:19:15]Sock 9.First char is OK [00:19:15]request: POST /json_proto HTTP/1.0 [00:19:15]Method: POST [00:19:15]URL: /json_proto [00:19:15]Method is POST - this is cgi request [00:19:15]url: /json_proto [00:19:15]query_string will be loaded in cgi processing [00:19:15]execute_cgi json_proto POST (null) [00:19:15]execute_cgi path=json_proto method=POST [00:19:15]POST find Content-Length [00:19:15]Host: 172.17.42.131:8080 [00:19:15]Content-Length: 677 [00:19:15]Content-Type: application/json [00:19:15] [00:19:15]POST finish read [00:19:15]Found Content-Length = 677 [00:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [00:19:15]execute_script... [00:19: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)211441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [00:19:15]POST & json_proto [00:19:15]process_json_proto [00:19:15]json parsed OK: [00:19:15]protocol is kg_v1.0 [00:19:15]action value=close_receipt [00:19:15]process_action close_receipt [00:19:15]cmd_close_receipt [00:19:15]MH_GetDate [00:19:15]Write to MH i2c: F0 00 00 F9 86 6E [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: F0 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: F0 09 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: F0 09 00 F9 86 00 09 E4 1A 67 A0 18 CA 66 CD [00:19:15]GetLastDocTimeStamp 1729815317 [00:19:15]current date 1729815561 [00:19:15]FM_GetShiftState [00:19:15]SAM_PROTO_GetShiftState [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 01 00 [00:19:15]Write to MH i2c: E2 08 00 FA 86 80 13 01 00 00 00 00 00 FD [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0E 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0E 00 FA 86 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 82 [00:19:15]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:19:15]wFMCommunicate OK [00:19:15]SAM_PROTO_GetShiftState done [00:19:15]FM_GetShiftState done [00:19:15]opened in 1729815317 [00:19:15]opened+sec_in_day 1729901717 [00:19:15]quantity*price = 20003 [00:19:15]sum+1 = 20004 [00:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 1 25.10.2024 00:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189378 ФПД: 50978825021992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189378&fm=50978825021992&tin=02508201610067®Number=0000000000100030&sum=20000 [00:19:16]StoreToDocumentArchive [00:19:16]shift 464 fd 189378 [00:19:16]save to /storage/0464/doc_00189378 [00:19:16]save last doc name /storage/0464/doc_00189378 to /storage/kkm_last_doc_name [00:19:16]save OK [00:19:16]Clear old archive folders... [00:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:19:16]tlvbuf is 01651520 [00:19:16]SAM_PROTO_ClearQueue [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 09 00 00 [00:19:16]Write to MH i2c: E2 08 00 07 87 80 09 00 00 00 00 00 00 00 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 03 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 03 00 07 87 00 90 00 02 [00:19:16]RAPDU: 90 00 [00:19:16]wFMCommunicate OK [00:19:16]SAM_PROTO_ClearQueue done [00:19:16]KKMCreateOFDPacket [00:19:16]OFDProtocolAddRootSTLVToBuf [00:19:16]FM_MakeSignedData [00:19:16]FM_MakeSignedData [00:19:16]SAM_PROTO_SignData [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 0D 01 02 [00:19:16]Write to MH i2c: E2 08 00 08 87 80 0D 01 02 00 00 00 00 08 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 03 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 03 00 08 87 00 90 00 03 [00:19:16]RAPDU: 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=255 [00:19:16]MH_SAM_APDU [00: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 00 F4 03 04 00 09 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E3 02 00 35 04 06 00 2E [00:19:16]Write to MH i2c: E2 02 01 09 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 00 F4 03 04 00 09 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E3 02 00 35 04 06 00 2E 00 00 52 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:17]Read from MH i2c: E2 03 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 03 00 09 87 00 90 00 04 [00:19:17]RAPDU: 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=10 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 0D 02 02 05 5D 6E C1 AA 28 [00:19:17]Write to MH i2c: E2 0D 00 0A 87 80 0D 02 02 05 00 5D 6E C1 AA 28 00 00 73 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 03 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 03 00 0A 87 00 90 00 05 [00:19:17]RAPDU: 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 0D 03 02 [00:19:17]Write to MH i2c: E2 08 00 0B 87 80 0D 03 02 00 00 00 00 0D [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 0B 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 0B 00 0B 87 00 0F FC FF 1F E1 35 EA 0A 90 00 41 [00:19:17]RAPDU: 0F FC FF 1F E1 35 EA 0A 90 00 [00:19:17]wFMCommunicate OK [00:19:17]SAM_PROTO_SignData done [00:19:17]FM_MakeSignedData done [00:19:17]CreateOFDProtocolMessage [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 11 00 00 [00:19:17]Write to MH i2c: E2 08 00 0C 87 80 11 00 00 00 00 00 00 0D [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 17 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 17 00 0C 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [00:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:17]wFMCommunicate OK [00:19:17]CreateOFDProtocolMessage done [00:19:17]OFDSenderStorePacket 189378 [00:19:17]StoreOFDPacket docnum=189378 [00:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 C4 07 01 81 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 00 F4 03 04 00 09 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E3 02 00 35 04 06 00 2E 5D 6E C1 AA 28 0F FC FF 1F E1 35 EA 0A [00:19:17]CheckFolder [00:19:17]dirname=/storage/ofd_packets [00:19:17]CheckFolder done [00:19:17]ProducePacketName [00:19:17]name=ofd_packets/00189378 [00:19:17]NVStorageSaveData ofd_packets/00189378 [00:19:17]File name is /storage/ofd_packets/00189378 [00:19:17]Write 301 bytes [00:19:17]NVStorageSaveData done [00:19:17]OFDSenderStorePacket done [00:19:17]KKMCreateOFDPacket done [00:19:17]NVStorageSaveData kkm_last_timestamp [00:19:17]File name is /storage/kkm_last_timestamp [00:19:17]Write 4 bytes [00:19:17]NVStorageSaveData done [00:19:17]ExternCall_PrintAddStr [00:19:17]wPrintStart [00:19:17]Write to MH i2c: 01 00 00 0D 87 94 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 07 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 07 00 0D 87 00 00 00 00 00 FF 0F A9 [00:19:17]RasterBufferAndPrint [00:19:17]line Счет N : (1)211441 [00:19:17]line ИНН: 02508201610067 [00:19:17]line Контрольно-Кассовый Чек [00:19:17]line ПРОДАЖА [00:19:17]line ТРК (МРК, ГНК) : 32 [00:19:17]line Товар: 2710124130 [00:19:17]line Аи-92-К-3 [00:19:17]line 2.990 * 66.90 [00:19:17]line = 200.03 [00:19:17]line НДС 12% НСП 1% [00:19:17]line > о реализуемом товаре [00:19:17]line ОКРУГЛЕНИЕ: -0.03 [00:19:17]line ИТОГО: 200.00 [00:19:17]line Внесено: 200.00 [00:19:17]line СДАЧА: 0.00 [00:19:17]line НСП 1% : 1.77 [00:19:17]line НДС 12% : 21.24 [00:19:17]line Наличными: 200.00 [00:19:17]line Безнал.: 0.00 [00:19:17]line Место: АЗС № 86 "Партнер Нефть" [00:19:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:19:17]line СНО: Общий режим [00:19:17]line Чек 1 25.10.2024 00:19 [00:19:17]line Смена: 464 ФФД: 1.0 [00:19:17]line ЗНМ: 0300000155 [00:19:17]line РНМ: 0000000000100030 [00:19:17]line Версия ККМ: 001 [00:19:17]line ФМ: 0000000000965340 [00:19:17]line ФД: 189378 [00:19:17]line ФПД: 50978825021992 [00:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189378&fm=50978825021992&tin=02508201610067®Number=0000000000100030&sum=20000 [00:19:17]written 0, free lines is 4095 [00:19:17]OFD Sender: Processing packet 189378 [packets to send 1062, broken 1061] [00:19:17]ProducePacketName [00:19:17]name=ofd_packets/00189378 [00:19:17]OFD Sender: To server: pG, [00:19:17]CommunicateWithHost lk.salyk.kg:30040 [00:19:17]ConnectInit lk.salyk.kg [00:19:17]Connected sock=10 [00:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 C4 07 01 81 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 00 F4 03 04 00 09 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 E3 02 00 35 04 06 00 2E 5D 6E C1 AA 28 0F FC FF 1F E1 35 EA 0A [00:19:17]Write to MH i2c: 01 00 00 38 87 BF [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 07 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: 01 07 00 38 87 00 00 00 00 00 50 0C 22 [00:19:17]RasterBufferAndPrint [00:19:17]line [00:19:17]line [00:19:17]line [00:19:17]line [00:19:17]line [00:19:17]written 0, free lines is 3156 [00:19:17]MH_Cut [00:19:17]Write to MH i2c: D1 01 00 3F 87 01 98 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: D1 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: D1 01 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: D1 01 00 3F 87 00 97 [00:19:17]Write to MH i2c: 01 00 00 40 87 C7 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 87 07 47 00 B7 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 39 36 35 33 34 30 10 04 04 00 C2 E3 02 00 F4 03 04 00 F0 8D 1A 67 B6 04 01 00 00 42 7D 4C 57 29 CC F9 49 [00:19:18]CommunicateWithHost err = 0 [00:19:18]CheckOFDResponse [00:19:18]1017 (14) - 77093643461234 [00:19:18]1041 (16) - 0000000000965340 [00:19:18]1040 (4) - 189378 [00:19:18]1012 (4) - 24.10.2024 18:12 [00:19:18]1206 (1) - 0 [00:19:18]OFD Sender: Remove packet 189378 [00:19:18]ProducePacketName [00:19:18]name=ofd_packets/00189378 [00:19:18]NVStorageDeleteData [00:19:18]OFD Sender: No OFD packet to send [00:19:19]*** Cut start [00:19:19]*** Partial cut [00:19:19]*** CUTSNS_PIN = 1 [00:19:19]*** CUTSNS_PIN = 0 [00:19:19]*** Brake cut motor [00:19:19]Read from MH i2c: 01 [00:19:19]MH_I2C_Read... [00:19:19]*** Stop cut motor [00:19:19]*** Cut end [00:19:19]Read from MH i2c: 01 07 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: 01 07 00 40 87 00 00 00 00 00 FF 0F DC [00:19:19]process_action close_receipt done [00:19:19]requested_data is exist [00:19:19]produce_requested_data [00:19:19]requested_item fm.sn is exist - process it [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 11 00 00 [00:19:19]Write to MH i2c: E2 08 00 41 87 80 11 00 00 00 00 00 00 42 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 17 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 17 00 41 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [00:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:19]wFMCommunicate OK [00:19:19]requested_item fd.num is exist - process it [00:19:19]SAM_PROTO_GetFieldsCounters [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 13 00 00 [00:19:19]Write to MH i2c: E2 08 00 42 87 80 13 00 00 00 00 00 00 45 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 62 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 62 00 42 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E3 02 00 0E 04 04 00 D0 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 C7 [00:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 E3 02 00 0E 04 04 00 D0 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:19:20]wFMCommunicate OK [00:19:20]SAM_PROTO_GetFieldsCounters done [00:19:20]requested_item shift.num is exist - process it [00:19:20]requested_item shift.opened is exist - process it [00:19:20]req_shift_opened [00:19:20]FM_GetShiftState [00:19:20]SAM_PROTO_GetShiftState [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 13 01 00 [00:19:20]Write to MH i2c: E2 08 00 43 87 80 13 01 00 00 00 00 00 47 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 0E 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 0E 00 43 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 CC [00:19:20]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:19:20]wFMCommunicate OK [00:19:20]SAM_PROTO_GetShiftState done [00:19:20]FM_GetShiftState done [00:19:20]req_shift_opened done [00:19:20]requested_item shift.open_date is exist - process it [00:19:20]req_shift_open_date [00:19:20]req_shift_open_date done [00:19:20]produce_requested_data done [00:19:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189378,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:19:20]process_action_free close_receipt [00:19:20]json_value_free [00:19:20]json_value_free done [00:19:20]process_json_proto returns [00:19:20]Send response to host [00:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189378,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:19:20]free response buf [00:19:20]execute_script done [00:19:20]execute_script returns [00:19:20]free content buf [00:19:20]Sock 9.Close socket [00:19:20]Sock 9.Thread stoped [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]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:58]accept exits with 8 [00:20:58]New connection [00:20:58]New thread 3067215204 created [00:20:58]Thread 3067071844 joined [00:20:58]Waiting for new connection... [00:20:58] Sock 8.Parse request [00:20:58]Sock 8.Check first char [00:20:58]Sock 8.First char is OK [00:20:58]request: POST /json_proto HTTP/1.0 [00:20:58]Method: POST [00:20:58]URL: /json_proto [00:20:58]Method is POST - this is cgi request [00:20:58]url: /json_proto [00:20:58]query_string will be loaded in cgi processing [00:20:58]execute_cgi json_proto POST (null) [00:20:58]execute_cgi path=json_proto method=POST [00:20:58]POST find Content-Length [00:20:58]Host: 172.17.42.131:8080 [00:20:58]Content-Length: 682 [00:20:58]Content-Type: application/json [00:20:58] [00:20:58]POST finish read [00:20:58]Found Content-Length = 682 [00:20:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:20:58]execute_script... [00:20: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)211442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:20:58]POST & json_proto [00:20:58]process_json_proto [00:20:58]json parsed OK: [00:20:58]protocol is kg_v1.0 [00:20:58]action value=close_receipt [00:20:58]process_action close_receipt [00:20:58]cmd_close_receipt [00:20:58]MH_GetDate [00:20:58]Write to MH i2c: F0 00 00 44 87 BA [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 44 87 00 70 E4 1A 67 A0 18 CA 66 80 [00:20:58]GetLastDocTimeStamp 1729815561 [00:20:58]current date 1729815664 [00:20:58]FM_GetShiftState [00:20:58]SAM_PROTO_GetShiftState [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 13 01 00 [00:20:58]Write to MH i2c: E2 08 00 45 87 80 13 01 00 00 00 00 00 49 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:59]Read from MH i2c: E2 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 0E 00 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 0E 00 45 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 CE [00:20:59]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:20:59]wFMCommunicate OK [00:20:59]SAM_PROTO_GetShiftState done [00:20:59]FM_GetShiftState done [00:20:59]opened in 1729815317 [00:20:59]opened+sec_in_day 1729901717 [00:20:59]quantity*price = 100021 [00:20:59]sum+1 = 100023 [00:20: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 2 25.10.2024 00:21 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189379 ФПД: 191933125000094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189379&fm=191933125000094&tin=02508201610067®Number=0000000000100030&sum=100000 [00:21:00]StoreToDocumentArchive [00:21:00]shift 464 fd 189379 [00:21:00]save to /storage/0464/doc_00189379 [00:21:00]save last doc name /storage/0464/doc_00189379 to /storage/kkm_last_doc_name [00:21:00]save OK [00:21:00]Clear old archive folders... [00:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:21:00]tlvbuf is 01737950 [00:21:00]SAM_PROTO_ClearQueue [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 09 00 00 [00:21:00]Write to MH i2c: E2 08 00 52 87 80 09 00 00 00 00 00 00 4B [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 52 87 00 90 00 4D [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_ClearQueue done [00:21:00]KKMCreateOFDPacket [00:21:00]OFDProtocolAddRootSTLVToBuf [00:21:00]FM_MakeSignedData [00:21:00]FM_MakeSignedData [00:21:00]SAM_PROTO_SignData [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 01 02 [00:21:00]Write to MH i2c: E2 08 00 53 87 80 0D 01 02 00 00 00 00 53 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 53 87 00 90 00 4E [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=255 [00:21:00]MH_SAM_APDU [00:21: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 33 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 02 00 00 00 F4 03 04 00 70 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E3 02 00 35 04 06 00 AE [00:21:00]Write to MH i2c: E2 02 01 54 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 33 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 02 00 00 00 F4 03 04 00 70 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E3 02 00 35 04 06 00 AE 00 00 E1 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 54 87 00 90 00 4F [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=10 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 02 02 05 8F E9 BC 7B 9E [00:21:00]Write to MH i2c: E2 0D 00 55 87 80 0D 02 02 05 00 8F E9 BC 7B 9E 00 00 AD [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 55 87 00 90 00 50 [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 03 02 [00:21:00]Write to MH i2c: E2 08 00 56 87 80 0D 03 02 00 00 00 00 58 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 56 87 00 FF 93 7E 0C D2 DC 4C C3 90 00 32 [00:21:00]RAPDU: FF 93 7E 0C D2 DC 4C C3 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_SignData done [00:21:00]FM_MakeSignedData done [00:21:00]CreateOFDProtocolMessage [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 11 00 00 [00:21:00]Write to MH i2c: E2 08 00 57 87 80 11 00 00 00 00 00 00 58 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 57 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [00:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:21:00]wFMCommunicate OK [00:21:00]CreateOFDProtocolMessage done [00:21:00]OFDSenderStorePacket 189379 [00:21:00]StoreOFDPacket docnum=189379 [00:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 58 07 01 1E 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 33 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 02 00 00 00 F4 03 04 00 70 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E3 02 00 35 04 06 00 AE 8F E9 BC 7B 9E FF 93 7E 0C D2 DC 4C C3 [00:21:00]CheckFolder [00:21:00]dirname=/storage/ofd_packets [00:21:00]CheckFolder done [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00189379 [00:21:00]NVStorageSaveData ofd_packets/00189379 [00:21:00]File name is /storage/ofd_packets/00189379 [00:21:00]Write 301 bytes [00:21:00]NVStorageSaveData done [00:21:00]OFDSenderStorePacket done [00:21:00]KKMCreateOFDPacket done [00:21:00]NVStorageSaveData kkm_last_timestamp [00:21:00]File name is /storage/kkm_last_timestamp [00:21:00]Write 4 bytes [00:21:00]NVStorageSaveData done [00:21:00]ExternCall_PrintAddStr [00:21:00]wPrintStart [00:21:00]Write to MH i2c: 01 00 00 58 87 DF [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 58 87 00 00 00 00 00 FF 0F F4 [00:21:00]RasterBufferAndPrint [00:21:00]line Счет N : (1)211442 [00:21:00]line ИНН: 02508201610067 [00:21:00]line Контрольно-Кассовый Чек [00:21:00]line ПРОДАЖА [00:21:00]line ТРК (МРК, ГНК) : 13 [00:21:00]line Товар: 2710124500 [00:21:00]line Аи-95-К-3 [00:21:00]line 13.480 * 74.20 [00:21:00]line = 1000.22 [00:21:00]line НДС 12% НСП 1% [00:21:00]line > о реализуемом товаре [00:21:00]line ОКРУГЛЕНИЕ: -0.22 [00:21:00]line ИТОГО: 1000.00 [00:21:00]line Внесено: 1000.00 [00:21:00]line СДАЧА: 0.00 [00:21:00]line НСП 1% : 8.85 [00:21:00]line НДС 12% : 106.22 [00:21:00]line Наличными: 1000.00 [00:21:00]line Безнал.: 0.00 [00:21:00]line Место: АЗС № 86 "Партнер Нефть" [00:21:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:21:00]line СНО: Общий режим [00:21:00]line Чек 2 25.10.2024 00:21 [00:21:00]line Смена: 464 ФФД: 1.0 [00:21:00]line ЗНМ: 0300000155 [00:21:00]line РНМ: 0000000000100030 [00:21:00]line Версия ККМ: 001 [00:21:00]line ФМ: 0000000000965340 [00:21:00]line ФД: 189379 [00:21:00]line ФПД: 191933125000094 [00:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189379&fm=191933125000094&tin=02508201610067®Number=0000000000100030&sum=100000 [00:21:00]written 0, free lines is 4095 [00:21:00]OFD Sender: Processing packet 189379 [packets to send 1062, broken 1061] [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00189379 [00:21:00]OFD Sender: To server: pG, [00:21:00]CommunicateWithHost lk.salyk.kg:30040 [00:21:00]ConnectInit lk.salyk.kg [00:21:00]Connected sock=10 [00:21:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 58 07 01 1E 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 33 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 02 00 00 00 F4 03 04 00 70 E4 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 E3 02 00 35 04 06 00 AE 8F E9 BC 7B 9E FF 93 7E 0C D2 DC 4C C3 [00:21:01]Write to MH i2c: 01 00 00 83 87 0A [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 83 87 00 00 00 00 00 49 0C 66 [00:21:01]RasterBufferAndPrint [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]written 0, free lines is 3150 [00:21:01]MH_Cut [00:21:01]Write to MH i2c: D1 01 00 8A 87 01 E3 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 8A 87 00 E2 [00:21:01]Write to MH i2c: 01 00 00 8B 87 12 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 F9 47 00 3C 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 39 36 35 33 34 30 10 04 04 00 C3 E3 02 00 F4 03 04 00 57 8E 1A 67 B6 04 01 00 00 B5 0E 94 15 FC 86 16 35 [00:21:01]CommunicateWithHost err = 0 [00:21:01]CheckOFDResponse [00:21:01]1017 (14) - 77093643461234 [00:21:01]1041 (16) - 0000000000965340 [00:21:01]1040 (4) - 189379 [00:21:01]1012 (4) - 24.10.2024 18:13 [00:21:01]1206 (1) - 0 [00:21:01]OFD Sender: Remove packet 189379 [00:21:01]ProducePacketName [00:21:01]name=ofd_packets/00189379 [00:21:01]NVStorageDeleteData [00:21:01]OFD Sender: No OFD packet to send [00:21:02]*** Cut start [00:21:02]*** Partial cut [00:21:02]*** CUTSNS_PIN = 1 [00:21:02]*** CUTSNS_PIN = 0 [00:21:02]*** Brake cut motor [00:21:03]Read from MH i2c: 01 [00:21:03]MH_I2C_Read... [00:21:03]*** Stop cut motor [00:21:03]*** Cut end [00:21:03]Read from MH i2c: 01 07 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: 01 07 00 8B 87 00 00 00 00 00 FF 0F 27 [00:21:03]process_action close_receipt done [00:21:03]requested_data is exist [00:21:03]produce_requested_data [00:21:03]requested_item fm.sn is exist - process it [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 11 00 00 [00:21:03]Write to MH i2c: E2 08 00 8C 87 80 11 00 00 00 00 00 00 8D [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:03]Read from MH i2c: E2 17 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 17 00 8C 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [00:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:21:03]wFMCommunicate OK [00:21:03]requested_item fd.num is exist - process it [00:21:03]SAM_PROTO_GetFieldsCounters [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 13 00 00 [00:21:03]Write to MH i2c: E2 08 00 8D 87 80 13 00 00 00 00 00 00 90 [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 62 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 62 00 8D 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E3 02 00 0E 04 04 00 D0 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 16 [00:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 E3 02 00 0E 04 04 00 D0 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:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetFieldsCounters done [00:21:03]requested_item shift.num is exist - process it [00:21:03]requested_item shift.opened is exist - process it [00:21:03]req_shift_opened [00:21:03]FM_GetShiftState [00:21:03]SAM_PROTO_GetShiftState [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 13 01 00 [00:21:03]Write to MH i2c: E2 08 00 8E 87 80 13 01 00 00 00 00 00 92 [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 8E 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 17 [00:21:03]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetShiftState done [00:21:03]FM_GetShiftState done [00:21:03]req_shift_opened done [00:21:03]requested_item shift.open_date is exist - process it [00:21:03]req_shift_open_date [00:21:03]req_shift_open_date done [00:21:03]produce_requested_data done [00:21:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189379,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:21:03]process_action_free close_receipt [00:21:03]json_value_free [00:21:03]json_value_free done [00:21:03]process_json_proto returns [00:21:03]Send response to host [00:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189379,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:21:03]free response buf [00:21:03]execute_script done [00:21:03]execute_script returns [00:21:03]free content buf [00:21:03]Sock 8.Close socket [00:21:03]Sock 8.Thread stoped [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:18]accept exits with 9 [00:25:18]New connection [00:25:18]New thread 3067071844 created [00:25:18]Thread 3067215204 joined [00:25:18]Waiting for new connection... [00:25:18] Sock 9.Parse request [00:25:18]Sock 9.Check first char [00:25:18]Sock 9.First char is OK [00:25:18]request: POST /json_proto HTTP/1.0 [00:25:18]Method: POST [00:25:18]URL: /json_proto [00:25:18]Method is POST - this is cgi request [00:25:18]url: /json_proto [00:25:18]query_string will be loaded in cgi processing [00:25:18]execute_cgi json_proto POST (null) [00:25:18]execute_cgi path=json_proto method=POST [00:25:18]POST find Content-Length [00:25:18]Host: 172.17.42.131:8080 [00:25:18]Content-Length: 688 [00:25:18]Content-Type: application/json [00:25:18] [00:25:18]POST finish read [00:25:18]Found Content-Length = 688 [00:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [00:25:18]execute_script... [00:25: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)211443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [00:25:18]POST & json_proto [00:25:18]process_json_proto [00:25:18]json parsed OK: [00:25:18]protocol is kg_v1.0 [00:25:18]action value=close_receipt [00:25:18]process_action close_receipt [00:25:18]cmd_close_receipt [00:25:18]MH_GetDate [00:25:18]Write to MH i2c: F0 00 00 8F 87 05 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: F0 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: F0 09 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: F0 09 00 8F 87 00 74 E5 1A 67 A0 18 CA 66 D0 [00:25:18]GetLastDocTimeStamp 1729815664 [00:25:18]current date 1729815924 [00:25:18]FM_GetShiftState [00:25:18]SAM_PROTO_GetShiftState [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 01 00 [00:25:18]Write to MH i2c: E2 08 00 90 87 80 13 01 00 00 00 00 00 94 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 90 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 19 [00:25:18]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetShiftState done [00:25:18]FM_GetShiftState done [00:25:18]opened in 1729815317 [00:25:18]opened+sec_in_day 1729901717 [00:25:18]quantity*price = 200025 [00:25:18]sum+1 = 200026 [00:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 3 25.10.2024 00:25 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189380 ФПД: 107285640792030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002524&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189380&fm=107285640792030&tin=02508201610067®Number=0000000000100030&sum=200000 [00:25:19]StoreToDocumentArchive [00:25:19]shift 464 fd 189380 [00:25:19]save to /storage/0464/doc_00189380 [00:25:19]save last doc name /storage/0464/doc_00189380 to /storage/kkm_last_doc_name [00:25:19]save OK [00:25:19]Clear old archive folders... [00:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:25:19]tlvbuf is 017C2020 [00:25:19]SAM_PROTO_ClearQueue [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 09 00 00 [00:25:19]Write to MH i2c: E2 08 00 9D 87 80 09 00 00 00 00 00 00 96 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 9D 87 00 90 00 98 [00:25:19]RAPDU: 90 00 [00:25:19]wFMCommunicate OK [00:25:19]SAM_PROTO_ClearQueue done [00:25:19]KKMCreateOFDPacket [00:25:19]OFDProtocolAddRootSTLVToBuf [00:25:19]FM_MakeSignedData [00:25:19]FM_MakeSignedData [00:25:19]SAM_PROTO_SignData [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 0D 01 02 [00:25:19]Write to MH i2c: E2 08 00 9E 87 80 0D 01 02 00 00 00 00 9E [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 9E 87 00 90 00 99 [00:25:19]RAPDU: 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=255 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 00 00 00 F4 03 04 00 74 E5 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E3 02 [00:25:19]Write to MH i2c: E2 02 01 9F 87 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 00 00 00 F4 03 04 00 74 E5 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E3 02 00 00 96 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 9F 87 00 90 00 9A [00:25:20]RAPDU: 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=16 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 61 93 62 82 47 DE [00:25:20]Write to MH i2c: E2 13 00 A0 87 80 0D 02 02 0B 00 00 35 04 06 00 61 93 62 82 47 DE 00 00 F3 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 A0 87 00 90 00 9B [00:25:20]RAPDU: 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 0D 03 02 [00:25:20]Write to MH i2c: E2 08 00 A1 87 80 0D 03 02 00 00 00 00 A3 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 0B 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 0B 00 A1 87 00 40 44 11 A9 20 F8 D0 ED 90 00 B7 [00:25:20]RAPDU: 40 44 11 A9 20 F8 D0 ED 90 00 [00:25:20]wFMCommunicate OK [00:25:20]SAM_PROTO_SignData done [00:25:20]FM_MakeSignedData done [00:25:20]CreateOFDProtocolMessage [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 11 00 00 [00:25:20]Write to MH i2c: E2 08 00 A2 87 80 11 00 00 00 00 00 00 A3 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 17 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 17 00 A2 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [00:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:25:20]wFMCommunicate OK [00:25:20]CreateOFDProtocolMessage done [00:25:20]OFDSenderStorePacket 189380 [00:25:20]StoreOFDPacket docnum=189380 [00:25:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 81 93 0D 01 FF 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 00 00 00 F4 03 04 00 74 E5 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E3 02 00 35 04 06 00 61 93 62 82 47 DE 40 44 11 A9 20 F8 D0 ED [00:25:20]CheckFolder [00:25:20]dirname=/storage/ofd_packets [00:25:20]CheckFolder done [00:25:20]ProducePacketName [00:25:20]name=ofd_packets/00189380 [00:25:20]NVStorageSaveData ofd_packets/00189380 [00:25:20]File name is /storage/ofd_packets/00189380 [00:25:20]Write 307 bytes [00:25:20]NVStorageSaveData done [00:25:20]OFDSenderStorePacket done [00:25:20]KKMCreateOFDPacket done [00:25:20]NVStorageSaveData kkm_last_timestamp [00:25:20]File name is /storage/kkm_last_timestamp [00:25:20]Write 4 bytes [00:25:20]NVStorageSaveData done [00:25:20]ExternCall_PrintAddStr [00:25:20]wPrintStart [00:25:20]Write to MH i2c: 01 00 00 A3 87 2A [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 A3 87 00 00 00 00 00 FF 0F 3F [00:25:20]RasterBufferAndPrint [00:25:20]line Счет N : (1)211443 [00:25:20]line ИНН: 02508201610067 [00:25:20]line Контрольно-Кассовый Чек [00:25:20]line ПРОДАЖА [00:25:20]line ТРК (МРК, ГНК) : 31 [00:25:20]line Товар: 2710194210 [00:25:20]line D-ENERGY ДТ-К-5 [00:25:20]line 25.910 * 77.20 [00:25:20]line = 2000.25 [00:25:20]line НДС 12% НСП 1% [00:25:20]line > о реализуемом товаре [00:25:20]line ОКРУГЛЕНИЕ: -0.25 [00:25:20]line ИТОГО: 2000.00 [00:25:20]line Внесено: 2000.00 [00:25:20]line СДАЧА: 0.00 [00:25:20]line НСП 1% : 17.70 [00:25:20]line НДС 12% : 212.42 [00:25:20]line Наличными: 2000.00 [00:25:20]line Безнал.: 0.00 [00:25:20]line Место: АЗС № 86 "Партнер Нефть" [00:25:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:25:20]line СНО: Общий режим [00:25:20]line Чек 3 25.10.2024 00:25 [00:25:20]line Смена: 464 ФФД: 1.0 [00:25:20]line ЗНМ: 0300000155 [00:25:20]line РНМ: 0000000000100030 [00:25:20]line Версия ККМ: 001 [00:25:20]line ФМ: 0000000000965340 [00:25:20]line ФД: 189380 [00:25:20]line ФПД: 107285640792030 [00:25:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002524&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189380&fm=107285640792030&tin=02508201610067®Number=0000000000100030&sum=200000 [00:25:20]written 0, free lines is 4095 [00:25:20]OFD Sender: Processing packet 189380 [packets to send 1062, broken 1061] [00:25:20]ProducePacketName [00:25:20]name=ofd_packets/00189380 [00:25:20]OFD Sender: To server: pG, [00:25:20]CommunicateWithHost lk.salyk.kg:30040 [00:25:20]ConnectInit lk.salyk.kg [00:25:20]Connected sock=10 [00:25:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 81 93 0D 01 FF 6E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 03 00 00 00 F4 03 04 00 74 E5 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 E3 02 00 35 04 06 00 61 93 62 82 47 DE 40 44 11 A9 20 F8 D0 ED [00:25:20]Write to MH i2c: 01 00 00 CE 87 55 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: 01 07 00 CE 87 00 00 00 00 00 46 0C AE [00:25:20]RasterBufferAndPrint [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]line [00:25:20]written 0, free lines is 3146 [00:25:20]MH_Cut [00:25:20]Write to MH i2c: D1 01 00 D5 87 01 2E [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 01 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: D1 01 00 D5 87 00 2D [00:25:20]Write to MH i2c: 01 00 00 D6 87 5D [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 22 47 00 B7 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 39 36 35 33 34 30 10 04 04 00 C4 E3 02 00 F4 03 04 00 5B 8F 1A 67 B6 04 01 00 00 BA AC F3 57 B8 C0 4B 9A [00:25:21]CommunicateWithHost err = 0 [00:25:21]CheckOFDResponse [00:25:21]1017 (14) - 77093643461234 [00:25:21]1041 (16) - 0000000000965340 [00:25:21]1040 (4) - 189380 [00:25:21]1012 (4) - 24.10.2024 18:18 [00:25:21]1206 (1) - 0 [00:25:21]OFD Sender: Remove packet 189380 [00:25:21]ProducePacketName [00:25:21]name=ofd_packets/00189380 [00:25:21]NVStorageDeleteData [00:25:21]OFD Sender: No OFD packet to send [00:25:22]*** Cut start [00:25:22]*** Partial cut [00:25:22]*** CUTSNS_PIN = 1 [00:25:22]*** CUTSNS_PIN = 0 [00:25:22]*** Brake cut motor [00:25:22]Read from MH i2c: 01 [00:25:22]MH_I2C_Read... [00:25:22]*** Stop cut motor [00:25:22]*** Cut end [00:25:22]Read from MH i2c: 01 07 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: 01 07 00 D6 87 00 00 00 00 00 FF 0F 72 [00:25:22]process_action close_receipt done [00:25:22]requested_data is exist [00:25:22]produce_requested_data [00:25:22]requested_item fm.sn is exist - process it [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 11 00 00 [00:25:22]Write to MH i2c: E2 08 00 D7 87 80 11 00 00 00 00 00 00 D8 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 17 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 17 00 D7 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [00:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:25:22]wFMCommunicate OK [00:25:22]requested_item fd.num is exist - process it [00:25:22]SAM_PROTO_GetFieldsCounters [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 13 00 00 [00:25:22]Write to MH i2c: E2 08 00 D8 87 80 13 00 00 00 00 00 00 DB [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:23]Read from MH i2c: E2 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 62 00 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 62 00 D8 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E3 02 00 0E 04 04 00 D0 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 65 [00:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 E3 02 00 0E 04 04 00 D0 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:25:23]wFMCommunicate OK [00:25:23]SAM_PROTO_GetFieldsCounters done [00:25:23]requested_item shift.num is exist - process it [00:25:23]requested_item shift.opened is exist - process it [00:25:23]req_shift_opened [00:25:23]FM_GetShiftState [00:25:23]SAM_PROTO_GetShiftState [00:25:23]wFMCommunicate request_size=4 [00:25:23]MH_SAM_APDU [00:25:23]CAPDU: 80 13 01 00 [00:25:23]Write to MH i2c: E2 08 00 D9 87 80 13 01 00 00 00 00 00 DD [00:25:23]Write i2c OK [00:25:23]MH_I2C_Read... [00:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:23]Read from MH i2c: E2 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 0E 00 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 0E 00 D9 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 62 [00:25:23]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:25:23]wFMCommunicate OK [00:25:23]SAM_PROTO_GetShiftState done [00:25:23]FM_GetShiftState done [00:25:23]req_shift_opened done [00:25:23]requested_item shift.open_date is exist - process it [00:25:23]req_shift_open_date [00:25:23]req_shift_open_date done [00:25:23]produce_requested_data done [00:25:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189380,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:25:23]process_action_free close_receipt [00:25:23]json_value_free [00:25:23]json_value_free done [00:25:23]process_json_proto returns [00:25:23]Send response to host [00:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189380,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:25:23]free response buf [00:25:23]execute_script done [00:25:23]execute_script returns [00:25:23]free content buf [00:25:23]Sock 9.Close socket [00:25:23]Sock 9.Thread stoped [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:41]accept exits with 8 [00:28:41]New connection [00:28:41]New thread 3067215204 created [00:28:41]Thread 3067071844 joined [00:28:41]Waiting for new connection... [00:28:41] Sock 8.Parse request [00:28:41]Sock 8.Check first char [00:28:41]Sock 8.First char is OK [00:28:41]request: POST /json_proto HTTP/1.0 [00:28:41]Method: POST [00:28:41]URL: /json_proto [00:28:41]Method is POST - this is cgi request [00:28:41]url: /json_proto [00:28:41]query_string will be loaded in cgi processing [00:28:41]execute_cgi json_proto POST (null) [00:28:41]execute_cgi path=json_proto method=POST [00:28:41]POST find Content-Length [00:28:41]Host: 172.17.42.131:8080 [00:28:41]Content-Length: 679 [00:28:41]Content-Type: application/json [00:28:41] [00:28:41]POST finish read [00:28:41]Found Content-Length = 679 [00:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:41]execute_script... [00:28: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)211444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:41]POST & json_proto [00:28:41]process_json_proto [00:28:41]json parsed OK: [00:28:41]protocol is kg_v1.0 [00:28:41]action value=close_receipt [00:28:41]process_action close_receipt [00:28:41]cmd_close_receipt [00:28:41]MH_GetDate [00:28:41]Write to MH i2c: F0 00 00 DA 87 50 [00:28:41]Write i2c OK [00:28:41]MH_I2C_Read... [00:28:41]Read from MH i2c: F0 [00:28:41]MH_I2C_Read... [00:28:41]Read from MH i2c: F0 09 00 [00:28:41]MH_I2C_Read... [00:28:41]Read from MH i2c: F0 09 00 DA 87 00 3F E6 1A 67 A0 18 CA 66 E7 [00:28:41]GetLastDocTimeStamp 1729815924 [00:28:41]current date 1729816127 [00:28:41]FM_GetShiftState [00:28:41]SAM_PROTO_GetShiftState [00:28:41]wFMCommunicate request_size=4 [00:28:41]MH_SAM_APDU [00:28:41]CAPDU: 80 13 01 00 [00:28:41]Write to MH i2c: E2 08 00 DB 87 80 13 01 00 00 00 00 00 DF [00:28:41]Write i2c OK [00:28:41]MH_I2C_Read... [00:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:41]Read from MH i2c: E2 [00:28:41]MH_I2C_Read... [00:28:41]Read from MH i2c: E2 0E 00 [00:28:41]MH_I2C_Read... [00:28:41]Read from MH i2c: E2 0E 00 DB 87 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 64 [00:28:41]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:28:41]wFMCommunicate OK [00:28:41]SAM_PROTO_GetShiftState done [00:28:41]FM_GetShiftState done [00:28:41]opened in 1729815317 [00:28:41]opened+sec_in_day 1729901717 [00:28:41]quantity*price = 400050 [00:28:41]sum+1 = 400051 [00:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 4 25.10.2024 00:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189381 ФПД: 142975152081130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189381&fm=142975152081130&tin=02508201610067®Number=0000000000100030&sum=400000 [00:28:43]StoreToDocumentArchive [00:28:43]shift 464 fd 189381 [00:28:43]save to /storage/0464/doc_00189381 [00:28:43]save last doc name /storage/0464/doc_00189381 to /storage/kkm_last_doc_name [00:28:43]save OK [00:28:43]Clear old archive folders... [00:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:28:43]tlvbuf is 01556230 [00:28:43]SAM_PROTO_ClearQueue [00:28:43]wFMCommunicate request_size=4 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 09 00 00 [00:28:43]Write to MH i2c: E2 08 00 E8 87 80 09 00 00 00 00 00 00 E1 [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 E8 87 00 90 00 E3 [00:28:43]RAPDU: 90 00 [00:28:43]wFMCommunicate OK [00:28:43]SAM_PROTO_ClearQueue done [00:28:43]KKMCreateOFDPacket [00:28:43]OFDProtocolAddRootSTLVToBuf [00:28:43]FM_MakeSignedData [00:28:43]FM_MakeSignedData [00:28:43]SAM_PROTO_SignData [00:28:43]wFMCommunicate request_size=4 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 0D 01 02 [00:28:43]Write to MH i2c: E2 08 00 E9 87 80 0D 01 02 00 00 00 00 E9 [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 E9 87 00 90 00 E4 [00:28:43]RAPDU: 90 00 [00:28:43]wFMCommunicate OK [00:28:43]wFMCommunicate request_size=255 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 3F E6 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E3 02 00 35 04 06 00 82 08 FF 26 [00:28:43]Write to MH i2c: E2 02 01 EA 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 3F E6 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E3 02 00 35 04 06 00 82 08 FF 26 00 00 4D [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 EA 87 00 90 00 E5 [00:28:43]RAPDU: 90 00 [00:28:43]wFMCommunicate OK [00:28:43]wFMCommunicate request_size=7 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 0D 02 02 02 C8 EA [00:28:43]Write to MH i2c: E2 0A 00 EB 87 80 0D 02 02 02 00 C8 EA 00 00 A2 [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 03 00 EB 87 00 90 00 E6 [00:28:43]RAPDU: 90 00 [00:28:43]wFMCommunicate OK [00:28:43]wFMCommunicate request_size=4 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 0D 03 02 [00:28:43]Write to MH i2c: E2 08 00 EC 87 80 0D 03 02 00 00 00 00 EE [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 0B 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 0B 00 EC 87 00 3A 19 F4 35 CC 68 58 63 90 00 5A [00:28:43]RAPDU: 3A 19 F4 35 CC 68 58 63 90 00 [00:28:43]wFMCommunicate OK [00:28:43]SAM_PROTO_SignData done [00:28:43]FM_MakeSignedData done [00:28:43]CreateOFDProtocolMessage [00:28:43]wFMCommunicate request_size=4 [00:28:43]MH_SAM_APDU [00:28:43]CAPDU: 80 11 00 00 [00:28:43]Write to MH i2c: E2 08 00 ED 87 80 11 00 00 00 00 00 00 EE [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:43]Read from MH i2c: E2 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 17 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: E2 17 00 ED 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [00:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:28:43]wFMCommunicate OK [00:28:43]CreateOFDProtocolMessage done [00:28:43]OFDSenderStorePacket 189381 [00:28:43]StoreOFDPacket docnum=189381 [00:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E7 57 04 01 3F 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 3F E6 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E3 02 00 35 04 06 00 82 08 FF 26 C8 EA 3A 19 F4 35 CC 68 58 63 [00:28:43]CheckFolder [00:28:43]dirname=/storage/ofd_packets [00:28:43]CheckFolder done [00:28:43]ProducePacketName [00:28:43]name=ofd_packets/00189381 [00:28:43]NVStorageSaveData ofd_packets/00189381 [00:28:43]File name is /storage/ofd_packets/00189381 [00:28:43]Write 298 bytes [00:28:43]NVStorageSaveData done [00:28:43]OFDSenderStorePacket done [00:28:43]KKMCreateOFDPacket done [00:28:43]NVStorageSaveData kkm_last_timestamp [00:28:43]File name is /storage/kkm_last_timestamp [00:28:43]Write 4 bytes [00:28:43]NVStorageSaveData done [00:28:43]ExternCall_PrintAddStr [00:28:43]wPrintStart [00:28:43]Write to MH i2c: 01 00 00 EE 87 75 [00:28:43]Write i2c OK [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: 01 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: 01 07 00 [00:28:43]MH_I2C_Read... [00:28:43]Read from MH i2c: 01 07 00 EE 87 00 00 00 00 00 FF 0F 8A [00:28:43]RasterBufferAndPrint [00:28:43]line Счет N : (1)211444 [00:28:43]line ИНН: 02508201610067 [00:28:43]line Контрольно-Кассовый Чек [00:28:43]line ПРОДАЖА [00:28:43]line ТРК (МРК, ГНК) : 51 [00:28:43]line Товар: 2710194210 [00:28:43]line ДТ-К-5 [00:28:43]line 52.500 * 76.20 [00:28:43]line = 4000.50 [00:28:43]line НДС 12% НСП 1% [00:28:43]line > о реализуемом товаре [00:28:43]line ОКРУГЛЕНИЕ: -0.50 [00:28:43]line ИТОГО: 4000.00 [00:28:43]line Внесено: 4000.00 [00:28:43]line СДАЧА: 0.00 [00:28:43]line НСП 1% : 35.40 [00:28:43]line НДС 12% : 424.83 [00:28:43]line Наличными: 4000.00 [00:28:43]line Безнал.: 0.00 [00:28:43]line Место: АЗС № 86 "Партнер Нефть" [00:28:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:28:43]line СНО: Общий режим [00:28:43]line Чек 4 25.10.2024 00:28 [00:28:43]line Смена: 464 ФФД: 1.0 [00:28:43]line ЗНМ: 0300000155 [00:28:43]line РНМ: 0000000000100030 [00:28:43]line Версия ККМ: 001 [00:28:43]line ФМ: 0000000000965340 [00:28:43]line ФД: 189381 [00:28:43]line ФПД: 142975152081130 [00:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189381&fm=142975152081130&tin=02508201610067®Number=0000000000100030&sum=400000 [00:28:43]written 0, free lines is 4095 [00:28:43]OFD Sender: Processing packet 189381 [packets to send 1062, broken 1061] [00:28:43]ProducePacketName [00:28:43]name=ofd_packets/00189381 [00:28:43]OFD Sender: To server: pG, [00:28:43]CommunicateWithHost lk.salyk.kg:30040 [00:28:43]ConnectInit lk.salyk.kg [00:28:44]Connected sock=10 [00:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E7 57 04 01 3F 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 3F E6 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 E3 02 00 35 04 06 00 82 08 FF 26 C8 EA 3A 19 F4 35 CC 68 58 63 [00:28:44]Write to MH i2c: 01 00 00 19 88 A1 [00:28:44]Write i2c OK [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: 01 [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: 01 07 00 [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: 01 07 00 19 88 00 00 00 00 00 51 0C 05 [00:28:44]RasterBufferAndPrint [00:28:44]line [00:28:44]line [00:28:44]line [00:28:44]line [00:28:44]line [00:28:44]written 0, free lines is 3157 [00:28:44]MH_Cut [00:28:44]Write to MH i2c: D1 01 00 20 88 01 7A [00:28:44]Write i2c OK [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: D1 [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: D1 01 00 [00:28:44]MH_I2C_Read... [00:28:44]Read from MH i2c: D1 01 00 20 88 00 79 [00:28:44]Write to MH i2c: 01 00 00 21 88 A9 [00:28:44]Write i2c OK [00:28:44]MH_I2C_Read... [00:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 21 47 00 B5 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 39 36 35 33 34 30 10 04 04 00 C5 E3 02 00 F4 03 04 00 26 90 1A 67 B6 04 01 00 00 39 AB A3 AA 88 41 A6 E3 [00:28:44]CommunicateWithHost err = 0 [00:28:44]CheckOFDResponse [00:28:44]1017 (14) - 77093643461234 [00:28:44]1041 (16) - 0000000000965340 [00:28:44]1040 (4) - 189381 [00:28:44]1012 (4) - 24.10.2024 18:21 [00:28:44]1206 (1) - 0 [00:28:44]OFD Sender: Remove packet 189381 [00:28:44]ProducePacketName [00:28:44]name=ofd_packets/00189381 [00:28:44]NVStorageDeleteData [00:28:44]OFD Sender: No OFD packet to send [00:28:45]*** Cut start [00:28:45]*** Partial cut [00:28:45]*** CUTSNS_PIN = 1 [00:28:45]*** CUTSNS_PIN = 0 [00:28:45]*** Brake cut motor [00:28:46]Read from MH i2c: 01 [00:28:46]MH_I2C_Read... [00:28:46]*** Stop cut motor [00:28:46]*** Cut end [00:28:46]Read from MH i2c: 01 07 00 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: 01 07 00 21 88 00 00 00 00 00 FF 0F BE [00:28:46]process_action close_receipt done [00:28:46]requested_data is exist [00:28:46]produce_requested_data [00:28:46]requested_item fm.sn is exist - process it [00:28:46]wFMCommunicate request_size=4 [00:28:46]MH_SAM_APDU [00:28:46]CAPDU: 80 11 00 00 [00:28:46]Write to MH i2c: E2 08 00 22 88 80 11 00 00 00 00 00 00 24 [00:28:46]Write i2c OK [00:28:46]MH_I2C_Read... [00:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:46]Read from MH i2c: E2 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 17 00 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 17 00 22 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [00:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:28:46]wFMCommunicate OK [00:28:46]requested_item fd.num is exist - process it [00:28:46]SAM_PROTO_GetFieldsCounters [00:28:46]wFMCommunicate request_size=4 [00:28:46]MH_SAM_APDU [00:28:46]CAPDU: 80 13 00 00 [00:28:46]Write to MH i2c: E2 08 00 23 88 80 13 00 00 00 00 00 00 27 [00:28:46]Write i2c OK [00:28:46]MH_I2C_Read... [00:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:46]Read from MH i2c: E2 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 62 00 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 62 00 23 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E3 02 00 0E 04 04 00 D0 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 B5 [00:28:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 E3 02 00 0E 04 04 00 D0 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:28:46]wFMCommunicate OK [00:28:46]SAM_PROTO_GetFieldsCounters done [00:28:46]requested_item shift.num is exist - process it [00:28:46]requested_item shift.opened is exist - process it [00:28:46]req_shift_opened [00:28:46]FM_GetShiftState [00:28:46]SAM_PROTO_GetShiftState [00:28:46]wFMCommunicate request_size=4 [00:28:46]MH_SAM_APDU [00:28:46]CAPDU: 80 13 01 00 [00:28:46]Write to MH i2c: E2 08 00 24 88 80 13 01 00 00 00 00 00 29 [00:28:46]Write i2c OK [00:28:46]MH_I2C_Read... [00:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:46]Read from MH i2c: E2 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 0E 00 [00:28:46]MH_I2C_Read... [00:28:46]Read from MH i2c: E2 0E 00 24 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 AE [00:28:46]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:28:46]wFMCommunicate OK [00:28:46]SAM_PROTO_GetShiftState done [00:28:46]FM_GetShiftState done [00:28:46]req_shift_opened done [00:28:46]requested_item shift.open_date is exist - process it [00:28:46]req_shift_open_date [00:28:46]req_shift_open_date done [00:28:46]produce_requested_data done [00:28:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189381,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:28:46]process_action_free close_receipt [00:28:46]json_value_free [00:28:46]json_value_free done [00:28:46]process_json_proto returns [00:28:46]Send response to host [00:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189381,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:28:46]free response buf [00:28:46]execute_script done [00:28:46]execute_script returns [00:28:46]free content buf [00:28:46]Sock 8.Close socket [00:28:46]Sock 8.Thread stoped [00:28:49]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:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [00:34:18]New connection [00:34:18]New thread 3067071844 created [00:34:18]Thread 3067215204 joined [00:34:18]Waiting for new connection... [00:34:18] Sock 9.Parse request [00:34:18]Sock 9.Check first char [00:34:18]Sock 9.First char is OK [00:34:18]request: POST /json_proto HTTP/1.0 [00:34:18]Method: POST [00:34:18]URL: /json_proto [00:34:18]Method is POST - this is cgi request [00:34:18]url: /json_proto [00:34:18]query_string will be loaded in cgi processing [00:34:18]execute_cgi json_proto POST (null) [00:34:18]execute_cgi path=json_proto method=POST [00:34:18]POST find Content-Length [00:34:18]Host: 172.17.42.131:8080 [00:34:18]Content-Length: 688 [00:34:18]Content-Type: application/json [00:34:18] [00:34:18]POST finish read [00:34:18]Found Content-Length = 688 [00:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 62.890, "sum" : 4855.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4855.00, "total" : 4855.00, "payments": [ { "type": 0, "sum" : 4855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:18]execute_script... [00:34: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)211445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 62.890, "sum" : 4855.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4855.00, "total" : 4855.00, "payments": [ { "type": 0, "sum" : 4855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:18]POST & json_proto [00:34:18]process_json_proto [00:34:18]json parsed OK: [00:34:18]protocol is kg_v1.0 [00:34:18]action value=close_receipt [00:34:18]process_action close_receipt [00:34:18]cmd_close_receipt [00:34:18]MH_GetDate [00:34:18]Write to MH i2c: F0 00 00 25 88 9C [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: F0 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: F0 09 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: F0 09 00 25 88 00 90 E7 1A 67 A0 18 CA 66 85 [00:34:18]GetLastDocTimeStamp 1729816127 [00:34:18]current date 1729816464 [00:34:18]FM_GetShiftState [00:34:18]SAM_PROTO_GetShiftState [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 13 01 00 [00:34:18]Write to MH i2c: E2 08 00 26 88 80 13 01 00 00 00 00 00 2B [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 0E 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 0E 00 26 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 B0 [00:34:18]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:34:18]wFMCommunicate OK [00:34:18]SAM_PROTO_GetShiftState done [00:34:18]FM_GetShiftState done [00:34:18]opened in 1729815317 [00:34:18]opened+sec_in_day 1729901717 [00:34:18]quantity*price = 485510 [00:34:18]sum+1 = 485512 [00:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 4855.00 Внесено: 4855.00 СДАЧА: 0.00 НСП 1% : 42.97 НДС 12% : 515.59 Наличными: 4855.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 5 25.10.2024 00:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189382 ФПД: 124959694035010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189382&fm=124959694035010&tin=02508201610067®Number=0000000000100030&sum=485500 [00:34:19]StoreToDocumentArchive [00:34:19]shift 464 fd 189382 [00:34:19]save to /storage/0464/doc_00189382 [00:34:19]save last doc name /storage/0464/doc_00189382 to /storage/kkm_last_doc_name [00:34:19]save OK [00:34:19]Clear old archive folders... [00:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:34:19]tlvbuf is 01700900 [00:34:19]SAM_PROTO_ClearQueue [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 09 00 00 [00:34:19]Write to MH i2c: E2 08 00 33 88 80 09 00 00 00 00 00 00 2D [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 33 88 00 90 00 2F [00:34:19]RAPDU: 90 00 [00:34:19]wFMCommunicate OK [00:34:19]SAM_PROTO_ClearQueue done [00:34:19]KKMCreateOFDPacket [00:34:19]OFDProtocolAddRootSTLVToBuf [00:34:19]FM_MakeSignedData [00:34:19]FM_MakeSignedData [00:34:19]SAM_PROTO_SignData [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 0D 01 02 [00:34:19]Write to MH i2c: E2 08 00 34 88 80 0D 01 02 00 00 00 00 35 [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 34 88 00 90 00 30 [00:34:19]RAPDU: 90 00 [00:34:19]wFMCommunicate OK [00:34:19]wFMCommunicate request_size=255 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA F5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 87 68 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 68 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 C9 00 00 00 00 07 04 06 00 7C 68 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 E7 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E3 02 [00:34:19]Write to MH i2c: E2 02 01 35 88 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA F5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 87 68 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 68 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 C9 00 00 00 00 07 04 06 00 7C 68 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 E7 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E3 02 00 00 E3 [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 35 88 00 90 00 31 [00:34:19]RAPDU: 90 00 [00:34:19]wFMCommunicate OK [00:34:19]wFMCommunicate request_size=16 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 71 A6 72 2C 98 42 [00:34:19]Write to MH i2c: E2 13 00 36 88 80 0D 02 02 0B 00 00 35 04 06 00 71 A6 72 2C 98 42 00 00 1C [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 03 00 36 88 00 90 00 32 [00:34:19]RAPDU: 90 00 [00:34:19]wFMCommunicate OK [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 0D 03 02 [00:34:19]Write to MH i2c: E2 08 00 37 88 80 0D 03 02 00 00 00 00 3A [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:19]Read from MH i2c: E2 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 0B 00 [00:34:19]MH_I2C_Read... [00:34:19]Read from MH i2c: E2 0B 00 37 88 00 10 C1 3F 56 5F 38 33 F5 90 00 60 [00:34:19]RAPDU: 10 C1 3F 56 5F 38 33 F5 90 00 [00:34:19]wFMCommunicate OK [00:34:19]SAM_PROTO_SignData done [00:34:19]FM_MakeSignedData done [00:34:19]CreateOFDProtocolMessage [00:34:19]wFMCommunicate request_size=4 [00:34:19]MH_SAM_APDU [00:34:19]CAPDU: 80 11 00 00 [00:34:19]Write to MH i2c: E2 08 00 38 88 80 11 00 00 00 00 00 00 3A [00:34:19]Write i2c OK [00:34:19]MH_I2C_Read... [00:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:20]Read from MH i2c: E2 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: E2 17 00 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: E2 17 00 38 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [00:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:34:20]wFMCommunicate OK [00:34:20]CreateOFDProtocolMessage done [00:34:20]OFDSenderStorePacket 189382 [00:34:20]StoreOFDPacket docnum=189382 [00:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B A4 0D 01 D7 BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA F5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 87 68 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 68 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 C9 00 00 00 00 07 04 06 00 7C 68 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 E7 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E3 02 00 35 04 06 00 71 A6 72 2C 98 42 10 C1 3F 56 5F 38 33 F5 [00:34:20]CheckFolder [00:34:20]dirname=/storage/ofd_packets [00:34:20]CheckFolder done [00:34:20]ProducePacketName [00:34:20]name=ofd_packets/00189382 [00:34:20]NVStorageSaveData ofd_packets/00189382 [00:34:20]File name is /storage/ofd_packets/00189382 [00:34:20]Write 307 bytes [00:34:20]NVStorageSaveData done [00:34:20]OFDSenderStorePacket done [00:34:20]KKMCreateOFDPacket done [00:34:20]NVStorageSaveData kkm_last_timestamp [00:34:20]File name is /storage/kkm_last_timestamp [00:34:20]Write 4 bytes [00:34:20]NVStorageSaveData done [00:34:20]ExternCall_PrintAddStr [00:34:20]wPrintStart [00:34:20]Write to MH i2c: 01 00 00 39 88 C1 [00:34:20]Write i2c OK [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 07 00 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 07 00 39 88 00 00 00 00 00 FF 0F D6 [00:34:20]RasterBufferAndPrint [00:34:20]line Счет N : (1)211445 [00:34:20]line ИНН: 02508201610067 [00:34:20]line Контрольно-Кассовый Чек [00:34:20]line ПРОДАЖА [00:34:20]line ТРК (МРК, ГНК) : 41 [00:34:20]line Товар: 2710194210 [00:34:20]line D-ENERGY ДТ-К-5 [00:34:20]line 62.890 * 77.20 [00:34:20]line = 4855.11 [00:34:20]line НДС 12% НСП 1% [00:34:20]line > о реализуемом товаре [00:34:20]line ОКРУГЛЕНИЕ: -0.11 [00:34:20]line ИТОГО: 4855.00 [00:34:20]line Внесено: 4855.00 [00:34:20]line СДАЧА: 0.00 [00:34:20]line НСП 1% : 42.97 [00:34:20]line НДС 12% : 515.59 [00:34:20]line Наличными: 4855.00 [00:34:20]line Безнал.: 0.00 [00:34:20]line Место: АЗС № 86 "Партнер Нефть" [00:34:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:34:20]line СНО: Общий режим [00:34:20]line Чек 5 25.10.2024 00:34 [00:34:20]line Смена: 464 ФФД: 1.0 [00:34:20]line ЗНМ: 0300000155 [00:34:20]line РНМ: 0000000000100030 [00:34:20]line Версия ККМ: 001 [00:34:20]line ФМ: 0000000000965340 [00:34:20]line ФД: 189382 [00:34:20]line ФПД: 124959694035010 [00:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189382&fm=124959694035010&tin=02508201610067®Number=0000000000100030&sum=485500 [00:34:20]written 0, free lines is 4095 [00:34:20]OFD Sender: Processing packet 189382 [packets to send 1062, broken 1061] [00:34:20]ProducePacketName [00:34:20]name=ofd_packets/00189382 [00:34:20]OFD Sender: To server: pG, [00:34:20]CommunicateWithHost lk.salyk.kg:30040 [00:34:20]ConnectInit lk.salyk.kg [00:34:20]Connected sock=10 [00:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B A4 0D 01 D7 BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA F5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 87 68 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 68 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 C9 00 00 00 00 07 04 06 00 7C 68 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 E7 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E3 02 00 35 04 06 00 71 A6 72 2C 98 42 10 C1 3F 56 5F 38 33 F5 [00:34:20]Write to MH i2c: 01 00 00 64 88 EC [00:34:20]Write i2c OK [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 07 00 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: 01 07 00 64 88 00 00 00 00 00 50 0C 4F [00:34:20]RasterBufferAndPrint [00:34:20]line [00:34:20]line [00:34:20]line [00:34:20]line [00:34:20]line [00:34:20]written 0, free lines is 3157 [00:34:20]MH_Cut [00:34:20]Write to MH i2c: D1 01 00 6B 88 01 C5 [00:34:20]Write i2c OK [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: D1 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: D1 01 00 [00:34:20]MH_I2C_Read... [00:34:20]Read from MH i2c: D1 01 00 6B 88 00 C4 [00:34:20]Write to MH i2c: 01 00 00 6C 88 F4 [00:34:20]Write i2c OK [00:34:20]MH_I2C_Read... [00:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BF 2B 47 00 87 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 E3 02 00 F4 03 04 00 76 91 1A 67 B6 04 01 00 00 47 DE CC BE 16 F7 1E 22 [00:34:20]CommunicateWithHost err = 0 [00:34:20]CheckOFDResponse [00:34:20]1017 (14) - 77093643461234 [00:34:20]1041 (16) - 0000000000965340 [00:34:20]1040 (4) - 189382 [00:34:20]1012 (4) - 24.10.2024 18:27 [00:34:20]1206 (1) - 0 [00:34:20]OFD Sender: Remove packet 189382 [00:34:20]ProducePacketName [00:34:20]name=ofd_packets/00189382 [00:34:20]NVStorageDeleteData [00:34:21]OFD Sender: No OFD packet to send [00:34:21]*** Cut start [00:34:21]*** Partial cut [00:34:21]*** CUTSNS_PIN = 1 [00:34:21]*** CUTSNS_PIN = 0 [00:34:22]*** Brake cut motor [00:34:22]Read from MH i2c: 01 [00:34:22]MH_I2C_Read... [00:34:22]*** Stop cut motor [00:34:22]*** Cut end [00:34:22]Read from MH i2c: 01 07 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: 01 07 00 6C 88 00 00 00 00 00 FF 0F 09 [00:34:22]process_action close_receipt done [00:34:22]requested_data is exist [00:34:22]produce_requested_data [00:34:22]requested_item fm.sn is exist - process it [00:34:22]wFMCommunicate request_size=4 [00:34:22]MH_SAM_APDU [00:34:22]CAPDU: 80 11 00 00 [00:34:22]Write to MH i2c: E2 08 00 6D 88 80 11 00 00 00 00 00 00 6F [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:22]Read from MH i2c: E2 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 17 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 17 00 6D 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [00:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:34:22]wFMCommunicate OK [00:34:22]requested_item fd.num is exist - process it [00:34:22]SAM_PROTO_GetFieldsCounters [00:34:22]wFMCommunicate request_size=4 [00:34:22]MH_SAM_APDU [00:34:22]CAPDU: 80 13 00 00 [00:34:22]Write to MH i2c: E2 08 00 6E 88 80 13 00 00 00 00 00 00 72 [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:22]Read from MH i2c: E2 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 62 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 62 00 6E 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E3 02 00 0E 04 04 00 D0 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 04 [00:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 E3 02 00 0E 04 04 00 D0 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:34:22]wFMCommunicate OK [00:34:22]SAM_PROTO_GetFieldsCounters done [00:34:22]requested_item shift.num is exist - process it [00:34:22]requested_item shift.opened is exist - process it [00:34:22]req_shift_opened [00:34:22]FM_GetShiftState [00:34:22]SAM_PROTO_GetShiftState [00:34:22]wFMCommunicate request_size=4 [00:34:22]MH_SAM_APDU [00:34:22]CAPDU: 80 13 01 00 [00:34:22]Write to MH i2c: E2 08 00 6F 88 80 13 01 00 00 00 00 00 74 [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:22]Read from MH i2c: E2 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 0E 00 [00:34:22]MH_I2C_Read... [00:34:22]Read from MH i2c: E2 0E 00 6F 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 F9 [00:34:22]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:34:22]wFMCommunicate OK [00:34:22]SAM_PROTO_GetShiftState done [00:34:22]FM_GetShiftState done [00:34:22]req_shift_opened done [00:34:22]requested_item shift.open_date is exist - process it [00:34:22]req_shift_open_date [00:34:22]req_shift_open_date done [00:34:22]produce_requested_data done [00:34:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189382,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:34:22]process_action_free close_receipt [00:34:22]json_value_free [00:34:22]json_value_free done [00:34:22]process_json_proto returns [00:34:22]Send response to host [00:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189382,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:34:22]free response buf [00:34:22]execute_script done [00:34:22]execute_script returns [00:34:22]free content buf [00:34:22]Sock 9.Close socket [00:34:22]Sock 9.Thread stoped [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:40]accept exits with 8 [00:38:40]New connection [00:38:40]New thread 3067215204 created [00:38:40]Thread 3067071844 joined [00:38:40]Waiting for new connection... [00:38:40] Sock 8.Parse request [00:38:40]Sock 8.Check first char [00:38:40]Sock 8.First char is OK [00:38:40]request: POST /json_proto HTTP/1.0 [00:38:40]Method: POST [00:38:40]URL: /json_proto [00:38:40]Method is POST - this is cgi request [00:38:40]url: /json_proto [00:38:40]query_string will be loaded in cgi processing [00:38:40]execute_cgi json_proto POST (null) [00:38:40]execute_cgi path=json_proto method=POST [00:38:40]POST find Content-Length [00:38:40]Host: 172.17.42.131:8080 [00:38:40]Content-Length: 682 [00:38:40]Content-Type: application/json [00:38:40] [00:38:40]POST finish read [00:38:40]Found Content-Length = 682 [00:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:40]execute_script... [00:38: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)211446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:40]POST & json_proto [00:38:40]process_json_proto [00:38:40]json parsed OK: [00:38:40]protocol is kg_v1.0 [00:38:40]action value=close_receipt [00:38:40]process_action close_receipt [00:38:40]cmd_close_receipt [00:38:40]MH_GetDate [00:38:40]Write to MH i2c: F0 00 00 70 88 E7 [00:38:40]Write i2c OK [00:38:40]MH_I2C_Read... [00:38:40]Read from MH i2c: F0 [00:38:40]MH_I2C_Read... [00:38:40]Read from MH i2c: F0 09 00 [00:38:40]MH_I2C_Read... [00:38:40]Read from MH i2c: F0 09 00 70 88 00 96 E8 1A 67 A0 18 CA 66 D7 [00:38:40]GetLastDocTimeStamp 1729816464 [00:38:40]current date 1729816726 [00:38:40]FM_GetShiftState [00:38:40]SAM_PROTO_GetShiftState [00:38:40]wFMCommunicate request_size=4 [00:38:40]MH_SAM_APDU [00:38:40]CAPDU: 80 13 01 00 [00:38:40]Write to MH i2c: E2 08 00 71 88 80 13 01 00 00 00 00 00 76 [00:38:40]Write i2c OK [00:38:40]MH_I2C_Read... [00:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:40]Read from MH i2c: E2 [00:38:40]MH_I2C_Read... [00:38:40]Read from MH i2c: E2 0E 00 [00:38:40]MH_I2C_Read... [00:38:40]Read from MH i2c: E2 0E 00 71 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 FB [00:38:40]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:38:40]wFMCommunicate OK [00:38:40]SAM_PROTO_GetShiftState done [00:38:40]FM_GetShiftState done [00:38:40]opened in 1729815317 [00:38:40]opened+sec_in_day 1729901717 [00:38:40]quantity*price = 100015 [00:38:40]sum+1 = 100017 [00:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 6 25.10.2024 00:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189383 ФПД: 263784928713529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003846&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189383&fm=263784928713529&tin=02508201610067®Number=0000000000100030&sum=100000 [00:38:41]StoreToDocumentArchive [00:38:41]shift 464 fd 189383 [00:38:41]save to /storage/0464/doc_00189383 [00:38:41]save last doc name /storage/0464/doc_00189383 to /storage/kkm_last_doc_name [00:38:41]save OK [00:38:41]Clear old archive folders... [00:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:41]tlvbuf is 01676390 [00:38:41]SAM_PROTO_ClearQueue [00:38:41]wFMCommunicate request_size=4 [00:38:41]MH_SAM_APDU [00:38:41]CAPDU: 80 09 00 00 [00:38:41]Write to MH i2c: E2 08 00 7E 88 80 09 00 00 00 00 00 00 78 [00:38:41]Write i2c OK [00:38:41]MH_I2C_Read... [00:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:41]Read from MH i2c: E2 [00:38:41]MH_I2C_Read... [00:38:41]Read from MH i2c: E2 03 00 [00:38:41]MH_I2C_Read... [00:38:41]Read from MH i2c: E2 03 00 7E 88 00 90 00 7A [00:38:41]RAPDU: 90 00 [00:38:41]wFMCommunicate OK [00:38:41]SAM_PROTO_ClearQueue done [00:38:41]KKMCreateOFDPacket [00:38:41]OFDProtocolAddRootSTLVToBuf [00:38:41]FM_MakeSignedData [00:38:41]FM_MakeSignedData [00:38:41]SAM_PROTO_SignData [00:38:41]wFMCommunicate request_size=4 [00:38:41]MH_SAM_APDU [00:38:41]CAPDU: 80 0D 01 02 [00:38:41]Write to MH i2c: E2 08 00 7F 88 80 0D 01 02 00 00 00 00 80 [00:38:41]Write i2c OK [00:38:41]MH_I2C_Read... [00:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:41]Read from MH i2c: E2 [00:38:41]MH_I2C_Read... [00:38:41]Read from MH i2c: E2 03 00 [00:38:41]MH_I2C_Read... [00:38:41]Read from MH i2c: E2 03 00 7F 88 00 90 00 7B [00:38:41]RAPDU: 90 00 [00:38:41]wFMCommunicate OK [00:38:41]wFMCommunicate request_size=255 [00:38:41]MH_SAM_APDU [00:38: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 E8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E3 02 00 35 04 06 00 EF [00:38:41]Write to MH i2c: E2 02 01 80 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 E8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E3 02 00 35 04 06 00 EF 00 00 5E [00:38:41]Write i2c OK [00:38:41]MH_I2C_Read... [00:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:42]Read from MH i2c: E2 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 03 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 03 00 80 88 00 90 00 7C [00:38:42]RAPDU: 90 00 [00:38:42]wFMCommunicate OK [00:38:42]wFMCommunicate request_size=10 [00:38:42]MH_SAM_APDU [00:38:42]CAPDU: 80 0D 02 02 05 E9 36 F9 1B 39 [00:38:42]Write to MH i2c: E2 0D 00 81 88 80 0D 02 02 05 00 E9 36 F9 1B 39 00 00 F9 [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:42]Read from MH i2c: E2 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 03 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 03 00 81 88 00 90 00 7D [00:38:42]RAPDU: 90 00 [00:38:42]wFMCommunicate OK [00:38:42]wFMCommunicate request_size=4 [00:38:42]MH_SAM_APDU [00:38:42]CAPDU: 80 0D 03 02 [00:38:42]Write to MH i2c: E2 08 00 82 88 80 0D 03 02 00 00 00 00 85 [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:42]Read from MH i2c: E2 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 0B 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 0B 00 82 88 00 AD 96 D1 80 3E AE 9A 76 90 00 16 [00:38:42]RAPDU: AD 96 D1 80 3E AE 9A 76 90 00 [00:38:42]wFMCommunicate OK [00:38:42]SAM_PROTO_SignData done [00:38:42]FM_MakeSignedData done [00:38:42]CreateOFDProtocolMessage [00:38:42]wFMCommunicate request_size=4 [00:38:42]MH_SAM_APDU [00:38:42]CAPDU: 80 11 00 00 [00:38:42]Write to MH i2c: E2 08 00 83 88 80 11 00 00 00 00 00 00 85 [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:42]Read from MH i2c: E2 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 17 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: E2 17 00 83 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [00:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:38:42]wFMCommunicate OK [00:38:42]CreateOFDProtocolMessage done [00:38:42]OFDSenderStorePacket 189383 [00:38:42]StoreOFDPacket docnum=189383 [00:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 D5 07 01 53 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 E8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E3 02 00 35 04 06 00 EF E9 36 F9 1B 39 AD 96 D1 80 3E AE 9A 76 [00:38:42]CheckFolder [00:38:42]dirname=/storage/ofd_packets [00:38:42]CheckFolder done [00:38:42]ProducePacketName [00:38:42]name=ofd_packets/00189383 [00:38:42]NVStorageSaveData ofd_packets/00189383 [00:38:42]File name is /storage/ofd_packets/00189383 [00:38:42]Write 301 bytes [00:38:42]NVStorageSaveData done [00:38:42]OFDSenderStorePacket done [00:38:42]KKMCreateOFDPacket done [00:38:42]NVStorageSaveData kkm_last_timestamp [00:38:42]File name is /storage/kkm_last_timestamp [00:38:42]Write 4 bytes [00:38:42]NVStorageSaveData done [00:38:42]ExternCall_PrintAddStr [00:38:42]wPrintStart [00:38:42]Write to MH i2c: 01 00 00 84 88 0C [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 07 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 07 00 84 88 00 00 00 00 00 FF 0F 21 [00:38:42]RasterBufferAndPrint [00:38:42]line Счет N : (1)211446 [00:38:42]line ИНН: 02508201610067 [00:38:42]line Контрольно-Кассовый Чек [00:38:42]line ПРОДАЖА [00:38:42]line ТРК (МРК, ГНК) : 32 [00:38:42]line Товар: 2710124130 [00:38:42]line Аи-92-К-3 [00:38:42]line 14.950 * 66.90 [00:38:42]line = 1000.16 [00:38:42]line НДС 12% НСП 1% [00:38:42]line > о реализуемом товаре [00:38:42]line ОКРУГЛЕНИЕ: -0.16 [00:38:42]line ИТОГО: 1000.00 [00:38:42]line Внесено: 1000.00 [00:38:42]line СДАЧА: 0.00 [00:38:42]line НСП 1% : 8.85 [00:38:42]line НДС 12% : 106.21 [00:38:42]line Наличными: 1000.00 [00:38:42]line Безнал.: 0.00 [00:38:42]line Место: АЗС № 86 "Партнер Нефть" [00:38:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:38:42]line СНО: Общий режим [00:38:42]line Чек 6 25.10.2024 00:38 [00:38:42]line Смена: 464 ФФД: 1.0 [00:38:42]line ЗНМ: 0300000155 [00:38:42]line РНМ: 0000000000100030 [00:38:42]line Версия ККМ: 001 [00:38:42]line ФМ: 0000000000965340 [00:38:42]line ФД: 189383 [00:38:42]line ФПД: 263784928713529 [00:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003846&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189383&fm=263784928713529&tin=02508201610067®Number=0000000000100030&sum=100000 [00:38:42]written 0, free lines is 4095 [00:38:42]OFD Sender: Processing packet 189383 [packets to send 1062, broken 1061] [00:38:42]ProducePacketName [00:38:42]name=ofd_packets/00189383 [00:38:42]OFD Sender: To server: pG, [00:38:42]CommunicateWithHost lk.salyk.kg:30040 [00:38:42]ConnectInit lk.salyk.kg [00:38:42]Connected sock=10 [00:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 D5 07 01 53 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 96 E8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 E3 02 00 35 04 06 00 EF E9 36 F9 1B 39 AD 96 D1 80 3E AE 9A 76 [00:38:42]Write to MH i2c: 01 00 00 AF 88 37 [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 07 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: 01 07 00 AF 88 00 00 00 00 00 56 0C A0 [00:38:42]RasterBufferAndPrint [00:38:42]line [00:38:42]line [00:38:42]line [00:38:42]line [00:38:42]line [00:38:42]written 0, free lines is 3161 [00:38:42]MH_Cut [00:38:42]Write to MH i2c: D1 01 00 B6 88 01 10 [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: D1 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: D1 01 00 [00:38:42]MH_I2C_Read... [00:38:42]Read from MH i2c: D1 01 00 B6 88 00 0F [00:38:42]Write to MH i2c: 01 00 00 B7 88 3F [00:38:42]Write i2c OK [00:38:42]MH_I2C_Read... [00:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 C6 47 00 F4 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 39 36 35 33 34 30 10 04 04 00 C7 E3 02 00 F4 03 04 00 7D 92 1A 67 B6 04 01 00 00 50 8E 84 81 FD 05 D3 85 [00:38:43]CommunicateWithHost err = 0 [00:38:43]CheckOFDResponse [00:38:43]1017 (14) - 77093643461234 [00:38:43]1041 (16) - 0000000000965340 [00:38:43]1040 (4) - 189383 [00:38:43]1012 (4) - 24.10.2024 18:31 [00:38:43]1206 (1) - 0 [00:38:43]OFD Sender: Remove packet 189383 [00:38:43]ProducePacketName [00:38:43]name=ofd_packets/00189383 [00:38:43]NVStorageDeleteData [00:38:43]OFD Sender: No OFD packet to send [00:38:44]*** Cut start [00:38:44]*** Partial cut [00:38:44]*** CUTSNS_PIN = 1 [00:38:44]*** CUTSNS_PIN = 0 [00:38:44]*** Brake cut motor [00:38:44]Read from MH i2c: 01 [00:38:44]MH_I2C_Read... [00:38:44]*** Stop cut motor [00:38:44]*** Cut end [00:38:44]Read from MH i2c: 01 07 00 [00:38:44]MH_I2C_Read... [00:38:44]Read from MH i2c: 01 07 00 B7 88 00 00 00 00 00 FF 0F 54 [00:38:44]process_action close_receipt done [00:38:44]requested_data is exist [00:38:44]produce_requested_data [00:38:44]requested_item fm.sn is exist - process it [00:38:44]wFMCommunicate request_size=4 [00:38:44]MH_SAM_APDU [00:38:44]CAPDU: 80 11 00 00 [00:38:44]Write to MH i2c: E2 08 00 B8 88 80 11 00 00 00 00 00 00 BA [00:38:44]Write i2c OK [00:38:44]MH_I2C_Read... [00:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:44]Read from MH i2c: E2 [00:38:44]MH_I2C_Read... [00:38:44]Read from MH i2c: E2 17 00 [00:38:44]MH_I2C_Read... [00:38:44]Read from MH i2c: E2 17 00 B8 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [00:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:38:44]wFMCommunicate OK [00:38:44]requested_item fd.num is exist - process it [00:38:44]SAM_PROTO_GetFieldsCounters [00:38:44]wFMCommunicate request_size=4 [00:38:44]MH_SAM_APDU [00:38:44]CAPDU: 80 13 00 00 [00:38:44]Write to MH i2c: E2 08 00 B9 88 80 13 00 00 00 00 00 00 BD [00:38:44]Write i2c OK [00:38:44]MH_I2C_Read... [00:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:44]Read from MH i2c: E2 [00:38:44]MH_I2C_Read... [00:38:44]Read from MH i2c: E2 62 00 [00:38:44]MH_I2C_Read... [00:38:44]Read from MH i2c: E2 62 00 B9 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E3 02 00 0E 04 04 00 D0 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 53 [00:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 E3 02 00 0E 04 04 00 D0 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:38:44]wFMCommunicate OK [00:38:44]SAM_PROTO_GetFieldsCounters done [00:38:44]requested_item shift.num is exist - process it [00:38:44]requested_item shift.opened is exist - process it [00:38:44]req_shift_opened [00:38:44]FM_GetShiftState [00:38:44]SAM_PROTO_GetShiftState [00:38:44]wFMCommunicate request_size=4 [00:38:44]MH_SAM_APDU [00:38:44]CAPDU: 80 13 01 00 [00:38:44]Write to MH i2c: E2 08 00 BA 88 80 13 01 00 00 00 00 00 BF [00:38:44]Write i2c OK [00:38:44]MH_I2C_Read... [00:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:45]Read from MH i2c: E2 [00:38:45]MH_I2C_Read... [00:38:45]Read from MH i2c: E2 0E 00 [00:38:45]MH_I2C_Read... [00:38:45]Read from MH i2c: E2 0E 00 BA 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 44 [00:38:45]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:38:45]wFMCommunicate OK [00:38:45]SAM_PROTO_GetShiftState done [00:38:45]FM_GetShiftState done [00:38:45]req_shift_opened done [00:38:45]requested_item shift.open_date is exist - process it [00:38:45]req_shift_open_date [00:38:45]req_shift_open_date done [00:38:45]produce_requested_data done [00:38:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189383,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:38:45]process_action_free close_receipt [00:38:45]json_value_free [00:38:45]json_value_free done [00:38:45]process_json_proto returns [00:38:45]Send response to host [00:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189383,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:38:45]free response buf [00:38:45]execute_script done [00:38:45]execute_script returns [00:38:45]free content buf [00:38:45]Sock 8.Close socket [00:38:45]Sock 8.Thread stoped [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:01]accept exits with 9 [00:42:01]New connection [00:42:01]New thread 3067071844 created [00:42:01]Thread 3067215204 joined [00:42:01]Waiting for new connection... [00:42:01] Sock 9.Parse request [00:42:01]Sock 9.Check first char [00:42:01]Sock 9.First char is OK [00:42:01]request: POST /json_proto HTTP/1.0 [00:42:01]Method: POST [00:42:01]URL: /json_proto [00:42:01]Method is POST - this is cgi request [00:42:01]url: /json_proto [00:42:01]query_string will be loaded in cgi processing [00:42:01]execute_cgi json_proto POST (null) [00:42:01]execute_cgi path=json_proto method=POST [00:42:01]POST find Content-Length [00:42:01]Host: 172.17.42.131:8080 [00:42:01]Content-Length: 682 [00:42:01]Content-Type: application/json [00:42:01] [00:42:01]POST finish read [00:42:01]Found Content-Length = 682 [00:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:42:01]execute_script... [00:42: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)211447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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:42:01]POST & json_proto [00:42:01]process_json_proto [00:42:01]json parsed OK: [00:42:01]protocol is kg_v1.0 [00:42:01]action value=close_receipt [00:42:01]process_action close_receipt [00:42:01]cmd_close_receipt [00:42:01]MH_GetDate [00:42:01]Write to MH i2c: F0 00 00 BB 88 32 [00:42:01]Write i2c OK [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: F0 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: F0 09 00 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: F0 09 00 BB 88 00 5F E9 1A 67 A0 18 CA 66 EC [00:42:01]GetLastDocTimeStamp 1729816726 [00:42:01]current date 1729816927 [00:42:01]FM_GetShiftState [00:42:01]SAM_PROTO_GetShiftState [00:42:01]wFMCommunicate request_size=4 [00:42:01]MH_SAM_APDU [00:42:01]CAPDU: 80 13 01 00 [00:42:01]Write to MH i2c: E2 08 00 BC 88 80 13 01 00 00 00 00 00 C1 [00:42:01]Write i2c OK [00:42:01]MH_I2C_Read... [00:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:01]Read from MH i2c: E2 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 0E 00 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 0E 00 BC 88 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 46 [00:42:01]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:42:01]wFMCommunicate OK [00:42:01]SAM_PROTO_GetShiftState done [00:42:01]FM_GetShiftState done [00:42:01]opened in 1729815317 [00:42:01]opened+sec_in_day 1729901717 [00:42:01]quantity*price = 100021 [00:42:01]sum+1 = 100023 [00:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 7 25.10.2024 00:42 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189384 ФПД: 10573422897233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004207&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189384&fm=10573422897233&tin=02508201610067®Number=0000000000100030&sum=100000 [00:42:03]StoreToDocumentArchive [00:42:03]shift 464 fd 189384 [00:42:03]save to /storage/0464/doc_00189384 [00:42:03]save last doc name /storage/0464/doc_00189384 to /storage/kkm_last_doc_name [00:42:03]save OK [00:42:03]Clear old archive folders... [00:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:42:03]tlvbuf is 0160C180 [00:42:03]SAM_PROTO_ClearQueue [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 09 00 00 [00:42:03]Write to MH i2c: E2 08 00 C9 88 80 09 00 00 00 00 00 00 C3 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 C9 88 00 90 00 C5 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_ClearQueue done [00:42:03]KKMCreateOFDPacket [00:42:03]OFDProtocolAddRootSTLVToBuf [00:42:03]FM_MakeSignedData [00:42:03]FM_MakeSignedData [00:42:03]SAM_PROTO_SignData [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 0D 01 02 [00:42:03]Write to MH i2c: E2 08 00 CA 88 80 0D 01 02 00 00 00 00 CB [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 CA 88 00 90 00 C6 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]wFMCommunicate request_size=255 [00:42:03]MH_SAM_APDU [00:42: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 33 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 07 00 00 00 F4 03 04 00 5F E9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E3 02 00 35 04 06 00 09 [00:42:03]Write to MH i2c: E2 02 01 CB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 07 00 00 00 F4 03 04 00 5F E9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E3 02 00 35 04 06 00 09 00 00 B2 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 CB 88 00 90 00 C7 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]wFMCommunicate request_size=10 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 0D 02 02 05 9D D1 1D A8 51 [00:42:03]Write to MH i2c: E2 0D 00 CC 88 80 0D 02 02 05 00 9D D1 1D A8 51 00 00 5C [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 03 00 CC 88 00 90 00 C8 [00:42:03]RAPDU: 90 00 [00:42:03]wFMCommunicate OK [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 0D 03 02 [00:42:03]Write to MH i2c: E2 08 00 CD 88 80 0D 03 02 00 00 00 00 D0 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0B 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0B 00 CD 88 00 11 7B C0 37 23 67 4D 2B 90 00 56 [00:42:03]RAPDU: 11 7B C0 37 23 67 4D 2B 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_SignData done [00:42:03]FM_MakeSignedData done [00:42:03]CreateOFDProtocolMessage [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 11 00 00 [00:42:03]Write to MH i2c: E2 08 00 CE 88 80 11 00 00 00 00 00 00 D0 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 CE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [00:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:42:03]wFMCommunicate OK [00:42:03]CreateOFDProtocolMessage done [00:42:03]OFDSenderStorePacket 189384 [00:42:03]StoreOFDPacket docnum=189384 [00:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 07 00 00 00 F4 03 04 00 5F E9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E3 02 00 35 04 06 00 09 9D D1 1D A8 51 11 7B C0 37 23 67 4D 2B [00:42:03]CheckFolder [00:42:03]dirname=/storage/ofd_packets [00:42:03]CheckFolder done [00:42:03]ProducePacketName [00:42:03]name=ofd_packets/00189384 [00:42:03]NVStorageSaveData ofd_packets/00189384 [00:42:03]File name is /storage/ofd_packets/00189384 [00:42:03]Write 301 bytes [00:42:03]NVStorageSaveData done [00:42:03]OFDSenderStorePacket done [00:42:03]KKMCreateOFDPacket done [00:42:03]NVStorageSaveData kkm_last_timestamp [00:42:03]File name is /storage/kkm_last_timestamp [00:42:03]Write 4 bytes [00:42:03]NVStorageSaveData done [00:42:03]ExternCall_PrintAddStr [00:42:03]wPrintStart [00:42:03]Write to MH i2c: 01 00 00 CF 88 57 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: 01 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: 01 07 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: 01 07 00 CF 88 00 00 00 00 00 FF 0F 6C [00:42:03]RasterBufferAndPrint [00:42:03]line Счет N : (1)211447 [00:42:03]line ИНН: 02508201610067 [00:42:03]line Контрольно-Кассовый Чек [00:42:03]line ПРОДАЖА [00:42:03]line ТРК (МРК, ГНК) : 43 [00:42:03]line Товар: 2710124500 [00:42:03]line Аи-95-К-3 [00:42:03]line 13.480 * 74.20 [00:42:03]line = 1000.22 [00:42:03]line НДС 12% НСП 1% [00:42:03]line > о реализуемом товаре [00:42:03]line ОКРУГЛЕНИЕ: -0.22 [00:42:03]line ИТОГО: 1000.00 [00:42:03]line Внесено: 1000.00 [00:42:03]line СДАЧА: 0.00 [00:42:03]line НСП 1% : 8.85 [00:42:03]line НДС 12% : 106.22 [00:42:03]line Наличными: 1000.00 [00:42:03]line Безнал.: 0.00 [00:42:03]line Место: АЗС № 86 "Партнер Нефть" [00:42:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:42:03]line СНО: Общий режим [00:42:03]line Чек 7 25.10.2024 00:42 [00:42:03]line Смена: 464 ФФД: 1.0 [00:42:03]line ЗНМ: 0300000155 [00:42:03]line РНМ: 0000000000100030 [00:42:03]line Версия ККМ: 001 [00:42:03]line ФМ: 0000000000965340 [00:42:03]line ФД: 189384 [00:42:03]line ФПД: 10573422897233 [00:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004207&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189384&fm=10573422897233&tin=02508201610067®Number=0000000000100030&sum=100000 [00:42:03]written 0, free lines is 4095 [00:42:03]OFD Sender: Processing packet 189384 [packets to send 1062, broken 1061] [00:42:03]ProducePacketName [00:42:03]name=ofd_packets/00189384 [00:42:03]OFD Sender: To server: pG, [00:42:03]CommunicateWithHost lk.salyk.kg:30040 [00:42:03]ConnectInit lk.salyk.kg [00:42:04]Connected sock=8 [00:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 07 00 00 00 F4 03 04 00 5F E9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 E3 02 00 35 04 06 00 09 9D D1 1D A8 51 11 7B C0 37 23 67 4D 2B [00:42:04]Write to MH i2c: 01 00 00 FA 88 82 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: 01 07 00 FA 88 00 00 00 00 00 5C 0C F1 [00:42:04]RasterBufferAndPrint [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]line [00:42:04]written 0, free lines is 3168 [00:42:04]MH_Cut [00:42:04]Write to MH i2c: D1 01 00 01 89 01 5C [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 01 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: D1 01 00 01 89 00 5B [00:42:04]Write to MH i2c: 01 00 00 02 89 8B [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 7D 47 00 7A 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 39 36 35 33 34 30 10 04 04 00 C8 E3 02 00 F4 03 04 00 46 93 1A 67 B6 04 01 00 00 6A 35 91 A3 BE 15 BB 15 [00:42:04]CommunicateWithHost err = 0 [00:42:04]CheckOFDResponse [00:42:04]1017 (14) - 77093643461234 [00:42:04]1041 (16) - 0000000000965340 [00:42:04]1040 (4) - 189384 [00:42:04]1012 (4) - 24.10.2024 18:34 [00:42:04]1206 (1) - 0 [00:42:04]OFD Sender: Remove packet 189384 [00:42:04]ProducePacketName [00:42:04]name=ofd_packets/00189384 [00:42:04]NVStorageDeleteData [00:42:04]OFD Sender: No OFD packet to send [00:42:05]*** Cut start [00:42:05]*** Partial cut [00:42:05]*** CUTSNS_PIN = 1 [00:42:05]*** CUTSNS_PIN = 0 [00:42:05]*** Brake cut motor [00:42:06]Read from MH i2c: 01 [00:42:06]MH_I2C_Read... [00:42:06]*** Stop cut motor [00:42:06]*** Cut end [00:42:06]Read from MH i2c: 01 07 00 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: 01 07 00 02 89 00 00 00 00 00 FF 0F A0 [00:42:06]process_action close_receipt done [00:42:06]requested_data is exist [00:42:06]produce_requested_data [00:42:06]requested_item fm.sn is exist - process it [00:42:06]wFMCommunicate request_size=4 [00:42:06]MH_SAM_APDU [00:42:06]CAPDU: 80 11 00 00 [00:42:06]Write to MH i2c: E2 08 00 03 89 80 11 00 00 00 00 00 00 06 [00:42:06]Write i2c OK [00:42:06]MH_I2C_Read... [00:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:06]Read from MH i2c: E2 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 17 00 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 17 00 03 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [00:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:42:06]wFMCommunicate OK [00:42:06]requested_item fd.num is exist - process it [00:42:06]SAM_PROTO_GetFieldsCounters [00:42:06]wFMCommunicate request_size=4 [00:42:06]MH_SAM_APDU [00:42:06]CAPDU: 80 13 00 00 [00:42:06]Write to MH i2c: E2 08 00 04 89 80 13 00 00 00 00 00 00 09 [00:42:06]Write i2c OK [00:42:06]MH_I2C_Read... [00:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:06]Read from MH i2c: E2 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 62 00 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 62 00 04 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E3 02 00 0E 04 04 00 D0 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 A3 [00:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 E3 02 00 0E 04 04 00 D0 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:42:06]wFMCommunicate OK [00:42:06]SAM_PROTO_GetFieldsCounters done [00:42:06]requested_item shift.num is exist - process it [00:42:06]requested_item shift.opened is exist - process it [00:42:06]req_shift_opened [00:42:06]FM_GetShiftState [00:42:06]SAM_PROTO_GetShiftState [00:42:06]wFMCommunicate request_size=4 [00:42:06]MH_SAM_APDU [00:42:06]CAPDU: 80 13 01 00 [00:42:06]Write to MH i2c: E2 08 00 05 89 80 13 01 00 00 00 00 00 0B [00:42:06]Write i2c OK [00:42:06]MH_I2C_Read... [00:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:06]Read from MH i2c: E2 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 0E 00 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 0E 00 05 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 90 [00:42:06]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:42:06]wFMCommunicate OK [00:42:06]SAM_PROTO_GetShiftState done [00:42:06]FM_GetShiftState done [00:42:06]req_shift_opened done [00:42:06]requested_item shift.open_date is exist - process it [00:42:06]req_shift_open_date [00:42:06]req_shift_open_date done [00:42:06]produce_requested_data done [00:42:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189384,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:42:06]process_action_free close_receipt [00:42:06]json_value_free [00:42:06]json_value_free done [00:42:06]process_json_proto returns [00:42:06]Send response to host [00:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189384,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:42:06]free response buf [00:42:06]execute_script done [00:42:06]execute_script returns [00:42:06]free content buf [00:42:06]Sock 9.Close socket [00:42:06]Sock 9.Thread stoped [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:48]accept exits with 10 [00:45:48]New connection [00:45:48]New thread 3067215204 created [00:45:48]Thread 3067071844 joined [00:45:48]Waiting for new connection... [00:45:48] Sock 10.Parse request [00:45:48]Sock 10.Check first char [00:45:48]Sock 10.First char is OK [00:45:48]request: POST /json_proto HTTP/1.0 [00:45:48]Method: POST [00:45:48]URL: /json_proto [00:45:48]Method is POST - this is cgi request [00:45:48]url: /json_proto [00:45:48]query_string will be loaded in cgi processing [00:45:48]execute_cgi json_proto POST (null) [00:45:48]execute_cgi path=json_proto method=POST [00:45:48]POST find Content-Length [00:45:48]Host: 172.17.42.131:8080 [00:45:48]Content-Length: 682 [00:45:48]Content-Type: application/json [00:45:48] [00:45:48]POST finish read [00:45:48]Found Content-Length = 682 [00:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:48]execute_script... [00:45: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)211448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:48]POST & json_proto [00:45:48]process_json_proto [00:45:48]json parsed OK: [00:45:48]protocol is kg_v1.0 [00:45:48]action value=close_receipt [00:45:48]process_action close_receipt [00:45:48]cmd_close_receipt [00:45:48]MH_GetDate [00:45:48]Write to MH i2c: F0 00 00 06 89 7E [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 09 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: F0 09 00 06 89 00 42 EA 1A 67 A0 18 CA 66 1C [00:45:48]GetLastDocTimeStamp 1729816927 [00:45:48]current date 1729817154 [00:45:48]FM_GetShiftState [00:45:48]SAM_PROTO_GetShiftState [00:45:48]wFMCommunicate request_size=4 [00:45:48]MH_SAM_APDU [00:45:48]CAPDU: 80 13 01 00 [00:45:48]Write to MH i2c: E2 08 00 07 89 80 13 01 00 00 00 00 00 0D [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:48]Read from MH i2c: E2 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 07 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 92 [00:45:48]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:45:48]wFMCommunicate OK [00:45:48]SAM_PROTO_GetShiftState done [00:45:48]FM_GetShiftState done [00:45:48]opened in 1729815317 [00:45:48]opened+sec_in_day 1729901717 [00:45:48]quantity*price = 100015 [00:45:48]sum+1 = 100017 [00:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 8 25.10.2024 00:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189385 ФПД: 9466992355445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189385&fm=9466992355445&tin=02508201610067®Number=0000000000100030&sum=100000 [00:45:49]StoreToDocumentArchive [00:45:49]shift 464 fd 189385 [00:45:49]save to /storage/0464/doc_00189385 [00:45:49]save last doc name /storage/0464/doc_00189385 to /storage/kkm_last_doc_name [00:45:49]save OK [00:45:49]Clear old archive folders... [00:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:49]tlvbuf is 0154FD90 [00:45:49]SAM_PROTO_ClearQueue [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 09 00 00 [00:45:49]Write to MH i2c: E2 08 00 14 89 80 09 00 00 00 00 00 00 0F [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 14 89 00 90 00 11 [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]SAM_PROTO_ClearQueue done [00:45:49]KKMCreateOFDPacket [00:45:49]OFDProtocolAddRootSTLVToBuf [00:45:49]FM_MakeSignedData [00:45:49]FM_MakeSignedData [00:45:49]SAM_PROTO_SignData [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 0D 01 02 [00:45:49]Write to MH i2c: E2 08 00 15 89 80 0D 01 02 00 00 00 00 17 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 15 89 00 90 00 12 [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]wFMCommunicate request_size=255 [00:45:49]MH_SAM_APDU [00:45: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 42 EA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E3 02 00 35 04 06 00 08 [00:45:49]Write to MH i2c: E2 02 01 16 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 42 EA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E3 02 00 35 04 06 00 08 00 00 C0 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 16 89 00 90 00 13 [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]wFMCommunicate request_size=10 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 0D 02 02 05 9C 34 B7 68 75 [00:45:50]Write to MH i2c: E2 0D 00 17 89 80 0D 02 02 05 00 9C 34 B7 68 75 00 00 88 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 03 00 17 89 00 90 00 14 [00:45:50]RAPDU: 90 00 [00:45:50]wFMCommunicate OK [00:45:50]wFMCommunicate request_size=4 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 0D 03 02 [00:45:50]Write to MH i2c: E2 08 00 18 89 80 0D 03 02 00 00 00 00 1C [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 0B 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 0B 00 18 89 00 18 23 C7 F1 30 39 5E B1 90 00 88 [00:45:50]RAPDU: 18 23 C7 F1 30 39 5E B1 90 00 [00:45:50]wFMCommunicate OK [00:45:50]SAM_PROTO_SignData done [00:45:50]FM_MakeSignedData done [00:45:50]CreateOFDProtocolMessage [00:45:50]wFMCommunicate request_size=4 [00:45:50]MH_SAM_APDU [00:45:50]CAPDU: 80 11 00 00 [00:45:50]Write to MH i2c: E2 08 00 19 89 80 11 00 00 00 00 00 00 1C [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:50]Read from MH i2c: E2 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 17 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: E2 17 00 19 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [00:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:45:50]wFMCommunicate OK [00:45:50]CreateOFDProtocolMessage done [00:45:50]OFDSenderStorePacket 189385 [00:45:50]StoreOFDPacket docnum=189385 [00:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 0E 07 01 45 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 42 EA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E3 02 00 35 04 06 00 08 9C 34 B7 68 75 18 23 C7 F1 30 39 5E B1 [00:45:50]CheckFolder [00:45:50]dirname=/storage/ofd_packets [00:45:50]CheckFolder done [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00189385 [00:45:50]NVStorageSaveData ofd_packets/00189385 [00:45:50]File name is /storage/ofd_packets/00189385 [00:45:50]Write 301 bytes [00:45:50]NVStorageSaveData done [00:45:50]OFDSenderStorePacket done [00:45:50]KKMCreateOFDPacket done [00:45:50]NVStorageSaveData kkm_last_timestamp [00:45:50]File name is /storage/kkm_last_timestamp [00:45:50]Write 4 bytes [00:45:50]NVStorageSaveData done [00:45:50]ExternCall_PrintAddStr [00:45:50]wPrintStart [00:45:50]Write to MH i2c: 01 00 00 1A 89 A3 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 1A 89 00 00 00 00 00 FF 0F B8 [00:45:50]RasterBufferAndPrint [00:45:50]line Счет N : (1)211448 [00:45:50]line ИНН: 02508201610067 [00:45:50]line Контрольно-Кассовый Чек [00:45:50]line ПРОДАЖА [00:45:50]line ТРК (МРК, ГНК) : 22 [00:45:50]line Товар: 2710124130 [00:45:50]line Аи-92-К-3 [00:45:50]line 14.950 * 66.90 [00:45:50]line = 1000.16 [00:45:50]line НДС 12% НСП 1% [00:45:50]line > о реализуемом товаре [00:45:50]line ОКРУГЛЕНИЕ: -0.16 [00:45:50]line ИТОГО: 1000.00 [00:45:50]line Внесено: 1000.00 [00:45:50]line СДАЧА: 0.00 [00:45:50]line НСП 1% : 8.85 [00:45:50]line НДС 12% : 106.21 [00:45:50]line Наличными: 1000.00 [00:45:50]line Безнал.: 0.00 [00:45:50]line Место: АЗС № 86 "Партнер Нефть" [00:45:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:45:50]line СНО: Общий режим [00:45:50]line Чек 8 25.10.2024 00:45 [00:45:50]line Смена: 464 ФФД: 1.0 [00:45:50]line ЗНМ: 0300000155 [00:45:50]line РНМ: 0000000000100030 [00:45:50]line Версия ККМ: 001 [00:45:50]line ФМ: 0000000000965340 [00:45:50]line ФД: 189385 [00:45:50]line ФПД: 9466992355445 [00:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189385&fm=9466992355445&tin=02508201610067®Number=0000000000100030&sum=100000 [00:45:50]written 0, free lines is 4095 [00:45:50]OFD Sender: Processing packet 189385 [packets to send 1062, broken 1061] [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00189385 [00:45:50]OFD Sender: To server: pG, [00:45:50]CommunicateWithHost lk.salyk.kg:30040 [00:45:50]ConnectInit lk.salyk.kg [00:45:50]Connected sock=9 [00:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 0E 07 01 45 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 42 EA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 E3 02 00 35 04 06 00 08 9C 34 B7 68 75 18 23 C7 F1 30 39 5E B1 [00:45:50]Write to MH i2c: 01 00 00 45 89 CE [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 45 89 00 00 00 00 00 49 0C 2A [00:45:50]RasterBufferAndPrint [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]written 0, free lines is 3150 [00:45:50]MH_Cut [00:45:50]Write to MH i2c: D1 01 00 4C 89 01 A7 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 01 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 01 00 4C 89 00 A6 [00:45:50]Write to MH i2c: 01 00 00 4D 89 D6 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 55 47 00 3A 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 39 36 35 33 34 30 10 04 04 00 C9 E3 02 00 F4 03 04 00 29 94 1A 67 B6 04 01 00 00 FF B0 1A FA ED 77 57 C1 [00:45:51]CommunicateWithHost err = 0 [00:45:51]CheckOFDResponse [00:45:51]1017 (14) - 77093643461234 [00:45:51]1041 (16) - 0000000000965340 [00:45:51]1040 (4) - 189385 [00:45:51]1012 (4) - 24.10.2024 18:38 [00:45:51]1206 (1) - 0 [00:45:51]OFD Sender: Remove packet 189385 [00:45:51]ProducePacketName [00:45:51]name=ofd_packets/00189385 [00:45:51]NVStorageDeleteData [00:45:51]OFD Sender: No OFD packet to send [00:45:52]*** Cut start [00:45:52]*** Partial cut [00:45:52]*** CUTSNS_PIN = 1 [00:45:52]*** CUTSNS_PIN = 0 [00:45:52]*** Brake cut motor [00:45:52]Read from MH i2c: 01 [00:45:52]MH_I2C_Read... [00:45:52]*** Stop cut motor [00:45:52]*** Cut end [00:45:52]Read from MH i2c: 01 07 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: 01 07 00 4D 89 00 00 00 00 00 FF 0F EB [00:45:52]process_action close_receipt done [00:45:52]requested_data is exist [00:45:52]produce_requested_data [00:45:52]requested_item fm.sn is exist - process it [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 11 00 00 [00:45:52]Write to MH i2c: E2 08 00 4E 89 80 11 00 00 00 00 00 00 51 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:52]Read from MH i2c: E2 17 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 17 00 4E 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [00:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:45:52]wFMCommunicate OK [00:45:52]requested_item fd.num is exist - process it [00:45:52]SAM_PROTO_GetFieldsCounters [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 13 00 00 [00:45:52]Write to MH i2c: E2 08 00 4F 89 80 13 00 00 00 00 00 00 54 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 62 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 62 00 4F 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E3 02 00 0E 04 04 00 D0 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 F2 [00:45:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 E3 02 00 0E 04 04 00 D0 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:45:53]wFMCommunicate OK [00:45:53]SAM_PROTO_GetFieldsCounters done [00:45:53]requested_item shift.num is exist - process it [00:45:53]requested_item shift.opened is exist - process it [00:45:53]req_shift_opened [00:45:53]FM_GetShiftState [00:45:53]SAM_PROTO_GetShiftState [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 13 01 00 [00:45:53]Write to MH i2c: E2 08 00 50 89 80 13 01 00 00 00 00 00 56 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 0E 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 0E 00 50 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 DB [00:45:53]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:45:53]wFMCommunicate OK [00:45:53]SAM_PROTO_GetShiftState done [00:45:53]FM_GetShiftState done [00:45:53]req_shift_opened done [00:45:53]requested_item shift.open_date is exist - process it [00:45:53]req_shift_open_date [00:45:53]req_shift_open_date done [00:45:53]produce_requested_data done [00:45:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189385,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:45:53]process_action_free close_receipt [00:45:53]json_value_free [00:45:53]json_value_free done [00:45:53]process_json_proto returns [00:45:53]Send response to host [00:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189385,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:45:53]free response buf [00:45:53]execute_script done [00:45:53]execute_script returns [00:45:53]free content buf [00:45:53]Sock 10.Close socket [00:45:53]Sock 10.Thread stoped [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49: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:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:38]ConnectInit Can't connect to host [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:58:57]accept exits with 8 [00:58:57]New connection [00:58:57]New thread 3067071844 created [00:58:57]Thread 3067215204 joined [00:58:57]Waiting for new connection... [00:58:57] Sock 8.Parse request [00:58:57]Sock 8.Check first char [00:58:57]Sock 8.First char is OK [00:58:57]request: POST /json_proto HTTP/1.0 [00:58:57]Method: POST [00:58:57]URL: /json_proto [00:58:57]Method is POST - this is cgi request [00:58:57]url: /json_proto [00:58:57]query_string will be loaded in cgi processing [00:58:57]execute_cgi json_proto POST (null) [00:58:57]execute_cgi path=json_proto method=POST [00:58:57]POST find Content-Length [00:58:57]Host: 172.17.42.131:8080 [00:58:57]Content-Length: 769 [00:58:57]Content-Type: application/json [00:58:57] [00:58:57]POST finish read [00:58:57]Found Content-Length = 769 [00:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:57]execute_script... [00:58: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)211449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:57]POST & json_proto [00:58:57]process_json_proto [00:58:57]json parsed OK: [00:58:57]protocol is kg_v1.0 [00:58:57]action value=close_receipt [00:58:57]process_action close_receipt [00:58:57]cmd_close_receipt [00:58:57]MH_GetDate [00:58:57]Write to MH i2c: F0 00 00 51 89 C9 [00:58:57]Write i2c OK [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: F0 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: F0 09 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: F0 09 00 51 89 00 57 ED 1A 67 A0 18 CA 66 7F [00:58:57]GetLastDocTimeStamp 1729817154 [00:58:57]current date 1729817943 [00:58:57]FM_GetShiftState [00:58:57]SAM_PROTO_GetShiftState [00:58:57]wFMCommunicate request_size=4 [00:58:57]MH_SAM_APDU [00:58:57]CAPDU: 80 13 01 00 [00:58:57]Write to MH i2c: E2 08 00 52 89 80 13 01 00 00 00 00 00 58 [00:58:57]Write i2c OK [00:58:57]MH_I2C_Read... [00:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:57]Read from MH i2c: E2 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 0E 00 [00:58:57]MH_I2C_Read... [00:58:57]Read from MH i2c: E2 0E 00 52 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 DD [00:58:57]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:58:57]wFMCommunicate OK [00:58:57]SAM_PROTO_GetShiftState done [00:58:57]FM_GetShiftState done [00:58:57]opened in 1729815317 [00:58:57]opened+sec_in_day 1729901717 [00:58:57]quantity*price = 100015 [00:58:57]sum+1 = 100017 [00:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 9 25.10.2024 00:59 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189386 ФПД: 64698289698046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189386&fm=64698289698046&tin=02508201610067®Number=0000000000100030&sum=100016 [00:58:58]StoreToDocumentArchive [00:58:58]shift 464 fd 189386 [00:58:58]save to /storage/0464/doc_00189386 [00:58:58]save last doc name /storage/0464/doc_00189386 to /storage/kkm_last_doc_name [00:58:58]save OK [00:58:58]Clear old archive folders... [00:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:58:58]tlvbuf is 01517910 [00:58:58]SAM_PROTO_ClearQueue [00:58:58]wFMCommunicate request_size=4 [00:58:58]MH_SAM_APDU [00:58:58]CAPDU: 80 09 00 00 [00:58:58]Write to MH i2c: E2 08 00 5F 89 80 09 00 00 00 00 00 00 5A [00:58:58]Write i2c OK [00:58:58]MH_I2C_Read... [00:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:58]Read from MH i2c: E2 [00:58:58]MH_I2C_Read... [00:58:58]Read from MH i2c: E2 03 00 [00:58:58]MH_I2C_Read... [00:58:58]Read from MH i2c: E2 03 00 5F 89 00 90 00 5C [00:58:58]RAPDU: 90 00 [00:58:58]wFMCommunicate OK [00:58:58]SAM_PROTO_ClearQueue done [00:58:58]KKMCreateOFDPacket [00:58:58]OFDProtocolAddRootSTLVToBuf [00:58:58]FM_MakeSignedData [00:58:58]FM_MakeSignedData [00:58:58]SAM_PROTO_SignData [00:58:58]wFMCommunicate request_size=4 [00:58:58]MH_SAM_APDU [00:58:58]CAPDU: 80 0D 01 02 [00:58:58]Write to MH i2c: E2 08 00 60 89 80 0D 01 02 00 00 00 00 62 [00:58:58]Write i2c OK [00:58:58]MH_I2C_Read... [00:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:58]Read from MH i2c: E2 [00:58:58]MH_I2C_Read... [00:58:58]Read from MH i2c: E2 03 00 [00:58:58]MH_I2C_Read... [00:58:58]Read from MH i2c: E2 03 00 60 89 00 90 00 5D [00:58:58]RAPDU: 90 00 [00:58:58]wFMCommunicate OK [00:58:58]wFMCommunicate request_size=255 [00:58:58]MH_SAM_APDU [00:58: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 57 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E3 02 00 35 04 06 00 3A [00:58:58]Write to MH i2c: E2 02 01 61 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 57 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E3 02 00 35 04 06 00 3A 00 00 77 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:59]Read from MH i2c: E2 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 03 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 03 00 61 89 00 90 00 5E [00:58:59]RAPDU: 90 00 [00:58:59]wFMCommunicate OK [00:58:59]wFMCommunicate request_size=10 [00:58:59]MH_SAM_APDU [00:58:59]CAPDU: 80 0D 02 02 05 D7 BE 93 34 FE [00:58:59]Write to MH i2c: E2 0D 00 62 89 80 0D 02 02 05 00 D7 BE 93 34 FE 00 00 C9 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:59]Read from MH i2c: E2 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 03 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 03 00 62 89 00 90 00 5F [00:58:59]RAPDU: 90 00 [00:58:59]wFMCommunicate OK [00:58:59]wFMCommunicate request_size=4 [00:58:59]MH_SAM_APDU [00:58:59]CAPDU: 80 0D 03 02 [00:58:59]Write to MH i2c: E2 08 00 63 89 80 0D 03 02 00 00 00 00 67 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:59]Read from MH i2c: E2 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 0B 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 0B 00 63 89 00 A8 5B E9 A3 39 A8 1A 04 90 00 F6 [00:58:59]RAPDU: A8 5B E9 A3 39 A8 1A 04 90 00 [00:58:59]wFMCommunicate OK [00:58:59]SAM_PROTO_SignData done [00:58:59]FM_MakeSignedData done [00:58:59]CreateOFDProtocolMessage [00:58:59]wFMCommunicate request_size=4 [00:58:59]MH_SAM_APDU [00:58:59]CAPDU: 80 11 00 00 [00:58:59]Write to MH i2c: E2 08 00 64 89 80 11 00 00 00 00 00 00 67 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:59]Read from MH i2c: E2 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 17 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: E2 17 00 64 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [00:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:58:59]wFMCommunicate OK [00:58:59]CreateOFDProtocolMessage done [00:58:59]OFDSenderStorePacket 189386 [00:58:59]StoreOFDPacket docnum=189386 [00:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 46 07 01 10 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 57 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E3 02 00 35 04 06 00 3A D7 BE 93 34 FE A8 5B E9 A3 39 A8 1A 04 [00:58:59]CheckFolder [00:58:59]dirname=/storage/ofd_packets [00:58:59]CheckFolder done [00:58:59]ProducePacketName [00:58:59]name=ofd_packets/00189386 [00:58:59]NVStorageSaveData ofd_packets/00189386 [00:58:59]File name is /storage/ofd_packets/00189386 [00:58:59]Write 301 bytes [00:58:59]NVStorageSaveData done [00:58:59]OFDSenderStorePacket done [00:58:59]KKMCreateOFDPacket done [00:58:59]NVStorageSaveData kkm_last_timestamp [00:58:59]File name is /storage/kkm_last_timestamp [00:58:59]Write 4 bytes [00:58:59]NVStorageSaveData done [00:58:59]ExternCall_PrintAddStr [00:58:59]wPrintStart [00:58:59]Write to MH i2c: 01 00 00 65 89 EE [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 07 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 07 00 65 89 00 00 00 00 00 FF 0F 03 [00:58:59]RasterBufferAndPrint [00:58:59]line Счет N : (1)211449 [00:58:59]line ИНН: 02508201610067 [00:58:59]line Контрольно-Кассовый Чек [00:58:59]line ПРОДАЖА [00:58:59]line ТРК (МРК, ГНК) : 42 [00:58:59]line Товар: 2710124130 [00:58:59]line Аи-92-К-3 [00:58:59]line 14.950 * 66.90 [00:58:59]line = 1000.16 [00:58:59]line НДС 12% НСП 1% [00:58:59]line > о реализуемом товаре [00:58:59]line ИТОГО: 1000.16 [00:58:59]line НСП 1% : 8.85 [00:58:59]line НДС 12% : 106.21 [00:58:59]line Наличными: 0.00 [00:58:59]line Безнал.: 1000.16 [00:58:59]line Место: АЗС № 86 "Партнер Нефть" [00:58:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:58:59]line СНО: Общий режим [00:58:59]line Чек 9 25.10.2024 00:59 [00:58:59]line Смена: 464 ФФД: 1.0 [00:58:59]line ЗНМ: 0300000155 [00:58:59]line РНМ: 0000000000100030 [00:58:59]line Версия ККМ: 001 [00:58:59]line Платежная система: Mbank [00:58:59]line ФМ: 0000000000965340 [00:58:59]line ФД: 189386 [00:58:59]line ФПД: 64698289698046 [00:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189386&fm=64698289698046&tin=02508201610067®Number=0000000000100030&sum=100016 [00:58:59]written 0, free lines is 4095 [00:58:59]OFD Sender: Processing packet 189386 [packets to send 1062, broken 1061] [00:58:59]ProducePacketName [00:58:59]name=ofd_packets/00189386 [00:58:59]OFD Sender: To server: pG, [00:58:59]CommunicateWithHost lk.salyk.kg:30040 [00:58:59]ConnectInit lk.salyk.kg [00:58:59]Connected sock=10 [00:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 46 07 01 10 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 57 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA E3 02 00 35 04 06 00 3A D7 BE 93 34 FE A8 5B E9 A3 39 A8 1A 04 [00:58:59]Write to MH i2c: 01 00 00 8E 89 17 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 07 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: 01 07 00 8E 89 00 00 00 00 00 76 0C A0 [00:58:59]RasterBufferAndPrint [00:58:59]line [00:58:59]line [00:58:59]line [00:58:59]line [00:58:59]line [00:58:59]written 0, free lines is 3196 [00:58:59]MH_Cut [00:58:59]Write to MH i2c: D1 01 00 95 89 01 F0 [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: D1 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: D1 01 00 [00:58:59]MH_I2C_Read... [00:58:59]Read from MH i2c: D1 01 00 95 89 00 EF [00:58:59]Write to MH i2c: 01 00 00 96 89 1F [00:58:59]Write i2c OK [00:58:59]MH_I2C_Read... [00:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 A1 47 00 B8 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 39 36 35 33 34 30 10 04 04 00 CA E3 02 00 F4 03 04 00 3E 97 1A 67 B6 04 01 00 00 A4 6F 35 91 F3 3C 92 14 [00:59:00]CommunicateWithHost err = 0 [00:59:00]CheckOFDResponse [00:59:00]1017 (14) - 77093643461234 [00:59:00]1041 (16) - 0000000000965340 [00:59:00]1040 (4) - 189386 [00:59:00]1012 (4) - 24.10.2024 18:51 [00:59:00]1206 (1) - 0 [00:59:00]OFD Sender: Remove packet 189386 [00:59:00]ProducePacketName [00:59:00]name=ofd_packets/00189386 [00:59:00]NVStorageDeleteData [00:59:00]OFD Sender: No OFD packet to send [00:59:01]*** Cut start [00:59:01]*** Partial cut [00:59:01]*** CUTSNS_PIN = 1 [00:59:01]*** CUTSNS_PIN = 0 [00:59:01]*** Brake cut motor [00:59:01]Read from MH i2c: 01 [00:59:01]MH_I2C_Read... [00:59:01]*** Stop cut motor [00:59:01]*** Cut end [00:59:01]Read from MH i2c: 01 07 00 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: 01 07 00 96 89 00 00 00 00 00 FF 0F 34 [00:59:01]process_action close_receipt done [00:59:01]requested_data is exist [00:59:01]produce_requested_data [00:59:01]requested_item fm.sn is exist - process it [00:59:01]wFMCommunicate request_size=4 [00:59:01]MH_SAM_APDU [00:59:01]CAPDU: 80 11 00 00 [00:59:01]Write to MH i2c: E2 08 00 97 89 80 11 00 00 00 00 00 00 9A [00:59:01]Write i2c OK [00:59:01]MH_I2C_Read... [00:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:01]Read from MH i2c: E2 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: E2 17 00 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: E2 17 00 97 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [00:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:59:01]wFMCommunicate OK [00:59:01]requested_item fd.num is exist - process it [00:59:01]SAM_PROTO_GetFieldsCounters [00:59:01]wFMCommunicate request_size=4 [00:59:01]MH_SAM_APDU [00:59:01]CAPDU: 80 13 00 00 [00:59:01]Write to MH i2c: E2 08 00 98 89 80 13 00 00 00 00 00 00 9D [00:59:01]Write i2c OK [00:59:01]MH_I2C_Read... [00:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:02]Read from MH i2c: E2 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 62 00 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 62 00 98 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E3 02 00 0E 04 04 00 D0 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 3F [00:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA E3 02 00 0E 04 04 00 D0 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 [00:59:02]wFMCommunicate OK [00:59:02]SAM_PROTO_GetFieldsCounters done [00:59:02]requested_item shift.num is exist - process it [00:59:02]requested_item shift.opened is exist - process it [00:59:02]req_shift_opened [00:59:02]FM_GetShiftState [00:59:02]SAM_PROTO_GetShiftState [00:59:02]wFMCommunicate request_size=4 [00:59:02]MH_SAM_APDU [00:59:02]CAPDU: 80 13 01 00 [00:59:02]Write to MH i2c: E2 08 00 99 89 80 13 01 00 00 00 00 00 9F [00:59:02]Write i2c OK [00:59:02]MH_I2C_Read... [00:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:02]Read from MH i2c: E2 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 0E 00 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 0E 00 99 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 24 [00:59:02]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:59:02]wFMCommunicate OK [00:59:02]SAM_PROTO_GetShiftState done [00:59:02]FM_GetShiftState done [00:59:02]req_shift_opened done [00:59:02]requested_item shift.open_date is exist - process it [00:59:02]req_shift_open_date [00:59:02]req_shift_open_date done [00:59:02]produce_requested_data done [00:59:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189386,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:59:02]process_action_free close_receipt [00:59:02]json_value_free [00:59:02]json_value_free done [00:59:02]process_json_proto returns [00:59:02]Send response to host [00:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189386,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:59:02]free response buf [00:59:02]execute_script done [00:59:02]execute_script returns [00:59:02]free content buf [00:59:02]Sock 8.Close socket [00:59:02]Sock 8.Thread stoped [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:43]accept exits with 9 [00:59:43]New connection [00:59:43]New thread 3067215204 created [00:59:43]Thread 3067071844 joined [00:59:43]Waiting for new connection... [00:59:43] Sock 9.Parse request [00:59:43]Sock 9.Check first char [00:59:43]Sock 9.First char is OK [00:59:43]request: POST /json_proto HTTP/1.0 [00:59:43]Method: POST [00:59:43]URL: /json_proto [00:59:43]Method is POST - this is cgi request [00:59:43]url: /json_proto [00:59:43]query_string will be loaded in cgi processing [00:59:43]execute_cgi json_proto POST (null) [00:59:43]execute_cgi path=json_proto method=POST [00:59:43]POST find Content-Length [00:59:43]Host: 172.17.42.131:8080 [00:59:43]Content-Length: 816 [00:59:43]Content-Type: application/json [00:59:43] [00:59:43]POST finish read [00:59:43]Found Content-Length = 816 [00:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:43]execute_script... [00:59: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)211450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:43]POST & json_proto [00:59:43]process_json_proto [00:59:43]json parsed OK: [00:59:43]protocol is kg_v1.0 [00:59:43]action value=close_receipt [00:59:43]process_action close_receipt [00:59:43]cmd_close_receipt [00:59:43]MH_GetDate [00:59:43]Write to MH i2c: F0 00 00 9A 89 12 [00:59:43]Write i2c OK [00:59:43]MH_I2C_Read... [00:59:43]Read from MH i2c: F0 [00:59:43]MH_I2C_Read... [00:59:43]Read from MH i2c: F0 09 00 [00:59:43]MH_I2C_Read... [00:59:43]Read from MH i2c: F0 09 00 9A 89 00 85 ED 1A 67 A0 18 CA 66 F6 [00:59:43]GetLastDocTimeStamp 1729817943 [00:59:43]current date 1729817989 [00:59:43]FM_GetShiftState [00:59:43]SAM_PROTO_GetShiftState [00:59:43]wFMCommunicate request_size=4 [00:59:43]MH_SAM_APDU [00:59:43]CAPDU: 80 13 01 00 [00:59:43]Write to MH i2c: E2 08 00 9B 89 80 13 01 00 00 00 00 00 A1 [00:59:43]Write i2c OK [00:59:43]MH_I2C_Read... [00:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:43]Read from MH i2c: E2 [00:59:43]MH_I2C_Read... [00:59:43]Read from MH i2c: E2 0E 00 [00:59:43]MH_I2C_Read... [00:59:43]Read from MH i2c: E2 0E 00 9B 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 26 [00:59:43]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:59:43]wFMCommunicate OK [00:59:43]SAM_PROTO_GetShiftState done [00:59:43]FM_GetShiftState done [00:59:43]opened in 1729815317 [00:59:43]opened+sec_in_day 1729901717 [00:59:43]quantity*price = 50041 [00:59:43]sum+1 = 50042 [00:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 10 25.10.2024 00:59 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189387 ФПД: 263887237533814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189387&fm=263887237533814&tin=02508201610067®Number=0000000000100030&sum=50041 [00:59:44]StoreToDocumentArchive [00:59:44]shift 464 fd 189387 [00:59:44]save to /storage/0464/doc_00189387 [00:59:44]save last doc name /storage/0464/doc_00189387 to /storage/kkm_last_doc_name [00:59:44]save OK [00:59:44]Clear old archive folders... [00:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:44]tlvbuf is 015179F0 [00:59:44]SAM_PROTO_ClearQueue [00:59:44]wFMCommunicate request_size=4 [00:59:44]MH_SAM_APDU [00:59:44]CAPDU: 80 09 00 00 [00:59:44]Write to MH i2c: E2 08 00 A8 89 80 09 00 00 00 00 00 00 A3 [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 A8 89 00 90 00 A5 [00:59:44]RAPDU: 90 00 [00:59:44]wFMCommunicate OK [00:59:44]SAM_PROTO_ClearQueue done [00:59:44]KKMCreateOFDPacket [00:59:44]OFDProtocolAddRootSTLVToBuf [00:59:44]FM_MakeSignedData [00:59:44]FM_MakeSignedData [00:59:44]SAM_PROTO_SignData [00:59:44]wFMCommunicate request_size=4 [00:59:44]MH_SAM_APDU [00:59:44]CAPDU: 80 0D 01 02 [00:59:44]Write to MH i2c: E2 08 00 A9 89 80 0D 01 02 00 00 00 00 AB [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 A9 89 00 90 00 A6 [00:59:44]RAPDU: 90 00 [00:59:44]wFMCommunicate OK [00:59:44]wFMCommunicate request_size=255 [00:59:44]MH_SAM_APDU [00:59: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 85 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E3 02 00 35 04 06 00 F0 [00:59:44]Write to MH i2c: E2 02 01 AA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 85 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E3 02 00 35 04 06 00 F0 00 00 DE [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 AA 89 00 90 00 A7 [00:59:44]RAPDU: 90 00 [00:59:44]wFMCommunicate OK [00:59:44]wFMCommunicate request_size=10 [00:59:44]MH_SAM_APDU [00:59:44]CAPDU: 80 0D 02 02 05 01 09 0D D0 76 [00:59:44]Write to MH i2c: E2 0D 00 AB 89 80 0D 02 02 05 00 01 09 0D D0 76 00 00 15 [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 03 00 AB 89 00 90 00 A8 [00:59:44]RAPDU: 90 00 [00:59:44]wFMCommunicate OK [00:59:44]wFMCommunicate request_size=4 [00:59:44]MH_SAM_APDU [00:59:44]CAPDU: 80 0D 03 02 [00:59:44]Write to MH i2c: E2 08 00 AC 89 80 0D 03 02 00 00 00 00 B0 [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 0B 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 0B 00 AC 89 00 D6 F4 BB 7C EB 0E 65 13 90 00 23 [00:59:44]RAPDU: D6 F4 BB 7C EB 0E 65 13 90 00 [00:59:44]wFMCommunicate OK [00:59:44]SAM_PROTO_SignData done [00:59:44]FM_MakeSignedData done [00:59:44]CreateOFDProtocolMessage [00:59:44]wFMCommunicate request_size=4 [00:59:44]MH_SAM_APDU [00:59:44]CAPDU: 80 11 00 00 [00:59:44]Write to MH i2c: E2 08 00 AD 89 80 11 00 00 00 00 00 00 B0 [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:44]Read from MH i2c: E2 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 17 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: E2 17 00 AD 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [00:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:59:44]wFMCommunicate OK [00:59:44]CreateOFDProtocolMessage done [00:59:44]OFDSenderStorePacket 189387 [00:59:44]StoreOFDPacket docnum=189387 [00:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 38 07 01 AA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 85 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E3 02 00 35 04 06 00 F0 01 09 0D D0 76 D6 F4 BB 7C EB 0E 65 13 [00:59:44]CheckFolder [00:59:44]dirname=/storage/ofd_packets [00:59:44]CheckFolder done [00:59:44]ProducePacketName [00:59:44]name=ofd_packets/00189387 [00:59:44]NVStorageSaveData ofd_packets/00189387 [00:59:44]File name is /storage/ofd_packets/00189387 [00:59:44]Write 301 bytes [00:59:44]NVStorageSaveData done [00:59:44]OFDSenderStorePacket done [00:59:44]KKMCreateOFDPacket done [00:59:44]NVStorageSaveData kkm_last_timestamp [00:59:44]File name is /storage/kkm_last_timestamp [00:59:44]Write 4 bytes [00:59:44]NVStorageSaveData done [00:59:44]ExternCall_PrintAddStr [00:59:44]wPrintStart [00:59:44]Write to MH i2c: 01 00 00 AE 89 37 [00:59:44]Write i2c OK [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: 01 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: 01 07 00 [00:59:44]MH_I2C_Read... [00:59:44]Read from MH i2c: 01 07 00 AE 89 00 00 00 00 00 FF 0F 4C [00:59:44]RasterBufferAndPrint [00:59:44]line Счет N : (1)211450 [00:59:44]line ИНН: 02508201610067 [00:59:44]line Контрольно-Кассовый Чек [00:59:44]line ПРОДАЖА [00:59:44]line ТРК (МРК, ГНК) : 32 [00:59:44]line Товар: 2710124130 [00:59:44]line Аи-92-К-3 [00:59:44]line 7.480 * 66.90 [00:59:44]line = 500.41 [00:59:44]line НДС 12% НСП 1% [00:59:44]line > о реализуемом товаре [00:59:44]line ИТОГО: 500.41 [00:59:44]line НСП 1% : 4.43 [00:59:44]line НДС 12% : 53.14 [00:59:44]line Наличными: 0.00 [00:59:44]line Безнал.: 500.41 [00:59:44]line Место: АЗС № 86 "Партнер Нефть" [00:59:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:59:44]line СНО: Общий режим [00:59:44]line Чек 10 25.10.2024 00:59 [00:59:44]line Смена: 464 ФФД: 1.0 [00:59:44]line ЗНМ: 0300000155 [00:59:44]line РНМ: 0000000000100030 [00:59:44]line Версия ККМ: 001 [00:59:44]line Платежная система: Бакай Банк [00:59:44]line ФМ: 0000000000965340 [00:59:44]line ФД: 189387 [00:59:44]line ФПД: 263887237533814 [00:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189387&fm=263887237533814&tin=02508201610067®Number=0000000000100030&sum=50041 [00:59:44]written 0, free lines is 4095 [00:59:44]OFD Sender: Processing packet 189387 [packets to send 1062, broken 1061] [00:59:44]ProducePacketName [00:59:44]name=ofd_packets/00189387 [00:59:44]OFD Sender: To server: pG, [00:59:44]CommunicateWithHost lk.salyk.kg:30040 [00:59:44]ConnectInit lk.salyk.kg [00:59:45]Connected sock=10 [00:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 38 07 01 AA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 85 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB E3 02 00 35 04 06 00 F0 01 09 0D D0 76 D6 F4 BB 7C EB 0E 65 13 [00:59:45]Write to MH i2c: 01 00 00 D8 89 61 [00:59:45]Write i2c OK [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: 01 [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: 01 07 00 [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: 01 07 00 D8 89 00 00 00 00 00 5A 0C CE [00:59:45]RasterBufferAndPrint [00:59:45]line [00:59:45]line [00:59:45]line [00:59:45]line [00:59:45]line [00:59:45]written 0, free lines is 3168 [00:59:45]MH_Cut [00:59:45]Write to MH i2c: D1 01 00 DF 89 01 3A [00:59:45]Write i2c OK [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: D1 [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: D1 01 00 [00:59:45]MH_I2C_Read... [00:59:45]Read from MH i2c: D1 01 00 DF 89 00 39 [00:59:45]Write to MH i2c: 01 00 00 E0 89 69 [00:59:45]Write i2c OK [00:59:45]MH_I2C_Read... [00:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 D1 47 00 D0 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 39 36 35 33 34 30 10 04 04 00 CB E3 02 00 F4 03 04 00 6B 97 1A 67 B6 04 01 00 00 B9 C0 46 BF F4 12 5B BD [00:59:45]CommunicateWithHost err = 0 [00:59:45]CheckOFDResponse [00:59:45]1017 (14) - 77093643461234 [00:59:45]1041 (16) - 0000000000965340 [00:59:45]1040 (4) - 189387 [00:59:45]1012 (4) - 24.10.2024 18:52 [00:59:45]1206 (1) - 0 [00:59:45]OFD Sender: Remove packet 189387 [00:59:45]ProducePacketName [00:59:45]name=ofd_packets/00189387 [00:59:45]NVStorageDeleteData [00:59:45]OFD Sender: No OFD packet to send [00:59:46]*** Cut start [00:59:46]*** Partial cut [00:59:46]*** CUTSNS_PIN = 1 [00:59:46]*** CUTSNS_PIN = 0 [00:59:46]*** Brake cut motor [00:59:47]Read from MH i2c: 01 [00:59:47]MH_I2C_Read... [00:59:47]*** Stop cut motor [00:59:47]*** Cut end [00:59:47]Read from MH i2c: 01 07 00 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: 01 07 00 E0 89 00 00 00 00 00 FF 0F 7E [00:59:47]process_action close_receipt done [00:59:47]requested_data is exist [00:59:47]produce_requested_data [00:59:47]requested_item fm.sn is exist - process it [00:59:47]wFMCommunicate request_size=4 [00:59:47]MH_SAM_APDU [00:59:47]CAPDU: 80 11 00 00 [00:59:47]Write to MH i2c: E2 08 00 E1 89 80 11 00 00 00 00 00 00 E4 [00:59:47]Write i2c OK [00:59:47]MH_I2C_Read... [00:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:47]Read from MH i2c: E2 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 17 00 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 17 00 E1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [00:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:59:47]wFMCommunicate OK [00:59:47]requested_item fd.num is exist - process it [00:59:47]SAM_PROTO_GetFieldsCounters [00:59:47]wFMCommunicate request_size=4 [00:59:47]MH_SAM_APDU [00:59:47]CAPDU: 80 13 00 00 [00:59:47]Write to MH i2c: E2 08 00 E2 89 80 13 00 00 00 00 00 00 E7 [00:59:47]Write i2c OK [00:59:47]MH_I2C_Read... [00:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:47]Read from MH i2c: E2 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 62 00 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 62 00 E2 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E3 02 00 0E 04 04 00 D0 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 8D [00:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB E3 02 00 0E 04 04 00 D0 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 [00:59:47]wFMCommunicate OK [00:59:47]SAM_PROTO_GetFieldsCounters done [00:59:47]requested_item shift.num is exist - process it [00:59:47]requested_item shift.opened is exist - process it [00:59:47]req_shift_opened [00:59:47]FM_GetShiftState [00:59:47]SAM_PROTO_GetShiftState [00:59:47]wFMCommunicate request_size=4 [00:59:47]MH_SAM_APDU [00:59:47]CAPDU: 80 13 01 00 [00:59:47]Write to MH i2c: E2 08 00 E3 89 80 13 01 00 00 00 00 00 E9 [00:59:47]Write i2c OK [00:59:47]MH_I2C_Read... [00:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:47]Read from MH i2c: E2 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 0E 00 [00:59:47]MH_I2C_Read... [00:59:47]Read from MH i2c: E2 0E 00 E3 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 6E [00:59:47]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [00:59:47]wFMCommunicate OK [00:59:47]SAM_PROTO_GetShiftState done [00:59:47]FM_GetShiftState done [00:59:47]req_shift_opened done [00:59:47]requested_item shift.open_date is exist - process it [00:59:47]req_shift_open_date [00:59:47]req_shift_open_date done [00:59:47]produce_requested_data done [00:59:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189387,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [00:59:47]process_action_free close_receipt [00:59:47]json_value_free [00:59:47]json_value_free done [00:59:47]process_json_proto returns [00:59:47]Send response to host [00:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189387,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [00:59:47]free response buf [00:59:47]execute_script done [00:59:47]execute_script returns [00:59:47]free content buf [00:59:47]Sock 9.Close socket [00:59:47]Sock 9.Thread stoped [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:18]accept exits with 8 [01:01:18]New connection [01:01:18]New thread 3067071844 created [01:01:18]Thread 3067215204 joined [01:01:18]Waiting for new connection... [01:01:18] Sock 8.Parse request [01:01:18]Sock 8.Check first char [01:01:18]Sock 8.First char is OK [01:01:18]request: POST /json_proto HTTP/1.0 [01:01:18]Method: POST [01:01:18]URL: /json_proto [01:01:18]Method is POST - this is cgi request [01:01:18]url: /json_proto [01:01:18]query_string will be loaded in cgi processing [01:01:18]execute_cgi json_proto POST (null) [01:01:18]execute_cgi path=json_proto method=POST [01:01:18]POST find Content-Length [01:01:18]Host: 172.17.42.131:8080 [01:01:18]Content-Length: 677 [01:01:18]Content-Type: application/json [01:01:18] [01:01:18]POST finish read [01:01:18]Found Content-Length = 677 [01:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:01:18]execute_script... [01: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)211451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:01:18]POST & json_proto [01:01:18]process_json_proto [01:01:18]json parsed OK: [01:01:18]protocol is kg_v1.0 [01:01:18]action value=close_receipt [01:01:18]process_action close_receipt [01:01:18]cmd_close_receipt [01:01:18]MH_GetDate [01:01:18]Write to MH i2c: F0 00 00 E4 89 5C [01:01:18]Write i2c OK [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: F0 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: F0 09 00 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: F0 09 00 E4 89 00 E4 ED 1A 67 A0 18 CA 66 9F [01:01:18]GetLastDocTimeStamp 1729817989 [01:01:18]current date 1729818084 [01:01:18]FM_GetShiftState [01:01:18]SAM_PROTO_GetShiftState [01:01:18]wFMCommunicate request_size=4 [01:01:18]MH_SAM_APDU [01:01:18]CAPDU: 80 13 01 00 [01:01:18]Write to MH i2c: E2 08 00 E5 89 80 13 01 00 00 00 00 00 EB [01:01:18]Write i2c OK [01:01:18]MH_I2C_Read... [01:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:18]Read from MH i2c: E2 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 0E 00 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 0E 00 E5 89 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 70 [01:01:18]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:01:18]wFMCommunicate OK [01:01:18]SAM_PROTO_GetShiftState done [01:01:18]FM_GetShiftState done [01:01:18]opened in 1729815317 [01:01:18]opened+sec_in_day 1729901717 [01:01:18]quantity*price = 50041 [01:01:18]sum+1 = 50042 [01:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 11 25.10.2024 01:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189388 ФПД: 8412572539900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010124&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189388&fm=8412572539900&tin=02508201610067®Number=0000000000100030&sum=50000 [01:01:19]StoreToDocumentArchive [01:01:19]shift 464 fd 189388 [01:01:19]save to /storage/0464/doc_00189388 [01:01:19]save last doc name /storage/0464/doc_00189388 to /storage/kkm_last_doc_name [01:01:19]save OK [01:01:19]Clear old archive folders... [01:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:01:19]tlvbuf is 01737B10 [01:01:19]SAM_PROTO_ClearQueue [01:01:19]wFMCommunicate request_size=4 [01:01:19]MH_SAM_APDU [01:01:19]CAPDU: 80 09 00 00 [01:01:19]Write to MH i2c: E2 08 00 F2 89 80 09 00 00 00 00 00 00 ED [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 F2 89 00 90 00 EF [01:01:19]RAPDU: 90 00 [01:01:19]wFMCommunicate OK [01:01:19]SAM_PROTO_ClearQueue done [01:01:19]KKMCreateOFDPacket [01:01:19]OFDProtocolAddRootSTLVToBuf [01:01:19]FM_MakeSignedData [01:01:19]FM_MakeSignedData [01:01:19]SAM_PROTO_SignData [01:01:19]wFMCommunicate request_size=4 [01:01:19]MH_SAM_APDU [01:01:19]CAPDU: 80 0D 01 02 [01:01:19]Write to MH i2c: E2 08 00 F3 89 80 0D 01 02 00 00 00 00 F5 [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 F3 89 00 90 00 F0 [01:01:19]RAPDU: 90 00 [01:01:19]wFMCommunicate OK [01:01:19]wFMCommunicate request_size=255 [01:01:19]MH_SAM_APDU [01:01: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E3 02 00 35 04 06 00 07 [01:01:19]Write to MH i2c: E2 02 01 F4 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E3 02 00 35 04 06 00 07 00 00 4E [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:20]Read from MH i2c: E2 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 03 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 03 00 F4 89 00 90 00 F1 [01:01:20]RAPDU: 90 00 [01:01:20]wFMCommunicate OK [01:01:20]wFMCommunicate request_size=10 [01:01:20]MH_SAM_APDU [01:01:20]CAPDU: 80 0D 02 02 05 A6 B4 65 DB FC [01:01:20]Write to MH i2c: E2 0D 00 F5 89 80 0D 02 02 05 00 A6 B4 65 DB FC 00 00 98 [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:20]Read from MH i2c: E2 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 03 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 03 00 F5 89 00 90 00 F2 [01:01:20]RAPDU: 90 00 [01:01:20]wFMCommunicate OK [01:01:20]wFMCommunicate request_size=4 [01:01:20]MH_SAM_APDU [01:01:20]CAPDU: 80 0D 03 02 [01:01:20]Write to MH i2c: E2 08 00 F6 89 80 0D 03 02 00 00 00 00 FA [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:20]Read from MH i2c: E2 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 0B 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 0B 00 F6 89 00 66 31 C6 18 92 CF F5 38 90 00 FE [01:01:20]RAPDU: 66 31 C6 18 92 CF F5 38 90 00 [01:01:20]wFMCommunicate OK [01:01:20]SAM_PROTO_SignData done [01:01:20]FM_MakeSignedData done [01:01:20]CreateOFDProtocolMessage [01:01:20]wFMCommunicate request_size=4 [01:01:20]MH_SAM_APDU [01:01:20]CAPDU: 80 11 00 00 [01:01:20]Write to MH i2c: E2 08 00 F7 89 80 11 00 00 00 00 00 00 FA [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:20]Read from MH i2c: E2 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 17 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: E2 17 00 F7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [01:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:01:20]wFMCommunicate OK [01:01:20]CreateOFDProtocolMessage done [01:01:20]OFDSenderStorePacket 189388 [01:01:20]StoreOFDPacket docnum=189388 [01:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 AA 07 01 68 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E3 02 00 35 04 06 00 07 A6 B4 65 DB FC 66 31 C6 18 92 CF F5 38 [01:01:20]CheckFolder [01:01:20]dirname=/storage/ofd_packets [01:01:20]CheckFolder done [01:01:20]ProducePacketName [01:01:20]name=ofd_packets/00189388 [01:01:20]NVStorageSaveData ofd_packets/00189388 [01:01:20]File name is /storage/ofd_packets/00189388 [01:01:20]Write 301 bytes [01:01:20]NVStorageSaveData done [01:01:20]OFDSenderStorePacket done [01:01:20]KKMCreateOFDPacket done [01:01:20]NVStorageSaveData kkm_last_timestamp [01:01:20]File name is /storage/kkm_last_timestamp [01:01:20]Write 4 bytes [01:01:20]NVStorageSaveData done [01:01:20]ExternCall_PrintAddStr [01:01:20]wPrintStart [01:01:20]Write to MH i2c: 01 00 00 F8 89 81 [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 07 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 07 00 F8 89 00 00 00 00 00 FF 0F 96 [01:01:20]RasterBufferAndPrint [01:01:20]line Счет N : (1)211451 [01:01:20]line ИНН: 02508201610067 [01:01:20]line Контрольно-Кассовый Чек [01:01:20]line ПРОДАЖА [01:01:20]line ТРК (МРК, ГНК) : 12 [01:01:20]line Товар: 2710124130 [01:01:20]line Аи-92-К-3 [01:01:20]line 7.480 * 66.90 [01:01:20]line = 500.41 [01:01:20]line НДС 12% НСП 1% [01:01:20]line > о реализуемом товаре [01:01:20]line ОКРУГЛЕНИЕ: -0.41 [01:01:20]line ИТОГО: 500.00 [01:01:20]line Внесено: 500.00 [01:01:20]line СДАЧА: 0.00 [01:01:20]line НСП 1% : 4.43 [01:01:20]line НДС 12% : 53.14 [01:01:20]line Наличными: 500.00 [01:01:20]line Безнал.: 0.00 [01:01:20]line Место: АЗС № 86 "Партнер Нефть" [01:01:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:01:20]line СНО: Общий режим [01:01:20]line Чек 11 25.10.2024 01:01 [01:01:20]line Смена: 464 ФФД: 1.0 [01:01:20]line ЗНМ: 0300000155 [01:01:20]line РНМ: 0000000000100030 [01:01:20]line Версия ККМ: 001 [01:01:20]line ФМ: 0000000000965340 [01:01:20]line ФД: 189388 [01:01:20]line ФПД: 8412572539900 [01:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010124&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189388&fm=8412572539900&tin=02508201610067®Number=0000000000100030&sum=50000 [01:01:20]written 0, free lines is 4095 [01:01:20]OFD Sender: Processing packet 189388 [packets to send 1062, broken 1061] [01:01:20]ProducePacketName [01:01:20]name=ofd_packets/00189388 [01:01:20]OFD Sender: To server: pG, [01:01:20]CommunicateWithHost lk.salyk.kg:30040 [01:01:20]ConnectInit lk.salyk.kg [01:01:20]Connected sock=10 [01:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 AA 07 01 68 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC E3 02 00 35 04 06 00 07 A6 B4 65 DB FC 66 31 C6 18 92 CF F5 38 [01:01:20]Write to MH i2c: 01 00 00 23 8A AD [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 07 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: 01 07 00 23 8A 00 00 00 00 00 46 0C 06 [01:01:20]RasterBufferAndPrint [01:01:20]line [01:01:20]line [01:01:20]line [01:01:20]line [01:01:20]line [01:01:20]written 0, free lines is 3147 [01:01:20]MH_Cut [01:01:20]Write to MH i2c: D1 01 00 2A 8A 01 86 [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: D1 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: D1 01 00 [01:01:20]MH_I2C_Read... [01:01:20]Read from MH i2c: D1 01 00 2A 8A 00 85 [01:01:20]Write to MH i2c: 01 00 00 2B 8A B5 [01:01:20]Write i2c OK [01:01:20]MH_I2C_Read... [01:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 DA 47 00 98 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 39 36 35 33 34 30 10 04 04 00 CC E3 02 00 F4 03 04 00 CB 97 1A 67 B6 04 01 00 00 ED 03 67 31 E3 2D 25 F0 [01:01:21]CommunicateWithHost err = 0 [01:01:21]CheckOFDResponse [01:01:21]1017 (14) - 77093643461234 [01:01:21]1041 (16) - 0000000000965340 [01:01:21]1040 (4) - 189388 [01:01:21]1012 (4) - 24.10.2024 18:54 [01:01:21]1206 (1) - 0 [01:01:21]OFD Sender: Remove packet 189388 [01:01:21]ProducePacketName [01:01:21]name=ofd_packets/00189388 [01:01:21]NVStorageDeleteData [01:01:21]OFD Sender: No OFD packet to send [01:01:22]*** Cut start [01:01:22]*** Partial cut [01:01:22]*** CUTSNS_PIN = 1 [01:01:22]*** CUTSNS_PIN = 0 [01:01:22]*** Brake cut motor [01:01:22]Read from MH i2c: 01 [01:01:22]MH_I2C_Read... [01:01:22]*** Stop cut motor [01:01:22]*** Cut end [01:01:22]Read from MH i2c: 01 07 00 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: 01 07 00 2B 8A 00 00 00 00 00 FF 0F CA [01:01:22]process_action close_receipt done [01:01:22]requested_data is exist [01:01:22]produce_requested_data [01:01:22]requested_item fm.sn is exist - process it [01:01:22]wFMCommunicate request_size=4 [01:01:22]MH_SAM_APDU [01:01:22]CAPDU: 80 11 00 00 [01:01:22]Write to MH i2c: E2 08 00 2C 8A 80 11 00 00 00 00 00 00 30 [01:01:22]Write i2c OK [01:01:22]MH_I2C_Read... [01:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:22]Read from MH i2c: E2 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 17 00 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 17 00 2C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [01:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:01:22]wFMCommunicate OK [01:01:22]requested_item fd.num is exist - process it [01:01:22]SAM_PROTO_GetFieldsCounters [01:01:22]wFMCommunicate request_size=4 [01:01:22]MH_SAM_APDU [01:01:22]CAPDU: 80 13 00 00 [01:01:22]Write to MH i2c: E2 08 00 2D 8A 80 13 00 00 00 00 00 00 33 [01:01:22]Write i2c OK [01:01:22]MH_I2C_Read... [01:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:22]Read from MH i2c: E2 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 62 00 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 62 00 2D 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E3 02 00 0E 04 04 00 D0 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 DD [01:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC E3 02 00 0E 04 04 00 D0 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:01:22]wFMCommunicate OK [01:01:22]SAM_PROTO_GetFieldsCounters done [01:01:22]requested_item shift.num is exist - process it [01:01:22]requested_item shift.opened is exist - process it [01:01:22]req_shift_opened [01:01:22]FM_GetShiftState [01:01:22]SAM_PROTO_GetShiftState [01:01:22]wFMCommunicate request_size=4 [01:01:22]MH_SAM_APDU [01:01:22]CAPDU: 80 13 01 00 [01:01:22]Write to MH i2c: E2 08 00 2E 8A 80 13 01 00 00 00 00 00 35 [01:01:22]Write i2c OK [01:01:22]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 0E 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 0E 00 2E 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 BA [01:01:23]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:01:23]wFMCommunicate OK [01:01:23]SAM_PROTO_GetShiftState done [01:01:23]FM_GetShiftState done [01:01:23]req_shift_opened done [01:01:23]requested_item shift.open_date is exist - process it [01:01:23]req_shift_open_date [01:01:23]req_shift_open_date done [01:01:23]produce_requested_data done [01:01:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189388,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:01:23]process_action_free close_receipt [01:01:23]json_value_free [01:01:23]json_value_free done [01:01:23]process_json_proto returns [01:01:23]Send response to host [01:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189388,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:01:23]free response buf [01:01:23]execute_script done [01:01:23]execute_script returns [01:01:23]free content buf [01:01:23]Sock 8.Close socket [01:01:23]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]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:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:41]accept exits with 9 [01:09:41]New connection [01:09:41]New thread 3067215204 created [01:09:41]Thread 3067071844 joined [01:09:41]Waiting for new connection... [01:09:41] Sock 9.Parse request [01:09:41]Sock 9.Check first char [01:09:41]Sock 9.First char is OK [01:09:41]request: POST /json_proto HTTP/1.0 [01:09:41]Method: POST [01:09:41]URL: /json_proto [01:09:41]Method is POST - this is cgi request [01:09:41]url: /json_proto [01:09:41]query_string will be loaded in cgi processing [01:09:41]execute_cgi json_proto POST (null) [01:09:41]execute_cgi path=json_proto method=POST [01:09:41]POST find Content-Length [01:09:41]Host: 172.17.42.131:8080 [01:09:41]Content-Length: 983 [01:09:41]Content-Type: application/json [01:09:41] [01:09:41]POST finish read [01:09:41]Found Content-Length = 983 [01:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 21.320, "sum" : 1404.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.32 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1404.00, "payments": [ { "type": 0, "sum" : 1404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:41]execute_script... [01:09: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)211452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 21.320, "sum" : 1404.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.32 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1404.00, "payments": [ { "type": 0, "sum" : 1404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:41]POST & json_proto [01:09:41]process_json_proto [01:09:41]json parsed OK: [01:09:41]protocol is kg_v1.0 [01:09:41]action value=close_receipt [01:09:41]process_action close_receipt [01:09:41]cmd_close_receipt [01:09:41]MH_GetDate [01:09:41]Write to MH i2c: F0 00 00 2F 8A A8 [01:09:41]Write i2c OK [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: F0 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: F0 09 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: F0 09 00 2F 8A 00 DB EF 1A 67 A0 18 CA 66 E4 [01:09:41]GetLastDocTimeStamp 1729818084 [01:09:41]current date 1729818587 [01:09:41]FM_GetShiftState [01:09:41]SAM_PROTO_GetShiftState [01:09:41]wFMCommunicate request_size=4 [01:09:41]MH_SAM_APDU [01:09:41]CAPDU: 80 13 01 00 [01:09:41]Write to MH i2c: E2 08 00 30 8A 80 13 01 00 00 00 00 00 37 [01:09:41]Write i2c OK [01:09:41]MH_I2C_Read... [01:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:41]Read from MH i2c: E2 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 0E 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 0E 00 30 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 BC [01:09:41]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:09:41]wFMCommunicate OK [01:09:41]SAM_PROTO_GetShiftState done [01:09:41]FM_GetShiftState done [01:09:41]opened in 1729815317 [01:09:41]opened+sec_in_day 1729901717 [01:09:41]quantity*price = 140498 [01:09:41]sum+1 = 140500 [01:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1404.00 Внесено: 2000.00 СДАЧА: 596.00 НСП 1% : 12.43 НДС 12% : 149.20 Наличными: 1404.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 12 25.10.2024 01:09 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 21.32 сом ФМ: 0000000000965340 ФД: 189389 ФПД: 96099112666804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189389&fm=96099112666804&tin=02508201610067®Number=0000000000100030&sum=140400 [01:09:43]StoreToDocumentArchive [01:09:43]shift 464 fd 189389 [01:09:43]save to /storage/0464/doc_00189389 [01:09:43]save last doc name /storage/0464/doc_00189389 to /storage/kkm_last_doc_name [01:09:43]save OK [01:09:43]Clear old archive folders... [01:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:09:43]tlvbuf is 017A9040 [01:09:43]SAM_PROTO_ClearQueue [01:09:43]wFMCommunicate request_size=4 [01:09:43]MH_SAM_APDU [01:09:43]CAPDU: 80 09 00 00 [01:09:43]Write to MH i2c: E2 08 00 3D 8A 80 09 00 00 00 00 00 00 39 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 3D 8A 00 90 00 3B [01:09:43]RAPDU: 90 00 [01:09:43]wFMCommunicate OK [01:09:43]SAM_PROTO_ClearQueue done [01:09:43]KKMCreateOFDPacket [01:09:43]OFDProtocolAddRootSTLVToBuf [01:09:43]FM_MakeSignedData [01:09:43]FM_MakeSignedData [01:09:43]SAM_PROTO_SignData [01:09:43]wFMCommunicate request_size=4 [01:09:43]MH_SAM_APDU [01:09:43]CAPDU: 80 0D 01 02 [01:09:43]Write to MH i2c: E2 08 00 3E 8A 80 0D 01 02 00 00 00 00 41 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 3E 8A 00 90 00 3C [01:09:43]RAPDU: 90 00 [01:09:43]wFMCommunicate OK [01:09:43]wFMCommunicate request_size=255 [01:09:43]MH_SAM_APDU [01:09: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 33 FF 03 08 00 03 48 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D3 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 3A 00 00 00 00 07 04 06 00 70 24 02 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 DC EF 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E3 02 00 35 04 06 00 57 [01:09:43]Write to MH i2c: E2 02 01 3F 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 33 FF 03 08 00 03 48 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D3 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 3A 00 00 00 00 07 04 06 00 70 24 02 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 DC EF 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E3 02 00 35 04 06 00 57 00 00 59 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 3F 8A 00 90 00 3D [01:09:43]RAPDU: 90 00 [01:09:43]wFMCommunicate OK [01:09:43]wFMCommunicate request_size=10 [01:09:43]MH_SAM_APDU [01:09:43]CAPDU: 80 0D 02 02 05 66 D1 79 46 B4 [01:09:43]Write to MH i2c: E2 0D 00 40 8A 80 0D 02 02 05 00 66 D1 79 46 B4 00 00 F8 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 03 00 40 8A 00 90 00 3E [01:09:43]RAPDU: 90 00 [01:09:43]wFMCommunicate OK [01:09:43]wFMCommunicate request_size=4 [01:09:43]MH_SAM_APDU [01:09:43]CAPDU: 80 0D 03 02 [01:09:43]Write to MH i2c: E2 08 00 41 8A 80 0D 03 02 00 00 00 00 46 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 0B 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 0B 00 41 8A 00 DE 95 A4 A7 70 F2 64 70 90 00 3B [01:09:43]RAPDU: DE 95 A4 A7 70 F2 64 70 90 00 [01:09:43]wFMCommunicate OK [01:09:43]SAM_PROTO_SignData done [01:09:43]FM_MakeSignedData done [01:09:43]CreateOFDProtocolMessage [01:09:43]wFMCommunicate request_size=4 [01:09:43]MH_SAM_APDU [01:09:43]CAPDU: 80 11 00 00 [01:09:43]Write to MH i2c: E2 08 00 42 8A 80 11 00 00 00 00 00 00 46 [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:43]Read from MH i2c: E2 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 17 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: E2 17 00 42 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [01:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:09:43]wFMCommunicate OK [01:09:43]CreateOFDProtocolMessage done [01:09:43]OFDSenderStorePacket 189389 [01:09:43]StoreOFDPacket docnum=189389 [01:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B A1 07 01 44 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 48 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D3 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 3A 00 00 00 00 07 04 06 00 70 24 02 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 DC EF 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E3 02 00 35 04 06 00 57 66 D1 79 46 B4 DE 95 A4 A7 70 F2 64 70 [01:09:43]CheckFolder [01:09:43]dirname=/storage/ofd_packets [01:09:43]CheckFolder done [01:09:43]ProducePacketName [01:09:43]name=ofd_packets/00189389 [01:09:43]NVStorageSaveData ofd_packets/00189389 [01:09:43]File name is /storage/ofd_packets/00189389 [01:09:43]Write 301 bytes [01:09:43]NVStorageSaveData done [01:09:43]OFDSenderStorePacket done [01:09:43]KKMCreateOFDPacket done [01:09:43]NVStorageSaveData kkm_last_timestamp [01:09:43]File name is /storage/kkm_last_timestamp [01:09:43]Write 4 bytes [01:09:43]NVStorageSaveData done [01:09:43]ExternCall_PrintAddStr [01:09:43]wPrintStart [01:09:43]Write to MH i2c: 01 00 00 43 8A CD [01:09:43]Write i2c OK [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: 01 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: 01 07 00 [01:09:43]MH_I2C_Read... [01:09:43]Read from MH i2c: 01 07 00 43 8A 00 00 00 00 00 FF 0F E2 [01:09:43]RasterBufferAndPrint [01:09:43]line Счет N : (1)211452 [01:09:43]line ИНН: 02508201610067 [01:09:43]line Контрольно-Кассовый Чек [01:09:43]line ПРОДАЖА [01:09:43]line ТРК (МРК, ГНК) : 42 [01:09:43]line Товар: 2710124130 [01:09:43]line Аи-92-К-3 [01:09:43]line 21.320 * 65.90 [01:09:43]line = 1404.99 [01:09:43]line НДС 12% НСП 1% [01:09:43]line > о реализуемом товаре [01:09:43]line ОКРУГЛЕНИЕ: -0.99 [01:09:43]line ИТОГО: 1404.00 [01:09:43]line Внесено: 2000.00 [01:09:43]line СДАЧА: 596.00 [01:09:43]line НСП 1% : 12.43 [01:09:43]line НДС 12% : 149.20 [01:09:43]line Наличными: 1404.00 [01:09:43]line Безнал.: 0.00 [01:09:43]line Место: АЗС № 86 "Партнер Нефть" [01:09:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:09:43]line СНО: Общий режим [01:09:43]line Чек 12 25.10.2024 01:09 [01:09:43]line Смена: 464 ФФД: 1.0 [01:09:43]line ЗНМ: 0300000155 [01:09:43]line РНМ: 0000000000100030 [01:09:43]line Версия ККМ: 001 [01:09:43]line [01:09:43]line Дисконтная программа [01:09:43]line АИ-92 [01:09:43]line номер 86 [01:09:43]line сэкономлено 21.32 сом [01:09:43]line ФМ: 0000000000965340 [01:09:43]line ФД: 189389 [01:09:43]line ФПД: 96099112666804 [01:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189389&fm=96099112666804&tin=02508201610067®Number=0000000000100030&sum=140400 [01:09:43]written 0, free lines is 4095 [01:09:43]OFD Sender: Processing packet 189389 [packets to send 1062, broken 1061] [01:09:43]ProducePacketName [01:09:43]name=ofd_packets/00189389 [01:09:43]OFD Sender: To server: pG, [01:09:43]CommunicateWithHost lk.salyk.kg:30040 [01:09:43]ConnectInit lk.salyk.kg [01:09:44]Connected sock=11 [01:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B A1 07 01 44 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 48 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D3 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 3A 00 00 00 00 07 04 06 00 70 24 02 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 DC EF 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E3 02 00 35 04 06 00 57 66 D1 79 46 B4 DE 95 A4 A7 70 F2 64 70 [01:09:44]Write to MH i2c: 01 00 00 73 8A FD [01:09:44]Write i2c OK [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: 01 [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: 01 07 00 [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: 01 07 00 73 8A 00 00 00 00 00 DA 0B E9 [01:09:44]RasterBufferAndPrint [01:09:44]line [01:09:44]line [01:09:44]line [01:09:44]line [01:09:44]line [01:09:44]written 0, free lines is 3036 [01:09:44]MH_Cut [01:09:44]Write to MH i2c: D1 01 00 7A 8A 01 D6 [01:09:44]Write i2c OK [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: D1 [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: D1 01 00 [01:09:44]MH_I2C_Read... [01:09:44]Read from MH i2c: D1 01 00 7A 8A 00 D5 [01:09:44]Write to MH i2c: 01 00 00 7B 8A 05 [01:09:44]Write i2c OK [01:09:44]MH_I2C_Read... [01:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C1 6F 47 00 21 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD E3 02 00 F4 03 04 00 C2 99 1A 67 B6 04 01 00 00 41 FC AE 2C 74 24 40 1E [01:09:44]CommunicateWithHost err = 0 [01:09:44]CheckOFDResponse [01:09:44]1017 (14) - 77093643461234 [01:09:44]1041 (16) - 0000000000965340 [01:09:44]1040 (4) - 189389 [01:09:44]1012 (4) - 24.10.2024 19:02 [01:09:44]1206 (1) - 0 [01:09:44]OFD Sender: Remove packet 189389 [01:09:44]ProducePacketName [01:09:44]name=ofd_packets/00189389 [01:09:44]NVStorageDeleteData [01:09:45]OFD Sender: No OFD packet to send [01:09:45]*** Cut start [01:09:45]*** Partial cut [01:09:45]*** CUTSNS_PIN = 1 [01:09:45]*** CUTSNS_PIN = 0 [01:09:45]*** Brake cut motor [01:09:46]Read from MH i2c: 01 [01:09:46]MH_I2C_Read... [01:09:46]*** Stop cut motor [01:09:46]*** Cut end [01:09:46]Read from MH i2c: 01 07 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: 01 07 00 7B 8A 00 00 00 00 00 FF 0F 1A [01:09:46]process_action close_receipt done [01:09:46]requested_data is exist [01:09:46]produce_requested_data [01:09:46]requested_item fm.sn is exist - process it [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 11 00 00 [01:09:46]Write to MH i2c: E2 08 00 7C 8A 80 11 00 00 00 00 00 00 80 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 17 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 17 00 7C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [01:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:09:46]wFMCommunicate OK [01:09:46]requested_item fd.num is exist - process it [01:09:46]SAM_PROTO_GetFieldsCounters [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 13 00 00 [01:09:46]Write to MH i2c: E2 08 00 7D 8A 80 13 00 00 00 00 00 00 83 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 62 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 62 00 7D 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E3 02 00 0E 04 04 00 D0 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 31 [01:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD E3 02 00 0E 04 04 00 D0 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:09:46]wFMCommunicate OK [01:09:46]SAM_PROTO_GetFieldsCounters done [01:09:46]requested_item shift.num is exist - process it [01:09:46]requested_item shift.opened is exist - process it [01:09:46]req_shift_opened [01:09:46]FM_GetShiftState [01:09:46]SAM_PROTO_GetShiftState [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 13 01 00 [01:09:46]Write to MH i2c: E2 08 00 7E 8A 80 13 01 00 00 00 00 00 85 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 0E 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 0E 00 7E 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 0A [01:09:46]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:09:46]wFMCommunicate OK [01:09:46]SAM_PROTO_GetShiftState done [01:09:46]FM_GetShiftState done [01:09:46]req_shift_opened done [01:09:46]requested_item shift.open_date is exist - process it [01:09:46]req_shift_open_date [01:09:46]req_shift_open_date done [01:09:46]produce_requested_data done [01:09:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189389,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:09:46]process_action_free close_receipt [01:09:46]json_value_free [01:09:46]json_value_free done [01:09:46]process_json_proto returns [01:09:46]Send response to host [01:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189389,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:09:46]free response buf [01:09:46]execute_script done [01:09:46]execute_script returns [01:09:46]free content buf [01:09:46]Sock 9.Close socket [01:09:46]Sock 9.Thread stoped [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:21]accept exits with 8 [01:20:21]New connection [01:20:21]New thread 3067071844 created [01:20:21]Thread 3067215204 joined [01:20:21]Waiting for new connection... [01:20:21] Sock 8.Parse request [01:20:21]Sock 8.Check first char [01:20:21]Sock 8.First char is OK [01:20:21]request: POST /json_proto HTTP/1.0 [01:20:21]Method: POST [01:20:21]URL: /json_proto [01:20:21]Method is POST - this is cgi request [01:20:21]url: /json_proto [01:20:21]query_string will be loaded in cgi processing [01:20:21]execute_cgi json_proto POST (null) [01:20:21]execute_cgi path=json_proto method=POST [01:20:21]POST find Content-Length [01:20:21]Host: 172.17.42.131:8080 [01:20:21]Content-Length: 817 [01:20:21]Content-Type: application/json [01:20:21] [01:20:21]POST finish read [01:20:21]Found Content-Length = 817 [01:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 770.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:21]execute_script... [01:20: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)211453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 770.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:21]POST & json_proto [01:20:21]process_json_proto [01:20:21]json parsed OK: [01:20:21]protocol is kg_v1.0 [01:20:21]action value=close_receipt [01:20:21]process_action close_receipt [01:20:21]cmd_close_receipt [01:20:21]MH_GetDate [01:20:21]Write to MH i2c: F0 00 00 7F 8A F8 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: F0 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: F0 09 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: F0 09 00 7F 8A 00 5B F2 1A 67 A0 18 CA 66 B7 [01:20:21]GetLastDocTimeStamp 1729818588 [01:20:21]current date 1729819227 [01:20:21]FM_GetShiftState [01:20:21]SAM_PROTO_GetShiftState [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 13 01 00 [01:20:21]Write to MH i2c: E2 08 00 80 8A 80 13 01 00 00 00 00 00 87 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 0E 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 0E 00 80 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 0C [01:20:21]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:20:21]wFMCommunicate OK [01:20:21]SAM_PROTO_GetShiftState done [01:20:21]FM_GetShiftState done [01:20:21]opened in 1729815317 [01:20:21]opened+sec_in_day 1729901717 [01:20:21]quantity*price = 77019 [01:20:21]sum+1 = 77021 [01:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 770.20 НСП 1% : 6.82 НДС 12% : 81.79 Наличными: 0.00 Безнал.: 770.20 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 13 25.10.2024 01:20 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 189390 ФПД: 96325475792104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189390&fm=96325475792104&tin=02508201610067®Number=0000000000100030&sum=77020 [01:20:23]StoreToDocumentArchive [01:20:23]shift 464 fd 189390 [01:20:23]save to /storage/0464/doc_00189390 [01:20:23]save last doc name /storage/0464/doc_00189390 to /storage/kkm_last_doc_name [01:20:23]save OK [01:20:23]Clear old archive folders... [01:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:20:23]tlvbuf is 01737900 [01:20:23]SAM_PROTO_ClearQueue [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 09 00 00 [01:20:23]Write to MH i2c: E2 08 00 8D 8A 80 09 00 00 00 00 00 00 89 [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 8D 8A 00 90 00 8B [01:20:23]RAPDU: 90 00 [01:20:23]wFMCommunicate OK [01:20:23]SAM_PROTO_ClearQueue done [01:20:23]KKMCreateOFDPacket [01:20:23]OFDProtocolAddRootSTLVToBuf [01:20:23]FM_MakeSignedData [01:20:23]FM_MakeSignedData [01:20:23]SAM_PROTO_SignData [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 0D 01 02 [01:20:23]Write to MH i2c: E2 08 00 8E 8A 80 0D 01 02 00 00 00 00 91 [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 8E 8A 00 90 00 8C [01:20:23]RAPDU: 90 00 [01:20:23]wFMCommunicate OK [01:20:23]wFMCommunicate request_size=255 [01:20:23]MH_SAM_APDU [01:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 00 00 00 00 00 00 39 04 06 00 DC 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 5C F2 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E3 02 00 35 04 06 00 57 [01:20:23]Write to MH i2c: E2 02 01 8F 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 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 00 00 00 00 00 00 39 04 06 00 DC 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 5C F2 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E3 02 00 35 04 06 00 57 00 00 DF [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 8F 8A 00 90 00 8D [01:20:23]RAPDU: 90 00 [01:20:23]wFMCommunicate OK [01:20:23]wFMCommunicate request_size=10 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 0D 02 02 05 9B 85 C4 74 E8 [01:20:23]Write to MH i2c: E2 0D 00 90 8A 80 0D 02 02 05 00 9B 85 C4 74 E8 00 00 DE [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 03 00 90 8A 00 90 00 8E [01:20:23]RAPDU: 90 00 [01:20:23]wFMCommunicate OK [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 0D 03 02 [01:20:23]Write to MH i2c: E2 08 00 91 8A 80 0D 03 02 00 00 00 00 96 [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 0B 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 0B 00 91 8A 00 AB 8A B9 C5 B5 CB 18 CA 90 00 AC [01:20:23]RAPDU: AB 8A B9 C5 B5 CB 18 CA 90 00 [01:20:23]wFMCommunicate OK [01:20:23]SAM_PROTO_SignData done [01:20:23]FM_MakeSignedData done [01:20:23]CreateOFDProtocolMessage [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 11 00 00 [01:20:23]Write to MH i2c: E2 08 00 92 8A 80 11 00 00 00 00 00 00 96 [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 17 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 17 00 92 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [01:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:20:23]wFMCommunicate OK [01:20:23]CreateOFDProtocolMessage done [01:20:23]OFDSenderStorePacket 189390 [01:20:23]StoreOFDPacket docnum=189390 [01:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB DB 07 01 F3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 00 00 00 00 00 00 39 04 06 00 DC 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 5C F2 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E3 02 00 35 04 06 00 57 9B 85 C4 74 E8 AB 8A B9 C5 B5 CB 18 CA [01:20:23]CheckFolder [01:20:23]dirname=/storage/ofd_packets [01:20:23]CheckFolder done [01:20:23]ProducePacketName [01:20:23]name=ofd_packets/00189390 [01:20:23]NVStorageSaveData ofd_packets/00189390 [01:20:23]File name is /storage/ofd_packets/00189390 [01:20:23]Write 301 bytes [01:20:23]NVStorageSaveData done [01:20:23]OFDSenderStorePacket done [01:20:23]KKMCreateOFDPacket done [01:20:23]NVStorageSaveData kkm_last_timestamp [01:20:23]File name is /storage/kkm_last_timestamp [01:20:23]Write 4 bytes [01:20:23]NVStorageSaveData done [01:20:23]ExternCall_PrintAddStr [01:20:23]wPrintStart [01:20:23]Write to MH i2c: 01 00 00 93 8A 1D [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: 01 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: 01 07 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: 01 07 00 93 8A 00 00 00 00 00 FF 0F 32 [01:20:23]RasterBufferAndPrint [01:20:23]line Счет N : (1)211453 [01:20:23]line ИНН: 02508201610067 [01:20:23]line Контрольно-Кассовый Чек [01:20:23]line ПРОДАЖА [01:20:23]line ТРК (МРК, ГНК) : 43 [01:20:23]line Товар: 2710124500 [01:20:23]line Аи-95-К-3 [01:20:23]line 10.380 * 74.20 [01:20:23]line = 770.20 [01:20:23]line НДС 12% НСП 1% [01:20:23]line > о реализуемом товаре [01:20:23]line ИТОГО: 770.20 [01:20:23]line НСП 1% : 6.82 [01:20:23]line НДС 12% : 81.79 [01:20:23]line Наличными: 0.00 [01:20:23]line Безнал.: 770.20 [01:20:23]line Место: АЗС № 86 "Партнер Нефть" [01:20:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:20:23]line СНО: Общий режим [01:20:23]line Чек 13 25.10.2024 01:20 [01:20:23]line Смена: 464 ФФД: 1.0 [01:20:23]line ЗНМ: 0300000155 [01:20:23]line РНМ: 0000000000100030 [01:20:23]line Версия ККМ: 001 [01:20:23]line Платежная система: Бакай Банк [01:20:23]line ФМ: 0000000000965340 [01:20:23]line ФД: 189390 [01:20:23]line ФПД: 96325475792104 [01:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189390&fm=96325475792104&tin=02508201610067®Number=0000000000100030&sum=77020 [01:20:23]written 0, free lines is 4095 [01:20:23]OFD Sender: Processing packet 189390 [packets to send 1062, broken 1061] [01:20:23]ProducePacketName [01:20:23]name=ofd_packets/00189390 [01:20:23]OFD Sender: To server: pG, [01:20:23]CommunicateWithHost lk.salyk.kg:30040 [01:20:23]ConnectInit lk.salyk.kg [01:20:23]Connected sock=10 [01:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB DB 07 01 F3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 00 00 00 00 00 00 39 04 06 00 DC 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 5C F2 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE E3 02 00 35 04 06 00 57 9B 85 C4 74 E8 AB 8A B9 C5 B5 CB 18 CA [01:20:24]Write to MH i2c: 01 00 00 BD 8A 47 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: 01 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: 01 07 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: 01 07 00 BD 8A 00 00 00 00 00 65 0C BF [01:20:24]RasterBufferAndPrint [01:20:24]line [01:20:24]line [01:20:24]line [01:20:24]line [01:20:24]line [01:20:24]written 0, free lines is 3178 [01:20:24]MH_Cut [01:20:24]Write to MH i2c: D1 01 00 C4 8A 01 20 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: D1 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: D1 01 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: D1 01 00 C4 8A 00 1F [01:20:24]Write to MH i2c: 01 00 00 C5 8A 4F [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 4F 47 00 6B 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 39 36 35 33 34 30 10 04 04 00 CE E3 02 00 F4 03 04 00 42 9C 1A 67 B6 04 01 00 00 75 12 41 BB 32 C1 AE 76 [01:20:24]CommunicateWithHost err = 0 [01:20:24]CheckOFDResponse [01:20:24]1017 (14) - 77093643461234 [01:20:24]1041 (16) - 0000000000965340 [01:20:24]1040 (4) - 189390 [01:20:24]1012 (4) - 24.10.2024 19:13 [01:20:24]1206 (1) - 0 [01:20:24]OFD Sender: Remove packet 189390 [01:20:24]ProducePacketName [01:20:24]name=ofd_packets/00189390 [01:20:24]NVStorageDeleteData [01:20:24]OFD Sender: No OFD packet to send [01:20:25]*** Cut start [01:20:25]*** Partial cut [01:20:25]*** CUTSNS_PIN = 1 [01:20:25]*** CUTSNS_PIN = 0 [01:20:25]*** Brake cut motor [01:20:26]Read from MH i2c: 01 [01:20:26]MH_I2C_Read... [01:20:26]*** Stop cut motor [01:20:26]*** Cut end [01:20:26]Read from MH i2c: 01 07 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: 01 07 00 C5 8A 00 00 00 00 00 FF 0F 64 [01:20:26]process_action close_receipt done [01:20:26]requested_data is exist [01:20:26]produce_requested_data [01:20:26]requested_item fm.sn is exist - process it [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 11 00 00 [01:20:26]Write to MH i2c: E2 08 00 C6 8A 80 11 00 00 00 00 00 00 CA [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 [01:20:26]MH_I2C_Read... [01:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:26]Read from MH i2c: E2 17 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 17 00 C6 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [01:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:20:26]wFMCommunicate OK [01:20:26]requested_item fd.num is exist - process it [01:20:26]SAM_PROTO_GetFieldsCounters [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 13 00 00 [01:20:26]Write to MH i2c: E2 08 00 C7 8A 80 13 00 00 00 00 00 00 CD [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:26]Read from MH i2c: E2 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 62 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 62 00 C7 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E3 02 00 0E 04 04 00 D0 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 7F [01:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE E3 02 00 0E 04 04 00 D0 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:20:26]wFMCommunicate OK [01:20:26]SAM_PROTO_GetFieldsCounters done [01:20:26]requested_item shift.num is exist - process it [01:20:26]requested_item shift.opened is exist - process it [01:20:26]req_shift_opened [01:20:26]FM_GetShiftState [01:20:26]SAM_PROTO_GetShiftState [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 13 01 00 [01:20:26]Write to MH i2c: E2 08 00 C8 8A 80 13 01 00 00 00 00 00 CF [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:26]Read from MH i2c: E2 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 0E 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 0E 00 C8 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 54 [01:20:26]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:20:26]wFMCommunicate OK [01:20:26]SAM_PROTO_GetShiftState done [01:20:26]FM_GetShiftState done [01:20:26]req_shift_opened done [01:20:26]requested_item shift.open_date is exist - process it [01:20:26]req_shift_open_date [01:20:26]req_shift_open_date done [01:20:26]produce_requested_data done [01:20:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189390,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:20:26]process_action_free close_receipt [01:20:26]json_value_free [01:20:26]json_value_free done [01:20:26]process_json_proto returns [01:20:26]Send response to host [01:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189390,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:20:26]free response buf [01:20:26]execute_script done [01:20:26]execute_script returns [01:20:26]free content buf [01:20:26]Sock 8.Close socket [01:20:26]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:05]ConnectInit Can't connect to host [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39: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:06]ConnectInit Can't connect to host [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]accept exits with 9 [01:44:56]New connection [01:44:56]New thread 3067215204 created [01:44:56]Thread 3067071844 joined [01:44:56]Waiting for new connection... [01:44:56] Sock 9.Parse request [01:44:56]Sock 9.Check first char [01:44:56]Sock 9.First char is OK [01:44:56]request: POST /json_proto HTTP/1.0 [01:44:56]Method: POST [01:44:56]URL: /json_proto [01:44:56]Method is POST - this is cgi request [01:44:56]url: /json_proto [01:44:56]query_string will be loaded in cgi processing [01:44:56]execute_cgi json_proto POST (null) [01:44:56]execute_cgi path=json_proto method=POST [01:44:56]POST find Content-Length [01:44:56]Host: 172.17.42.131:8080 [01:44:56]Content-Length: 688 [01:44:56]Content-Type: application/json [01:44:56] [01:44:56]POST finish read [01:44:56]Found Content-Length = 688 [01:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:56]execute_script... [01:44:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:56]POST & json_proto [01:44:56]process_json_proto [01:44:56]json parsed OK: [01:44:56]protocol is kg_v1.0 [01:44:56]action value=close_receipt [01:44:56]process_action close_receipt [01:44:56]cmd_close_receipt [01:44:56]MH_GetDate [01:44:56]Write to MH i2c: F0 00 00 C9 8A 42 [01:44:56]Write i2c OK [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 09 00 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 09 00 C9 8A 00 1E F8 1A 67 A0 18 CA 66 CA [01:44:56]GetLastDocTimeStamp 1729819228 [01:44:56]current date 1729820702 [01:44:56]FM_GetShiftState [01:44:56]SAM_PROTO_GetShiftState [01:44:56]wFMCommunicate request_size=4 [01:44:56]MH_SAM_APDU [01:44:56]CAPDU: 80 13 01 00 [01:44:56]Write to MH i2c: E2 08 00 CA 8A 80 13 01 00 00 00 00 00 D1 [01:44:56]Write i2c OK [01:44:56]MH_I2C_Read... [01:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:56]Read from MH i2c: E2 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: E2 0E 00 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: E2 0E 00 CA 8A 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 56 [01:44:56]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:44:56]wFMCommunicate OK [01:44:56]SAM_PROTO_GetShiftState done [01:44:56]FM_GetShiftState done [01:44:56]opened in 1729815317 [01:44:56]opened+sec_in_day 1729901717 [01:44:56]quantity*price = 400050 [01:44:56]sum+1 = 400051 [01:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 25.10.2024 01:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189391 ФПД: 269834927170531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T014502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189391&fm=269834927170531&tin=02508201610067®Number=0000000000100030&sum=400000 [01:44:57]StoreToDocumentArchive [01:44:57]shift 464 fd 189391 [01:44:57]save to /storage/0464/doc_00189391 [01:44:57]save last doc name /storage/0464/doc_00189391 to /storage/kkm_last_doc_name [01:44:57]save OK [01:44:57]Clear old archive folders... [01:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:44:57]tlvbuf is 01700C40 [01:44:57]SAM_PROTO_ClearQueue [01:44:57]wFMCommunicate request_size=4 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 09 00 00 [01:44:57]Write to MH i2c: E2 08 00 D7 8A 80 09 00 00 00 00 00 00 D3 [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 D7 8A 00 90 00 D5 [01:44:57]RAPDU: 90 00 [01:44:57]wFMCommunicate OK [01:44:57]SAM_PROTO_ClearQueue done [01:44:57]KKMCreateOFDPacket [01:44:57]OFDProtocolAddRootSTLVToBuf [01:44:57]FM_MakeSignedData [01:44:57]FM_MakeSignedData [01:44:57]SAM_PROTO_SignData [01:44:57]wFMCommunicate request_size=4 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 0D 01 02 [01:44:57]Write to MH i2c: E2 08 00 D8 8A 80 0D 01 02 00 00 00 00 DB [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 D8 8A 00 90 00 D6 [01:44:57]RAPDU: 90 00 [01:44:57]wFMCommunicate OK [01:44:57]wFMCommunicate request_size=255 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 1E F8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E3 02 [01:44:57]Write to MH i2c: E2 02 01 D9 8A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 1E F8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E3 02 00 00 87 [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 D9 8A 00 90 00 D7 [01:44:57]RAPDU: 90 00 [01:44:57]wFMCommunicate OK [01:44:57]wFMCommunicate request_size=16 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F5 69 D6 FB 63 E3 [01:44:57]Write to MH i2c: E2 13 00 DA 8A 80 0D 02 02 0B 00 00 35 04 06 00 F5 69 D6 FB 63 E3 00 00 A8 [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 03 00 DA 8A 00 90 00 D8 [01:44:57]RAPDU: 90 00 [01:44:57]wFMCommunicate OK [01:44:57]wFMCommunicate request_size=4 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 0D 03 02 [01:44:57]Write to MH i2c: E2 08 00 DB 8A 80 0D 03 02 00 00 00 00 E0 [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 0B 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 0B 00 DB 8A 00 E1 C6 49 80 88 7E D5 A9 90 00 D5 [01:44:57]RAPDU: E1 C6 49 80 88 7E D5 A9 90 00 [01:44:57]wFMCommunicate OK [01:44:57]SAM_PROTO_SignData done [01:44:57]FM_MakeSignedData done [01:44:57]CreateOFDProtocolMessage [01:44:57]wFMCommunicate request_size=4 [01:44:57]MH_SAM_APDU [01:44:57]CAPDU: 80 11 00 00 [01:44:57]Write to MH i2c: E2 08 00 DC 8A 80 11 00 00 00 00 00 00 E0 [01:44:57]Write i2c OK [01:44:57]MH_I2C_Read... [01:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:57]Read from MH i2c: E2 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 17 00 [01:44:57]MH_I2C_Read... [01:44:57]Read from MH i2c: E2 17 00 DC 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [01:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:44:57]wFMCommunicate OK [01:44:57]CreateOFDProtocolMessage done [01:44:57]OFDSenderStorePacket 189391 [01:44:57]StoreOFDPacket docnum=189391 [01:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 53 50 0D 01 F5 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 1E F8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E3 02 00 35 04 06 00 F5 69 D6 FB 63 E3 E1 C6 49 80 88 7E D5 A9 [01:44:57]CheckFolder [01:44:57]dirname=/storage/ofd_packets [01:44:57]CheckFolder done [01:44:57]ProducePacketName [01:44:57]name=ofd_packets/00189391 [01:44:57]NVStorageSaveData ofd_packets/00189391 [01:44:57]File name is /storage/ofd_packets/00189391 [01:44:57]Write 307 bytes [01:44:57]NVStorageSaveData done [01:44:57]OFDSenderStorePacket done [01:44:57]KKMCreateOFDPacket done [01:44:57]NVStorageSaveData kkm_last_timestamp [01:44:57]File name is /storage/kkm_last_timestamp [01:44:57]Write 4 bytes [01:44:57]NVStorageSaveData done [01:44:58]ExternCall_PrintAddStr [01:44:58]wPrintStart [01:44:58]Write to MH i2c: 01 00 00 DD 8A 67 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 DD 8A 00 00 00 00 00 FF 0F 7C [01:44:58]RasterBufferAndPrint [01:44:58]line Счет N : (1)211454 [01:44:58]line ИНН: 02508201610067 [01:44:58]line Контрольно-Кассовый Чек [01:44:58]line ПРОДАЖА [01:44:58]line ТРК (МРК, ГНК) : 21 [01:44:58]line Товар: 2710194210 [01:44:58]line D-ENERGY ДТ-К-5 [01:44:58]line 51.820 * 77.20 [01:44:58]line = 4000.50 [01:44:58]line НДС 12% НСП 1% [01:44:58]line > о реализуемом товаре [01:44:58]line ОКРУГЛЕНИЕ: -0.50 [01:44:58]line ИТОГО: 4000.00 [01:44:58]line Внесено: 4000.00 [01:44:58]line СДАЧА: 0.00 [01:44:58]line НСП 1% : 35.40 [01:44:58]line НДС 12% : 424.83 [01:44:58]line Наличными: 4000.00 [01:44:58]line Безнал.: 0.00 [01:44:58]line Место: АЗС № 86 "Партнер Нефть" [01:44:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:44:58]line СНО: Общий режим [01:44:58]line Чек 14 25.10.2024 01:45 [01:44:58]line Смена: 464 ФФД: 1.0 [01:44:58]line ЗНМ: 0300000155 [01:44:58]line РНМ: 0000000000100030 [01:44:58]line Версия ККМ: 001 [01:44:58]line ФМ: 0000000000965340 [01:44:58]line ФД: 189391 [01:44:58]line ФПД: 269834927170531 [01:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T014502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189391&fm=269834927170531&tin=02508201610067®Number=0000000000100030&sum=400000 [01:44:58]written 0, free lines is 4095 [01:44:58]OFD Sender: Processing packet 189391 [packets to send 1062, broken 1061] [01:44:58]ProducePacketName [01:44:58]name=ofd_packets/00189391 [01:44:58]OFD Sender: To server: pG, [01:44:58]CommunicateWithHost lk.salyk.kg:30040 [01:44:58]ConnectInit lk.salyk.kg [01:44:58]Connected sock=11 [01:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 53 50 0D 01 F5 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 1E F8 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF E3 02 00 35 04 06 00 F5 69 D6 FB 63 E3 E1 C6 49 80 88 7E D5 A9 [01:44:58]Write to MH i2c: 01 00 00 08 8B 93 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 08 8B 00 00 00 00 00 43 0C E9 [01:44:58]RasterBufferAndPrint [01:44:58]line [01:44:58]line [01:44:58]line [01:44:58]line [01:44:58]line [01:44:58]written 0, free lines is 3143 [01:44:58]MH_Cut [01:44:58]Write to MH i2c: D1 01 00 0F 8B 01 6C [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: D1 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: D1 01 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: D1 01 00 0F 8B 00 6B [01:44:58]Write to MH i2c: 01 00 00 10 8B 9B [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E2 2F 47 00 FA 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 39 36 35 33 34 30 10 04 04 00 CF E3 02 00 F4 03 04 00 04 A2 1A 67 B6 04 01 00 00 55 65 BB E2 76 2D 7B 86 [01:44:58]CommunicateWithHost err = 0 [01:44:58]CheckOFDResponse [01:44:58]1017 (14) - 77093643461234 [01:44:58]1041 (16) - 0000000000965340 [01:44:58]1040 (4) - 189391 [01:44:58]1012 (4) - 24.10.2024 19:37 [01:44:58]1206 (1) - 0 [01:44:58]OFD Sender: Remove packet 189391 [01:44:58]ProducePacketName [01:44:58]name=ofd_packets/00189391 [01:44:58]NVStorageDeleteData [01:44:59]OFD Sender: No OFD packet to send [01:44:59]*** Cut start [01:44:59]*** Partial cut [01:44:59]*** CUTSNS_PIN = 1 [01:44:59]*** CUTSNS_PIN = 0 [01:45:00]*** Brake cut motor [01:45:00]Read from MH i2c: 01 [01:45:00]MH_I2C_Read... [01:45:00]*** Stop cut motor [01:45:00]*** Cut end [01:45:00]Read from MH i2c: 01 07 00 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: 01 07 00 10 8B 00 00 00 00 00 FF 0F B0 [01:45:00]process_action close_receipt done [01:45:00]requested_data is exist [01:45:00]produce_requested_data [01:45:00]requested_item fm.sn is exist - process it [01:45:00]wFMCommunicate request_size=4 [01:45:00]MH_SAM_APDU [01:45:00]CAPDU: 80 11 00 00 [01:45:00]Write to MH i2c: E2 08 00 11 8B 80 11 00 00 00 00 00 00 16 [01:45:00]Write i2c OK [01:45:00]MH_I2C_Read... [01:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:00]Read from MH i2c: E2 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 17 00 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 17 00 11 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [01:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:45:00]wFMCommunicate OK [01:45:00]requested_item fd.num is exist - process it [01:45:00]SAM_PROTO_GetFieldsCounters [01:45:00]wFMCommunicate request_size=4 [01:45:00]MH_SAM_APDU [01:45:00]CAPDU: 80 13 00 00 [01:45:00]Write to MH i2c: E2 08 00 12 8B 80 13 00 00 00 00 00 00 19 [01:45:00]Write i2c OK [01:45:00]MH_I2C_Read... [01:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:00]Read from MH i2c: E2 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 62 00 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 62 00 12 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E3 02 00 0E 04 04 00 D0 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 CF [01:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF E3 02 00 0E 04 04 00 D0 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:45:00]wFMCommunicate OK [01:45:00]SAM_PROTO_GetFieldsCounters done [01:45:00]requested_item shift.num is exist - process it [01:45:00]requested_item shift.opened is exist - process it [01:45:00]req_shift_opened [01:45:00]FM_GetShiftState [01:45:00]SAM_PROTO_GetShiftState [01:45:00]wFMCommunicate request_size=4 [01:45:00]MH_SAM_APDU [01:45:00]CAPDU: 80 13 01 00 [01:45:00]Write to MH i2c: E2 08 00 13 8B 80 13 01 00 00 00 00 00 1B [01:45:00]Write i2c OK [01:45:00]MH_I2C_Read... [01:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:00]Read from MH i2c: E2 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 0E 00 [01:45:00]MH_I2C_Read... [01:45:00]Read from MH i2c: E2 0E 00 13 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 A0 [01:45:00]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:45:00]wFMCommunicate OK [01:45:00]SAM_PROTO_GetShiftState done [01:45:00]FM_GetShiftState done [01:45:00]req_shift_opened done [01:45:00]requested_item shift.open_date is exist - process it [01:45:00]req_shift_open_date [01:45:00]req_shift_open_date done [01:45:00]produce_requested_data done [01:45:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189391,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:45:00]process_action_free close_receipt [01:45:00]json_value_free [01:45:00]json_value_free done [01:45:00]process_json_proto returns [01:45:00]Send response to host [01:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189391,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:45:00]free response buf [01:45:00]execute_script done [01:45:00]execute_script returns [01:45:00]free content buf [01:45:00]Sock 9.Close socket [01:45:00]Sock 9.Thread stoped [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48: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:08]accept exits with 8 [01:51:08]New connection [01:51:08]New thread 3067071844 created [01:51:08]Thread 3067215204 joined [01:51:08]Waiting for new connection... [01:51:08] Sock 8.Parse request [01:51:08]Sock 8.Check first char [01:51:08]Sock 8.First char is OK [01:51:08]request: POST /json_proto HTTP/1.0 [01:51:08]Method: POST [01:51:08]URL: /json_proto [01:51:08]Method is POST - this is cgi request [01:51:08]url: /json_proto [01:51:08]query_string will be loaded in cgi processing [01:51:08]execute_cgi json_proto POST (null) [01:51:08]execute_cgi path=json_proto method=POST [01:51:08]POST find Content-Length [01:51:08]Host: 172.17.42.131:8080 [01:51:08]Content-Length: 677 [01:51:08]Content-Type: application/json [01:51:08] [01:51:08]POST finish read [01:51:08]Found Content-Length = 677 [01:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:08]execute_script... [01:51: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)211455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:08]POST & json_proto [01:51:08]process_json_proto [01:51:08]json parsed OK: [01:51:08]protocol is kg_v1.0 [01:51:08]action value=close_receipt [01:51:08]process_action close_receipt [01:51:08]cmd_close_receipt [01:51:08]MH_GetDate [01:51:08]Write to MH i2c: F0 00 00 14 8B 8E [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: F0 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: F0 09 00 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: F0 09 00 14 8B 00 93 F9 1A 67 A0 18 CA 66 8C [01:51:08]GetLastDocTimeStamp 1729820702 [01:51:08]current date 1729821075 [01:51:08]FM_GetShiftState [01:51:08]SAM_PROTO_GetShiftState [01:51:08]wFMCommunicate request_size=4 [01:51:08]MH_SAM_APDU [01:51:08]CAPDU: 80 13 01 00 [01:51:08]Write to MH i2c: E2 08 00 15 8B 80 13 01 00 00 00 00 00 1D [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:09]Read from MH i2c: E2 [01:51:09]MH_I2C_Read... [01:51:09]Read from MH i2c: E2 0E 00 [01:51:09]MH_I2C_Read... [01:51:09]Read from MH i2c: E2 0E 00 15 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 A2 [01:51:09]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:51:09]wFMCommunicate OK [01:51:09]SAM_PROTO_GetShiftState done [01:51:09]FM_GetShiftState done [01:51:09]opened in 1729815317 [01:51:09]opened+sec_in_day 1729901717 [01:51:09]quantity*price = 50041 [01:51:09]sum+1 = 50042 [01:51:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 25.10.2024 01:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189392 ФПД: 50495258693053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189392&fm=50495258693053&tin=02508201610067®Number=0000000000100030&sum=50000 [01:51:10]StoreToDocumentArchive [01:51:10]shift 464 fd 189392 [01:51:10]save to /storage/0464/doc_00189392 [01:51:10]save last doc name /storage/0464/doc_00189392 to /storage/kkm_last_doc_name [01:51:10]save OK [01:51:10]Clear old archive folders... [01:51:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:51:10]tlvbuf is 01556190 [01:51:10]SAM_PROTO_ClearQueue [01:51:10]wFMCommunicate request_size=4 [01:51:10]MH_SAM_APDU [01:51:10]CAPDU: 80 09 00 00 [01:51:10]Write to MH i2c: E2 08 00 22 8B 80 09 00 00 00 00 00 00 1F [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 22 8B 00 90 00 21 [01:51:10]RAPDU: 90 00 [01:51:10]wFMCommunicate OK [01:51:10]SAM_PROTO_ClearQueue done [01:51:10]KKMCreateOFDPacket [01:51:10]OFDProtocolAddRootSTLVToBuf [01:51:10]FM_MakeSignedData [01:51:10]FM_MakeSignedData [01:51:10]SAM_PROTO_SignData [01:51:10]wFMCommunicate request_size=4 [01:51:10]MH_SAM_APDU [01:51:10]CAPDU: 80 0D 01 02 [01:51:10]Write to MH i2c: E2 08 00 23 8B 80 0D 01 02 00 00 00 00 27 [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 23 8B 00 90 00 22 [01:51:10]RAPDU: 90 00 [01:51:10]wFMCommunicate OK [01:51:10]wFMCommunicate request_size=255 [01:51:10]MH_SAM_APDU [01:51: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E3 02 00 35 04 06 00 2D [01:51:10]Write to MH i2c: E2 02 01 24 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E3 02 00 35 04 06 00 2D 00 00 69 [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 24 8B 00 90 00 23 [01:51:10]RAPDU: 90 00 [01:51:10]wFMCommunicate OK [01:51:10]wFMCommunicate request_size=10 [01:51:10]MH_SAM_APDU [01:51:10]CAPDU: 80 0D 02 02 05 EC D7 F5 0D BD [01:51:10]Write to MH i2c: E2 0D 00 25 8B 80 0D 02 02 05 00 EC D7 F5 0D BD 00 00 B6 [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 03 00 25 8B 00 90 00 24 [01:51:10]RAPDU: 90 00 [01:51:10]wFMCommunicate OK [01:51:10]wFMCommunicate request_size=4 [01:51:10]MH_SAM_APDU [01:51:10]CAPDU: 80 0D 03 02 [01:51:10]Write to MH i2c: E2 08 00 26 8B 80 0D 03 02 00 00 00 00 2C [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 0B 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 0B 00 26 8B 00 7D 28 64 D6 7A 60 54 90 90 00 CA [01:51:10]RAPDU: 7D 28 64 D6 7A 60 54 90 90 00 [01:51:10]wFMCommunicate OK [01:51:10]SAM_PROTO_SignData done [01:51:10]FM_MakeSignedData done [01:51:10]CreateOFDProtocolMessage [01:51:10]wFMCommunicate request_size=4 [01:51:10]MH_SAM_APDU [01:51:10]CAPDU: 80 11 00 00 [01:51:10]Write to MH i2c: E2 08 00 27 8B 80 11 00 00 00 00 00 00 2C [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:10]Read from MH i2c: E2 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 17 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: E2 17 00 27 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [01:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:51:10]wFMCommunicate OK [01:51:10]CreateOFDProtocolMessage done [01:51:10]OFDSenderStorePacket 189392 [01:51:10]StoreOFDPacket docnum=189392 [01:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 56 07 01 0D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E3 02 00 35 04 06 00 2D EC D7 F5 0D BD 7D 28 64 D6 7A 60 54 90 [01:51:10]CheckFolder [01:51:10]dirname=/storage/ofd_packets [01:51:10]CheckFolder done [01:51:10]ProducePacketName [01:51:10]name=ofd_packets/00189392 [01:51:10]NVStorageSaveData ofd_packets/00189392 [01:51:10]File name is /storage/ofd_packets/00189392 [01:51:10]Write 301 bytes [01:51:10]NVStorageSaveData done [01:51:10]OFDSenderStorePacket done [01:51:10]KKMCreateOFDPacket done [01:51:10]NVStorageSaveData kkm_last_timestamp [01:51:10]File name is /storage/kkm_last_timestamp [01:51:10]Write 4 bytes [01:51:10]NVStorageSaveData done [01:51:10]ExternCall_PrintAddStr [01:51:10]wPrintStart [01:51:10]Write to MH i2c: 01 00 00 28 8B B3 [01:51:10]Write i2c OK [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: 01 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: 01 07 00 [01:51:10]MH_I2C_Read... [01:51:10]Read from MH i2c: 01 07 00 28 8B 00 00 00 00 00 FF 0F C8 [01:51:10]RasterBufferAndPrint [01:51:10]line Счет N : (1)211455 [01:51:10]line ИНН: 02508201610067 [01:51:10]line Контрольно-Кассовый Чек [01:51:10]line ПРОДАЖА [01:51:10]line ТРК (МРК, ГНК) : 22 [01:51:10]line Товар: 2710124130 [01:51:10]line Аи-92-К-3 [01:51:10]line 7.480 * 66.90 [01:51:10]line = 500.41 [01:51:10]line НДС 12% НСП 1% [01:51:10]line > о реализуемом товаре [01:51:10]line ОКРУГЛЕНИЕ: -0.41 [01:51:10]line ИТОГО: 500.00 [01:51:10]line Внесено: 500.00 [01:51:10]line СДАЧА: 0.00 [01:51:10]line НСП 1% : 4.43 [01:51:10]line НДС 12% : 53.14 [01:51:10]line Наличными: 500.00 [01:51:10]line Безнал.: 0.00 [01:51:10]line Место: АЗС № 86 "Партнер Нефть" [01:51:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:51:10]line СНО: Общий режим [01:51:10]line Чек 15 25.10.2024 01:51 [01:51:10]line Смена: 464 ФФД: 1.0 [01:51:10]line ЗНМ: 0300000155 [01:51:10]line РНМ: 0000000000100030 [01:51:10]line Версия ККМ: 001 [01:51:10]line ФМ: 0000000000965340 [01:51:10]line ФД: 189392 [01:51:10]line ФПД: 50495258693053 [01:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189392&fm=50495258693053&tin=02508201610067®Number=0000000000100030&sum=50000 [01:51:10]written 0, free lines is 4095 [01:51:10]OFD Sender: Processing packet 189392 [packets to send 1062, broken 1061] [01:51:10]ProducePacketName [01:51:10]name=ofd_packets/00189392 [01:51:10]OFD Sender: To server: pG, [01:51:10]CommunicateWithHost lk.salyk.kg:30040 [01:51:10]ConnectInit lk.salyk.kg [01:51:10]Connected sock=10 [01:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F8 56 07 01 0D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 E3 02 00 35 04 06 00 2D EC D7 F5 0D BD 7D 28 64 D6 7A 60 54 90 [01:51:11]Write to MH i2c: 01 00 00 53 8B DE [01:51:11]Write i2c OK [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: 01 [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: 01 07 00 [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: 01 07 00 53 8B 00 00 00 00 00 43 0C 34 [01:51:11]RasterBufferAndPrint [01:51:11]line [01:51:11]line [01:51:11]line [01:51:11]line [01:51:11]line [01:51:11]written 0, free lines is 3145 [01:51:11]MH_Cut [01:51:11]Write to MH i2c: D1 01 00 5A 8B 01 B7 [01:51:11]Write i2c OK [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: D1 [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: D1 01 00 [01:51:11]MH_I2C_Read... [01:51:11]Read from MH i2c: D1 01 00 5A 8B 00 B6 [01:51:11]Write to MH i2c: 01 00 00 5B 8B E6 [01:51:11]Write i2c OK [01:51:11]MH_I2C_Read... [01:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 96 47 00 8C 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 39 36 35 33 34 30 10 04 04 00 D0 E3 02 00 F4 03 04 00 79 A3 1A 67 B6 04 01 00 00 2E EC 69 2F 8E AE E6 D4 [01:51:11]CommunicateWithHost err = 0 [01:51:11]CheckOFDResponse [01:51:11]1017 (14) - 77093643461234 [01:51:11]1041 (16) - 0000000000965340 [01:51:11]1040 (4) - 189392 [01:51:11]1012 (4) - 24.10.2024 19:43 [01:51:11]1206 (1) - 0 [01:51:11]OFD Sender: Remove packet 189392 [01:51:11]ProducePacketName [01:51:11]name=ofd_packets/00189392 [01:51:11]NVStorageDeleteData [01:51:11]OFD Sender: No OFD packet to send [01:51:12]*** Cut start [01:51:12]*** Partial cut [01:51:12]*** CUTSNS_PIN = 1 [01:51:12]*** CUTSNS_PIN = 0 [01:51:12]*** Brake cut motor [01:51:13]Read from MH i2c: 01 [01:51:13]MH_I2C_Read... [01:51:13]*** Stop cut motor [01:51:13]*** Cut end [01:51:13]Read from MH i2c: 01 07 00 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: 01 07 00 5B 8B 00 00 00 00 00 FF 0F FB [01:51:13]process_action close_receipt done [01:51:13]requested_data is exist [01:51:13]produce_requested_data [01:51:13]requested_item fm.sn is exist - process it [01:51:13]wFMCommunicate request_size=4 [01:51:13]MH_SAM_APDU [01:51:13]CAPDU: 80 11 00 00 [01:51:13]Write to MH i2c: E2 08 00 5C 8B 80 11 00 00 00 00 00 00 61 [01:51:13]Write i2c OK [01:51:13]MH_I2C_Read... [01:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:13]Read from MH i2c: E2 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 17 00 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 17 00 5C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [01:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:51:13]wFMCommunicate OK [01:51:13]requested_item fd.num is exist - process it [01:51:13]SAM_PROTO_GetFieldsCounters [01:51:13]wFMCommunicate request_size=4 [01:51:13]MH_SAM_APDU [01:51:13]CAPDU: 80 13 00 00 [01:51:13]Write to MH i2c: E2 08 00 5D 8B 80 13 00 00 00 00 00 00 64 [01:51:13]Write i2c OK [01:51:13]MH_I2C_Read... [01:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:13]Read from MH i2c: E2 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 62 00 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 62 00 5D 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E3 02 00 0E 04 04 00 D0 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 1E [01:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 E3 02 00 0E 04 04 00 D0 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:51:13]wFMCommunicate OK [01:51:13]SAM_PROTO_GetFieldsCounters done [01:51:13]requested_item shift.num is exist - process it [01:51:13]requested_item shift.opened is exist - process it [01:51:13]req_shift_opened [01:51:13]FM_GetShiftState [01:51:13]SAM_PROTO_GetShiftState [01:51:13]wFMCommunicate request_size=4 [01:51:13]MH_SAM_APDU [01:51:13]CAPDU: 80 13 01 00 [01:51:13]Write to MH i2c: E2 08 00 5E 8B 80 13 01 00 00 00 00 00 66 [01:51:13]Write i2c OK [01:51:13]MH_I2C_Read... [01:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:13]Read from MH i2c: E2 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 0E 00 [01:51:13]MH_I2C_Read... [01:51:13]Read from MH i2c: E2 0E 00 5E 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 EB [01:51:13]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:51:13]wFMCommunicate OK [01:51:13]SAM_PROTO_GetShiftState done [01:51:13]FM_GetShiftState done [01:51:13]req_shift_opened done [01:51:13]requested_item shift.open_date is exist - process it [01:51:13]req_shift_open_date [01:51:13]req_shift_open_date done [01:51:13]produce_requested_data done [01:51:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189392,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:51:13]process_action_free close_receipt [01:51:13]json_value_free [01:51:13]json_value_free done [01:51:13]process_json_proto returns [01:51:13]Send response to host [01:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189392,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:51:13]free response buf [01:51:13]execute_script done [01:51:13]execute_script returns [01:51:13]free content buf [01:51:13]Sock 8.Close socket [01:51:13]Sock 8.Thread stoped [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:49]accept exits with 9 [01:51:49]New connection [01:51:49]New thread 3067215204 created [01:51:49]Thread 3067071844 joined [01:51:49]Waiting for new connection... [01:51:49] Sock 9.Parse request [01:51:49]Sock 9.Check first char [01:51:49]Sock 9.First char is OK [01:51:49]request: POST /json_proto HTTP/1.0 [01:51:49]Method: POST [01:51:49]URL: /json_proto [01:51:49]Method is POST - this is cgi request [01:51:49]url: /json_proto [01:51:49]query_string will be loaded in cgi processing [01:51:49]execute_cgi json_proto POST (null) [01:51:49]execute_cgi path=json_proto method=POST [01:51:49]POST find Content-Length [01:51:49]Host: 172.17.42.131:8080 [01:51:49]Content-Length: 677 [01:51:49]Content-Type: application/json [01:51:49] [01:51:49]POST finish read [01:51:49]Found Content-Length = 677 [01:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:49]execute_script... [01:51: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)211456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:49]POST & json_proto [01:51:49]process_json_proto [01:51:49]json parsed OK: [01:51:49]protocol is kg_v1.0 [01:51:49]action value=close_receipt [01:51:49]process_action close_receipt [01:51:49]cmd_close_receipt [01:51:49]MH_GetDate [01:51:49]Write to MH i2c: F0 00 00 5F 8B D9 [01:51:49]Write i2c OK [01:51:49]MH_I2C_Read... [01:51:49]Read from MH i2c: F0 [01:51:49]MH_I2C_Read... [01:51:49]Read from MH i2c: F0 09 00 [01:51:49]MH_I2C_Read... [01:51:49]Read from MH i2c: F0 09 00 5F 8B 00 BB F9 1A 67 A0 18 CA 66 FF [01:51:49]GetLastDocTimeStamp 1729821075 [01:51:49]current date 1729821115 [01:51:49]FM_GetShiftState [01:51:49]SAM_PROTO_GetShiftState [01:51:49]wFMCommunicate request_size=4 [01:51:49]MH_SAM_APDU [01:51:49]CAPDU: 80 13 01 00 [01:51:49]Write to MH i2c: E2 08 00 60 8B 80 13 01 00 00 00 00 00 68 [01:51:49]Write i2c OK [01:51:49]MH_I2C_Read... [01:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:49]Read from MH i2c: E2 [01:51:49]MH_I2C_Read... [01:51:49]Read from MH i2c: E2 0E 00 [01:51:49]MH_I2C_Read... [01:51:49]Read from MH i2c: E2 0E 00 60 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 ED [01:51:49]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:51:49]wFMCommunicate OK [01:51:49]SAM_PROTO_GetShiftState done [01:51:49]FM_GetShiftState done [01:51:49]opened in 1729815317 [01:51:49]opened+sec_in_day 1729901717 [01:51:49]quantity*price = 50041 [01:51:49]sum+1 = 50042 [01:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 25.10.2024 01:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189393 ФПД: 247997802923183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189393&fm=247997802923183&tin=02508201610067®Number=0000000000100030&sum=50000 [01:51:50]StoreToDocumentArchive [01:51:50]shift 464 fd 189393 [01:51:50]save to /storage/0464/doc_00189393 [01:51:50]save last doc name /storage/0464/doc_00189393 to /storage/kkm_last_doc_name [01:51:50]save OK [01:51:50]Clear old archive folders... [01:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:51:50]tlvbuf is 01517A40 [01:51:50]SAM_PROTO_ClearQueue [01:51:50]wFMCommunicate request_size=4 [01:51:50]MH_SAM_APDU [01:51:50]CAPDU: 80 09 00 00 [01:51:50]Write to MH i2c: E2 08 00 6D 8B 80 09 00 00 00 00 00 00 6A [01:51:50]Write i2c OK [01:51:50]MH_I2C_Read... [01:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:50]Read from MH i2c: E2 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 03 00 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 03 00 6D 8B 00 90 00 6C [01:51:50]RAPDU: 90 00 [01:51:50]wFMCommunicate OK [01:51:50]SAM_PROTO_ClearQueue done [01:51:50]KKMCreateOFDPacket [01:51:50]OFDProtocolAddRootSTLVToBuf [01:51:50]FM_MakeSignedData [01:51:50]FM_MakeSignedData [01:51:50]SAM_PROTO_SignData [01:51:50]wFMCommunicate request_size=4 [01:51:50]MH_SAM_APDU [01:51:50]CAPDU: 80 0D 01 02 [01:51:50]Write to MH i2c: E2 08 00 6E 8B 80 0D 01 02 00 00 00 00 72 [01:51:50]Write i2c OK [01:51:50]MH_I2C_Read... [01:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:50]Read from MH i2c: E2 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 03 00 [01:51:50]MH_I2C_Read... [01:51:50]Read from MH i2c: E2 03 00 6E 8B 00 90 00 6D [01:51:50]RAPDU: 90 00 [01:51:50]wFMCommunicate OK [01:51:50]wFMCommunicate request_size=255 [01:51:50]MH_SAM_APDU [01:51: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E3 02 00 35 04 06 00 E1 [01:51:50]Write to MH i2c: E2 02 01 6F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E3 02 00 35 04 06 00 E1 00 00 92 [01:51:50]Write i2c OK [01:51:50]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 6F 8B 00 90 00 6E [01:51:51]RAPDU: 90 00 [01:51:51]wFMCommunicate OK [01:51:51]wFMCommunicate request_size=10 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 0D 02 02 05 8D 7C F2 C4 AF [01:51:51]Write to MH i2c: E2 0D 00 70 8B 80 0D 02 02 05 00 8D 7C F2 C4 AF 00 00 ED [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 03 00 70 8B 00 90 00 6F [01:51:51]RAPDU: 90 00 [01:51:51]wFMCommunicate OK [01:51:51]wFMCommunicate request_size=4 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 0D 03 02 [01:51:51]Write to MH i2c: E2 08 00 71 8B 80 0D 03 02 00 00 00 00 77 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 0B 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 0B 00 71 8B 00 BE A6 48 0E 87 D8 AF 81 90 00 C1 [01:51:51]RAPDU: BE A6 48 0E 87 D8 AF 81 90 00 [01:51:51]wFMCommunicate OK [01:51:51]SAM_PROTO_SignData done [01:51:51]FM_MakeSignedData done [01:51:51]CreateOFDProtocolMessage [01:51:51]wFMCommunicate request_size=4 [01:51:51]MH_SAM_APDU [01:51:51]CAPDU: 80 11 00 00 [01:51:51]Write to MH i2c: E2 08 00 72 8B 80 11 00 00 00 00 00 00 77 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:51]Read from MH i2c: E2 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 17 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: E2 17 00 72 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [01:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:51:51]wFMCommunicate OK [01:51:51]CreateOFDProtocolMessage done [01:51:51]OFDSenderStorePacket 189393 [01:51:51]StoreOFDPacket docnum=189393 [01:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 0D 07 01 FA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E3 02 00 35 04 06 00 E1 8D 7C F2 C4 AF BE A6 48 0E 87 D8 AF 81 [01:51:51]CheckFolder [01:51:51]dirname=/storage/ofd_packets [01:51:51]CheckFolder done [01:51:51]ProducePacketName [01:51:51]name=ofd_packets/00189393 [01:51:51]NVStorageSaveData ofd_packets/00189393 [01:51:51]File name is /storage/ofd_packets/00189393 [01:51:51]Write 301 bytes [01:51:51]NVStorageSaveData done [01:51:51]OFDSenderStorePacket done [01:51:51]KKMCreateOFDPacket done [01:51:51]NVStorageSaveData kkm_last_timestamp [01:51:51]File name is /storage/kkm_last_timestamp [01:51:51]Write 4 bytes [01:51:51]NVStorageSaveData done [01:51:51]ExternCall_PrintAddStr [01:51:51]wPrintStart [01:51:51]Write to MH i2c: 01 00 00 73 8B FE [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 07 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 07 00 73 8B 00 00 00 00 00 FF 0F 13 [01:51:51]RasterBufferAndPrint [01:51:51]line Счет N : (1)211456 [01:51:51]line ИНН: 02508201610067 [01:51:51]line Контрольно-Кассовый Чек [01:51:51]line ПРОДАЖА [01:51:51]line ТРК (МРК, ГНК) : 12 [01:51:51]line Товар: 2710124130 [01:51:51]line Аи-92-К-3 [01:51:51]line 7.480 * 66.90 [01:51:51]line = 500.41 [01:51:51]line НДС 12% НСП 1% [01:51:51]line > о реализуемом товаре [01:51:51]line ОКРУГЛЕНИЕ: -0.41 [01:51:51]line ИТОГО: 500.00 [01:51:51]line Внесено: 500.00 [01:51:51]line СДАЧА: 0.00 [01:51:51]line НСП 1% : 4.43 [01:51:51]line НДС 12% : 53.14 [01:51:51]line Наличными: 500.00 [01:51:51]line Безнал.: 0.00 [01:51:51]line Место: АЗС № 86 "Партнер Нефть" [01:51:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:51:51]line СНО: Общий режим [01:51:51]line Чек 16 25.10.2024 01:51 [01:51:51]line Смена: 464 ФФД: 1.0 [01:51:51]line ЗНМ: 0300000155 [01:51:51]line РНМ: 0000000000100030 [01:51:51]line Версия ККМ: 001 [01:51:51]line ФМ: 0000000000965340 [01:51:51]line ФД: 189393 [01:51:51]line ФПД: 247997802923183 [01:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189393&fm=247997802923183&tin=02508201610067®Number=0000000000100030&sum=50000 [01:51:51]written 0, free lines is 4095 [01:51:51]OFD Sender: Processing packet 189393 [packets to send 1062, broken 1061] [01:51:51]ProducePacketName [01:51:51]name=ofd_packets/00189393 [01:51:51]OFD Sender: To server: pG, [01:51:51]CommunicateWithHost lk.salyk.kg:30040 [01:51:51]ConnectInit lk.salyk.kg [01:51:51]Write to MH i2c: 01 00 00 9E 8B 29 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 07 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: 01 07 00 9E 8B 00 00 00 00 00 44 0C 80 [01:51:51]RasterBufferAndPrint [01:51:51]line [01:51:51]line [01:51:51]line [01:51:51]line [01:51:51]line [01:51:51]written 0, free lines is 3144 [01:51:51]MH_Cut [01:51:51]Write to MH i2c: D1 01 00 A5 8B 01 02 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: D1 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: D1 01 00 [01:51:51]MH_I2C_Read... [01:51:51]Read from MH i2c: D1 01 00 A5 8B 00 01 [01:51:51]Write to MH i2c: 01 00 00 A6 8B 31 [01:51:51]Write i2c OK [01:51:51]MH_I2C_Read... [01:51:53]*** Cut start [01:51:53]*** Partial cut [01:51:53]*** CUTSNS_PIN = 1 [01:51:53]*** CUTSNS_PIN = 0 [01:51:53]*** Brake cut motor [01:51:53]Read from MH i2c: 01 [01:51:53]MH_I2C_Read... [01:51:53]*** Stop cut motor [01:51:53]*** Cut end [01:51:53]Read from MH i2c: 01 07 00 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: 01 07 00 A6 8B 00 00 00 00 00 FF 0F 46 [01:51:53]process_action close_receipt done [01:51:53]requested_data is exist [01:51:53]produce_requested_data [01:51:53]requested_item fm.sn is exist - process it [01:51:53]wFMCommunicate request_size=4 [01:51:53]MH_SAM_APDU [01:51:53]CAPDU: 80 11 00 00 [01:51:53]Write to MH i2c: E2 08 00 A7 8B 80 11 00 00 00 00 00 00 AC [01:51:53]Write i2c OK [01:51:53]MH_I2C_Read... [01:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:53]Read from MH i2c: E2 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: E2 17 00 [01:51:53]MH_I2C_Read... [01:51:53]Read from MH i2c: E2 17 00 A7 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [01:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:51:53]wFMCommunicate OK [01:51:53]requested_item fd.num is exist - process it [01:51:53]SAM_PROTO_GetFieldsCounters [01:51:53]wFMCommunicate request_size=4 [01:51:53]MH_SAM_APDU [01:51:53]CAPDU: 80 13 00 00 [01:51:53]Write to MH i2c: E2 08 00 A8 8B 80 13 00 00 00 00 00 00 AF [01:51:53]Write i2c OK [01:51:53]MH_I2C_Read... [01:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:54]Read from MH i2c: E2 [01:51:54]MH_I2C_Read... [01:51:54]Read from MH i2c: E2 62 00 [01:51:54]MH_I2C_Read... [01:51:54]Read from MH i2c: E2 62 00 A8 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E3 02 00 0E 04 04 00 D0 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 6D [01:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 E3 02 00 0E 04 04 00 D0 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 [01:51:54]wFMCommunicate OK [01:51:54]SAM_PROTO_GetFieldsCounters done [01:51:54]requested_item shift.num is exist - process it [01:51:54]requested_item shift.opened is exist - process it [01:51:54]req_shift_opened [01:51:54]FM_GetShiftState [01:51:54]SAM_PROTO_GetShiftState [01:51:54]wFMCommunicate request_size=4 [01:51:54]MH_SAM_APDU [01:51:54]CAPDU: 80 13 01 00 [01:51:54]Write to MH i2c: E2 08 00 A9 8B 80 13 01 00 00 00 00 00 B1 [01:51:54]Write i2c OK [01:51:54]MH_I2C_Read... [01:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:54]Read from MH i2c: E2 [01:51:54]MH_I2C_Read... [01:51:54]Read from MH i2c: E2 0E 00 [01:51:54]MH_I2C_Read... [01:51:54]Read from MH i2c: E2 0E 00 A9 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 36 [01:51:54]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:51:54]wFMCommunicate OK [01:51:54]SAM_PROTO_GetShiftState done [01:51:54]FM_GetShiftState done [01:51:54]req_shift_opened done [01:51:54]requested_item shift.open_date is exist - process it [01:51:54]req_shift_open_date [01:51:54]req_shift_open_date done [01:51:54]produce_requested_data done [01:51:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189393,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:51:54]process_action_free close_receipt [01:51:54]json_value_free [01:51:54]json_value_free done [01:51:54]process_json_proto returns [01:51:54]Send response to host [01:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189393,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:51:54]free response buf [01:51:54]execute_script done [01:51:54]execute_script returns [01:51:54]free content buf [01:51:54]Sock 9.Close socket [01:51:54]Sock 9.Thread stoped [01:53:28]accept exits with 8 [01:53:28]New connection [01:53:28]New thread 3067071844 created [01:53:28]Thread 3067215204 joined [01:53:28]Waiting for new connection... [01:53:28] Sock 8.Parse request [01:53:28]Sock 8.Check first char [01:53:28]Sock 8.First char is OK [01:53:28]request: POST /json_proto HTTP/1.0 [01:53:28]Method: POST [01:53:28]URL: /json_proto [01:53:28]Method is POST - this is cgi request [01:53:28]url: /json_proto [01:53:28]query_string will be loaded in cgi processing [01:53:28]execute_cgi json_proto POST (null) [01:53:28]execute_cgi path=json_proto method=POST [01:53:28]POST find Content-Length [01:53:28]Host: 172.17.42.131:8080 [01:53:28]Content-Length: 677 [01:53:28]Content-Type: application/json [01:53:28] [01:53:28]POST finish read [01:53:28]Found Content-Length = 677 [01:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [01:53:28]execute_script... [01:53: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)211457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [01:53:28]POST & json_proto [01:53:28]process_json_proto [01:53:28]json parsed OK: [01:53:28]protocol is kg_v1.0 [01:53:28]action value=close_receipt [01:53:28]process_action close_receipt [01:53:28]cmd_close_receipt [01:53:28]MH_GetDate [01:53:28]Write to MH i2c: F0 00 00 AA 8B 24 [01:53:28]Write i2c OK [01:53:28]MH_I2C_Read... [01:53:28]Read from MH i2c: F0 [01:53:28]MH_I2C_Read... [01:53:28]Read from MH i2c: F0 09 00 [01:53:28]MH_I2C_Read... [01:53:28]Read from MH i2c: F0 09 00 AA 8B 00 1E FA 1A 67 A0 18 CA 66 AE [01:53:28]GetLastDocTimeStamp 1729821115 [01:53:28]current date 1729821214 [01:53:28]FM_GetShiftState [01:53:28]SAM_PROTO_GetShiftState [01:53:28]wFMCommunicate request_size=4 [01:53:28]MH_SAM_APDU [01:53:28]CAPDU: 80 13 01 00 [01:53:28]Write to MH i2c: E2 08 00 AB 8B 80 13 01 00 00 00 00 00 B3 [01:53:28]Write i2c OK [01:53:28]MH_I2C_Read... [01:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:28]Read from MH i2c: E2 [01:53:28]MH_I2C_Read... [01:53:28]Read from MH i2c: E2 0E 00 [01:53:28]MH_I2C_Read... [01:53:28]Read from MH i2c: E2 0E 00 AB 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 38 [01:53:28]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:53:28]wFMCommunicate OK [01:53:28]SAM_PROTO_GetShiftState done [01:53:28]FM_GetShiftState done [01:53:28]opened in 1729815317 [01:53:28]opened+sec_in_day 1729901717 [01:53:28]quantity*price = 30038 [01:53:28]sum+1 = 30039 [01:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 25.10.2024 01:53 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189394 ФПД: 260386690606763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189394&fm=260386690606763&tin=02508201610067®Number=0000000000100030&sum=30000 [01:53:29]StoreToDocumentArchive [01:53:29]shift 464 fd 189394 [01:53:29]save to /storage/0464/doc_00189394 [01:53:29]save last doc name /storage/0464/doc_00189394 to /storage/kkm_last_doc_name [01:53:29]save OK [01:53:29]Clear old archive folders... [01:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:53:29]tlvbuf is 01556150 [01:53:29]SAM_PROTO_ClearQueue [01:53:29]wFMCommunicate request_size=4 [01:53:29]MH_SAM_APDU [01:53:29]CAPDU: 80 09 00 00 [01:53:29]Write to MH i2c: E2 08 00 B8 8B 80 09 00 00 00 00 00 00 B5 [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 B8 8B 00 90 00 B7 [01:53:29]RAPDU: 90 00 [01:53:29]wFMCommunicate OK [01:53:29]SAM_PROTO_ClearQueue done [01:53:29]KKMCreateOFDPacket [01:53:29]OFDProtocolAddRootSTLVToBuf [01:53:29]FM_MakeSignedData [01:53:29]FM_MakeSignedData [01:53:29]SAM_PROTO_SignData [01:53:29]wFMCommunicate request_size=4 [01:53:29]MH_SAM_APDU [01:53:29]CAPDU: 80 0D 01 02 [01:53:29]Write to MH i2c: E2 08 00 B9 8B 80 0D 01 02 00 00 00 00 BD [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 B9 8B 00 90 00 B8 [01:53:29]RAPDU: 90 00 [01:53:29]wFMCommunicate OK [01:53:29]wFMCommunicate request_size=255 [01:53:29]MH_SAM_APDU [01: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 11 00 00 00 F4 03 04 00 1E FA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E3 02 00 35 04 06 00 EC [01:53:29]Write to MH i2c: E2 02 01 BA 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 11 00 00 00 F4 03 04 00 1E FA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E3 02 00 35 04 06 00 EC 00 00 42 [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 BA 8B 00 90 00 B9 [01:53:29]RAPDU: 90 00 [01:53:29]wFMCommunicate OK [01:53:29]wFMCommunicate request_size=10 [01:53:29]MH_SAM_APDU [01:53:29]CAPDU: 80 0D 02 02 05 D2 00 32 A6 AB [01:53:29]Write to MH i2c: E2 0D 00 BB 8B 80 0D 02 02 05 00 D2 00 32 A6 AB 00 00 1F [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 03 00 BB 8B 00 90 00 BA [01:53:29]RAPDU: 90 00 [01:53:29]wFMCommunicate OK [01:53:29]wFMCommunicate request_size=4 [01:53:29]MH_SAM_APDU [01:53:29]CAPDU: 80 0D 03 02 [01:53:29]Write to MH i2c: E2 08 00 BC 8B 80 0D 03 02 00 00 00 00 C2 [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 0B 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 0B 00 BC 8B 00 39 F5 92 97 B1 FE FE 8E 90 00 55 [01:53:29]RAPDU: 39 F5 92 97 B1 FE FE 8E 90 00 [01:53:29]wFMCommunicate OK [01:53:29]SAM_PROTO_SignData done [01:53:29]FM_MakeSignedData done [01:53:29]CreateOFDProtocolMessage [01:53:29]wFMCommunicate request_size=4 [01:53:29]MH_SAM_APDU [01:53:29]CAPDU: 80 11 00 00 [01:53:29]Write to MH i2c: E2 08 00 BD 8B 80 11 00 00 00 00 00 00 C2 [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:29]Read from MH i2c: E2 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 17 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: E2 17 00 BD 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [01:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:53:29]wFMCommunicate OK [01:53:29]CreateOFDProtocolMessage done [01:53:29]OFDSenderStorePacket 189394 [01:53:29]StoreOFDPacket docnum=189394 [01:53:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 11 07 01 AD 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 11 00 00 00 F4 03 04 00 1E FA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E3 02 00 35 04 06 00 EC D2 00 32 A6 AB 39 F5 92 97 B1 FE FE 8E [01:53:29]CheckFolder [01:53:29]dirname=/storage/ofd_packets [01:53:29]CheckFolder done [01:53:29]ProducePacketName [01:53:29]name=ofd_packets/00189394 [01:53:29]NVStorageSaveData ofd_packets/00189394 [01:53:29]File name is /storage/ofd_packets/00189394 [01:53:29]Write 301 bytes [01:53:29]NVStorageSaveData done [01:53:29]OFDSenderStorePacket done [01:53:29]KKMCreateOFDPacket done [01:53:29]NVStorageSaveData kkm_last_timestamp [01:53:29]File name is /storage/kkm_last_timestamp [01:53:29]Write 4 bytes [01:53:29]NVStorageSaveData done [01:53:29]ExternCall_PrintAddStr [01:53:29]wPrintStart [01:53:29]Write to MH i2c: 01 00 00 BE 8B 49 [01:53:29]Write i2c OK [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: 01 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: 01 07 00 [01:53:29]MH_I2C_Read... [01:53:29]Read from MH i2c: 01 07 00 BE 8B 00 00 00 00 00 FF 0F 5E [01:53:29]RasterBufferAndPrint [01:53:29]line Счет N : (1)211457 [01:53:29]line ИНН: 02508201610067 [01:53:29]line Контрольно-Кассовый Чек [01:53:29]line ПРОДАЖА [01:53:29]line ТРК (МРК, ГНК) : 42 [01:53:29]line Товар: 2710124130 [01:53:29]line Аи-92-К-3 [01:53:29]line 4.490 * 66.90 [01:53:29]line = 300.38 [01:53:29]line НДС 12% НСП 1% [01:53:29]line > о реализуемом товаре [01:53:29]line ОКРУГЛЕНИЕ: -0.38 [01:53:29]line ИТОГО: 300.00 [01:53:29]line Внесено: 300.00 [01:53:29]line СДАЧА: 0.00 [01:53:29]line НСП 1% : 2.66 [01:53:29]line НДС 12% : 31.90 [01:53:29]line Наличными: 300.00 [01:53:29]line Безнал.: 0.00 [01:53:29]line Место: АЗС № 86 "Партнер Нефть" [01:53:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:53:29]line СНО: Общий режим [01:53:29]line Чек 17 25.10.2024 01:53 [01:53:29]line Смена: 464 ФФД: 1.0 [01:53:29]line ЗНМ: 0300000155 [01:53:29]line РНМ: 0000000000100030 [01:53:29]line Версия ККМ: 001 [01:53:29]line ФМ: 0000000000965340 [01:53:29]line ФД: 189394 [01:53:29]line ФПД: 260386690606763 [01:53:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189394&fm=260386690606763&tin=02508201610067®Number=0000000000100030&sum=30000 [01:53:29]written 0, free lines is 4095 [01:53:30]Write to MH i2c: 01 00 00 E9 8B 74 [01:53:30]Write i2c OK [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: 01 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: 01 07 00 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: 01 07 00 E9 8B 00 00 00 00 00 4C 0C D3 [01:53:30]RasterBufferAndPrint [01:53:30]line [01:53:30]line [01:53:30]line [01:53:30]line [01:53:30]line [01:53:30]written 0, free lines is 3152 [01:53:30]MH_Cut [01:53:30]Write to MH i2c: D1 01 00 F0 8B 01 4D [01:53:30]Write i2c OK [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: D1 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: D1 01 00 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: D1 01 00 F0 8B 00 4C [01:53:30]Write to MH i2c: 01 00 00 F1 8B 7C [01:53:30]Write i2c OK [01:53:30]MH_I2C_Read... [01:53:31]*** Cut start [01:53:31]*** Partial cut [01:53:31]*** CUTSNS_PIN = 1 [01:53:31]*** CUTSNS_PIN = 0 [01:53:31]*** Brake cut motor [01:53:32]Read from MH i2c: 01 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: 01 07 00 [01:53:32]MH_I2C_Read... [01:53:32]*** Stop cut motor [01:53:32]*** Cut end [01:53:32]Read from MH i2c: 01 07 00 F1 8B 00 00 00 00 00 FF 0F 91 [01:53:32]process_action close_receipt done [01:53:32]requested_data is exist [01:53:32]produce_requested_data [01:53:32]requested_item fm.sn is exist - process it [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 11 00 00 [01:53:32]Write to MH i2c: E2 08 00 F2 8B 80 11 00 00 00 00 00 00 F7 [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 17 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 17 00 F2 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [01:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:53:32]wFMCommunicate OK [01:53:32]requested_item fd.num is exist - process it [01:53:32]SAM_PROTO_GetFieldsCounters [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 13 00 00 [01:53:32]Write to MH i2c: E2 08 00 F3 8B 80 13 00 00 00 00 00 00 FA [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 62 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 62 00 F3 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E3 02 00 0E 04 04 00 D0 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 BC [01:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 E3 02 00 0E 04 04 00 D0 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 [01:53:32]wFMCommunicate OK [01:53:32]SAM_PROTO_GetFieldsCounters done [01:53:32]requested_item shift.num is exist - process it [01:53:32]requested_item shift.opened is exist - process it [01:53:32]req_shift_opened [01:53:32]FM_GetShiftState [01:53:32]SAM_PROTO_GetShiftState [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 13 01 00 [01:53:32]Write to MH i2c: E2 08 00 F4 8B 80 13 01 00 00 00 00 00 FC [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:32]Read from MH i2c: E2 0E 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 0E 00 F4 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 81 [01:53:32]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [01:53:32]wFMCommunicate OK [01:53:32]SAM_PROTO_GetShiftState done [01:53:32]FM_GetShiftState done [01:53:32]req_shift_opened done [01:53:32]requested_item shift.open_date is exist - process it [01:53:32]req_shift_open_date [01:53:32]req_shift_open_date done [01:53:32]produce_requested_data done [01:53:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189394,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [01:53:32]process_action_free close_receipt [01:53:32]json_value_free [01:53:32]json_value_free done [01:53:32]process_json_proto returns [01:53:32]Send response to host [01:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189394,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [01:53:32]free response buf [01:53:32]execute_script done [01:53:32]execute_script returns [01:53:32]free content buf [01:53:32]Sock 8.Close socket [01:53:32]Sock 8.Thread stoped [01:54:05]ConnectInit Can't connect to host [01:54:05]CommunicateWithHost connect error [01:54:05]CommunicateWithHost err = -1 [01:54:05]OFD Sender: Server communicate error [01:54:05]OFD Sender: Processing packet 189393 [packets to send 1063, broken 1061] [01:54:05]ProducePacketName [01:54:05]name=ofd_packets/00189393 [01:54:05]OFD Sender: To server: pG, [01:54:05]CommunicateWithHost lk.salyk.kg:30040 [01:54:05]ConnectInit lk.salyk.kg [01:54:05]Connected sock=8 [01:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 0D 07 01 FA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB F9 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 E3 02 00 35 04 06 00 E1 8D 7C F2 C4 AF BE A6 48 0E 87 D8 AF 81 [01:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA A6 47 00 F8 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 39 36 35 33 34 30 10 04 04 00 D1 E3 02 00 F4 03 04 00 28 A4 1A 67 B6 04 01 00 00 79 A0 45 35 E7 BA EC 6E [01:54:06]CommunicateWithHost err = 0 [01:54:06]CheckOFDResponse [01:54:06]1017 (14) - 77093643461234 [01:54:06]1041 (16) - 0000000000965340 [01:54:06]1040 (4) - 189393 [01:54:06]1012 (4) - 24.10.2024 19:46 [01:54:06]1206 (1) - 0 [01:54:06]OFD Sender: Remove packet 189393 [01:54:06]ProducePacketName [01:54:06]name=ofd_packets/00189393 [01:54:06]NVStorageDeleteData [01:54:06]OFD Sender: Processing packet 189394 [packets to send 1062, broken 1061] [01:54:06]ProducePacketName [01:54:06]name=ofd_packets/00189394 [01:54:06]OFD Sender: To server: pG, [01:54:06]CommunicateWithHost lk.salyk.kg:30040 [01:54:06]ConnectInit lk.salyk.kg [01:54:07]Connected sock=8 [01:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 11 07 01 AD 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 11 00 00 00 F4 03 04 00 1E FA 1A 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 E3 02 00 35 04 06 00 EC D2 00 32 A6 AB 39 F5 92 97 B1 FE FE 8E [01:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 70 47 00 34 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 39 36 35 33 34 30 10 04 04 00 D2 E3 02 00 F4 03 04 00 29 A4 1A 67 B6 04 01 00 00 47 D5 A5 F7 86 94 34 1C [01:54:07]CommunicateWithHost err = 0 [01:54:07]CheckOFDResponse [01:54:07]1017 (14) - 77093643461234 [01:54:07]1041 (16) - 0000000000965340 [01:54:07]1040 (4) - 189394 [01:54:07]1012 (4) - 24.10.2024 19:46 [01:54:07]1206 (1) - 0 [01:54:07]OFD Sender: Remove packet 189394 [01:54:07]ProducePacketName [01:54:07]name=ofd_packets/00189394 [01:54:07]NVStorageDeleteData [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]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:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]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:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]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:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:45]ConnectInit Can't connect to host [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:54]accept exits with 9 [02:33:54]New connection [02:33:54]New thread 3067215204 created [02:33:54]Thread 3067071844 joined [02:33:54]Waiting for new connection... [02:33:54] Sock 9.Parse request [02:33:54]Sock 9.Check first char [02:33:54]Sock 9.First char is OK [02:33:54]request: POST /json_proto HTTP/1.0 [02:33:54]Method: POST [02:33:54]URL: /json_proto [02:33:54]Method is POST - this is cgi request [02:33:54]url: /json_proto [02:33:54]query_string will be loaded in cgi processing [02:33:54]execute_cgi json_proto POST (null) [02:33:54]execute_cgi path=json_proto method=POST [02:33:54]POST find Content-Length [02:33:54]Host: 172.17.42.131:8080 [02:33:54]Content-Length: 682 [02:33:54]Content-Type: application/json [02:33:54] [02:33:54]POST finish read [02:33:54]Found Content-Length = 682 [02:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:54]execute_script... [02:33: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)211458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:54]POST & json_proto [02:33:54]process_json_proto [02:33:54]json parsed OK: [02:33:54]protocol is kg_v1.0 [02:33:54]action value=close_receipt [02:33:54]process_action close_receipt [02:33:54]cmd_close_receipt [02:33:54]MH_GetDate [02:33:54]Write to MH i2c: F0 00 00 F5 8B 6F [02:33:54]Write i2c OK [02:33:54]MH_I2C_Read... [02:33:54]Read from MH i2c: F0 [02:33:54]MH_I2C_Read... [02:33:54]Read from MH i2c: F0 09 00 [02:33:54]MH_I2C_Read... [02:33:54]Read from MH i2c: F0 09 00 F5 8B 00 98 03 1B 67 A0 18 CA 66 7D [02:33:54]GetLastDocTimeStamp 1729821214 [02:33:54]current date 1729823640 [02:33:54]FM_GetShiftState [02:33:54]SAM_PROTO_GetShiftState [02:33:54]wFMCommunicate request_size=4 [02:33:54]MH_SAM_APDU [02:33:54]CAPDU: 80 13 01 00 [02:33:54]Write to MH i2c: E2 08 00 F6 8B 80 13 01 00 00 00 00 00 FE [02:33:54]Write i2c OK [02:33:54]MH_I2C_Read... [02:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:54]Read from MH i2c: E2 [02:33:54]MH_I2C_Read... [02:33:54]Read from MH i2c: E2 0E 00 [02:33:54]MH_I2C_Read... [02:33:54]Read from MH i2c: E2 0E 00 F6 8B 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 83 [02:33:54]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:33:54]wFMCommunicate OK [02:33:54]SAM_PROTO_GetShiftState done [02:33:54]FM_GetShiftState done [02:33:54]opened in 1729815317 [02:33:54]opened+sec_in_day 1729901717 [02:33:54]quantity*price = 100015 [02:33:54]sum+1 = 100017 [02:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 25.10.2024 02:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189395 ФПД: 185631020085875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T023400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189395&fm=185631020085875&tin=02508201610067®Number=0000000000100030&sum=100000 [02:33:55]StoreToDocumentArchive [02:33:55]shift 464 fd 189395 [02:33:55]save to /storage/0464/doc_00189395 [02:33:55]save last doc name /storage/0464/doc_00189395 to /storage/kkm_last_doc_name [02:33:55]save OK [02:33:55]Clear old archive folders... [02:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:33:55]tlvbuf is 017A9480 [02:33:55]SAM_PROTO_ClearQueue [02:33:55]wFMCommunicate request_size=4 [02:33:55]MH_SAM_APDU [02:33:55]CAPDU: 80 09 00 00 [02:33:55]Write to MH i2c: E2 08 00 03 8C 80 09 00 00 00 00 00 00 01 [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 03 8C 00 90 00 03 [02:33:55]RAPDU: 90 00 [02:33:55]wFMCommunicate OK [02:33:55]SAM_PROTO_ClearQueue done [02:33:55]KKMCreateOFDPacket [02:33:55]OFDProtocolAddRootSTLVToBuf [02:33:55]FM_MakeSignedData [02:33:55]FM_MakeSignedData [02:33:55]SAM_PROTO_SignData [02:33:55]wFMCommunicate request_size=4 [02:33:55]MH_SAM_APDU [02:33:55]CAPDU: 80 0D 01 02 [02:33:55]Write to MH i2c: E2 08 00 04 8C 80 0D 01 02 00 00 00 00 09 [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 04 8C 00 90 00 04 [02:33:55]RAPDU: 90 00 [02:33:55]wFMCommunicate OK [02:33:55]wFMCommunicate request_size=255 [02:33:55]MH_SAM_APDU [02:33: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 98 03 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E3 02 00 35 04 06 00 A8 [02:33:55]Write to MH i2c: E2 02 01 05 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 98 03 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E3 02 00 35 04 06 00 A8 00 00 D6 [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 05 8C 00 90 00 05 [02:33:55]RAPDU: 90 00 [02:33:55]wFMCommunicate OK [02:33:55]wFMCommunicate request_size=10 [02:33:55]MH_SAM_APDU [02:33:55]CAPDU: 80 0D 02 02 05 D4 97 02 F2 73 [02:33:55]Write to MH i2c: E2 0D 00 06 8C 80 0D 02 02 05 00 D4 97 02 F2 73 00 00 E8 [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 03 00 06 8C 00 90 00 06 [02:33:55]RAPDU: 90 00 [02:33:55]wFMCommunicate OK [02:33:55]wFMCommunicate request_size=4 [02:33:55]MH_SAM_APDU [02:33:55]CAPDU: 80 0D 03 02 [02:33:55]Write to MH i2c: E2 08 00 07 8C 80 0D 03 02 00 00 00 00 0E [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 0B 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 0B 00 07 8C 00 47 43 6D FD 02 BD 58 17 90 00 31 [02:33:55]RAPDU: 47 43 6D FD 02 BD 58 17 90 00 [02:33:55]wFMCommunicate OK [02:33:55]SAM_PROTO_SignData done [02:33:55]FM_MakeSignedData done [02:33:55]CreateOFDProtocolMessage [02:33:55]wFMCommunicate request_size=4 [02:33:55]MH_SAM_APDU [02:33:55]CAPDU: 80 11 00 00 [02:33:55]Write to MH i2c: E2 08 00 08 8C 80 11 00 00 00 00 00 00 0E [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:55]Read from MH i2c: E2 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 17 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: E2 17 00 08 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [02:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:33:55]wFMCommunicate OK [02:33:55]CreateOFDProtocolMessage done [02:33:55]OFDSenderStorePacket 189395 [02:33:55]StoreOFDPacket docnum=189395 [02:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 29 07 01 63 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 98 03 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E3 02 00 35 04 06 00 A8 D4 97 02 F2 73 47 43 6D FD 02 BD 58 17 [02:33:55]CheckFolder [02:33:55]dirname=/storage/ofd_packets [02:33:55]CheckFolder done [02:33:55]ProducePacketName [02:33:55]name=ofd_packets/00189395 [02:33:55]NVStorageSaveData ofd_packets/00189395 [02:33:55]File name is /storage/ofd_packets/00189395 [02:33:55]Write 301 bytes [02:33:55]NVStorageSaveData done [02:33:55]OFDSenderStorePacket done [02:33:55]KKMCreateOFDPacket done [02:33:55]NVStorageSaveData kkm_last_timestamp [02:33:55]File name is /storage/kkm_last_timestamp [02:33:55]Write 4 bytes [02:33:55]NVStorageSaveData done [02:33:55]ExternCall_PrintAddStr [02:33:55]wPrintStart [02:33:55]Write to MH i2c: 01 00 00 09 8C 95 [02:33:55]Write i2c OK [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: 01 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: 01 07 00 [02:33:55]MH_I2C_Read... [02:33:55]Read from MH i2c: 01 07 00 09 8C 00 00 00 00 00 FF 0F AA [02:33:55]RasterBufferAndPrint [02:33:55]line Счет N : (1)211458 [02:33:55]line ИНН: 02508201610067 [02:33:55]line Контрольно-Кассовый Чек [02:33:55]line ПРОДАЖА [02:33:55]line ТРК (МРК, ГНК) : 22 [02:33:55]line Товар: 2710124130 [02:33:55]line Аи-92-К-3 [02:33:55]line 14.950 * 66.90 [02:33:55]line = 1000.16 [02:33:55]line НДС 12% НСП 1% [02:33:55]line > о реализуемом товаре [02:33:55]line ОКРУГЛЕНИЕ: -0.16 [02:33:55]line ИТОГО: 1000.00 [02:33:55]line Внесено: 1000.00 [02:33:55]line СДАЧА: 0.00 [02:33:55]line НСП 1% : 8.85 [02:33:55]line НДС 12% : 106.21 [02:33:55]line Наличными: 1000.00 [02:33:55]line Безнал.: 0.00 [02:33:55]line Место: АЗС № 86 "Партнер Нефть" [02:33:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:33:55]line СНО: Общий режим [02:33:55]line Чек 18 25.10.2024 02:34 [02:33:55]line Смена: 464 ФФД: 1.0 [02:33:55]line ЗНМ: 0300000155 [02:33:55]line РНМ: 0000000000100030 [02:33:55]line Версия ККМ: 001 [02:33:55]line ФМ: 0000000000965340 [02:33:55]line ФД: 189395 [02:33:55]line ФПД: 185631020085875 [02:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T023400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189395&fm=185631020085875&tin=02508201610067®Number=0000000000100030&sum=100000 [02:33:55]written 0, free lines is 4095 [02:33:55]OFD Sender: Processing packet 189395 [packets to send 1062, broken 1061] [02:33:55]ProducePacketName [02:33:55]name=ofd_packets/00189395 [02:33:55]OFD Sender: To server: pG, [02:33:55]CommunicateWithHost lk.salyk.kg:30040 [02:33:55]ConnectInit lk.salyk.kg [02:33:56]Connected sock=10 [02:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 29 07 01 63 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 98 03 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 E3 02 00 35 04 06 00 A8 D4 97 02 F2 73 47 43 6D FD 02 BD 58 17 [02:33:56]Write to MH i2c: 01 00 00 34 8C C0 [02:33:56]Write i2c OK [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: 01 [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: 01 07 00 [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: 01 07 00 34 8C 00 00 00 00 00 4A 0C 1D [02:33:56]RasterBufferAndPrint [02:33:56]line [02:33:56]line [02:33:56]line [02:33:56]line [02:33:56]line [02:33:56]written 0, free lines is 3150 [02:33:56]MH_Cut [02:33:56]Write to MH i2c: D1 01 00 3B 8C 01 99 [02:33:56]Write i2c OK [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: D1 [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: D1 01 00 [02:33:56]MH_I2C_Read... [02:33:56]Read from MH i2c: D1 01 00 3B 8C 00 98 [02:33:56]Write to MH i2c: 01 00 00 3C 8C C8 [02:33:56]Write i2c OK [02:33:56]MH_I2C_Read... [02:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 55 57 47 00 0E 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 39 36 35 33 34 30 10 04 04 00 D3 E3 02 00 F4 03 04 00 7E AD 1A 67 B6 04 01 00 00 19 AA A7 17 66 71 E7 34 [02:33:56]CommunicateWithHost err = 0 [02:33:56]CheckOFDResponse [02:33:56]1017 (14) - 77093643461234 [02:33:56]1041 (16) - 0000000000965340 [02:33:56]1040 (4) - 189395 [02:33:56]1012 (4) - 24.10.2024 20:26 [02:33:56]1206 (1) - 0 [02:33:56]OFD Sender: Remove packet 189395 [02:33:56]ProducePacketName [02:33:56]name=ofd_packets/00189395 [02:33:56]NVStorageDeleteData [02:33:56]OFD Sender: No OFD packet to send [02:33:57]*** Cut start [02:33:57]*** Partial cut [02:33:57]*** CUTSNS_PIN = 1 [02:33:57]*** CUTSNS_PIN = 0 [02:33:57]*** Brake cut motor [02:33:58]Read from MH i2c: 01 [02:33:58]MH_I2C_Read... [02:33:58]*** Stop cut motor [02:33:58]*** Cut end [02:33:58]Read from MH i2c: 01 07 00 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: 01 07 00 3C 8C 00 00 00 00 00 FF 0F DD [02:33:58]process_action close_receipt done [02:33:58]requested_data is exist [02:33:58]produce_requested_data [02:33:58]requested_item fm.sn is exist - process it [02:33:58]wFMCommunicate request_size=4 [02:33:58]MH_SAM_APDU [02:33:58]CAPDU: 80 11 00 00 [02:33:58]Write to MH i2c: E2 08 00 3D 8C 80 11 00 00 00 00 00 00 43 [02:33:58]Write i2c OK [02:33:58]MH_I2C_Read... [02:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:58]Read from MH i2c: E2 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 17 00 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 17 00 3D 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [02:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:33:58]wFMCommunicate OK [02:33:58]requested_item fd.num is exist - process it [02:33:58]SAM_PROTO_GetFieldsCounters [02:33:58]wFMCommunicate request_size=4 [02:33:58]MH_SAM_APDU [02:33:58]CAPDU: 80 13 00 00 [02:33:58]Write to MH i2c: E2 08 00 3E 8C 80 13 00 00 00 00 00 00 46 [02:33:58]Write i2c OK [02:33:58]MH_I2C_Read... [02:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:33:58]Read from MH i2c: E2 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 62 00 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 62 00 3E 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E3 02 00 0E 04 04 00 D0 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 0C [02:33:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 E3 02 00 0E 04 04 00 D0 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:33:58]wFMCommunicate OK [02:33:58]SAM_PROTO_GetFieldsCounters done [02:33:58]requested_item shift.num is exist - process it [02:33:58]requested_item shift.opened is exist - process it [02:33:58]req_shift_opened [02:33:58]FM_GetShiftState [02:33:58]SAM_PROTO_GetShiftState [02:33:58]wFMCommunicate request_size=4 [02:33:58]MH_SAM_APDU [02:33:58]CAPDU: 80 13 01 00 [02:33:58]Write to MH i2c: E2 08 00 3F 8C 80 13 01 00 00 00 00 00 48 [02:33:58]Write i2c OK [02:33:58]MH_I2C_Read... [02:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:58]Read from MH i2c: E2 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 0E 00 [02:33:58]MH_I2C_Read... [02:33:58]Read from MH i2c: E2 0E 00 3F 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 CD [02:33:58]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:33:58]wFMCommunicate OK [02:33:58]SAM_PROTO_GetShiftState done [02:33:58]FM_GetShiftState done [02:33:58]req_shift_opened done [02:33:58]requested_item shift.open_date is exist - process it [02:33:58]req_shift_open_date [02:33:58]req_shift_open_date done [02:33:58]produce_requested_data done [02:33:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189395,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [02:33:58]process_action_free close_receipt [02:33:58]json_value_free [02:33:58]json_value_free done [02:33:58]process_json_proto returns [02:33:58]Send response to host [02:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189395,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [02:33:58]free response buf [02:33:58]execute_script done [02:33:58]execute_script returns [02:33:58]free content buf [02:33:58]Sock 9.Close socket [02:33:58]Sock 9.Thread stoped [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]accept exits with 8 [02:45:14]New connection [02:45:14]New thread 3067071844 created [02:45:14]Thread 3067215204 joined [02:45:14]Waiting for new connection... [02:45:14] Sock 8.Parse request [02:45:14]Sock 8.Check first char [02:45:14]Sock 8.First char is OK [02:45:14]request: POST /json_proto HTTP/1.0 [02:45:14]Method: POST [02:45:14]URL: /json_proto [02:45:14]Method is POST - this is cgi request [02:45:14]url: /json_proto [02:45:14]query_string will be loaded in cgi processing [02:45:14]execute_cgi json_proto POST (null) [02:45:14]execute_cgi path=json_proto method=POST [02:45:14]POST find Content-Length [02:45:14]Host: 172.17.42.131:8080 [02:45:14]Content-Length: 688 [02:45:14]Content-Type: application/json [02:45:14] [02:45:14]POST finish read [02:45:14]Found Content-Length = 688 [02:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [02:45:14]execute_script... [02: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)211459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [02:45:14]POST & json_proto [02:45:14]process_json_proto [02:45:14]json parsed OK: [02:45:14]protocol is kg_v1.0 [02:45:14]action value=close_receipt [02:45:14]process_action close_receipt [02:45:14]cmd_close_receipt [02:45:14]MH_GetDate [02:45:14]Write to MH i2c: F0 00 00 40 8C BB [02:45:14]Write i2c OK [02:45:14]MH_I2C_Read... [02:45:14]Read from MH i2c: F0 [02:45:14]MH_I2C_Read... [02:45:14]Read from MH i2c: F0 09 00 [02:45:14]MH_I2C_Read... [02:45:14]Read from MH i2c: F0 09 00 40 8C 00 40 06 1B 67 A0 18 CA 66 74 [02:45:14]GetLastDocTimeStamp 1729823640 [02:45:14]current date 1729824320 [02:45:14]FM_GetShiftState [02:45:14]SAM_PROTO_GetShiftState [02:45:14]wFMCommunicate request_size=4 [02:45:14]MH_SAM_APDU [02:45:14]CAPDU: 80 13 01 00 [02:45:14]Write to MH i2c: E2 08 00 41 8C 80 13 01 00 00 00 00 00 4A [02:45:14]Write i2c OK [02:45:14]MH_I2C_Read... [02:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:14]Read from MH i2c: E2 [02:45:14]MH_I2C_Read... [02:45:14]Read from MH i2c: E2 0E 00 [02:45:14]MH_I2C_Read... [02:45:14]Read from MH i2c: E2 0E 00 41 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 CF [02:45:14]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:45:14]wFMCommunicate OK [02:45:14]SAM_PROTO_GetShiftState done [02:45:14]FM_GetShiftState done [02:45:14]opened in 1729815317 [02:45:14]opened+sec_in_day 1729901717 [02:45:14]quantity*price = 200025 [02:45:14]sum+1 = 200026 [02:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 19 25.10.2024 02:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189396 ФПД: 4056633002384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189396&fm=4056633002384&tin=02508201610067®Number=0000000000100030&sum=200000 [02:45:15]StoreToDocumentArchive [02:45:15]shift 464 fd 189396 [02:45:15]save to /storage/0464/doc_00189396 [02:45:15]save last doc name /storage/0464/doc_00189396 to /storage/kkm_last_doc_name [02:45:15]save OK [02:45:15]Clear old archive folders... [02:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:45:15]tlvbuf is 017008F0 [02:45:15]SAM_PROTO_ClearQueue [02:45:15]wFMCommunicate request_size=4 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 09 00 00 [02:45:15]Write to MH i2c: E2 08 00 4E 8C 80 09 00 00 00 00 00 00 4C [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:45:15]Read from MH i2c: E2 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 4E 8C 00 90 00 4E [02:45:15]RAPDU: 90 00 [02:45:15]wFMCommunicate OK [02:45:15]SAM_PROTO_ClearQueue done [02:45:15]KKMCreateOFDPacket [02:45:15]OFDProtocolAddRootSTLVToBuf [02:45:15]FM_MakeSignedData [02:45:15]FM_MakeSignedData [02:45:15]SAM_PROTO_SignData [02:45:15]wFMCommunicate request_size=4 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 0D 01 02 [02:45:15]Write to MH i2c: E2 08 00 4F 8C 80 0D 01 02 00 00 00 00 54 [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:45:15]Read from MH i2c: E2 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 4F 8C 00 90 00 4F [02:45:15]RAPDU: 90 00 [02:45:15]wFMCommunicate OK [02:45:15]wFMCommunicate request_size=255 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 00 00 00 F4 03 04 00 40 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E3 02 [02:45:15]Write to MH i2c: E2 02 01 50 8C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 00 00 00 F4 03 04 00 40 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E3 02 00 00 5A [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:15]Read from MH i2c: E2 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 50 8C 00 90 00 50 [02:45:15]RAPDU: 90 00 [02:45:15]wFMCommunicate OK [02:45:15]wFMCommunicate request_size=16 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 03 B0 82 2B 49 90 [02:45:15]Write to MH i2c: E2 13 00 51 8C 80 0D 02 02 0B 00 00 35 04 06 00 03 B0 82 2B 49 90 00 00 E5 [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:15]Read from MH i2c: E2 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 03 00 51 8C 00 90 00 51 [02:45:15]RAPDU: 90 00 [02:45:15]wFMCommunicate OK [02:45:15]wFMCommunicate request_size=4 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 0D 03 02 [02:45:15]Write to MH i2c: E2 08 00 52 8C 80 0D 03 02 00 00 00 00 59 [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:45:15]Read from MH i2c: E2 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 0B 00 [02:45:15]MH_I2C_Read... [02:45:15]Read from MH i2c: E2 0B 00 52 8C 00 30 F0 48 89 D9 16 10 FD 90 00 47 [02:45:15]RAPDU: 30 F0 48 89 D9 16 10 FD 90 00 [02:45:15]wFMCommunicate OK [02:45:15]SAM_PROTO_SignData done [02:45:15]FM_MakeSignedData done [02:45:15]CreateOFDProtocolMessage [02:45:15]wFMCommunicate request_size=4 [02:45:15]MH_SAM_APDU [02:45:15]CAPDU: 80 11 00 00 [02:45:15]Write to MH i2c: E2 08 00 53 8C 80 11 00 00 00 00 00 00 59 [02:45:15]Write i2c OK [02:45:15]MH_I2C_Read... [02:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:16]Read from MH i2c: E2 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: E2 17 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: E2 17 00 53 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [02:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:45:16]wFMCommunicate OK [02:45:16]CreateOFDProtocolMessage done [02:45:16]OFDSenderStorePacket 189396 [02:45:16]StoreOFDPacket docnum=189396 [02:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A B2 0D 01 D9 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 00 00 00 F4 03 04 00 40 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E3 02 00 35 04 06 00 03 B0 82 2B 49 90 30 F0 48 89 D9 16 10 FD [02:45:16]CheckFolder [02:45:16]dirname=/storage/ofd_packets [02:45:16]CheckFolder done [02:45:16]ProducePacketName [02:45:16]name=ofd_packets/00189396 [02:45:16]NVStorageSaveData ofd_packets/00189396 [02:45:16]File name is /storage/ofd_packets/00189396 [02:45:16]Write 307 bytes [02:45:16]NVStorageSaveData done [02:45:16]OFDSenderStorePacket done [02:45:16]KKMCreateOFDPacket done [02:45:16]NVStorageSaveData kkm_last_timestamp [02:45:16]File name is /storage/kkm_last_timestamp [02:45:16]Write 4 bytes [02:45:16]NVStorageSaveData done [02:45:16]ExternCall_PrintAddStr [02:45:16]wPrintStart [02:45:16]Write to MH i2c: 01 00 00 54 8C E0 [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 07 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 07 00 54 8C 00 00 00 00 00 FF 0F F5 [02:45:16]RasterBufferAndPrint [02:45:16]line Счет N : (1)211459 [02:45:16]line ИНН: 02508201610067 [02:45:16]line Контрольно-Кассовый Чек [02:45:16]line ПРОДАЖА [02:45:16]line ТРК (МРК, ГНК) : 31 [02:45:16]line Товар: 2710194210 [02:45:16]line D-ENERGY ДТ-К-5 [02:45:16]line 25.910 * 77.20 [02:45:16]line = 2000.25 [02:45:16]line НДС 12% НСП 1% [02:45:16]line > о реализуемом товаре [02:45:16]line ОКРУГЛЕНИЕ: -0.25 [02:45:16]line ИТОГО: 2000.00 [02:45:16]line Внесено: 2000.00 [02:45:16]line СДАЧА: 0.00 [02:45:16]line НСП 1% : 17.70 [02:45:16]line НДС 12% : 212.42 [02:45:16]line Наличными: 2000.00 [02:45:16]line Безнал.: 0.00 [02:45:16]line Место: АЗС № 86 "Партнер Нефть" [02:45:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:45:16]line СНО: Общий режим [02:45:16]line Чек 19 25.10.2024 02:45 [02:45:16]line Смена: 464 ФФД: 1.0 [02:45:16]line ЗНМ: 0300000155 [02:45:16]line РНМ: 0000000000100030 [02:45:16]line Версия ККМ: 001 [02:45:16]line ФМ: 0000000000965340 [02:45:16]line ФД: 189396 [02:45:16]line ФПД: 4056633002384 [02:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189396&fm=4056633002384&tin=02508201610067®Number=0000000000100030&sum=200000 [02:45:16]OFD Sender: Processing packet 189396 [packets to send 1062, broken 1061] [02:45:16]ProducePacketName [02:45:16]name=ofd_packets/00189396 [02:45:16]OFD Sender: To server: pG, [02:45:16]CommunicateWithHost lk.salyk.kg:30040 [02:45:16]ConnectInit lk.salyk.kg [02:45:16]written 0, free lines is 4095 [02:45:16]Connected sock=10 [02:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A B2 0D 01 D9 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 00 00 00 F4 03 04 00 40 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 E3 02 00 35 04 06 00 03 B0 82 2B 49 90 30 F0 48 89 D9 16 10 FD [02:45:16]Write to MH i2c: 01 00 00 7F 8C 0B [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 07 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: 01 07 00 7F 8C 00 00 00 00 00 45 0C 63 [02:45:16]RasterBufferAndPrint [02:45:16]line [02:45:16]line [02:45:16]line [02:45:16]line [02:45:16]line [02:45:16]written 0, free lines is 3145 [02:45:16]MH_Cut [02:45:16]Write to MH i2c: D1 01 00 86 8C 01 E4 [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: D1 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: D1 01 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: D1 01 00 86 8C 00 E3 [02:45:16]Write to MH i2c: 01 00 00 87 8C 13 [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E9 9F 47 00 69 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 39 36 35 33 34 30 10 04 04 00 D4 E3 02 00 F4 03 04 00 27 B0 1A 67 B6 04 01 00 00 6A B2 C6 A6 00 3C D0 1F [02:45:16]CommunicateWithHost err = 0 [02:45:16]CheckOFDResponse [02:45:16]1017 (14) - 77093643461234 [02:45:16]1041 (16) - 0000000000965340 [02:45:16]1040 (4) - 189396 [02:45:16]1012 (4) - 24.10.2024 20:37 [02:45:16]1206 (1) - 0 [02:45:16]OFD Sender: Remove packet 189396 [02:45:16]ProducePacketName [02:45:16]name=ofd_packets/00189396 [02:45:16]NVStorageDeleteData [02:45:17]OFD Sender: No OFD packet to send [02:45:18]*** Cut start [02:45:18]*** Partial cut [02:45:18]*** CUTSNS_PIN = 1 [02:45:18]*** CUTSNS_PIN = 0 [02:45:18]*** Brake cut motor [02:45:18]Read from MH i2c: 01 [02:45:18]MH_I2C_Read... [02:45:18]*** Stop cut motor [02:45:18]*** Cut end [02:45:18]Read from MH i2c: 01 07 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: 01 07 00 87 8C 00 00 00 00 00 FF 0F 28 [02:45:18]process_action close_receipt done [02:45:18]requested_data is exist [02:45:18]produce_requested_data [02:45:18]requested_item fm.sn is exist - process it [02:45:18]wFMCommunicate request_size=4 [02:45:18]MH_SAM_APDU [02:45:18]CAPDU: 80 11 00 00 [02:45:18]Write to MH i2c: E2 08 00 88 8C 80 11 00 00 00 00 00 00 8E [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:18]Read from MH i2c: E2 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: E2 17 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: E2 17 00 88 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [02:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:45:18]wFMCommunicate OK [02:45:18]requested_item fd.num is exist - process it [02:45:18]SAM_PROTO_GetFieldsCounters [02:45:18]wFMCommunicate request_size=4 [02:45:18]MH_SAM_APDU [02:45:18]CAPDU: 80 13 00 00 [02:45:18]Write to MH i2c: E2 08 00 89 8C 80 13 00 00 00 00 00 00 91 [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:45:19]Read from MH i2c: E2 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 62 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 62 00 89 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E3 02 00 0E 04 04 00 D0 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 5B [02:45:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 E3 02 00 0E 04 04 00 D0 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:45:19]wFMCommunicate OK [02:45:19]SAM_PROTO_GetFieldsCounters done [02:45:19]requested_item shift.num is exist - process it [02:45:19]requested_item shift.opened is exist - process it [02:45:19]req_shift_opened [02:45:19]FM_GetShiftState [02:45:19]SAM_PROTO_GetShiftState [02:45:19]wFMCommunicate request_size=4 [02:45:19]MH_SAM_APDU [02:45:19]CAPDU: 80 13 01 00 [02:45:19]Write to MH i2c: E2 08 00 8A 8C 80 13 01 00 00 00 00 00 93 [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:19]Read from MH i2c: E2 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 0E 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 0E 00 8A 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 18 [02:45:19]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:45:19]wFMCommunicate OK [02:45:19]SAM_PROTO_GetShiftState done [02:45:19]FM_GetShiftState done [02:45:19]req_shift_opened done [02:45:19]requested_item shift.open_date is exist - process it [02:45:19]req_shift_open_date [02:45:19]req_shift_open_date done [02:45:19]produce_requested_data done [02:45:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189396,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [02:45:19]process_action_free close_receipt [02:45:19]json_value_free [02:45:19]json_value_free done [02:45:19]process_json_proto returns [02:45:19]Send response to host [02:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189396,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [02:45:19]free response buf [02:45:19]execute_script done [02:45:19]execute_script returns [02:45:19]free content buf [02:45:19]Sock 8.Close socket [02:45:19]Sock 8.Thread stoped [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:23]accept exits with 9 [02:47:23]New connection [02:47:23]New thread 3067215204 created [02:47:23]Thread 3067071844 joined [02:47:23]Waiting for new connection... [02:47:23] Sock 9.Parse request [02:47:23]Sock 9.Check first char [02:47:23]Sock 9.First char is OK [02:47:23]request: POST /json_proto HTTP/1.0 [02:47:23]Method: POST [02:47:23]URL: /json_proto [02:47:23]Method is POST - this is cgi request [02:47:23]url: /json_proto [02:47:23]query_string will be loaded in cgi processing [02:47:23]execute_cgi json_proto POST (null) [02:47:23]execute_cgi path=json_proto method=POST [02:47:23]POST find Content-Length [02:47:23]Host: 172.17.42.131:8080 [02:47:23]Content-Length: 983 [02:47:23]Content-Type: application/json [02:47:23] [02:47:23]POST finish read [02:47:23]Found Content-Length = 983 [02:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [02:47:23]execute_script... [02:47: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)211460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [02:47:23]POST & json_proto [02:47:23]process_json_proto [02:47:23]json parsed OK: [02:47:23]protocol is kg_v1.0 [02:47:23]action value=close_receipt [02:47:23]process_action close_receipt [02:47:23]cmd_close_receipt [02:47:23]MH_GetDate [02:47:23]Write to MH i2c: F0 00 00 8B 8C 06 [02:47:23]Write i2c OK [02:47:23]MH_I2C_Read... [02:47:23]Read from MH i2c: F0 [02:47:23]MH_I2C_Read... [02:47:23]Read from MH i2c: F0 09 00 [02:47:23]MH_I2C_Read... [02:47:23]Read from MH i2c: F0 09 00 8B 8C 00 C2 06 1B 67 A0 18 CA 66 41 [02:47:23]GetLastDocTimeStamp 1729824320 [02:47:23]current date 1729824450 [02:47:23]FM_GetShiftState [02:47:23]SAM_PROTO_GetShiftState [02:47:23]wFMCommunicate request_size=4 [02:47:23]MH_SAM_APDU [02:47:23]CAPDU: 80 13 01 00 [02:47:23]Write to MH i2c: E2 08 00 8C 8C 80 13 01 00 00 00 00 00 95 [02:47:23]Write i2c OK [02:47:23]MH_I2C_Read... [02:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:23]Read from MH i2c: E2 [02:47:23]MH_I2C_Read... [02:47:23]Read from MH i2c: E2 0E 00 [02:47:23]MH_I2C_Read... [02:47:23]Read from MH i2c: E2 0E 00 8C 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 1A [02:47:23]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:47:23]wFMCommunicate OK [02:47:23]SAM_PROTO_GetShiftState done [02:47:23]FM_GetShiftState done [02:47:23]opened in 1729815317 [02:47:23]opened+sec_in_day 1729901717 [02:47:23]quantity*price = 140037 [02:47:23]sum+1 = 140039 [02:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 25.10.2024 02:47 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 21.25 сом ФМ: 0000000000965340 ФД: 189397 ФПД: 242238116571972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189397&fm=242238116571972&tin=02508201610067®Number=0000000000100030&sum=140000 [02:47:24]StoreToDocumentArchive [02:47:24]shift 464 fd 189397 [02:47:24]save to /storage/0464/doc_00189397 [02:47:24]save last doc name /storage/0464/doc_00189397 to /storage/kkm_last_doc_name [02:47:24]save OK [02:47:24]Clear old archive folders... [02:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:47:24]tlvbuf is 0174D570 [02:47:24]SAM_PROTO_ClearQueue [02:47:24]wFMCommunicate request_size=4 [02:47:24]MH_SAM_APDU [02:47:24]CAPDU: 80 09 00 00 [02:47:24]Write to MH i2c: E2 08 00 99 8C 80 09 00 00 00 00 00 00 97 [02:47:24]Write i2c OK [02:47:24]MH_I2C_Read... [02:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:47:24]Read from MH i2c: E2 [02:47:24]MH_I2C_Read... [02:47:24]Read from MH i2c: E2 03 00 [02:47:24]MH_I2C_Read... [02:47:24]Read from MH i2c: E2 03 00 99 8C 00 90 00 99 [02:47:24]RAPDU: 90 00 [02:47:24]wFMCommunicate OK [02:47:24]SAM_PROTO_ClearQueue done [02:47:24]KKMCreateOFDPacket [02:47:24]OFDProtocolAddRootSTLVToBuf [02:47:24]FM_MakeSignedData [02:47:24]FM_MakeSignedData [02:47:24]SAM_PROTO_SignData [02:47:24]wFMCommunicate request_size=4 [02:47:24]MH_SAM_APDU [02:47:24]CAPDU: 80 0D 01 02 [02:47:24]Write to MH i2c: E2 08 00 9A 8C 80 0D 01 02 00 00 00 00 9F [02:47:24]Write i2c OK [02:47:24]MH_I2C_Read... [02:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:47:24]Read from MH i2c: E2 [02:47:24]MH_I2C_Read... [02:47:24]Read from MH i2c: E2 03 00 [02:47:24]MH_I2C_Read... [02:47:24]Read from MH i2c: E2 03 00 9A 8C 00 90 00 9A [02:47:24]RAPDU: 90 00 [02:47:24]wFMCommunicate OK [02:47:24]wFMCommunicate request_size=255 [02:47:24]MH_SAM_APDU [02:47: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 33 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 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 17 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 14 00 00 00 F4 03 04 00 C2 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E3 02 00 35 04 06 00 DC [02:47:24]Write to MH i2c: E2 02 01 9B 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 33 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 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 17 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 14 00 00 00 F4 03 04 00 C2 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E3 02 00 35 04 06 00 DC 00 00 DD [02:47:24]Write i2c OK [02:47:24]MH_I2C_Read... [02:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:25]Read from MH i2c: E2 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 03 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 03 00 9B 8C 00 90 00 9B [02:47:25]RAPDU: 90 00 [02:47:25]wFMCommunicate OK [02:47:25]wFMCommunicate request_size=10 [02:47:25]MH_SAM_APDU [02:47:25]CAPDU: 80 0D 02 02 05 50 74 E3 AB 44 [02:47:25]Write to MH i2c: E2 0D 00 9C 8C 80 0D 02 02 05 00 50 74 E3 AB 44 00 00 42 [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:25]Read from MH i2c: E2 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 03 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 03 00 9C 8C 00 90 00 9C [02:47:25]RAPDU: 90 00 [02:47:25]wFMCommunicate OK [02:47:25]wFMCommunicate request_size=4 [02:47:25]MH_SAM_APDU [02:47:25]CAPDU: 80 0D 03 02 [02:47:25]Write to MH i2c: E2 08 00 9D 8C 80 0D 03 02 00 00 00 00 A4 [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:47:25]Read from MH i2c: E2 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 0B 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 0B 00 9D 8C 00 FE 4B 1A 0D 08 DB 56 A3 90 00 F1 [02:47:25]RAPDU: FE 4B 1A 0D 08 DB 56 A3 90 00 [02:47:25]wFMCommunicate OK [02:47:25]SAM_PROTO_SignData done [02:47:25]FM_MakeSignedData done [02:47:25]CreateOFDProtocolMessage [02:47:25]wFMCommunicate request_size=4 [02:47:25]MH_SAM_APDU [02:47:25]CAPDU: 80 11 00 00 [02:47:25]Write to MH i2c: E2 08 00 9E 8C 80 11 00 00 00 00 00 00 A4 [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:25]Read from MH i2c: E2 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 17 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: E2 17 00 9E 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [02:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:47:25]wFMCommunicate OK [02:47:25]CreateOFDProtocolMessage done [02:47:25]OFDSenderStorePacket 189397 [02:47:25]StoreOFDPacket docnum=189397 [02:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 84 07 01 BB 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 33 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 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 17 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 14 00 00 00 F4 03 04 00 C2 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E3 02 00 35 04 06 00 DC 50 74 E3 AB 44 FE 4B 1A 0D 08 DB 56 A3 [02:47:25]CheckFolder [02:47:25]dirname=/storage/ofd_packets [02:47:25]CheckFolder done [02:47:25]ProducePacketName [02:47:25]name=ofd_packets/00189397 [02:47:25]NVStorageSaveData ofd_packets/00189397 [02:47:25]File name is /storage/ofd_packets/00189397 [02:47:25]Write 301 bytes [02:47:25]NVStorageSaveData done [02:47:25]OFDSenderStorePacket done [02:47:25]KKMCreateOFDPacket done [02:47:25]NVStorageSaveData kkm_last_timestamp [02:47:25]File name is /storage/kkm_last_timestamp [02:47:25]Write 4 bytes [02:47:25]NVStorageSaveData done [02:47:25]ExternCall_PrintAddStr [02:47:25]wPrintStart [02:47:25]Write to MH i2c: 01 00 00 9F 8C 2B [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 07 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 07 00 9F 8C 00 00 00 00 00 FF 0F 40 [02:47:25]RasterBufferAndPrint [02:47:25]line Счет N : (1)211460 [02:47:25]line ИНН: 02508201610067 [02:47:25]line Контрольно-Кассовый Чек [02:47:25]line ПРОДАЖА [02:47:25]line ТРК (МРК, ГНК) : 12 [02:47:25]line Товар: 2710124130 [02:47:25]line Аи-92-К-3 [02:47:25]line 21.250 * 65.90 [02:47:25]line = 1400.38 [02:47:25]line НДС 12% НСП 1% [02:47:25]line > о реализуемом товаре [02:47:25]line ОКРУГЛЕНИЕ: -0.38 [02:47:25]line ИТОГО: 1400.00 [02:47:25]line Внесено: 1400.00 [02:47:25]line СДАЧА: 0.00 [02:47:25]line НСП 1% : 12.39 [02:47:25]line НДС 12% : 148.71 [02:47:25]line Наличными: 1400.00 [02:47:25]line Безнал.: 0.00 [02:47:25]line Место: АЗС № 86 "Партнер Нефть" [02:47:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:47:25]line СНО: Общий режим [02:47:25]line Чек 20 25.10.2024 02:47 [02:47:25]line Смена: 464 ФФД: 1.0 [02:47:25]line ЗНМ: 0300000155 [02:47:25]line РНМ: 0000000000100030 [02:47:25]line Версия ККМ: 001 [02:47:25]line [02:47:25]line Дисконтная программа [02:47:25]line АИ-92 [02:47:25]line номер 86 [02:47:25]line сэкономлено 21.25 сом [02:47:25]line ФМ: 0000000000965340 [02:47:25]line ФД: 189397 [02:47:25]line ФПД: 242238116571972 [02:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189397&fm=242238116571972&tin=02508201610067®Number=0000000000100030&sum=140000 [02:47:25]written 0, free lines is 4095 [02:47:25]OFD Sender: Processing packet 189397 [packets to send 1062, broken 1061] [02:47:25]ProducePacketName [02:47:25]name=ofd_packets/00189397 [02:47:25]OFD Sender: To server: pG, [02:47:25]CommunicateWithHost lk.salyk.kg:30040 [02:47:25]ConnectInit lk.salyk.kg [02:47:25]Connected sock=10 [02:47:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 84 07 01 BB 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 33 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 06 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 17 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 14 00 00 00 F4 03 04 00 C2 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 E3 02 00 35 04 06 00 DC 50 74 E3 AB 44 FE 4B 1A 0D 08 DB 56 A3 [02:47:25]Write to MH i2c: 01 00 00 CF 8C 5B [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 07 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: 01 07 00 CF 8C 00 00 00 00 00 D6 0B 43 [02:47:25]RasterBufferAndPrint [02:47:25]line [02:47:25]line [02:47:25]line [02:47:25]line [02:47:25]line [02:47:25]written 0, free lines is 3032 [02:47:25]MH_Cut [02:47:25]Write to MH i2c: D1 01 00 D6 8C 01 34 [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: D1 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: D1 01 00 [02:47:25]MH_I2C_Read... [02:47:25]Read from MH i2c: D1 01 00 D6 8C 00 33 [02:47:25]Write to MH i2c: 01 00 00 D7 8C 63 [02:47:25]Write i2c OK [02:47:25]MH_I2C_Read... [02:47:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 41 47 00 9B 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 39 36 35 33 34 30 10 04 04 00 D5 E3 02 00 F4 03 04 00 A8 B0 1A 67 B6 04 01 00 00 CC 7E 93 77 9C 16 C5 7F [02:47:25]CommunicateWithHost err = 0 [02:47:25]CheckOFDResponse [02:47:25]1017 (14) - 77093643461234 [02:47:25]1041 (16) - 0000000000965340 [02:47:25]1040 (4) - 189397 [02:47:25]1012 (4) - 24.10.2024 20:40 [02:47:25]1206 (1) - 0 [02:47:25]OFD Sender: Remove packet 189397 [02:47:25]ProducePacketName [02:47:25]name=ofd_packets/00189397 [02:47:25]NVStorageDeleteData [02:47:26]OFD Sender: No OFD packet to send [02:47:27]*** Cut start [02:47:27]*** Partial cut [02:47:27]*** CUTSNS_PIN = 1 [02:47:27]*** CUTSNS_PIN = 0 [02:47:27]*** Brake cut motor [02:47:27]Read from MH i2c: 01 [02:47:28]MH_I2C_Read... [02:47:28]*** Stop cut motor [02:47:28]*** Cut end [02:47:28]Read from MH i2c: 01 07 00 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: 01 07 00 D7 8C 00 00 00 00 00 FF 0F 78 [02:47:28]process_action close_receipt done [02:47:28]requested_data is exist [02:47:28]produce_requested_data [02:47:28]requested_item fm.sn is exist - process it [02:47:28]wFMCommunicate request_size=4 [02:47:28]MH_SAM_APDU [02:47:28]CAPDU: 80 11 00 00 [02:47:28]Write to MH i2c: E2 08 00 D8 8C 80 11 00 00 00 00 00 00 DE [02:47:28]Write i2c OK [02:47:28]MH_I2C_Read... [02:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:28]Read from MH i2c: E2 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 17 00 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 17 00 D8 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [02:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:47:28]wFMCommunicate OK [02:47:28]requested_item fd.num is exist - process it [02:47:28]SAM_PROTO_GetFieldsCounters [02:47:28]wFMCommunicate request_size=4 [02:47:28]MH_SAM_APDU [02:47:28]CAPDU: 80 13 00 00 [02:47:28]Write to MH i2c: E2 08 00 D9 8C 80 13 00 00 00 00 00 00 E1 [02:47:28]Write i2c OK [02:47:28]MH_I2C_Read... [02:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:47:28]Read from MH i2c: E2 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 62 00 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 62 00 D9 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E3 02 00 0E 04 04 00 D0 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 AF [02:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 E3 02 00 0E 04 04 00 D0 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:47:28]wFMCommunicate OK [02:47:28]SAM_PROTO_GetFieldsCounters done [02:47:28]requested_item shift.num is exist - process it [02:47:28]requested_item shift.opened is exist - process it [02:47:28]req_shift_opened [02:47:28]FM_GetShiftState [02:47:28]SAM_PROTO_GetShiftState [02:47:28]wFMCommunicate request_size=4 [02:47:28]MH_SAM_APDU [02:47:28]CAPDU: 80 13 01 00 [02:47:28]Write to MH i2c: E2 08 00 DA 8C 80 13 01 00 00 00 00 00 E3 [02:47:28]Write i2c OK [02:47:28]MH_I2C_Read... [02:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:28]Read from MH i2c: E2 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 0E 00 [02:47:28]MH_I2C_Read... [02:47:28]Read from MH i2c: E2 0E 00 DA 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 68 [02:47:28]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:47:28]wFMCommunicate OK [02:47:28]SAM_PROTO_GetShiftState done [02:47:28]FM_GetShiftState done [02:47:28]req_shift_opened done [02:47:28]requested_item shift.open_date is exist - process it [02:47:28]req_shift_open_date [02:47:28]req_shift_open_date done [02:47:28]produce_requested_data done [02:47:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189397,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [02:47:28]process_action_free close_receipt [02:47:28]json_value_free [02:47:28]json_value_free done [02:47:28]process_json_proto returns [02:47:28]Send response to host [02:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189397,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [02:47:28]free response buf [02:47:28]execute_script done [02:47:28]execute_script returns [02:47:28]free content buf [02:47:28]Sock 9.Close socket [02:47:28]Sock 9.Thread stoped [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:10]accept exits with 8 [02:48:10]New connection [02:48:10]New thread 3067071844 created [02:48:10]Thread 3067215204 joined [02:48:10]Waiting for new connection... [02:48:10] Sock 8.Parse request [02:48:10]Sock 8.Check first char [02:48:10]Sock 8.First char is OK [02:48:10]request: POST /json_proto HTTP/1.0 [02:48:10]Method: POST [02:48:10]URL: /json_proto [02:48:10]Method is POST - this is cgi request [02:48:10]url: /json_proto [02:48:10]query_string will be loaded in cgi processing [02:48:10]execute_cgi json_proto POST (null) [02:48:10]execute_cgi path=json_proto method=POST [02:48:10]POST find Content-Length [02:48:10]Host: 172.17.42.131:8080 [02:48:10]Content-Length: 677 [02:48:10]Content-Type: application/json [02:48:10] [02:48:10]POST finish read [02:48:10]Found Content-Length = 677 [02:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:48:10]execute_script... [02:48: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)211461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:48:10]POST & json_proto [02:48:10]process_json_proto [02:48:10]json parsed OK: [02:48:10]protocol is kg_v1.0 [02:48:10]action value=close_receipt [02:48:10]process_action close_receipt [02:48:10]cmd_close_receipt [02:48:10]MH_GetDate [02:48:10]Write to MH i2c: F0 00 00 DB 8C 56 [02:48:10]Write i2c OK [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 09 00 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: F0 09 00 DB 8C 00 F1 06 1B 67 A0 18 CA 66 C0 [02:48:10]GetLastDocTimeStamp 1729824450 [02:48:10]current date 1729824497 [02:48:10]FM_GetShiftState [02:48:10]SAM_PROTO_GetShiftState [02:48:10]wFMCommunicate request_size=4 [02:48:10]MH_SAM_APDU [02:48:10]CAPDU: 80 13 01 00 [02:48:10]Write to MH i2c: E2 08 00 DC 8C 80 13 01 00 00 00 00 00 E5 [02:48:10]Write i2c OK [02:48:10]MH_I2C_Read... [02:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:10]Read from MH i2c: E2 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: E2 0E 00 [02:48:10]MH_I2C_Read... [02:48:10]Read from MH i2c: E2 0E 00 DC 8C 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 6A [02:48:10]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:48:10]wFMCommunicate OK [02:48:10]SAM_PROTO_GetShiftState done [02:48:10]FM_GetShiftState done [02:48:10]opened in 1729815317 [02:48:10]opened+sec_in_day 1729901717 [02:48:10]quantity*price = 40006 [02:48:10]sum+1 = 40007 [02:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 21 25.10.2024 02:48 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 189398 ФПД: 226484801389354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189398&fm=226484801389354&tin=02508201610067®Number=0000000000100030&sum=40000 [02:48:12]StoreToDocumentArchive [02:48:12]shift 464 fd 189398 [02:48:12]save to /storage/0464/doc_00189398 [02:48:12]save last doc name /storage/0464/doc_00189398 to /storage/kkm_last_doc_name [02:48:12]save OK [02:48:12]Clear old archive folders... [02:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:48:12]tlvbuf is 01700950 [02:48:12]SAM_PROTO_ClearQueue [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 09 00 00 [02:48:12]Write to MH i2c: E2 08 00 E9 8C 80 09 00 00 00 00 00 00 E7 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 E9 8C 00 90 00 E9 [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]SAM_PROTO_ClearQueue done [02:48:12]KKMCreateOFDPacket [02:48:12]OFDProtocolAddRootSTLVToBuf [02:48:12]FM_MakeSignedData [02:48:12]FM_MakeSignedData [02:48:12]SAM_PROTO_SignData [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 0D 01 02 [02:48:12]Write to MH i2c: E2 08 00 EA 8C 80 0D 01 02 00 00 00 00 EF [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 EA 8C 00 90 00 EA [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]wFMCommunicate request_size=255 [02:48:12]MH_SAM_APDU [02:48: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 15 00 00 00 F4 03 04 00 F1 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E3 02 00 35 04 06 00 CD [02:48:12]Write to MH i2c: E2 02 01 EB 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 15 00 00 00 F4 03 04 00 F1 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E3 02 00 35 04 06 00 CD 00 00 18 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 EB 8C 00 90 00 EB [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]wFMCommunicate request_size=10 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 0D 02 02 05 FC 9A 22 43 2A [02:48:12]Write to MH i2c: E2 0D 00 EC 8C 80 0D 02 02 05 00 FC 9A 22 43 2A 00 00 21 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 03 00 EC 8C 00 90 00 EC [02:48:12]RAPDU: 90 00 [02:48:12]wFMCommunicate OK [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 0D 03 02 [02:48:12]Write to MH i2c: E2 08 00 ED 8C 80 0D 03 02 00 00 00 00 F4 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 0B 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 0B 00 ED 8C 00 05 9A 13 DB C2 8A AF 71 90 00 EE [02:48:12]RAPDU: 05 9A 13 DB C2 8A AF 71 90 00 [02:48:12]wFMCommunicate OK [02:48:12]SAM_PROTO_SignData done [02:48:12]FM_MakeSignedData done [02:48:12]CreateOFDProtocolMessage [02:48:12]wFMCommunicate request_size=4 [02:48:12]MH_SAM_APDU [02:48:12]CAPDU: 80 11 00 00 [02:48:12]Write to MH i2c: E2 08 00 EE 8C 80 11 00 00 00 00 00 00 F4 [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:12]Read from MH i2c: E2 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 17 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: E2 17 00 EE 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [02:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:48:12]wFMCommunicate OK [02:48:12]CreateOFDProtocolMessage done [02:48:12]OFDSenderStorePacket 189398 [02:48:12]StoreOFDPacket docnum=189398 [02:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 99 07 01 73 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 15 00 00 00 F4 03 04 00 F1 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E3 02 00 35 04 06 00 CD FC 9A 22 43 2A 05 9A 13 DB C2 8A AF 71 [02:48:12]CheckFolder [02:48:12]dirname=/storage/ofd_packets [02:48:12]CheckFolder done [02:48:12]ProducePacketName [02:48:12]name=ofd_packets/00189398 [02:48:12]NVStorageSaveData ofd_packets/00189398 [02:48:12]File name is /storage/ofd_packets/00189398 [02:48:12]Write 301 bytes [02:48:12]NVStorageSaveData done [02:48:12]OFDSenderStorePacket done [02:48:12]KKMCreateOFDPacket done [02:48:12]NVStorageSaveData kkm_last_timestamp [02:48:12]File name is /storage/kkm_last_timestamp [02:48:12]Write 4 bytes [02:48:12]NVStorageSaveData done [02:48:12]ExternCall_PrintAddStr [02:48:12]wPrintStart [02:48:12]Write to MH i2c: 01 00 00 EF 8C 7B [02:48:12]Write i2c OK [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 07 00 [02:48:12]MH_I2C_Read... [02:48:12]Read from MH i2c: 01 07 00 EF 8C 00 00 00 00 00 FF 0F 90 [02:48:12]RasterBufferAndPrint [02:48:12]line Счет N : (1)211461 [02:48:12]line ИНН: 02508201610067 [02:48:12]line Контрольно-Кассовый Чек [02:48:12]line ПРОДАЖА [02:48:12]line ТРК (МРК, ГНК) : 12 [02:48:12]line Товар: 2710124130 [02:48:12]line Аи-92-К-3 [02:48:12]line 5.980 * 66.90 [02:48:12]line = 400.06 [02:48:12]line НДС 12% НСП 1% [02:48:12]line > о реализуемом товаре [02:48:12]line ОКРУГЛЕНИЕ: -0.06 [02:48:12]line ИТОГО: 400.00 [02:48:12]line Внесено: 400.00 [02:48:12]line СДАЧА: 0.00 [02:48:12]line НСП 1% : 3.54 [02:48:12]line НДС 12% : 42.48 [02:48:12]line Наличными: 400.00 [02:48:12]line Безнал.: 0.00 [02:48:12]line Место: АЗС № 86 "Партнер Нефть" [02:48:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:48:12]line СНО: Общий режим [02:48:12]line Чек 21 25.10.2024 02:48 [02:48:12]line Смена: 464 ФФД: 1.0 [02:48:12]line ЗНМ: 0300000155 [02:48:12]line РНМ: 0000000000100030 [02:48:12]line Версия ККМ: 001 [02:48:12]line ФМ: 0000000000965340 [02:48:12]line ФД: 189398 [02:48:12]line ФПД: 226484801389354 [02:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T024817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189398&fm=226484801389354&tin=02508201610067®Number=0000000000100030&sum=40000 [02:48:12]written 0, free lines is 4095 [02:48:12]OFD Sender: Processing packet 189398 [packets to send 1062, broken 1061] [02:48:12]ProducePacketName [02:48:12]name=ofd_packets/00189398 [02:48:12]OFD Sender: To server: pG, [02:48:12]CommunicateWithHost lk.salyk.kg:30040 [02:48:12]ConnectInit lk.salyk.kg [02:48:12]Connected sock=10 [02:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 99 07 01 73 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 15 00 00 00 F4 03 04 00 F1 06 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 E3 02 00 35 04 06 00 CD FC 9A 22 43 2A 05 9A 13 DB C2 8A AF 71 [02:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 69 40 47 00 18 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 39 36 35 33 34 30 10 04 04 00 D6 E3 02 00 F4 03 04 00 D7 B0 1A 67 B6 04 01 00 00 5F F6 52 3C 5A 91 78 4F [02:48:13]CommunicateWithHost err = 0 [02:48:13]CheckOFDResponse [02:48:13]1017 (14) - 77093643461234 [02:48:13]1041 (16) - 0000000000965340 [02:48:13]1040 (4) - 189398 [02:48:13]1012 (4) - 24.10.2024 20:40 [02:48:13]1206 (1) - 0 [02:48:13]OFD Sender: Remove packet 189398 [02:48:13]ProducePacketName [02:48:13]name=ofd_packets/00189398 [02:48:13]NVStorageDeleteData [02:48:13]Write to MH i2c: 01 00 00 1A 8D A7 [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 07 00 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: 01 07 00 1A 8D 00 00 00 00 00 4F 0C 09 [02:48:13]RasterBufferAndPrint [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]line [02:48:13]written 0, free lines is 3155 [02:48:13]MH_Cut [02:48:13]Write to MH i2c: D1 01 00 21 8D 01 80 [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 01 00 [02:48:13]MH_I2C_Read... [02:48:13]Read from MH i2c: D1 01 00 21 8D 00 7F [02:48:13]Write to MH i2c: 01 00 00 22 8D AF [02:48:13]Write i2c OK [02:48:13]MH_I2C_Read... [02:48:13]OFD Sender: No OFD packet to send [02:48:14]*** Cut start [02:48:14]*** Partial cut [02:48:14]*** CUTSNS_PIN = 1 [02:48:14]*** CUTSNS_PIN = 0 [02:48:14]*** Brake cut motor [02:48:15]Read from MH i2c: 01 [02:48:15]MH_I2C_Read... [02:48:15]*** Stop cut motor [02:48:15]*** Cut end [02:48:15]Read from MH i2c: 01 07 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: 01 07 00 22 8D 00 00 00 00 00 FF 0F C4 [02:48:15]process_action close_receipt done [02:48:15]requested_data is exist [02:48:15]produce_requested_data [02:48:15]requested_item fm.sn is exist - process it [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 11 00 00 [02:48:15]Write to MH i2c: E2 08 00 23 8D 80 11 00 00 00 00 00 00 2A [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 17 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 17 00 23 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [02:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:48:15]wFMCommunicate OK [02:48:15]requested_item fd.num is exist - process it [02:48:15]SAM_PROTO_GetFieldsCounters [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 13 00 00 [02:48:15]Write to MH i2c: E2 08 00 24 8D 80 13 00 00 00 00 00 00 2D [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 62 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 62 00 24 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E3 02 00 0E 04 04 00 D0 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 FF [02:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 E3 02 00 0E 04 04 00 D0 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:48:15]wFMCommunicate OK [02:48:15]SAM_PROTO_GetFieldsCounters done [02:48:15]requested_item shift.num is exist - process it [02:48:15]requested_item shift.opened is exist - process it [02:48:15]req_shift_opened [02:48:15]FM_GetShiftState [02:48:15]SAM_PROTO_GetShiftState [02:48:15]wFMCommunicate request_size=4 [02:48:15]MH_SAM_APDU [02:48:15]CAPDU: 80 13 01 00 [02:48:15]Write to MH i2c: E2 08 00 25 8D 80 13 01 00 00 00 00 00 2F [02:48:15]Write i2c OK [02:48:15]MH_I2C_Read... [02:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:15]Read from MH i2c: E2 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 0E 00 [02:48:15]MH_I2C_Read... [02:48:15]Read from MH i2c: E2 0E 00 25 8D 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 B4 [02:48:15]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:48:15]wFMCommunicate OK [02:48:15]SAM_PROTO_GetShiftState done [02:48:15]FM_GetShiftState done [02:48:15]req_shift_opened done [02:48:15]requested_item shift.open_date is exist - process it [02:48:15]req_shift_open_date [02:48:15]req_shift_open_date done [02:48:15]produce_requested_data done [02:48:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189398,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [02:48:15]process_action_free close_receipt [02:48:15]json_value_free [02:48:15]json_value_free done [02:48:15]process_json_proto returns [02:48:15]Send response to host [02:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189398,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [02:48:15]free response buf [02:48:15]execute_script done [02:48:15]execute_script returns [02:48:15]free content buf [02:48:15]Sock 8.Close socket [02:48:15]Sock 8.Thread stoped [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:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]accept exits with 9 [02:51:04]New connection [02:51:04]New thread 3067215204 created [02:51:04]Thread 3067071844 joined [02:51:04]Waiting for new connection... [02:51:04] Sock 9.Parse request [02:51:04]Sock 9.Check first char [02:51:04]Sock 9.First char is OK [02:51:04]request: POST /json_proto HTTP/1.0 [02:51:04]Method: POST [02:51:04]URL: /json_proto [02:51:04]Method is POST - this is cgi request [02:51:04]url: /json_proto [02:51:04]query_string will be loaded in cgi processing [02:51:04]execute_cgi json_proto POST (null) [02:51:04]execute_cgi path=json_proto method=POST [02:51:04]POST find Content-Length [02:51:04]Host: 172.17.42.131:8080 [02:51:04]Content-Length: 769 [02:51:04]Content-Type: application/json [02:51:04] [02:51:04]POST finish read [02:51:04]Found Content-Length = 769 [02:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:04]execute_script... [02:51: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)211462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:04]POST & json_proto [02:51:04]process_json_proto [02:51:04]json parsed OK: [02:51:04]protocol is kg_v1.0 [02:51:04]action value=close_receipt [02:51:04]process_action close_receipt [02:51:04]cmd_close_receipt [02:51:04]MH_GetDate [02:51:04]Write to MH i2c: F0 00 00 26 8D A2 [02:51:04]Write i2c OK [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 09 00 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: F0 09 00 26 8D 00 9E 07 1B 67 A0 18 CA 66 BA [02:51:04]GetLastDocTimeStamp 1729824497 [02:51:04]current date 1729824670 [02:51:04]FM_GetShiftState [02:51:04]SAM_PROTO_GetShiftState [02:51:04]wFMCommunicate request_size=4 [02:51:04]MH_SAM_APDU [02:51:04]CAPDU: 80 13 01 00 [02:51:04]Write to MH i2c: E2 08 00 27 8D 80 13 01 00 00 00 00 00 31 [02:51:04]Write i2c OK [02:51:04]MH_I2C_Read... [02:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:04]Read from MH i2c: E2 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: E2 0E 00 [02:51:04]MH_I2C_Read... [02:51:04]Read from MH i2c: E2 0E 00 27 8D 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 B6 [02:51:04]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:51:04]wFMCommunicate OK [02:51:04]SAM_PROTO_GetShiftState done [02:51:04]FM_GetShiftState done [02:51:04]opened in 1729815317 [02:51:04]opened+sec_in_day 1729901717 [02:51:04]quantity*price = 100015 [02:51:04]sum+1 = 100017 [02:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 25.10.2024 02:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 189399 ФПД: 12146860608095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189399&fm=12146860608095&tin=02508201610067®Number=0000000000100030&sum=100016 [02:51:05]StoreToDocumentArchive [02:51:05]shift 464 fd 189399 [02:51:05]save to /storage/0464/doc_00189399 [02:51:05]save last doc name /storage/0464/doc_00189399 to /storage/kkm_last_doc_name [02:51:05]save OK [02:51:05]Clear old archive folders... [02:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:51:05]tlvbuf is 0160C2E0 [02:51:05]SAM_PROTO_ClearQueue [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 09 00 00 [02:51:05]Write to MH i2c: E2 08 00 34 8D 80 09 00 00 00 00 00 00 33 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 34 8D 00 90 00 35 [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]SAM_PROTO_ClearQueue done [02:51:05]KKMCreateOFDPacket [02:51:05]OFDProtocolAddRootSTLVToBuf [02:51:05]FM_MakeSignedData [02:51:05]FM_MakeSignedData [02:51:05]SAM_PROTO_SignData [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 01 02 [02:51:05]Write to MH i2c: E2 08 00 35 8D 80 0D 01 02 00 00 00 00 3B [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 35 8D 00 90 00 36 [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=255 [02:51:05]MH_SAM_APDU [02:51: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 9E 07 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E3 02 00 35 04 06 00 0B [02:51:05]Write to MH i2c: E2 02 01 36 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 9E 07 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E3 02 00 35 04 06 00 0B 00 00 9D [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 36 8D 00 90 00 37 [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=10 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 02 02 05 0C 29 4F CA 5F [02:51:05]Write to MH i2c: E2 0D 00 37 8D 80 0D 02 02 05 00 0C 29 4F CA 5F 00 00 F5 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 03 00 37 8D 00 90 00 38 [02:51:05]RAPDU: 90 00 [02:51:05]wFMCommunicate OK [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 0D 03 02 [02:51:05]Write to MH i2c: E2 08 00 38 8D 80 0D 03 02 00 00 00 00 40 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 0B 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 0B 00 38 8D 00 5E 9D 2F 3F 0A AD F8 07 90 00 60 [02:51:05]RAPDU: 5E 9D 2F 3F 0A AD F8 07 90 00 [02:51:05]wFMCommunicate OK [02:51:05]SAM_PROTO_SignData done [02:51:05]FM_MakeSignedData done [02:51:05]CreateOFDProtocolMessage [02:51:05]wFMCommunicate request_size=4 [02:51:05]MH_SAM_APDU [02:51:05]CAPDU: 80 11 00 00 [02:51:05]Write to MH i2c: E2 08 00 39 8D 80 11 00 00 00 00 00 00 40 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:05]Read from MH i2c: E2 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 17 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: E2 17 00 39 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [02:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:51:05]wFMCommunicate OK [02:51:05]CreateOFDProtocolMessage done [02:51:05]OFDSenderStorePacket 189399 [02:51:05]StoreOFDPacket docnum=189399 [02:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 B7 07 01 A4 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 9E 07 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E3 02 00 35 04 06 00 0B 0C 29 4F CA 5F 5E 9D 2F 3F 0A AD F8 07 [02:51:05]CheckFolder [02:51:05]dirname=/storage/ofd_packets [02:51:05]CheckFolder done [02:51:05]ProducePacketName [02:51:05]name=ofd_packets/00189399 [02:51:05]NVStorageSaveData ofd_packets/00189399 [02:51:05]File name is /storage/ofd_packets/00189399 [02:51:05]Write 301 bytes [02:51:05]NVStorageSaveData done [02:51:05]OFDSenderStorePacket done [02:51:05]KKMCreateOFDPacket done [02:51:05]NVStorageSaveData kkm_last_timestamp [02:51:05]File name is /storage/kkm_last_timestamp [02:51:05]Write 4 bytes [02:51:05]NVStorageSaveData done [02:51:05]ExternCall_PrintAddStr [02:51:05]wPrintStart [02:51:05]Write to MH i2c: 01 00 00 3A 8D C7 [02:51:05]Write i2c OK [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 07 00 [02:51:05]MH_I2C_Read... [02:51:05]Read from MH i2c: 01 07 00 3A 8D 00 00 00 00 00 FF 0F DC [02:51:05]RasterBufferAndPrint [02:51:05]line Счет N : (1)211462 [02:51:05]line ИНН: 02508201610067 [02:51:05]line Контрольно-Кассовый Чек [02:51:05]line ПРОДАЖА [02:51:05]line ТРК (МРК, ГНК) : 22 [02:51:05]line Товар: 2710124130 [02:51:05]line Аи-92-К-3 [02:51:05]line 14.950 * 66.90 [02:51:05]line = 1000.16 [02:51:05]line НДС 12% НСП 1% [02:51:05]line > о реализуемом товаре [02:51:05]line ИТОГО: 1000.16 [02:51:05]line НСП 1% : 8.85 [02:51:05]line НДС 12% : 106.21 [02:51:05]line Наличными: 0.00 [02:51:05]line Безнал.: 1000.16 [02:51:05]line Место: АЗС № 86 "Партнер Нефть" [02:51:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:51:05]line СНО: Общий режим [02:51:05]line Чек 22 25.10.2024 02:51 [02:51:05]line Смена: 464 ФФД: 1.0 [02:51:05]line ЗНМ: 0300000155 [02:51:05]line РНМ: 0000000000100030 [02:51:05]line Версия ККМ: 001 [02:51:05]line Платежная система: Mbank [02:51:05]line ФМ: 0000000000965340 [02:51:05]line ФД: 189399 [02:51:05]line ФПД: 12146860608095 [02:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=189399&fm=12146860608095&tin=02508201610067®Number=0000000000100030&sum=100016 [02:51:05]written 0, free lines is 4095 [02:51:05]OFD Sender: Processing packet 189399 [packets to send 1062, broken 1061] [02:51:05]ProducePacketName [02:51:05]name=ofd_packets/00189399 [02:51:05]OFD Sender: To server: pG, [02:51:05]CommunicateWithHost lk.salyk.kg:30040 [02:51:05]ConnectInit lk.salyk.kg [02:51:06]Connected sock=10 [02:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 B7 07 01 A4 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 9E 07 1B 67 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 E3 02 00 35 04 06 00 0B 0C 29 4F CA 5F 5E 9D 2F 3F 0A AD F8 07 [02:51:06]Write to MH i2c: 01 00 00 63 8D F0 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 07 00 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: 01 07 00 63 8D 00 00 00 00 00 82 0C 85 [02:51:06]RasterBufferAndPrint [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]line [02:51:06]written 0, free lines is 3207 [02:51:06]MH_Cut [02:51:06]Write to MH i2c: D1 01 00 6A 8D 01 C9 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 01 00 [02:51:06]MH_I2C_Read... [02:51:06]Read from MH i2c: D1 01 00 6A 8D 00 C8 [02:51:06]Write to MH i2c: 01 00 00 6B 8D F8 [02:51:06]Write i2c OK [02:51:06]MH_I2C_Read... [02:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 7E 47 00 98 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 39 36 35 33 34 30 10 04 04 00 D7 E3 02 00 F4 03 04 00 84 B1 1A 67 B6 04 01 00 00 8F 0E ED 86 61 8D 92 39 [02:51:06]CommunicateWithHost err = 0 [02:51:06]CheckOFDResponse [02:51:06]1017 (14) - 77093643461234 [02:51:06]1041 (16) - 0000000000965340 [02:51:06]1040 (4) - 189399 [02:51:06]1012 (4) - 24.10.2024 20:43 [02:51:06]1206 (1) - 0 [02:51:06]OFD Sender: Remove packet 189399 [02:51:06]ProducePacketName [02:51:06]name=ofd_packets/00189399 [02:51:06]NVStorageDeleteData [02:51:06]OFD Sender: No OFD packet to send [02:51:07]*** Cut start [02:51:07]*** Partial cut [02:51:07]*** CUTSNS_PIN = 1 [02:51:07]*** CUTSNS_PIN = 0 [02:51:07]*** Brake cut motor [02:51:08]Read from MH i2c: 01 [02:51:08]MH_I2C_Read... [02:51:08]*** Stop cut motor [02:51:08]*** Cut end [02:51:08]Read from MH i2c: 01 07 00 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: 01 07 00 6B 8D 00 00 00 00 00 FF 0F 0D [02:51:08]process_action close_receipt done [02:51:08]requested_data is exist [02:51:08]produce_requested_data [02:51:08]requested_item fm.sn is exist - process it [02:51:08]wFMCommunicate request_size=4 [02:51:08]MH_SAM_APDU [02:51:08]CAPDU: 80 11 00 00 [02:51:08]Write to MH i2c: E2 08 00 6C 8D 80 11 00 00 00 00 00 00 73 [02:51:08]Write i2c OK [02:51:08]MH_I2C_Read... [02:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:08]Read from MH i2c: E2 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 17 00 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 17 00 6C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [02:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:51:08]wFMCommunicate OK [02:51:08]requested_item fd.num is exist - process it [02:51:08]SAM_PROTO_GetFieldsCounters [02:51:08]wFMCommunicate request_size=4 [02:51:08]MH_SAM_APDU [02:51:08]CAPDU: 80 13 00 00 [02:51:08]Write to MH i2c: E2 08 00 6D 8D 80 13 00 00 00 00 00 00 76 [02:51:08]Write i2c OK [02:51:08]MH_I2C_Read... [02:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:08]Read from MH i2c: E2 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 62 00 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 62 00 6D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E3 02 00 0E 04 04 00 D0 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 4C [02:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 E3 02 00 0E 04 04 00 D0 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:51:08]wFMCommunicate OK [02:51:08]SAM_PROTO_GetFieldsCounters done [02:51:08]requested_item shift.num is exist - process it [02:51:08]requested_item shift.opened is exist - process it [02:51:08]req_shift_opened [02:51:08]FM_GetShiftState [02:51:08]SAM_PROTO_GetShiftState [02:51:08]wFMCommunicate request_size=4 [02:51:08]MH_SAM_APDU [02:51:08]CAPDU: 80 13 01 00 [02:51:08]Write to MH i2c: E2 08 00 6E 8D 80 13 01 00 00 00 00 00 78 [02:51:08]Write i2c OK [02:51:08]MH_I2C_Read... [02:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:08]Read from MH i2c: E2 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 0E 00 [02:51:08]MH_I2C_Read... [02:51:08]Read from MH i2c: E2 0E 00 6E 8D 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 FD [02:51:08]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [02:51:08]wFMCommunicate OK [02:51:08]SAM_PROTO_GetShiftState done [02:51:08]FM_GetShiftState done [02:51:08]req_shift_opened done [02:51:08]requested_item shift.open_date is exist - process it [02:51:08]req_shift_open_date [02:51:08]req_shift_open_date done [02:51:08]produce_requested_data done [02:51:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":189399,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317} [02:51:08]process_action_free close_receipt [02:51:08]json_value_free [02:51:08]json_value_free done [02:51:08]process_json_proto returns [02:51:08]Send response to host [02:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":189399,"shift.num":464,"shift.opened":1,"shift.open_date":1729815317}}} [02:51:08]free response buf [02:51:08]execute_script done [02:51:08]execute_script returns [02:51:08]free content buf [02:51:08]Sock 9.Close socket [02:51:08]Sock 9.Thread stoped [02:51:11]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58: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:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]accept exits with 8 [03:06:10]New connection [03:06:10]New thread 3067071844 created [03:06:10]Thread 3067215204 joined [03:06:10]Waiting for new connection... [03:06:10] Sock 8.Parse request [03:06:10]Sock 8.Check first char [03:06:10]Sock 8.First char is OK [03:06:10]request: POST /json_proto HTTP/1.0 [03:06:10]Method: POST [03:06:10]URL: /json_proto [03:06:10]Method is POST - this is cgi request [03:06:10]url: /json_proto [03:06:10]query_string will be loaded in cgi processing [03:06:10]execute_cgi json_proto POST (null) [03:06:10]execute_cgi path=json_proto method=POST [03:06:10]POST find Content-Length [03:06:10]Host: 172.17.42.131:8080 [03:06:10]Content-Length: 682 [03:06:10]Content-Type: application/json [03:06:10] [03:06:10]POST finish read [03:06:10]Found Content-Length = 682 [03:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)211463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [03:06:10]execute_script... [03:06: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)211463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [03:06:10]POST & json_proto [03:06:10]process_json_proto [03:06:10]json parsed OK: [03:06:10]protocol is kg_v1.0 [03:06:10]action value=close_receipt [03:06:10]process_action close_receipt [03:06:10]cmd_close_receipt [03:06:10]MH_GetDate [03:06:10]Write to MH i2c: F0 00 00 6F 8D EB [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: F0 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: F0 09 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: F0 09 00 6F 8D 00 29 0B 1B 67 A0 18 CA 66 92 [03:06:10]GetLastDocTimeStamp 1729824670 [03:06:10]current date 1729825577 [03:06:10]FM_GetShiftState [03:06:10]SAM_PROTO_GetShiftState [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 13 01 00 [03:06:10]Write to MH i2c: E2 08 00 70 8D 80 13 01 00 00 00 00 00 7A [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0E 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0E 00 70 8D 00 09 00 01 15 E3 1A 67 00 00 00 00 90 00 FF [03:06:10]RAPDU: 09 00 01 15 E3 1A 67 00 00 00 00 90 00 [03:06:10]wFMCommunicate OK [03:06:10]SAM_PROTO_GetShiftState done [03:06:10]FM_GetShiftState done [03:06:10]opened in 1729815317 [03:06:10]opened+sec_in_day 1729901717 [03:06:10]quantity*price = 200031 [03:06:10]sum+1 = 200032 [03:06:10]Check (price>sum+1) || (price+1